12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180 |
- <template>
- <div class="patient-container">
- <!--<el-dialog title="透析处方长期医嘱医生确认推送提醒" :visible.sync="dialogConfigVisible">-->
- <!--<el-form>-->
- <!--<el-form-item label="是否开启推送:">-->
- <!--<el-radio-group v-model="is_open_remind" @change="changeRemind">-->
- <!--<el-radio :label="1">开启</el-radio>-->
- <!--<el-radio :label="2">不开启</el-radio>-->
- <!--</el-radio-group>-->
- <!--</el-form-item>-->
- <!--</el-form>-->
-
- <!--</el-dialog>-->
-
- <patient-sidebar
- :id="patientID"
- defaultActive="1-4"
- v-on:tran-patient="onTranPatient"
- ></patient-sidebar>
- <div class="patient-app-container advice-container app-container">
- <div class="cellButton" style="float:right;">
- <!--<el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" size="small"-->
- <!--@click="dialogConfigVisible = true"-->
- <!--type="primary" icon="el-icon-circle-plus-outline">长期医嘱提醒配置-->
- <!--</el-button>-->
- <el-button
- :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
- size="small"
- @click="openNew"
- type="primary"
- icon="el-icon-circle-plus-outline"
- >新增
- </el-button>
- <el-button
- size="small"
- @click="printThisInfo()"
- :type="
- adviceType == 1 || adviceType == 3 || adviceType == 2 || adviceType == 4
- ? 'primary'
- : 'warning'
- "
- icon="el-icon-printer"
- >打印
- </el-button>
- <!-- <el-button @click=lili()>调试</el-button>-->
- </div>
- <div class="cell clearfix">
- <el-input
- style="width: 400px;"
- v-model="listQuery.keywords"
- class="filter-item"
- size="small"
- />
- <el-button
- size="small"
- type="primary"
- icon="el-icon-search"
- @click="changeKey"
- >搜索
- </el-button>
- </div>
- <div class="cell clearfix">
- <label class="title"><span class="name">医嘱类型</span> : </label>
- <div class="time ">
- <ul class="">
- <li
- :class="item.value == adviceType ? 'active' : ''"
- @click="selectAdviceType(item.value)"
- v-for="item in adviceTypeArr"
- :key="item.value"
- >
- <span v-if="item.value == 1">
- <span v-if="(org_id == 9671 || org_id == 10440)">
- 长期医嘱模版
- </span>
-
- <span v-if="(org_id != 9671 && org_id != 10440)">
- {{ item.label }}
- </span>
- </span>
- <span v-if="item.value != 1">
- {{ item.label }}
- </span>
-
-
- </li>
- </ul>
- </div>
- </div>
- <div class="cell clearfix">
- <label class="title"><span class="name">显示范围</span> : </label>
- <div class="time ">
- <ul class="">
- <li
- :class="item.value == stopType ? 'active' : ''"
- @click="selectStopType(item.value)"
- v-for="item in stopTypeArr"
- :key="item.value"
- >
- {{ item.label }}
- </li>
- </ul>
- </div>
- </div>
-
-
- <div class="cell clearfix">
- <label class="title"><span class="name">日期查询</span> : </label>
- <el-date-picker
- size="small"
- v-model="listQuery.start_time"
- prefix-icon="el-icon-date"
- @change="changeTime"
- :editable="false"
- style="width: 196px;"
- type="date"
- placeholder="选择日期时间"
- align="right"
- :picker-options="pickerOptions"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- <span class="cellLine"> - </span>
- <el-date-picker
- size="small"
- v-model="listQuery.end_time"
- prefix-icon="el-icon-date"
- @change="changeTime"
- :editable="false"
- style="width: 196px;"
- type="date"
- placeholder="选择日期时间"
- align="right"
- :picker-options="pickerOptions"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- </div>
- <el-table
- id="oictable"
- @cell-click="clickuseradvicecell"
- :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
- row-class-name="user-advice-table-row"
- :span-method="mergeSpan"
- ref="multipleTable"
- :data="adviceTableData"
- border
- fit
- highlight-current-row
- @select="selectAdvice"
- @selection-change="changeAdvice"
- style="width: 100%;margin-top: 10px;"
- :cell-class-name="adviceNameShow"
- >
- <el-table-column
- align="center"
- label="全选"
- width="60px"
- type="selection"
- fixed
- ></el-table-column>
- <!--<el-table-column type="index" :index="indexMethod" label="序号" width="60px" align="center"></el-table-column>-->
- <el-table-column
- label="期效"
- width="60px"
- property="advice_type"
- align="center"
- fixed
- >
- <template slot-scope="scope">
- <span v-if="scope.row.advice_type == 1">
- <span v-if="org_id != 9671 && org_id != 10440">长嘱</span>
- <span v-if="org_id == 9671 || org_id == 10440">长期医嘱模版</span>
- </span>
- <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
- <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
- <span v-else></span>
- </template>
- </el-table-column>
-
- 、
-
- <el-table-column
- label="开嘱时间"
- width="180"
- property="created_time"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="org_id == 10215">{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span>
- <span v-else>{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span>
- </template>
- </el-table-column>
- <el-table-column
- label="医嘱内容"
- property="advice_name"
- width="180"
- align="center"
- style="word-break: keep-all;white-space:nowrap;"
- >
- <template slot-scope="scope">
- <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
- <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
- <span v-if="scope.row.frequency_type ==1" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
- <span v-if="scope.row.frequency_type ==2 && scope.row.day_count>0" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
- <span v-if="scope.row.frequency_type ==2 && scope.row.day_count==0" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
- <span v-if="scope.row.frequency_type ==3 && scope.row.week_day!=''" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
- <span v-if="scope.row.frequency_type ==3 && scope.row.week_day==''" > {{ scope.row.advice_name}}</span>
- <span v-if="scope.row.frequency_type ==0"> {{ scope.row.advice_name}}</span>
- <i class="el-icon-arrow-down el-icon--right"></i>
- </span>
-
- <el-dropdown-menu slot="dropdown">
- <!--<el-dropdown-item :disabled="$store.getters.xt_user.subscibe.state==3?true:false"-->
- <!--@click.native="openEdit(scope.$index, scope.row)">修改医嘱-->
- <!--</el-dropdown-item>-->
-
- <el-dropdown-item
- v-if="scope.row.advice_type == 1"
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openStop(scope.$index, scope.row)"
- >停止医嘱
- </el-dropdown-item>
-
- <el-dropdown-item
- v-if="scope.row.advice_type == 3"
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openExec(scope.$index, scope.row)"
- >执行医嘱
- </el-dropdown-item>
- <el-dropdown-item
- v-if="scope.row.advice_type == 3"
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openCheck(scope.$index, scope.row)"
- >核对医嘱
- </el-dropdown-item>
- <el-dropdown-item
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openDelete(scope.$index, scope.row)"
- >删除医嘱
- </el-dropdown-item>
- <el-dropdown-item
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openNewChild(scope.$index, scope.row)"
- >新增子药
- </el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
-
- <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
- <span class="el-dropdown-link">
-   {{ scope.row.advice_name
- }}<i class="el-icon-arrow-down el-icon--right"></i>
- </span>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openEdit(scope.$index, scope.row)"
- >修改医嘱
- </el-dropdown-item>
- <el-dropdown-item
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click.native="openDelete(scope.$index, scope.row)"
- >删除医嘱
- </el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- </template>
- </el-table-column>
- <!-- <el-table-column label="药品规格*数量" width="180" property="drug_spec" align="center">
- <template slot-scope="scope" >
- <span v-if="scope.row.drug_spec!=0">
- {{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}
- </span>
- <span v-if="scope.row.prescribing_number!=0">*{{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}</span>
-
- </template>
- </el-table-column> -->
- <el-table-column
- label="药品规格"
- width="180"
- property="advice_desc"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.advice_desc"
- >{{ scope.row.advice_desc }}{{ scope.row.drug_spec_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="开药数量"
- width="180"
- property="prescribing_number"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.prescribing_number != 0"
- >{{ scope.row.prescribing_number
- }}{{ scope.row.prescribing_number_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="单次用量"
- width="180"
- property="single_dose"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.single_dose != 0"
- >{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="频率"
- width="180"
- property="execution_frequency"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_id == 0">{{
- scope.row.execution_frequency
- }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="用法"
- width="180"
- property="delivery_way"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_id == 0">{{
- scope.row.delivery_way
- }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="执行时间"
- width="180"
- property="execution_time"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.execution_state == 1">
- {{
- scope.row.execution_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="医嘱状态"
- width="180"
- property="stop_time"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.stop_state == 1">已停止</span>
- <span v-if="scope.row.stop_state == 2">未停止</span>
- </template>
- </el-table-column>
- <el-table-column
- label="终止时间"
- width="180"
- property="stop_time"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.stop_state == 1">
- {{ scope.row.stop_time | parseTime("{y}-{m}-{d} {h}:{i}") }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="执行护士"
- width="180"
- property="execution_staff"
- v-show="adviceType == 3"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_id == 0">{{
- getXuserName(scope.row.execution_staff)
- }}</span>
- </template>
- </el-table-column>
-
- <el-table-column
- label="开嘱医生"
- width="180"
- property="advice_doctor"
- align="center"
- >
- <template slot-scope="scope">
- {{ getXuserName(scope.row.advice_doctor) }}
- </template>
- </el-table-column>
-
- <el-table-column
- label="开嘱时间"
- width="180"
- property="created_time"
- align="center"
- >
- <template slot-scope="scope">
- {{ scope.row.created_time | parseTime("{y}-{m}-{d} {h}:{i}") }}
- </template>
- </el-table-column>
-
- <el-table-column
- label="校对护士"
- width="180"
- property="checker"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_id == 0">{{
- getXuserName(scope.row.checker)
- }}</span>
- </template>
- </el-table-column>
-
- <el-table-column
- label="校对时间"
- width="180"
- property="check_time"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.check_state == 1">{{
- scope.row.created_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- </template>
- </el-table-column>
-
- <el-table-column
- label="推送截止日期"
- width="180"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.push_start_time >0">{{scope.row.push_start_time | parseTime("{y}-{m}-{d}")}}</span>
- </template>
- </el-table-column>
-
- <el-table-column
- label="医嘱嘱托"
- width="180"
- align="center"
- >
- <template slot-scope="scope">
- <span>{{scope.row.remark}}</span>
- </template>
- </el-table-column>
-
- <!-- <template v-if="adviceType==3">
- <el-table-column key="advice_doctor_3" label="开嘱医生" min-width="80" property="advice_doctor" align="center">
- <template slot-scope="scope">
- {{getXuserName(scope.row.advice_doctor)}}
- </template>
- </el-table-column>
- <el-table-column key="execution_time_3" label="执行时间" min-width="80" property="execution_time" v-show="adviceType==3" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.execution_state==1&&scope.row.parent_id==0"> {{scope.row.execution_time | parseTime("{y}-{m}-{d} {h}:{i}")}}</span>
- </template>
- </el-table-column>
- <el-table-column key="execution_staff_3" label="执行人员" min-width="80" property="execution_staff" v-show="adviceType==3" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.parent_id==0">{{getXuserName(scope.row.execution_staff)}}</span>
- </template>
- </el-table-column>
- <el-table-column key="checker_3" label="核对人员" min-width="80" property="checker" v-show="adviceType==3" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.parent_id==0">{{getXuserName(scope.row.checker)}}</span>
- </template>
- </el-table-column>
- <el-table-column key="remark_3" label="备注" min-width="80" property="remark" align="center"> </el-table-column>
- </template>
- <template v-if="adviceType==1">
- <el-table-column key="advice_doctor_1" label="开嘱医生" min-width="80" property="advice_doctor" align="center">
- <template slot-scope="scope">
- {{getXuserName(scope.row.advice_doctor)}}
- </template>
- </el-table-column>
- <el-table-column key="advice_affirm_1" label="开嘱确认" min-width="80" property="advice_affirm" v-show="adviceType==0" align="center"> </el-table-column>
- <el-table-column key="stop_time_1" label="停止时间" min-width="80" property="stop_time" v-show="adviceType==1" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.stop_state==1&&scope.row.parent_id==0"> {{scope.row.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")}}</span>
- </template>
- </el-table-column>
-
- <el-table-column key="stop_doctor_1" label="停嘱医生" min-width="80" property="stop_doctor" v-show="adviceType==1" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.stop_state==1&&scope.row.parent_id==0"> {{getXuserName(scope.row.stop_doctor)}}</span>
- </template>
- </el-table-column>
- </template> -->
- <el-table-column label="操作" width="180" align="center" fixed="right">
- <template slot-scope="scope">
- <!-- <el-button-group> -->
- <el-tooltip
- class="item"
- effect="dark"
- content="编辑"
- placement="top"
- >
- <el-button
- icon="el-icon-edit-outline"
- type="primary"
- size="small"
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click="
- scope.row.groupno > 0
- ? openEditGroupAdvice(scope.row.groupno)
- : openEdit(scope.$index, scope.row)
- "
- v-if="isShowStartTime(scope.$index, scope.row)"
- ></el-button>
- </el-tooltip>
- <el-tooltip
- class="item"
- effect="dark"
- content="删除"
- placement="top"
- >
- <el-button
- icon="el-icon-delete"
- type="danger"
- size="small"
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- @click="
- scope.row.groupno > 0
- ? DeleteGroupAdvice(scope.row.groupno, scope.row)
- : openDelete(scope.$index, scope.row)
- "
- v-if="isShowStartTime(scope.$index, scope.row)"
- ></el-button>
- </el-tooltip>
- <!-- </el-button-group> -->
- </template>
- </el-table-column>
- </el-table>
-
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :page-sizes="[10, 20, 50, 100]"
- :page-size="10"
- background
- style="margin-top:20px;float: right"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- ></el-pagination>
-
- <el-dialog
- title="新增医嘱"
- :visible.sync="groupFormVisible"
- width="700px"
- >
- <el-form ref="groupForm" :rules="groupRules" :model="groupForm">
- <el-row>
- <el-col :span="12">
- <el-form-item label="医嘱类型 :" required prop="advice_type">
- <el-select
- v-model="groupForm.advice_type"
- placeholder="请选择"
- @change="changeOptions"
- >
- <el-option
- :label="item.label"
- :key="item.value"
- :value="item.value"
- v-for="item in adviceTypeOptions"
- ></el-option>
- </el-select>
-
- </el-form-item>
- </el-col>
-
- <el-col :span="12">
- <el-form-item label="开始时间 :" required prop="start_time">
- <el-date-picker
- style="width:200px"
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="groupForm.start_time"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
- <el-form-item label="备注 :">
- <el-input type="textarea" v-model="groupForm.remark"></el-input>
- </el-form-item>
- </el-row>
-
- <el-row>
- <el-col :span="12">
- <el-form-item label="开嘱医生 :">
- <span>{{ adminusername }} </span>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="开嘱时间 :">
- <span>{{ groupForm.advice_date }} </span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="2">
-
- </el-col>
- <el-col :span="5">
- <el-button
- :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
- round
- @click="openAdviceTemplate()"
- >选择医嘱模板
- </el-button>
- </el-col>
- <el-col :span="5">
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- round
- @click="openGroupAdvice(0)"
- >新增医嘱内容
- </el-button>
- </el-col>
- <el-col :span="5">
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- round
- @click="openGroupAdvice(1)"
- >修改医嘱内容
- </el-button>
- </el-col>
- <el-col :span="5">
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- round
- @click="openDeleteGroupAdvice()"
- >删除医嘱内容
- </el-button>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-table
- :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
- id="user-advice-name-table"
- :data="groupForm.adviceNames"
- border
- fit
- highlight-current-row
- :row-class-name="groupClassName"
- @current-change="selectGroupAdvice"
- style="width: 100%;margin-top: 10px;margin-bottom: 10px;"
- :row-key="getRowKey"
- ref="advicenametable"
- :expand-row-keys="expandRowKeys"
- type="expand"
- default-expand-all
- >
- <el-table-column
- label="医嘱内容"
- property="advice_name"
- style="word-break: keep-all;white-space:nowrap;"
- >
- </el-table-column>
- <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
- <template slot-scope="scope" >
- <span v-if="scope.row.drug_spec!=0">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
- <span v-if="scope.row.prescribing_number!=0">*{{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}</span>
- </template>
- </el-table-column> -->
- <el-table-column
- label="药品规格"
- min-width="80"
- property="advice_desc"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.advice_desc"
- >{{ scope.row.advice_desc
- }}{{ scope.row.drug_spec_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="开药数量"
- min-width="80"
- property="prescribing_number"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.prescribing_number != 0"
- >{{ scope.row.prescribing_number
- }}{{ scope.row.prescribing_number_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="单次用量"
- min-width="80"
- property="single_dose"
- align="center"
- >
- <template slot-scope="scope">
- <!-- <span v-if="scope.row.single_dose != 0">{{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}</span>-->
- <span v-if="scope.row.single_dose != 0">
- <!-- {{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}-->
- <span v-if="scope.row.single_dose_unit == 1" >{{ scope.row.single_dose}}g</span>
- <span v-else-if="scope.row.single_dose_unit == 2" >{{ scope.row.single_dose}}mg</span>
- <span v-else-if="scope.row.single_dose_unit == 3" >{{ scope.row.single_dose}}u</span>
- <span v-else-if="scope.row.single_dose_unit == 4" >{{ scope.row.single_dose}}ml</span>
- <span v-else-if="scope.row.single_dose_unit == 5" >{{ scope.row.single_dose}}万U</span>
- <span v-else-if="scope.row.single_dose_unit == 6" >{{ scope.row.single_dose}}枚</span>
- <span v-else-if="scope.row.single_dose_unit == 7" >{{ scope.row.single_dose}}粒</span>
- <span v-else-if="scope.row.single_dose_unit == 8" >{{ scope.row.single_dose}}片</span>
- <span v-else-if="scope.row.single_dose_unit == 9" >{{ scope.row.single_dose}}支</span>
- <span v-else-if="scope.row.single_dose_unit == 10" >{{ scope.row.single_dose}}ug</span>
- <span v-else-if="scope.row.single_dose_unit == 11" >{{ scope.row.single_dose}}iu</span>
- <span v-else-if="scope.row.single_dose_unit == 12" >{{ scope.row.single_dose}}包</span>
- <span v-else-if="scope.row.single_dose_unit == 13" >{{ scope.row.single_dose}}袋</span>
- <span v-else-if="scope.row.single_dose_unit == 14" >{{ scope.row.single_dose}}万</span>
- <span v-else-if="scope.row.single_dose_unit == 15" >{{ scope.row.single_dose}}万iu</span>
- <span v-else-if="scope.row.single_dose_unit == 16" >{{ scope.row.single_dose}}丸</span>
- <span v-else-if="scope.row.single_dose_unit == 17" >{{ scope.row.single_dose}}盒</span>
- <span v-else-if="scope.row.single_dose_unit == 18" >{{ scope.row.single_dose}}瓶</span>
- <span v-else-if="scope.row.single_dose_unit == 19" >{{ scope.row.single_dose}}瓶(袋)</span>
- <span v-else-if="scope.row.single_dose_unit == 20" >{{ scope.row.single_dose}}次</span>
- <span v-else >{{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}</span>
- </span>
-
- </template>
- </el-table-column>
- <el-table-column
- label="给药途径"
- min-width="80"
- property="delivery_way"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_row == 0">{{
- scope.row.delivery_way
- }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="执行频率"
- min-width="80"
- property="execution_frequency"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_row == 0">{{
- scope.row.execution_frequency
- }}</span>
- </template>
- </el-table-column>
-
- <el-table-column
- label="提醒频率"
- min-width="80"
- property="execution_frequency"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.frequency_type == 1">每次必推</span>
- <span v-if="scope.row.frequency_type == 2"
- >{{ scope.row.day_count }}天/1次</span
- >
- <span v-if="scope.row.frequency_type == 3"
- >每周{{ scope.row.week_days }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="推送截止日期"
- min-width="80"
- align="center"
- >
- <template slot-scope="scope">
- {{scope.row.push_start_time}}
- </template>
-
- </el-table-column>
-
- <el-table-column
- label="医嘱嘱托"
- min-width="80"
- align="center"
- >
- <template slot-scope="scope">
- {{scope.row.remark}}
- </template>
-
- </el-table-column>
- </el-table>
- </el-col>
- </el-row>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ||
- groupForm.adviceNames.length == 0
- ? true
- : false
- "
- type="primary"
- @click="submitgroupAdvice('groupForm')"
- :loading="addLoading"
- >保 存
- </el-button>
- </div>
- </el-dialog>
-
- <el-dialog
- title="选择医嘱模板"
- :close-on-click-modal="false"
- :visible.sync="templateFormVisible"
- width="72%"
- >
- <el-row :gutter="20">
- <el-col :span="8">
- <el-table
- :data="adviceTemplates"
- ref="templatetable"
- border
- :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
- highlight-current-row
- @current-change="templateTableChange"
- style="width: 100%"
- >
- <el-table-column prop="name" label="模板名称"></el-table-column>
- </el-table>
- </el-col>
- <el-col :span="16">
- <el-table
- :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
- id="user-advice-select-template-table"
- :data="selectedTemp.list"
- border
- :span-method="spanselecttable"
- @select="selectTemplateAdvice"
- @selection-change="changeTemplateAdvice"
- @select-all="selectAllTemplateAdvice"
- row-key="row_key"
- ref="selecttemplatetable"
- style="width: 100%"
- >
- <el-table-column type="selection" width="55"></el-table-column>
- <el-table-column
- label="医嘱内容"
- property="advice_name"
- style="word-break: keep-all;white-space:nowrap;"
- ></el-table-column>
- <el-table-column label="药品规格" property="advice_desc">
- <template slot-scope="scope">
- <span v-if="scope.row.advice_desc"
- >{{ scope.row.advice_desc
- }}{{ scope.row.drug_spec_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="开药数量"
- min-width="80"
- property="prescribing_number"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.prescribing_number != 0"
- >{{ scope.row.prescribing_number
- }}{{ scope.row.prescribing_number_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="单次用量"
- min-width="80"
- property="single_dose"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.single_dose != 0"
- >{{ scope.row.single_dose
- }}{{ scope.row.single_dose_unit }}</span
- >
- </template>
- </el-table-column>
- <el-table-column
- label="给药途径"
- min-width="80"
- property="delivery_way"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_row == 0">{{
- scope.row.delivery_way
- }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="执行频率"
- min-width="80"
- property="execution_frequency"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.parent_row == 0">{{
- scope.row.execution_frequency
- }}</span>
- </template>
- </el-table-column>
-
- <el-table-column
- v-if="groupForm.advice_type == 1"
- label="提醒频率"
- min-width="80"
- property="execution_frequency"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.frequency_type == 1">每次必推</span>
- <span v-if="scope.row.frequency_type == 2"
- >{{ scope.row.day_count }}天/1次</span
- >
- <span v-if="scope.row.frequency_type == 3"
- >每周{{ scope.row.week_days }}</span
- >
- </template>
- </el-table-column>
- </el-table>
- </el-col>
- </el-row>
-
- <div slot="footer" class="dialog-footer">
- <el-button @click="cancleDialog()">取 消</el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="newAddTempForm()"
- >保 存
- </el-button>
- </div>
- </el-dialog>
-
- <el-dialog
- title="选择医嘱模板"
- :visible.sync="oldTemplateFormVisible"
- width="700px"
- >
- <el-form
- ref="templateForm"
- :rules="templateRules"
- :model="templateForm"
- >
- <el-row>
- <el-col :span="24">
- <el-form-item prop="id">
- <el-select
- v-model="templateForm.id"
- filterable
- clearable
- placeholder="请选择(输入可搜索)"
- style="width:100%"
- >
- <el-option
- v-for="item in adviceTemplates"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="templateFormVisible = false">取 消</el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="addTempForm('templateForm')"
- >保 存
- </el-button>
- </div>
- </el-dialog>
-
- <el-dialog
- :title="nameFormTitle"
- :visible.sync="nameFormVisible"
- width="800px"
- >
- <el-form
- ref="nameForm"
- :rules="nameRules"
- :model="nameForm"
- label-width="120px"
- >
- <el-row>
- <el-col :span="10">
- <el-form-item label="医嘱内容:" required prop="advice_name"><!--第二处-->
- <el-autocomplete
- style="width:100%;"
- class="inline-input"
- v-model="nameForm.advice_name"
- :fetch-suggestions="querySearch"
- placeholder="请输入内容"
- @select="handleSelect"
- @input="changeDrugName"
- ></el-autocomplete>
- <!-- <div style="color:red;font-size:12px;">
- 库存不足50
- </div> -->
- </el-form-item>
- </el-col>
-
- <el-col :span="14">
- <el-form-item label="药品规格 :" prop="advice_desc">
- <el-col :span="6">
-
- <el-autocomplete
- style="width:100px;"
- class="inline-input"
- v-model="nameForm.advice_desc"
- :fetch-suggestions="querySearch1"
- placeholder="请输入内容"
- @select="handleSelect1"
- @input="changeDrugDesc"
- ></el-autocomplete>
-
- </el-col>
- <el-col class="line" :span="2"> </el-col>
- <el-col :span="6">
- <el-select
- v-model="nameForm.drug_spec_unit"
- filterable
- clearable
- allow-create
- placeholder="选择"
- >
- <el-option
- v-for="item in unitsOption"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-col>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="单次用量 :" prop="single_dose">
- <el-col :span="8">
- <el-input v-model="nameForm.single_dose"></el-input>
- </el-col>
- <el-col class="line" :span="2"> </el-col>
- <el-col :span="14">
- <el-select
- v-model="nameForm.single_dose_unit"
- filterable
- clearable
- allow-create
- placeholder="选择"
- >
- <el-option
- v-for="item in unitsOption"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-col>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="开药数量 :" prop="prescribing_number">
- <el-col :span="8">
- <el-input v-model="nameForm.prescribing_number"></el-input>
- </el-col>
- <el-col class="line" :span="2"> </el-col>
- <el-col :span="14">
- <el-select
- v-model="nameForm.prescribing_number_unit"
- filterable
- clearable
- allow-create
- placeholder="选择"
- >
- <el-option
- v-for="item in unitsOption"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
-
- </el-col>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="给药途径 :" prop="delivery_way">
- <el-select
- v-model="nameForm.delivery_way"
- filterable
- clearable
- allow-create
- :disabled="isChild"
- placeholder="请选择(输入可搜索)"
- style="width:100%"
- >
- <el-option
- v-for="item in deliveryWayOptions"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="执行频率 :" prop="execution_frequency">
- <el-select
- v-model="nameForm.execution_frequency"
- filterable
- clearable
- allow-create
- :disabled="isChild"
- placeholder="请选择(输入可搜索)"
- style="width:100%"
- >
- <el-option
- v-for="item in executionFrequencyOptions"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="24" v-if="groupForm.advice_type == 1 && !isChild">
- <el-form-item label="周期提醒 :">
- <el-radio-group v-model="nameForm.frequency_type">
- <el-radio :label="1">每次必推</el-radio>
- <el-radio :label="2">天数频率</el-radio>
- <el-radio :label="3">星期频率</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
-
-
-
- <el-col :span="12" v-if="nameForm.frequency_type == 2">
- <el-form-item prop="day_count">
- <el-input
- style="width: 50px"
- v-model="nameForm.day_count"
- ></el-input
- > 天/一次
- </el-form-item>
- </el-col>
-
- <el-col :span="24" v-if="nameForm.frequency_type == 3">
- <el-form-item prop="weekday">
- <el-checkbox-group v-model="weeks">
- <el-checkbox label="周一" name="type"></el-checkbox>
- <el-checkbox label="周二" name="type"></el-checkbox>
- <el-checkbox label="周三" name="type"></el-checkbox>
- <el-checkbox label="周四" name="type"></el-checkbox>
- <el-checkbox label="周五" name="type"></el-checkbox>
- <el-checkbox label="周六" name="type"></el-checkbox>
- <el-checkbox label="周日" name="type"></el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="推送截止日期:">
- <el-date-picker
- v-model="nameForm.push_start_time"
- type="date"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- :picker-options="pickerOptionsOne"
- placeholder="推送截止日期">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="医嘱嘱托:">
- <el-input v-model="nameForm.remark"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="nameFormVisible = false">取消</el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="submitNameForm('nameForm')"
- >保 存
- </el-button>
- </div>
- </el-dialog>
-
- <edit-group-advice
- :adviceTemplates="adviceTemplates"
- :groupFormVisible="groupEditFormVisible"
- :groupForm="groupForm"
- :adviceTypeOptions="adviceTypeOptions"
- :executionFrequencyOptions="executionFrequencyOptions"
- :adminusername="adminusername"
- :unitsOption="unitsOption"
- :deliveryWayOptions="deliveryWayOptions"
- :rowKey="rowKey"
- :adviceTemplateMaps="adviceTemplateMaps"
- :patientID="patientID"
- :adviceType="adviceType"
- :adviceTableData="adviceTableData"
- ref="editGroupForm"
- ></edit-group-advice>
-
-
- <!-- 新增子药 -->
- <el-dialog
- :title="dialogTitle"
- :visible.sync="dialogFormVisible"
- width="700px"
- >
- <el-form
- ref="adviceForm"
- :rules="adviceRules"
- :model="adviceForm"
- label-width="120px"
- >
- <el-row>
- <el-col :span="12">
- <el-form-item label="医嘱类型 :" required prop="advice_type">
- <el-select
- v-model="adviceForm.advice_type"
- :disabled="isEdit || adviceForm.parent_id > 0 ? true : false"
- placeholder="请选择"
- >
- <el-option
- :label="item.label"
- :key="item.value"
- :value="item.value"
- v-for="item in adviceTypeOptions"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="开嘱时间 :" required prop="advice_date">
- <el-date-picker
- type="date"
- readonly
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- v-model="adviceForm.advice_date"
- style="width: 100%;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item
- label="开始时间 :"
- required
- prop="start_time"
- style="width:280px;"
- >
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm:ss"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择时间"
- v-model="adviceForm.start_time"
- :disabled="adviceForm.parent_id == 0 ? false : true"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="医嘱内容 :" required prop="advice_name">
- <el-autocomplete
- style="width:100%;"
- class="inline-input"
- v-model="adviceForm.advice_name"
- :fetch-suggestions="querySearch"
- placeholder="请输入内容"
- @select="handleSelect"
- @input="changeDrugNameTwo"
- ></el-autocomplete>
- </el-form-item>
- </el-col>
-
- <el-col :span="12">
- <el-form-item label="药品规格 :" prop="advice_desc">
- <el-col :span="9">
- <!-- <el-input v-model="adviceForm.advice_desc"></el-input> -->
- <el-autocomplete
- style="width:100px;"
- class="inline-input"
- v-model="adviceForm.advice_desc"
- :fetch-suggestions="querySearch1"
- placeholder="请输入内容"
- @select="handleSelect1"
- @input="changeDrugDescTwo"
- ></el-autocomplete>
-
- </el-col>
- <el-col class="line" :span="1"> </el-col>
- <el-col :span="14">
- <el-select
- v-model="adviceForm.drug_spec_unit"
- filterable
- clearable
- allow-create
- placeholder="选择"
- >
- <el-option
- v-for="item in unitsOption"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-col>
- </el-form-item>
- </el-col>
-
- <el-col :span="12">
- <el-form-item label="单次用量 :" prop="single_dose">
- <el-col :span="9">
- <el-input v-model="adviceForm.single_dose"></el-input>
- </el-col>
- <el-col class="line" :span="1"> </el-col>
- <el-col :span="14">
- <!-- <el-input v-model="adviceForm.single_dose_unit" ></el-input> -->
-
- <el-select
- v-model="adviceForm.single_dose_unit"
- filterable
- clearable
- allow-create
- placeholder="选择"
- >
- <el-option
- v-for="item in unitsOption"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-col>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="开药数量 :" prop="prescribing_number">
- <el-col :span="9">
- <el-input v-model="adviceForm.prescribing_number"></el-input>
- </el-col>
- <el-col class="line" :span="1"> </el-col>
- <el-col :span="14">
- <el-select
- v-model="adviceForm.prescribing_number_unit"
- filterable
- clearable
- allow-create
- placeholder="选择"
- >
- <el-option
- v-for="item in unitsOption"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
-
- <!-- <el-input v-model="adviceForm.prescribing_number_unit" ></el-input> -->
- </el-col>
- </el-form-item>
- </el-col>
-
- <el-col :span="12">
- <el-form-item label="给药途径 :" prop="delivery_way">
- <el-select
- v-model="adviceForm.delivery_way"
- :disabled="adviceForm.parent_id == 0 ? false : true"
- filterable
- clearable
- allow-create
- placeholder="请选择(输入可搜索)"
- style="width:100%"
- >
- <el-option
- v-for="item in deliveryWayOptions"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item
- label="执行频率 :"
- prop="execution_frequency"
- style="width:100%;"
- >
- <el-select
- v-model="adviceForm.execution_frequency"
- :disabled="adviceForm.parent_id == 0 ? false : true"
- filterable
- clearable
- allow-create
- placeholder="请选择(输入可搜索)"
- style="width:100%"
- >
- <el-option
- v-for="item in executionFrequencyOptions"
- :key="item.id"
- :label="item.name"
- :value="item.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="推送截止日期:">
- <el-date-picker
- v-model="adviceForm.push_start_time"
- type="date"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- :picker-options="pickerOptionsOne"
- placeholder="推送截止日期">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
-
-
- <el-form-item label="备注 :">
- <el-input type="textarea" v-model="adviceForm.remark"></el-input>
- </el-form-item>
-
- <el-form-item label="开嘱医生 :">
- <span>{{ adminusername }} </span>
- </el-form-item>
-
-
- </el-form>
- <div slot="footer" class="dialog-footer">
- <template v-if="isEdit">
- <el-button @click="dialogFormVisible = false">取消</el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="submitEditAdvice('adviceForm')"
- >保 存
- </el-button>
- </template>
- <template v-else>
- <el-button
- @click="dialogFormVisible = false"
- v-if="adviceForm.parent_id > 0"
- >取 消
- </el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="submitNewAdvice('adviceForm', 're')"
- v-if="adviceForm.parent_id == 0"
- >继 续
- </el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="submitNewAdvice('adviceForm', 'on')"
- >保 存
- </el-button>
- </template>
- </div>
- </el-dialog>
- <el-dialog
- title="停止医嘱"
- :visible.sync="dialogStopFormVisible"
- width="600px"
- >
- <el-form
- ref="stopForm"
- :model="stopForm"
- :rules="stopRules"
- label-width="90px"
- >
- <el-form-item label="停止时间 :" required prop="stop_time">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm:ss"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择时间"
- v-model="stopForm.stop_time"
- style="width:50%"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="dialogStopFormVisible = false">取消</el-button>
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="submitStopAdvice('stopForm')"
- >保 存
- </el-button>
- </div>
- </el-dialog>
-
- <el-dialog
- title="执行医嘱"
- :visible.sync="execTimeDialogVisible"
- width="600px"
- >
- <el-form
- ref="execForm"
- :model="execForm"
- :rules="execRules"
- label-width="90px"
- >
- <el-form-item label="执行时间 :" required prop="exec_time">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm:ss"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择时间"
- v-model="execForm.exec_time"
- style="width:50%"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button
- :disabled="
- $store.getters.xt_user.subscibe.state == 3 ? true : false
- "
- type="primary"
- @click="submitExecAdvice('execForm')"
- >保 存
- </el-button>
- <el-button type="primary" @click="execTimeDialogVisible = false"
- >取消
- </el-button>
- </div>
- </el-dialog>
- </div>
-
- <div style="display:none">
- <div class="printForm" id="printCQadvice">
- <h2 class="hospital_title">{{ orgname }}</h2>
- <h1 class="title">长期医嘱单</h1>
- <div class="info">
- <ul>
- <li>
- <span class="name">姓名:</span>
- <span class="InputBox"> {{ currentPatient.name }}</span>
- </li>
- <li>
- <span class="name">性别:</span>
- <span class="InputBox"
- > {{ tranSex(currentPatient.gender) }}</span
- >
- </li>
- <li>
- <span class="name">年龄:</span>
- <span class="InputBox"
- > {{ tranAge(currentPatient.birthday) }}岁</span
- >
- </li>
- <li v-if="currentPatient.user_org_id!=10090">
- <span class="name">科别:</span>
-
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name">透析号:</span>
- <span class="InputBox"
- > {{
- currentPatient.dialysis_no
- }} </span
- >
- </li>
- </ul>
- </div>
-
- <table
- border="1"
- style="border:1px #999 solid;margin-top:20px;"
- bordercolorlight="#fff"
- bordercolordark="#fff"
- width="100%"
- cellpadding="0"
- cellspacing="0"
- class="printTable"
- >
- <tbody>
- <tr align="center">
- <th style="width:20%;" colspan="2" align="center">起始</th>
- <th style="width:20%;" rowspan="2" align="">医嘱</th>
- <th style="width:8%;" rowspan="2" align="center">医师签名</th>
- <th style="width:6%;" rowspan="2" align="center">执行护士签名</th>
- <th style="width:42%;" colspan="4" align="center">停止</th>
- </tr>
-
- <tr align="center">
- <th align="center">日期</th>
- <th align="center">时间</th>
- <th style="width:10%;" align="center">日期</th>
- <th style="width:10%;" align="center">时间</th>
- <th style="width:10%;" align="center">医师签名</th>
- <th style="width:6%;" align="center">执行护士签名</th>
- </tr>
-
- <tr
- align="center"
- v-for="(advice, index) in cqtableData"
- :key="advice.id"
- >
- <td>
- <span>{{ advice.start_time | parseTime("{y}-{m}-{d}") }}</span>
- </td>
- <td>
- <span>{{ advice.start_time | parseTime("{h}:{i}") }}</span>
- </td>
- <td style="text-align:left">
- <span v-if="advice.parent_id > 0">▲</span>
- <span>{{ advice.advice_name }}</span>
- <span v-if="advice.advice_desc"
- >{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span
- >
- <span v-if="advice.prescribing_number"
- >*{{ advice.prescribing_number
- }}{{ advice.prescribing_number_unit }}</span
- >
- <span v-if="advice.single_dose != 0">
- 单次用量 {{ advice.single_dose
- }}{{ advice.single_dose_unit }}</span
- >
- <span>{{ advice.delivery_way }}</span>
- <span>{{ advice.execution_frequency }}</span>
- </td>
-
- <td>
- <div>
- <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getXuserName(advice.advice_doctor)}}</span>
- <img
- class="es-img"
- :src="setAdminUserES(advice.advice_doctor)"
- alt=""
- srcset=""
- v-else
- />
- </div>
- </td>
-
- <td></td>
- <td>
- <span v-if="advice.stop_state == 1">{{ advice.stop_time | parseTime("{y}-{m}-{d}") }}</span>
- </td>
- <td>
- <span v-if="advice.stop_state == 1">{{ advice.stop_time | parseTime("{h}:{i}") }}</span>
- </td>
- <td>
- <div><span v-if="setAdminUserES(advice.stop_doctor) == ''">{{getXuserName(advice.stop_doctor)}}</span>
- <img
- class="es-img"
- :src="setAdminUserES(advice.stop_doctor)"
- alt=""
- srcset=""
- v-else
- />
- </div>
- </td>
- <td></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div style="display:none">
- <div class="printForm" id="printLSadvice">
- <h2 class="hospital_title">{{ orgname }}</h2>
- <h1 class="title">临时医嘱单</h1>
- <div class="info">
- <ul>
- <li>
- <span class="name" style="width:50px;">姓名:</span>
- <span class="InputBox"> {{ currentPatient.name }}</span>
- </li>
- <li>
- <span class="name" style="width:50px;">性别:</span>
- <span class="InputBox"
- > {{ tranSex(currentPatient.gender) }}</span
- >
- </li>
- <li>
- <span class="name" style="width:50px;">年龄:</span>
- <span class="InputBox"
- > {{ tranAge(currentPatient.birthday) }}岁</span
- >
- </li>
- <li v-if="currentPatient.user_org_id!=10090">
- <span class="name" style="width:30px;">科:</span>
-
- <span class="InputBox"> </span>
- </li>
- <li v-if="currentPatient.user_org_id!=10090">
- <span class="name" style="width:30px;">区:</span>
-
- <span class="InputBox"> </span>
- </li>
- <li v-if="currentPatient.user_org_id!=10090">
- <span class="name" style="width:30px;">房:</span>
-
- <span class="InputBox"> </span>
- </li>
- <li v-if="currentPatient.user_org_id!=10090">
- <span class="name" style="width:30px;">床:</span>
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name" style="width:70px;">透析号:</span>
- <span class="InputBox"
- > {{ currentPatient.dialysis_no }} </span
- >
- </li>
- </ul>
- </div>
- <table
- border="1"
- style="border:1px #999 solid;margin-top:20px;"
- bordercolorlight="#fff"
- bordercolordark="#fff"
- width="100%"
- cellpadding="0"
- cellspacing="0"
- class="printTable"
- >
- <tbody>
- <tr align="center">
- <th style="width:10%;" align="center">日期</th>
- <th style="width:10%;" align="center">时间</th>
- <th style="width:10%;" align="center">医生签名</th>
- <th style="width:40%;" align="">医嘱内容</th>
- <th style="width:10%;" align="center">执行时间</th>
- <th style="width:10%;" align="center">护士签名</th>
- </tr>
- <tr align="center" v-for="advice in lstableData" :key="advice.id">
- <td>
- <span v-if="advice.parent_id == 0">{{
- advice.start_time | parseTime("{y}-{m}-{d}")
- }}</span>
- </td>
- <td>
- <span v-if="advice.parent_id == 0">{{
- advice.start_time | parseTime("{h}:{i}")
- }}</span>
- </td>
- <td>
- <div v-if="isShowCQStartTime(index, advice)">
- <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{
- getXuserName(advice.advice_doctor)
- }}</span>
- <img
- class="es-img"
- :src="setAdminUserES(advice.advice_doctor)"
- alt=""
- srcset=""
- v-else
- />
- </div>
- </td>
- <td style="text-align:left">
- <span v-if="advice.parent_id > 0">▲</span>
- <span>{{ advice.advice_name }}</span>
- <span>{{ advice.advice_desc }}</span>
- <span v-if="advice.advice_desc"
- >{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span
- >
- <span v-if="advice.prescribing_number"
- >*{{ advice.prescribing_number
- }}{{ advice.prescribing_number_unit }}</span
- >
- <span v-if="advice.single_dose != 0"
- >单次用量 {{ advice.single_dose
- }}{{ advice.single_dose_unit }}</span
- >
- <span>{{ advice.delivery_way }}</span>
- <!-- <span>{{ advice.execution_frequency }}</span> -->
- </td>
- <td>
- <span v-if="advice.execution_time != 0">{{
- advice.execution_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- </td>
- <td>
- <div v-if="isShowCQStartTime(index, advice)">
- <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
- getXuserName(advice.execution_staff)
- }}</span>
- <img
- class="es-img"
- :src="setAdminUserES(advice.execution_staff)"
- alt=""
- srcset=""
- v-else
- />
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
-
- <div style="display:none;">
- <div id="printCQadvice_fq" class="advice-order">
- <div class="ls-title">{{ orgname }}</div>
- <div class="ls-type">长期医嘱单</div>
- <div class="ls-name">
- <div>
- 姓名:<span class="item-value">{{ currentPatient.name }}</span>
- </div>
- <div>
- 透析号:<span class="item-value">{{
- currentPatient.dialysis_no
- }}</span>
- </div>
- </div>
- <table
- cellspacing="0"
- cellpadding="0"
- border="1"
- class="el-table__body"
- style="width: 100%;"
- >
- <tbody>
- <tr style="text-align:center;">
- <td colspan="3">
- 开始
- </td>
- <td colspan="2">
- 停止
- </td>
- <td rowspan="2">
- 备注
- </td>
- </tr>
-
- <tr style="text-align:center;">
- <td>时间</td>
- <td style="max-width:50%">医嘱</td>
- <td>医生</td>
- <td>时间</td>
- <td>医生</td>
- </tr>
-
- <tr v-for="(advice, index) in cqtableData" :key="advice.id">
- <td>
- <span v-if="isShowCQStartTime(index, advice)">{{
- advice.start_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- <span v-else></span>
- </td>
-
- <td>
- <span>{{ advice.advice_name }}</span>
- <span>{{ advice.advice_desc }}</span>
- <span v-if="advice.single_dose"
- >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span
- >
- <span v-if="advice.prescribing_number"
- >*{{ advice.prescribing_number
- }}{{ advice.prescribing_number_unit }}</span
- >
- <span>{{ advice.delivery_way }}</span>
- <span>{{ advice.execution_frequency }}</span>
- </td>
-
- <td>
- <span v-if="advice.parent_id == 0">{{
- getXuserName(advice.advice_doctor)
- }}</span>
- </td>
-
- <td>
- <span v-if="advice.parent_id == 0">{{
- advice.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- <span v-else></span>
- </td>
-
- <td>
- <span v-if="advice.parent_id == 0">{{
- getXuserName(advice.stop_doctor)
- }}</span>
- <span v-else></span>
- </td>
-
- <td>
- {{ advice.remark }}
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div style="display:none;">
- <div id="printLSadvice_fq" class="advice-order">
- <div class="ls-title">{{ orgname }}</div>
- <div class="ls-type">临时医嘱单</div>
- <div class="ls-name">
- <div>
- 姓名:<span class="item-value">{{ currentPatient.name }}</span>
- </div>
- <div>
- 透析号:<span class="item-value">{{
- currentPatient.dialysis_no
- }}</span>
- </div>
- </div>
- <table
- cellspacing="0"
- cellpadding="0"
- border="1"
- class="el-table__body"
- style="width: 100%;"
- >
- <thead>
- <th>时间</th>
- <th>医嘱</th>
- <th>医生</th>
- <th>执行护士</th>
- <th>执行时间</th>
- </thead>
- <tbody>
- <tr v-for="(advice, index) in lstableData" :key="advice.id">
- <td>
- <span v-if="isShowLSStartTime(index, advice)">{{
- advice.start_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- <span v-else></span>
- </td>
- <td>
- <span>{{ advice.advice_name }}</span>
- <span>{{ advice.advice_desc }}</span>
- <span v-if="advice.single_dose"
- >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span
- >
- <span v-if="advice.advice_desc"
- >{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span
- >
- <span v-if="advice.prescribing_number"
- >*{{ advice.prescribing_number
- }}{{ advice.prescribing_number_unit }}</span
- >
- <span>{{ advice.delivery_way }}</span>
- <span>{{ advice.execution_frequency }}</span>
- </td>
- <td>
- <span v-if="advice.parent_id == 0">{{
- getXuserName(advice.advice_doctor)
- }}</span>
- </td>
- <td>
- <span v-if="advice.parent_id == 0">{{
- getXuserName(advice.execution_staff)
- }}</span>
- </td>
- <td>
- <span v-if="advice.execution_time != 0">{{
- advice.execution_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </template>
- <script>
- import PatientSidebar from "./components/PatientSidebar";
- import EditGroupAdvice from "./components/EditGroupAdvice";
- import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
- import printJS from "print-js";
- import {
- CheckGroupAdvice,
- CreateNewDoctorAdvice,
- CreateNewGroupAdvice,
- DeleteNewDoctorAdvice,
- DeleteNewGroupAdvice,
- EditNewDoctorAdvice,
- ExecGroupAdvice,
- getAdviceConfig,
- getAllAdviceConfig,
- getDoctorAdviceList,
- StopDoctorAdvice,
- getPatientSchedules,
- getPrintInfo
- } from "@/api/advice";
-
- import { fetchPatient, PostRemind } from "@/api/patient";
-
- import { jsGetAge, uParseTime } from "@/utils/tools";
- import { getDataConfig } from "@/utils/data";
- import { getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
- let rowIndex = 1;
- const rowKey = 0;
-
- export default {
- name: "doctorAdvice",
-
- data() {
- return {
- pickerOptionsOne: {
- // 限制收货时间不让选择今天以前的
- disabledDate(time) {
- return time.getTime() < Date.now() - 8.64e7;
- },
- },
- weeks: [],
- is_open_remind: "",
- checkList: [],
- rowKey: 0,
- nameFormTitle: "",
- adminusername: "",
- aminuserid: 0,
- orgname: "",
- tempArr: [],
- dialogConfigVisible: false,
- currentPatient: {},
- currentIndex: -1,
- dialogTitle: "新增",
- dialogFormVisible: false,
- groupEditFormVisible: false,
- nameFormVisible: false,
- templateFormVisible: false,
- oldTemplateFormVisible: false,
- dialogStopFormVisible: false,
- execTimeDialogVisible: false,
- groupFormVisible: false,
- isEdit: false,
- isChild: false,
- searchKey: "",
- pickerOptions: {
- shortcuts: [
- {
- text: "今天",
- onClick(picker) {
- picker.$emit("pick", new Date());
- }
- },
- {
- text: "昨天",
- onClick(picker) {
- const date = new Date();
- date.setTime(date.getTime() - 3600 * 1000 * 24);
- picker.$emit("pick", date);
- }
- },
- {
- text: "一周前",
- onClick(picker) {
- const date = new Date();
- date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
- picker.$emit("pick", date);
- }
- },
- {
- text: "清空",
- onClick(picker) {
- picker.$emit("pick");
- }
- }
- ]
- },
-
- adviceType: 0,
- adviceTypeArr: [
- { value: 0, label: "全部" },
- { value: 1, label: "长期" },
- { value: 2, label: "临时" },
- { value: 4, label: "普通医嘱" },
- ],
- adviceTypeOptions: [
- { value: 1, label: "长期" },
- { value: 3, label: "临时" },
- { value: 4, label: "普通医嘱" },
- ],
- stopType: 0,
- stopTypeArr: [
- { value: 0, label: "全部" },
- { value: 2, label: "未停止" },
- { value: 1, label: "已停止" }
- ],
-
- adviceTableData: [],
- doctorOptions: [],
- adminUserOptions: null,
- adviceTemplates: [],
- adviceTemplateMaps: {},
- drugOptions: [],
- deliveryWayOptions: [],
- executionFrequencyOptions: [],
- unitsOption: [],
- templateForm: { id: "" },
- adviceForm: {
- advice_type: "",
- advice_date: "",
- start_time: "",
- advice_name: "",
- advice_desc: "",
- single_dose: "",
- template_id: 0,
- single_dose_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- delivery_way: "",
- execution_frequency: "",
- advice_doctor: "",
- remark: "",
- parent_id: 0,
- drug_id:0,
- way:0,
- drug_name_id:0,
- push_start_time:"",
- },
- nameForm: {
- advice_name: "",
- single_dose: "",
- single_dose_unit: "",
- drug_spec: "",
- drug_spec_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- delivery_way: "",
- execution_frequency: "",
- template_id: 0,
-
- isEdit: 0,
- index: 0,
- id: 0,
- children: [],
- push_start_time:"",
- remark:"",
- },
- groupForm: {
- day_count: "",
- advice_type: "",
- advice_date: "",
- start_time: "",
- adviceNames: [],
- advice_doctor: "",
- remark: "",
- parent_id: 0,
- remind: 0,
- frequency_type: 0
- },
- stopForm: {
- id: 0,
- stop_time: "",
- stop_reason: ""
- },
- execForm: {
- exec_time: "",
- groupno: ""
- },
- templateRules: {
- id: [{ required: true, message: "请选择医嘱模板" }]
- },
- adviceRules: {
- advice_type: [{ required: true, message: "请选择医嘱类型" }],
- advice_date: [{ required: true, message: "请选择开嘱时间" }],
- start_time: [{ required: true, message: "请选择开始时间" }],
- advice_name: [{ required: true, message: "请填写医嘱内容" }],
- advice_doctor: [{ required: true, message: "请选择开嘱医生" }]
- },
- nameRules: {
- advice_name: [{ required: true, message: "请填写医嘱内容" }]
- },
- groupRules: {
- advice_type: [{ required: true, message: "请选择医嘱类型" }],
- advice_date: [{ required: true, message: "请选择开嘱时间" }],
- start_time: [{ required: true, message: "请选择开始时间" }],
- advice_name: [{ required: true, message: "请填写医嘱内容" }],
- advice_doctor: [{ required: true, message: "请选择开嘱医生" }],
- frequency_type: [
- { required: true, message: "请选择周期提醒", trigger: "change" }
- ]
- },
- stopRules: {
- stop_time: [{ required: true, message: "请选择停止时间" }]
- },
- execRules: {
- exec_time: [{ required: true, message: "请选择时间" }]
- },
- listQuery: {
- start_time: "",
- end_time: "",
- advice_type: 0,
- stop_state: "",
- keywords: "",
- id: 0,
- limit: 10,
- page: 1,
- delivery_way:0,
- delivery_way_one:""
- },
- total: 0,
- addLoading: false,
- lstableData: [],
- cqtableData: [],
- groupSelectRow: null,
- expandRowKeys: [],
- operators: [],
- operatorMaps: {},
- selectedTemp: { id: 0, name: "", org_id: 0, list: [], rows: [] },
- selectedTemplate: [],
- allSelectedTemplate: [],
- tableData: [],
- multipleSelection: [],
- patientID: 0,
- temp: null,
- schedulStatus: 0,
- doctorAdvice: [],
- dataAdvice: [],
- medicals:[],
- private_drug_config:{},
- patient_id:"",
- drugSpec:[],
- all_drug:[],
- current_drug_name:"",
- current_drug_spec: "",
- drug_id: 0,
- src_type:"",
- org_id:0,
- deliveryWay:[],
-
- };
- },
- methods: {
- selectDeliveryWay(val){
- this.listQuery.delivery_way = val
- this.getList()
- },
- clickuseradvicecell(row, column, cell, event) {
- // console.log("row1", row);
- // console.log("column", column);
- },
- onTranPatient: function(tranPatient) {
- console.log("患者信息",tranPatient)
- this.currentPatient = tranPatient;
- },
- adviceNameShow({ row, column, rowIndex, columnIndex }) {
- if (columnIndex == 3) {
- return "advicenamedisplay";
- } else {
- return "";
- }
- },
- submitEditAdvice(formName) {
- this.$refs[formName].validate(valid => {
- if (valid) {
- let mode = "";
- if (this.adviceForm.advice_type == 1) {
- mode = "1-3";
- if (
- this.adviceForm.advice_doctor !=
- this.$store.getters.xt_user.user.id
- ) {
- mode = "1-4";
- }
- } else if (this.adviceForm.advice_type == 3) {
- mode = "2-1";
- if (
- this.adviceForm.advice_doctor !=
- this.$store.getters.xt_user.user.id
- ) {
- mode = "3-1";
- }
- }
- if(this.src_type == ""){
- this.adviceForm.way = 0
- this.adviceForm.drug_id = 0
- this.adviceForm.drug_name_id = 0
- }
-
- if(this.src_type == 2){ //自备药
- var arr = this.adviceForm.advice_name.split("(自备药)")
- this.adviceForm.advice_name = arr[0]
- }
-
- console.log("2323223",this.adviceForm)
-
- EditNewDoctorAdvice(
- this.patientID,
- this.adviceForm.id,
- this.adviceForm,
- mode
- ).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "修改医嘱成功",
- type: "success",
- duration: 2000
- });
-
- this.dialogFormVisible = false;
- this.resetForm(formName);
- var advice = response.data.data.advice;
-
- this.adviceTableData[this.currentIndex].drug_spec =
- advice.drug_spec;
- this.adviceTableData[this.currentIndex].drug_spec_unit =
- advice.drug_spec_unit;
- this.adviceTableData[this.currentIndex].start_time =
- advice.start_time;
- this.adviceTableData[this.currentIndex].advice_name =
- advice.advice_name;
- this.adviceTableData[this.currentIndex].advice_desc =
- advice.advice_desc;
- this.adviceTableData[this.currentIndex].single_dose =
- advice.single_dose;
- this.adviceTableData[this.currentIndex].single_dose_unit =
- advice.single_dose_unit;
- this.adviceTableData[this.currentIndex].delivery_way =
- advice.delivery_way;
- this.adviceTableData[this.currentIndex].execution_frequency =
- advice.execution_frequency;
- this.adviceTableData[this.currentIndex].prescribing_number =
- advice.prescribing_number;
- this.adviceTableData[this.currentIndex].prescribing_number_unit =
- advice.prescribing_number_unit;
- this.adviceTableData[this.currentIndex].advice_doctor =
- advice.advice_doctor;
- this.adviceTableData[this.currentIndex].remark = advice.remark;
- this.adviceTableData[this.currentIndex].push_start_time = advice.push_start_time;
- this.currentIndex = -1;
- return false;
- }
- });
- }
- });
- },
- submitgroupAdvice(formName) {
-
- this.addLoading = true;
- this.$refs[formName].validate(valid => {
- if (valid) {
- var submitForm = {
- advice_type: this.groupForm.advice_type,
- advice_date: this.groupForm.advice_date,
- start_time: this.groupForm.start_time,
- adviceNames: [],
- advice_doctor: this.groupForm.advice_doctor,
- remark: this.groupForm.remark,
- parent_id: this.groupForm.parent_id,
- };
-
-
- var adviceNames = [];
- for (const index in this.groupForm.adviceNames) {
- this.groupForm.adviceNames[
- index
- ].day_count = this.groupForm.adviceNames[
- index
- ].day_count.toString();
- adviceNames.unshift(this.groupForm.adviceNames[index]);
- }
- submitForm.adviceNames = adviceNames;
-
- let mode = "";
- if (this.groupForm.advice_type == 1) {
- mode = "1-2";
- } else if (this.groupForm.advice_type == 3) {
- mode = "1-1";
- }else if (this.groupForm.advice_type == 4){
- mode = "1-3"
- }
- console.log("长期医嘱3333",submitForm)
-
- if(this.private_drug_config != null&&this.private_drug_config.drug_start == 1){
- for(let index=0;index<submitForm.adviceNames.length;index++){
- for(let i=0;i<this.medicals.length;i++){
- if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
- submitForm.adviceNames[index].way = 2
- submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
- }
- }
- }
- }
- console.log("模板数据",submitForm)
-
- CreateNewGroupAdvice(this.patientID, 0, submitForm, mode).then(
- response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- this.addLoading = false;
-
- return false;
- } else {
- this.addLoading = false;
-
- this.$notify({
- title: "成功",
- message: "新增成功",
- type: "success",
- duration: 2000
- });
-
- if (
- this.adviceType == this.groupForm.advice_type ||
- this.adviceType == 0
- ) {
- var childMap = {};
- for (const index in response.data.data.advices) {
- if (response.data.data.advices[index].parent_id == 0) {
- continue;
- }
- if (
- response.data.data.advices[index].parent_id in
- childMap ===
- false
- ) {
- childMap[
- response.data.data.advices[index].parent_id
- ] = [];
- }
- childMap[
- response.data.data.advices[index].parent_id
- ].unshift(response.data.data.advices[index]);
- }
- var parentArr = [];
- for (const index in response.data.data.advices) {
- if (response.data.data.advices[index].parent_id > 0) {
- continue;
- }
- parentArr.push(response.data.data.advices[index]);
- }
-
- for (const index in parentArr) {
- if (parentArr[index].id in childMap) {
- for (const j in childMap[parentArr[index].id]) {
- this.adviceTableData.unshift(
- childMap[parentArr[index].id][j]
- );
- }
- }
- this.adviceTableData.unshift(parentArr[index]);
- }
- }
-
- this.resetForm(formName);
- this.groupFormVisible = false;
- return false;
- }
- }
- );
- } else {
- this.addLoading = false;
- }
- });
- },
- // 点击报存
- submitNewAdvice(formName, action) {
- console.log("kkkthis.adviceForm",this.adviceForm)
- this.$refs[formName].validate(valid => {
- if (valid) {
- let mode = "";
- if (this.adviceForm.advice_type == 1) {
- //长期
- mode = "1-2";
- } else if (this.adviceForm.advice_type == 3) {
- //临时
- mode = "1-1";
- }
- if(this.src_type == ""){
- this.adviceForm.way = 0
- this.adviceForm.drug_id = 0
- this.adviceForm.drug_name_id = 0
- }
-
- if(this.src_type == 2){ //自备药
- var arr = this.adviceForm.advice_name.split("(自备药)")
- this.adviceForm.advice_name = arr[0]
- }
- console.log("222222???????this.adviceForm",this.adviceForm)
-
- CreateNewDoctorAdvice(this.patientID, this.adviceForm, mode).then(
- response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "新增医嘱成功",
- type: "success",
- duration: 2000
- });
- if (action != "re") {
- this.dialogFormVisible = false;
- }
- if (
- this.adviceType == this.adviceForm.advice_type ||
- this.adviceType == 0
- ) {
- if (this.adviceForm.parent_id > 0) {
- var spliceIndex = -1;
- for (
- let index = this.adviceTableData.length - 1;
- ;
- index--
- ) {
- if (
- this.adviceTableData[index].parent_id ===
- this.adviceForm.parent_id
- ) {
- spliceIndex = index;
- break;
- } else if (
- this.adviceTableData[index].id ===
- this.adviceForm.parent_id
- ) {
- spliceIndex = index;
- break;
- }
- }
-
- if (spliceIndex > -1) {
- spliceIndex += 1;
- if (spliceIndex === this.adviceTableData.length) {
- this.adviceTableData.push(response.data.data.advice);
- } else {
- var swapData = this.adviceTableData.splice(spliceIndex);
- this.adviceTableData.push(response.data.data.advice);
- this.adviceTableData = this.adviceTableData.concat(
- swapData
- );
- }
- }
- } else {
- this.adviceTableData.unshift(response.data.data.advice);
- }
- }
- this.resetForm(formName);
- this.currentIndex = -1;
- return false;
- }
- }
- );
- }
- });
- },
- submitStopAdvice(formName) {
- this.$refs[formName].validate(valid => {
- if (valid) {
- let mode = "1-5";
- if (this.temp.advice_doctor != this.$store.getters.xt_user.user.id) {
- mode = "1-8";
- }
-
- StopDoctorAdvice(this.stopForm.id, this.stopForm, mode).then(
- response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "医嘱已经停止",
- type: "success",
- duration: 2000
- });
- // this.stopResetData(this.stopForm.id);
- var atlen = this.adviceTableData.length;
- var _this = this;
- for (let index = atlen - 1; index >= 0; index--) {
- if (
- this.adviceTableData[index].id == this.stopForm.id ||
- this.adviceTableData[index].parent_id == this.stopForm.id
- ) {
- if (_this.stopType == 0) {
- this.adviceTableData[index].stop_state =
- response.data.data.advice.stop_state;
- this.adviceTableData[index].stop_doctor =
- response.data.data.advice.stop_doctor;
- this.adviceTableData[index].stop_time =
- response.data.data.advice.stop_time;
- } else if (_this.stopType == 2) {
- this.adviceTableData.splice(index, 1);
- }
- }
- }
- this.dialogStopFormVisible = false;
- }
- }
- );
- }
- });
- },
-
- submitExecAdvice(formName) {
- this.$refs[formName].validate(valid => {
- if (valid) {
- let mode = "6-1";
- ExecGroupAdvice(
- this.execForm.groupno,
- this.execForm.exec_time,
- mode
- ).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "医嘱已经执行",
- type: "success",
- duration: 2000
- });
- var atlen = this.adviceTableData.length;
- for (const index in this.adviceTableData) {
- if (
- this.adviceTableData[index].groupno == this.execForm.groupno
- ) {
- this.adviceTableData[index].execution_time =
- response.data.data.advice.execution_time;
- this.adviceTableData[index].execution_staff =
- response.data.data.advice.execution_staff;
- this.adviceTableData[index].execution_state = 1;
- }
- }
- this.execTimeDialogVisible = false;
- }
- });
- }
- });
- },
- openAdviceTemplate() {
- if (this.groupForm.advice_type == "") {
- this.$message.error("请先选择医嘱类型");
- return;
- }
- if (this.groupForm.advice_type == 1) {
- this.getAdviceConfig(1);
- } else if (this.groupForm.advice_type == 3) {
- this.getAdviceConfig(0);
- }else if(this.groupForm.advice_type == 4){
- this.getAdviceConfig(0)
- }
-
- this.templateForm = { id: "" };
- this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
- this.selectedTemplate = [];
- if (typeof this.$refs.templatetable !== "undefined") {
- this.$refs.templatetable.setCurrentRow(null);
- }
- this.templateFormVisible = true;
- },
- openGroupChild() {
- if (this.groupSelectRow === null) {
- this.$message.error("未选择医嘱内容,无法添加子药");
-
- return;
- } else if (this.groupSelectRow.parent_row > 0) {
- this.$message.error("子药不能添加子药");
-
- return;
- }
- this.nameForm = {
- advice_name: "",
- single_dose: "",
- single_dose_unit: "",
- drug_spec: "",
- drug_spec_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- delivery_way: this.groupSelectRow.delivery_way,
- execution_frequency: this.groupSelectRow.execution_frequency,
- isEdit: 0,
- index: 0,
- children: [],
- checkIds: [],
- parent_row: this.groupSelectRow.row_key,
- id: 0
- };
- this.isChild = true;
- this.nameFormVisible = true;
- this.nameFormTitle = "添加子药内容";
- },
- openGroupAdvice(isEdit) {
- this.isChild = false;
- if (isEdit) {
- if (this.groupSelectRow === null) {
- this.$message.error("未选择要修改的医嘱内容");
-
- return;
- }
- if (this.groupSelectRow.parent_row) {
- this.isChild = true;
- }
-
- this.nameForm = {
- advice_name: this.groupSelectRow.advice_name,
- advice_desc: this.groupSelectRow.advice_desc,
- single_dose: this.groupSelectRow.single_dose,
- single_dose_unit: this.groupSelectRow.single_dose_unit,
- drug_spec: this.groupSelectRow.drug_spec,
- drug_spec_unit: this.groupSelectRow.drug_spec_unit,
- prescribing_number: this.groupSelectRow.prescribing_number,
- prescribing_number_unit: this.groupSelectRow.prescribing_number_unit,
- way:this.groupSelectRow.way,
- drug_id:this.groupSelectRow.drug_id,
- drug_name_id:this.groupSelectRow.drug_name_id,
- delivery_way: this.isChild ? "" : this.groupSelectRow.delivery_way,
- execution_frequency: this.isChild
- ? ""
- : this.groupSelectRow.execution_frequency,
- isEdit: 1,
- index: this.groupSelectRow.index,
- id: this.groupSelectRow.id,
- children: [],
- parent_row: this.groupSelectRow.parent_row,
- day_count: this.groupSelectRow.day_count,
- week_days: this.groupSelectRow.week_days,
- frequency_type: this.groupSelectRow.frequency_type,
- remark:this.groupSelectRow.remark,
- };
- this.weeks = this.groupSelectRow.week_days.split(",");
- this.nameFormTitle = "修改医嘱内容";
- } else {
- if (this.groupForm.advice_type == "") {
- this.$message.error("请先选择医嘱类型");
- return;
- }
-
- this.nameForm = {
- advice_name: "",
- advice_desc: "",
- single_dose: "",
- single_dose_unit: "",
- drug_spec: "",
- drug_spec_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- delivery_way: "",
- execution_frequency: "",
- day_count: "",
- week_days: "",
- frequency_type: 0,
- template_id: "",
- isEdit: 0,
- index: 0,
- id: 0,
- children: [],
- parent_row: 0,
- way:0,
- drug_id:0,
- drug_name_id:0,
- remark:"",
- };
- this.nameFormTitle = "新增医嘱内容";
- }
- this.nameFormVisible = true;
- },
- openDeleteGroupAdvice() {
- if (this.groupSelectRow === null) {
- this.$message.error("未选择要删除的医嘱内容");
- return;
- }
- var content = "";
- if (this.groupSelectRow.children.length > 0) {
- content = "确认删除此医嘱内容,包括它的子药?";
- } else {
- content = "确认删除此医嘱内容?";
- }
-
- var isChild = !!this.groupSelectRow.parent_row;
- var title = isChild ? "删除子药内容" : "删除医嘱内容";
- var msg = isChild ? "确认删除此子药内容?" : content;
- this.$confirm(msg, title, {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- if (isChild) {
- for (const index in this.groupForm.adviceNames) {
- if (
- this.groupForm.adviceNames[index].row_key ==
- this.groupSelectRow.parent_row
- ) {
- for (const j in this.groupForm.adviceNames[index].children) {
- if (
- this.groupForm.adviceNames[index].children[j].row_key ==
- this.groupSelectRow.row_key
- ) {
- this.groupForm.adviceNames[index].children.splice(j, 1);
- this.$set(
- this.groupForm.adviceNames,
- index,
- this.groupForm.adviceNames[index]
- );
- this.toggleRowExpansion();
- break;
- }
- }
- }
- }
- } else {
- for (const index in this.groupForm.adviceNames) {
- if (
- this.groupForm.adviceNames[index].row_key ==
- this.groupSelectRow.row_key
- ) {
- this.groupForm.adviceNames.splice(index, 1);
- this.toggleRowExpansion();
- break;
- }
- }
- }
- })
- .catch(() => {});
- },
- DeleteGroupAdvice(groupno, row) {
- this.$confirm("确认删除这组医嘱?", "医嘱删除", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- // console.log(row);
-
- let mode = "";
- if (row.advice_type == 3) {
- mode = "4-1";
-
- if (row.advice_doctor != this.$store.getters.xt_user.user.id) {
- mode = "5-1";
- }
- } else if (row.advice_type == 1) {
- mode = "1-6";
-
- if (row.advice_doctor != this.$store.getters.xt_user.user.id) {
- mode = "1-7";
- }
- }
-
- DeleteNewGroupAdvice(groupno, mode).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)``;
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "医嘱已经删除",
- type: "success",
- duration: 2000
- });
-
- var resetTableData = this.adviceTableData;
- this.adviceTableData = [];
- var that = this;
- for (const key in resetTableData) {
- if (resetTableData[key].groupno != groupno) {
- that.adviceTableData.push(resetTableData[key]);
- }
- }
- }
- });
- })
- .catch(() => {});
- },
- openDelete(index, row) {
- this.$confirm("确认删除此条医嘱?", "医嘱删除", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- let mode;
- if (row.advice_type == 1) {
- mode = "1-6";
- if (row.advice_doctor != this.$store.getters.xt_user.user.id) {
- mode = "1-7";
- }
- } else if (row.advice_type == 3) {
- mode = "4-1";
- if (row.advice_doctor != this.$store.getters.xt_user.user.id) {
- mode = "5-1";
- }
- }
-
- DeleteNewDoctorAdvice(row.id, mode).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "医嘱已经删除",
- type: "success",
- duration: 2000
- });
- this.deleteResetData(index, row);
- }
- });
- })
- .catch(() => {});
- },
- resetForm(formName) {
- this.$refs[formName].resetFields();
- },
- changeTime() {
- this.getList();
- },
- changeKey() {
- this.getList();
- },
-
- openExec(index, row) {
- if (row.stop_state == 1 || row.execution_state == 1) {
- this.$message.error("所选医嘱已停止或执行");
- return false;
- }
-
- this.execForm = {
- exec_time: "",
- groupno: row.groupno
- };
- this.execTimeDialogVisible = true;
- this.currentIndex = index;
- },
- openCheck(index, row) {
- if (row.check_state == 1) {
- this.$message.error("所选医嘱已核对");
- return false;
- }
- if (row.execution_state != 1) {
- this.$message.error("所选医嘱未执行,无法核对");
- return false;
- }
- if (
- row.execution_staff > 0 &&
- row.execution_staff == this.$store.getters.xt_user.user.id
- ) {
- this.$message.error("核对与执行不能是同一人");
- return false;
- }
-
- this.$confirm("确认提交核对?", "医嘱核对", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- closeOnClickModal: false,
- type: "warning"
- })
- .then(() => {
- this.deleLoading = true;
- let mode = "7-1";
- CheckGroupAdvice(row.groupno, mode).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "核对成功",
- type: "success",
- duration: 2000
- });
-
- var atlen = this.adviceTableData.length;
- for (const index in this.adviceTableData) {
- if (this.adviceTableData[index].groupno == row.groupno) {
- this.adviceTableData[index].checker =
- response.data.data.advice.checker;
- this.adviceTableData[index].check_time =
- response.data.data.advice.check_time;
- this.adviceTableData[index].check_state = 1;
- }
- }
- }
- });
- })
- .catch(() => {});
- },
- openStop(index, row) {
- if (row.stop_state == 1 || row.execution_state == 1) {
- this.$message.error("所选医嘱已停止!");
- return false;
- }
-
- this.temp = row;
-
- // console.log(row);
- this.stopForm = {
- id: row.parent_id > 0 ? row.parent_id : row.id,
- stop_time: "",
- stop_reason: "",
- groupno: row.groupno
- };
- this.currentIndex = index;
- this.dialogStopFormVisible = true;
- },
- openNew() {
- var theDate = new Date();
- var year = theDate.getFullYear();
- var month = theDate.getMonth() + 1;
- var dat = theDate.getDate();
- month = month < 10 ? "0" + month : month;
- dat = dat < 10 ? "0" + dat : dat;
- var adviceDate = year + "-" + month + "-" + dat;
- // this.groupForm.advice_date = adviceDate;
- this.groupForm = {
- advice_type: "",
- advice_date: adviceDate,
- start_time: "",
- adviceNames: [],
- advice_doctor: "",
- remark: "",
- parent_id: 0
- };
- this.rowKey = 0;
- this.groupFormVisible = true;
- },
- openConfig() {},
- openEditGroupAdvice(groupno) {
- console.log("groupno",groupno)
- var groups = [];
- this.rowKey = 0;
- for(let i=0;i<this.adviceTableData.length;i++){
- if(this.adviceTableData[i].advice_type == 2){
- this.adviceTableData[i].advice_type = "临时"
- }
- }
-
- for (const index in this.adviceTableData) {
- if (groupno == this.adviceTableData[index].groupno) {
- groups.push(this.adviceTableData[index]);
- }
- }
- if (groups.length == 0) {
- return false;
- }
- this.groupForm = {
- advice_type: groups[0].advice_type,
- advice_date: uParseTime(groups[0].advice_date, "{y}-{m}-{d}"),
- start_time: uParseTime(groups[0].start_time, "{y}-{m}-{d} {h}:{i}"),
- adviceNames: [],
- advice_doctor: groups[0].user_name,
- doctor: groups[0].advice_doctor,
-
- remark: groups[0].remark,
- groupno: groupno,
-
- };
- console.log("到了",groups[0]);
-
- var childMap = {};
- for (const index in groups) {
- if (groups[index].parent_id == 0) {
- continue;
- }
- if (groups[index].parent_id in childMap === false) {
- childMap[groups[index].parent_id] = [];
- }
- childMap[groups[index].parent_id].push(groups[index]);
- }
-
- for (const index in groups) {
- if (groups[index].parent_id > 0) {
- continue;
- }
-
- this.rowKey++;
- var item = {
- advice_name: groups[index].advice_name,
- advice_desc: groups[index].advice_desc,
- single_dose: "" + groups[index].single_dose,
- single_dose_unit: groups[index].single_dose_unit,
- drug_spec: "" + groups[index].drug_spec,
- drug_spec_unit: groups[index].drug_spec_unit,
- prescribing_number: "" + groups[index].prescribing_number,
- prescribing_number_unit: groups[index].prescribing_number_unit,
- delivery_way: groups[index].delivery_way,
- execution_frequency: groups[index].execution_frequency,
- frequency_type: groups[index].frequency_type,
- day_count: groups[index].day_count,
- week_day: groups[index].week_day,
- drug_id:groups[index].drug_id,
- drug_name_id:groups[index].drug_name_id,
- wary:groups[index].way,
- isEdit: 0,
- index: 0,
- id: groups[index].id,
- children: [],
- parent_row: 0,
- row_key: this.rowKey,
- table: [],
- push_start_time:uParseTime(groups[index].push_start_time, "{y}-{m}-{d}"),
- remark:groups[index].remark
- };
-
- if (item.id in childMap) {
- for (const key in childMap[item.id]) {
- this.rowKey++;
- var child = {
- advice_name: childMap[item.id][key].advice_name,
- advice_desc: childMap[item.id][key].advice_desc,
- single_dose: "" + childMap[item.id][key].single_dose,
- single_dose_unit: childMap[item.id][key].single_dose_unit,
- drug_spec: "" + childMap[item.id][key].drug_spec,
- drug_spec_unit: childMap[item.id][key].drug_spec_unit,
- prescribing_number:
- "" + childMap[item.id][key].prescribing_number,
- prescribing_number_unit:
- childMap[item.id][key].prescribing_number_unit,
- delivery_way: childMap[item.id][key].delivery_way,
- execution_frequency: childMap[item.id][key].execution_frequency,
- drug_id:childMap[item.id][key].drug_id,
- way:childMap[item.id][key].way,
- drug_name_id:childMap[item.id][key].drug_name_id,
- isEdit: 0,
- index: 0,
- id: childMap[item.id][key].id,
- children: [],
- parent_row: item.row_key,
- row_key: this.rowKey,
- push_start_time:uParseTime(childMap[item.id][key].push_start_time, "{y}-{m}-{d}"),
- remark:childMap[item.id][key].remark
- };
- item.children.push(child);
- }
- this.$set(item, "children", item.children);
- }
- this.groupForm.adviceNames.push(item);
- }
-
- // console.log(this.groupForm);
-
- this.$refs.editGroupForm.open();
- },
-
- openEdit(index, row) {
-
- this.currentIndex = index;
- (this.dialogTitle = "修改医嘱"), (this.isEdit = true);
-
- if (row.stop_state == 1 || row.execution_state == 1) {
- this.$message.error("所选医嘱已停止,不能修改!");
- return false;
- }
- // if (row.advice_doctor != this.aminuserid) {
- // this.$message.error("不能修改非本人添加的医嘱!");
- // return false;
- // }
- // console.log(row);
- this.setAdviceForm(row);
- this.dialogFormVisible = true;
- },
- openNewChild(index, row) {
- this.currentIndex = index;
- this.dialogTitle = "新增子药";
- this.isEdit = false;
- if (row.stop_state == 1 || row.execution_state == 1) {
- this.$message.error("所选医嘱已停止");
- return false;
- }
- this.adviceForm = {
- advice_type: row.advice_type,
- advice_date: uParseTime(row.advice_date, "{y}-{m}-{d}"),
- start_time: uParseTime(row.start_time, "{y}-{m}-{d} {h}:{i}"),
- advice_name: "",
- advice_desc: "",
- single_dose: "",
- single_dose_unit: "",
- drug_spec: "",
- drug_spec_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- delivery_way: row.delivery_way,
- execution_frequency: row.execution_frequency,
- advice_doctor: row.advice_doctor,
- remark: "",
- parent_id: row.parent_id > 0 ? row.parent_id : row.id,
- drug_id:"",
- push_start_time:"",
- };
- this.dialogFormVisible = true;
- },
- changeAdviceName(key) {
-
- if (key in this.adviceTemplateMaps) {
- this.adviceForm.advice_name = this.adviceTemplateMaps[key].advice_name;
- this.adviceForm.advice_desc = this.adviceTemplateMaps[key].advice_desc;
- this.adviceForm.single_dose_unit = this.adviceTemplateMaps[
- key
- ].single_dose_unit;
- this.adviceForm.single_dose =
- this.adviceTemplateMaps[key].single_dose + "";
- this.adviceForm.prescribing_number_unit = this.adviceTemplateMaps[
- key
- ].prescribing_number_unit;
- this.adviceForm.prescribing_number =
- this.adviceTemplateMaps[key].prescribing_number + "";
- this.adviceForm.delivery_way = this.adviceTemplateMaps[
- key
- ].delivery_way;
- this.adviceForm.execution_frequency = this.adviceTemplateMaps[
- key
- ].execution_frequency;
- }
- console.log('444444',this.adviceForm);
- },
- indexMethod(index) {
- if (index === 0) {
- rowIndex = 1;
- }
- var row = this.adviceTableData[index];
- if (row.parent_id > 0) {
- return "";
- } else if (
- index > 0 &&
- row.groupno > 0 &&
- row.groupno == this.adviceTableData[index - 1].groupno
- ) {
- return "";
- }
- return rowIndex++;
- },
- isShowStartTime(index, row) {
- if (row.parent_id > 0) {
- return false;
- } else if (
- index > 0 &&
- row.groupno > 0 &&
- row.groupno == this.adviceTableData[index - 1].groupno
- ) {
- return false;
- }
- return true;
- },
- isShowCQStartTime(index, row) {
- if (row.parent_id > 0) {
- return false;
- } else if (
- index > 0 &&
- row.groupno > 0 &&
- row.groupno == this.cqtableData[index - 1].groupno
- ) {
- return false;
- }
- return true;
- },
- isShowLSStartTime(index, row) {
- if (row.parent_id > 0) {
- return false;
- } else if (
- index > 0 &&
- row.groupno > 0 &&
- row.groupno == this.lstableData[index - 1].groupno
- ) {
- return false;
- }
- return true;
- },
- selectAdviceType(type) {
- this.adviceType = type;
- this.listQuery.advice_type = type;
- this.getList();
- },
- selectStopType(type) {
- this.stopType = type;
- this.listQuery.stop_state = type;
- this.getList();
- },
- deleteResetData(index, row) {
- if (row.parent_id > 0) {
- this.adviceTableData.splice(index, 1);
- } else {
- var resetTableData = this.adviceTableData;
- this.adviceTableData = [];
- var that = this;
- resetTableData.forEach(function(item, itemindex) {
- if (item.id != row.id && item.parent_id != row.id) {
- that.adviceTableData.push(item);
- }
- });
- }
- },
- stopResetData(id) {
- var resetTableData = this.adviceTableData;
- this.adviceTableData = [];
- var that = this;
- resetTableData.forEach(function(item, index) {
- if (item.id != id && item.parent_id != id) {
- that.adviceTableData.push(item);
- }
- });
- },
- fetchAllDoctorAndNurse() {
- fetchAllDoctorAndNurse().then(response => {
- if (response.data.state == 1) {
- this.doctorOptions = response.data.data.doctors;
- }
- });
- },
- fetchAllAdminUsers() {
- fetchAllAdminUsers().then(response => {
- if (response.data.state == 1) {
- this.adminUserOptions = response.data.data.users;
- var alen = this.adminUserOptions.length;
- for (let index = 0; index < alen; index++) {
- if (this.adminUserOptions[index].user_type == 2) {
- this.doctorOptions.push(this.adminUserOptions[index]);
- }
- }
- }
- });
- },
-
- getAdviceConfig(type) {
- getAdviceConfig(type).then(response => {
- if (response.data.state == 1) {
- this.deliveryWayOptions =
- response.data.data.drugways === null
- ? []
- : response.data.data.drugways;
- this.executionFrequencyOptions =
- response.data.data.efs === null ? [] : response.data.data.efs;
- this.adviceTemplates =
- response.data.data.advice_templates === null
- ? []
- : response.data.data.advice_templates;
-
- var templateLen = this.adviceTemplates.length;
- for (let index = 0; index < templateLen; index++) {
- if (!this.adviceTemplates[index].DoctorAdviceTemplate) {
- continue;
- }
-
- var DoctorAdviceTemplate = this.adviceTemplates[index]
- .DoctorAdviceTemplate;
- for (let i = 0; i < DoctorAdviceTemplate.length; i++) {
- DoctorAdviceTemplate[i].selection = false;
- }
-
- var item = this.adviceTemplates[index];
- item.DoctorAdviceTemplate = [];
- var datMap = {};
- for (const key in DoctorAdviceTemplate) {
- if (DoctorAdviceTemplate[key].parent_id == 0) {
- datMap[DoctorAdviceTemplate[key].id] =
- DoctorAdviceTemplate[key];
- }
- }
-
- for (const key in DoctorAdviceTemplate) {
- if (DoctorAdviceTemplate[key].parent_id in datMap) {
- if ("children" in datMap[DoctorAdviceTemplate[key].parent_id]) {
- datMap[DoctorAdviceTemplate[key].parent_id].children.push(
- DoctorAdviceTemplate[key]
- );
- } else {
- datMap[DoctorAdviceTemplate[key].parent_id].children = [];
- datMap[DoctorAdviceTemplate[key].parent_id].children.push(
- DoctorAdviceTemplate[key]
- );
- }
- }
- }
- for (const key in datMap) {
- item.DoctorAdviceTemplate.push(datMap[key]);
- }
-
- this.$set(
- this.adviceTemplateMaps,
- this.adviceTemplates[index].id,
- item
- );
- }
- }
- });
- },
- getDoctorName(doctorid) {
- if (doctorid <= 0) {
- return "";
- }
- var name = "";
- if (
- this.doctorOptions == null ||
- typeof this.doctorOptions.length === "undefined"
- ) {
- return name;
- }
- var leng = this.doctorOptions.length;
- if (leng == 0) {
- return name;
- }
- for (let index = 0; index < leng; index++) {
- if (this.doctorOptions[index].id == doctorid) {
- name = this.doctorOptions[index].name;
- break;
- }
- }
- return name;
- },
- getXuserName(id) {
- if (id <= 0) {
- return "";
- }
- var name = "";
- if (
- this.adminUserOptions == null ||
- typeof this.adminUserOptions.length === "undefined"
- ) {
- return name;
- }
- var leng = this.adminUserOptions.length;
- if (leng == 0) {
- return name;
- }
- for (let index = 0; index < leng; index++) {
- if (this.adminUserOptions[index].id == id) {
- name = this.adminUserOptions[index].name;
- break;
- }
- }
- return name;
- },
- setAdviceForm(row) {
- this.adviceForm = {
- advice_type: row.advice_type,
- advice_date: uParseTime(row.advice_date, "{y}-{m}-{d}"),
- start_time: uParseTime(row.start_time, "{y}-{m}-{d} {h}:{i}"),
- advice_name: row.advice_name,
- advice_desc: row.advice_desc,
- drug_spec: row.drug_spec != 0 ? row.drug_spec : "",
- drug_spec_unit: row.drug_spec_unit,
- single_dose: row.single_dose != 0 ? row.single_dose : "",
- single_dose_unit: row.single_dose_unit,
- prescribing_number:
- row.prescribing_number != 0 ? row.prescribing_number : "",
- prescribing_number_unit: row.prescribing_number_unit,
- delivery_way: row.delivery_way,
- execution_frequency: row.execution_frequency,
- advice_doctor: row.advice_doctor,
- remark: row.remark,
- id: row.id,
- parent_id: row.parent_id,
- push_start_time:uParseTime(row.push_start_time, "{y}-{m}-{d}"),
- };
- },
- getList() {
- // var name = ""
- // for(let i=0;i<this.deliveryWay.length;i++){
- // if(this.listQuery.delivery_way == this.deliveryWay[i].id){
- // name = this.deliveryWay[i].name
- // }
- // }
- // if(name == '全部'){
- // name = ""
- // }
- // this.listQuery.delivery_way_one = name
- getDoctorAdviceList(this.listQuery).then(response => {
- if (response.data.state == 1) {
- this.adviceTableData = response.data.data.advices;
- console.log("数据是什么", this.adviceTableData);
- var advice = response.data.data.advices;
- var is_open = response.data.data.is_open
- if(is_open == 1){
- var longAdvice = response.data.data.longAdvice
- console.log("longAdvice--------------",longAdvice)
- if(longAdvice!=null && longAdvice.length > 0){
- for(let i=0;i<longAdvice.length;i++){
- advice.push(longAdvice[i])
- }
- }
- }
-
- var one = response.data.data.advicetwo;
- let dataInfo = {};
- one.forEach((item, index) => {
- let { start_time } = item;
- if (!dataInfo[start_time]) {
- dataInfo[start_time] = {
- start_time,
- child: []
- };
- }
- });
- let list = Object.values(dataInfo);
- list.map(item => {
- for (let i = 0; i < advice.length; i++) {
- if (
- item.start_time === advice[i].start_time &&
- advice[i].parent_id === 0
- ) {
- item.child.push(advice[i]);
- }
- }
- });
-
- let objarr = [];
- for (let i = 0; i < advice.length; i++) {
- if (advice[i].parent_id != 0) {
- objarr.push(advice[i]);
- }
- }
- this.childList = objarr;
- let arr = this.doctorAdvice;
- arr.push(...list.reverse());
- // console.log("arr", arr);
- this.doctorAdvice = arr;
- var total = response.data.data.total;
- // console.log("total", total);
- this.total = total;
- this.operators = response.data.data.operators;
- if (this.operators.length > 0) {
- var operatorsLen = this.operators.length;
- for (var index = 0; index < operatorsLen; index++) {
- this.$set(
- this.operatorMaps,
- this.operators[index].creator,
- this.operators[index]
- );
- }
- }
- } else {
- this.adviceTableData = [];
- }
-
- this.handleSpanTempArr();
- });
- },
-
- groupClassName({ row, rowIndex }) {
- row.index = rowIndex;
- // row.row_key = rowIndex+1;
- },
- getRowKey(row) {
- return row.row_key;
- },
- getMaxRowKey() {
- return this.rowKey;
- },
- selectGroupAdvice(row) {
- this.groupSelectRow = row;
- },
-
- selectAdvice(selection, row) {
- console.log("row322232322323",this.adviceType)
- if (this.adviceType != 3) {
- this.lstableData = [];
- } else if (this.adviceType != 1) {
- this.cqtableData = [];
- }
- this.$refs.multipleTable.toggleRowSelection(row);
- var dlen = this.adviceTableData.length;
- if (row.parent_id > 0) {
- for (let index = 0; index < dlen; index++) {
- if (
- this.adviceTableData[index].id == row.parent_id ||
- this.adviceTableData[index].parent_id == row.parent_id
- ) {
- this.$refs.multipleTable.toggleRowSelection(
- this.adviceTableData[index]
- );
- }
- }
- } else {
- for (let index = 0; index < dlen; index++) {
- if (
- this.adviceTableData[index].parent_id == row.id ||
- this.adviceTableData[index].id == row.id ||
- this.adviceTableData[index].groupno == row.groupno
- ) {
- this.$refs.multipleTable.toggleRowSelection(
- this.adviceTableData[index]
- );
- }
- }
- }
- },
- changeAdvice(selection) {
- this.multipleSelection = selection;
- },
- handleClick(val) {
- // console.log("val", val);
- },
- printThisInfo() {
- console.log("hh233233",this.adviceType)
- if (this.adviceType == 1) {
- if (this.cqtableData.length == 0) {
- this.$message.error("请勾选需要打印的医嘱!");
- return false;
- }
- const style =
- "@media print {.printForm{width:960px} .printForm .hospital_title{font-size:20px;font-weight:400;text-align:center;letter-spacing:5px}.printForm .title{font-size:30px;font-weight:500;text-align:center}.printForm .title{font-size:30px;font-weight:500;text-align:center}.printForm .info ul{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;align-items:center;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-justify-content:space-around;-moz-justify-content:space-around;-ms-justify-content:space-around;-o-justify-content:space-around;justify-content:space-around}.printForm .info ul li{display:flex;box-sizing:border-box;justify-content:space-around}.printForm .info ul li .InputBox{padding:0;border:0;border-bottom:1px #e5e5e5 solid;outline:0;width: 80px;}.printForm .printTable tr{padding:2px}.printForm .printTable tr>th{padding:6px 4px}.printForm .printTable tr>td{padding:6px 4px} .es-img {height: 25px;}";
-
- setTimeout(() => {
- printJS({
- printable: "printCQadvice",
- type: "html",
- style: style,
- scanStyles: false
- });
- }, 1);
- } else if (this.adviceType == 3 || this.adviceType == 2 || this.adviceType == 4) {
- console.log("lstableData",this.lstableData)
- if (this.lstableData.length == 0) {
- this.$message.error("请勾选需要打印的医嘱!");
- return false;
- }
- const style =
- "@media print {.printForm{width:960px} .printForm .hospital_title{font-size:20px;font-weight:400;text-align:center;letter-spacing:5px}.printForm .title{font-size:30px;font-weight:500;text-align:center}.printForm .title{font-size:30px;font-weight:500;text-align:center}.printForm .info ul{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;align-items:center;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-justify-content:space-around;-moz-justify-content:space-around;-ms-justify-content:space-around;-o-justify-content:space-around;justify-content:space-around}.printForm .info ul li{display:flex;box-sizing:border-box;justify-content:space-around}.printForm .info ul li .InputBox{padding:0;border:0;border-bottom:1px #e5e5e5 solid;outline:0;width: 80px;}.printForm .printTable tr{padding:2px}.printForm .printTable tr>th{padding:6px 4px}.printForm .printTable tr>td{padding:6px 4px} .es-img {height: 25px;}";
-
- setTimeout(() => {
- printJS({
- printable: "printLSadvice",
- type: "html",
- style: style,
- scanStyles: false
- });
- }, 1);
- } else {
- this.$message.error(
- "请先将医嘱类型切换到长期或临时,勾选需要打印的医嘱!"
- );
- return false;
- }
- },
- cellClassName({ row, column, rowIndex, columnIndex }) {
- return "ls-table-row";
- },
- tranAge(birthday) {
- var birth = uParseTime(birthday, "{y}-{m}-{d}");
- return jsGetAge(birth, "-");
- },
- changeTemplateAdvice(selection) {
- this.selectedTemplate = selection;
- },
- selectAllTemplateAdvice(selection) {
- var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id]
- .DoctorAdviceTemplate;
- for (let y = 0; y < adviceArray.length; y++) {
- adviceArray[y].selection = false;
- }
- if (selection.length > 0) {
- for (let y = 0; y < adviceArray.length; y++) {
- for (let i = 0; i < selection.length; i++) {
- if (adviceArray[y].id == selection[i].advice_id) {
- adviceArray[y].selection = true;
- }
- }
- }
- }
- },
- selectTemplateAdvice(selection, row) {
- var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id]
- .DoctorAdviceTemplate;
- for (let y = 0; y < adviceArray.length; y++) {
- adviceArray[y].selection = false;
- }
- if (selection.length > 0) {
- for (let y = 0; y < adviceArray.length; y++) {
- for (let i = 0; i < selection.length; i++) {
- if (adviceArray[y].id == selection[i].advice_id) {
- adviceArray[y].selection = true;
- }
- }
- }
- }
-
- if (row.children.length > 0) {
- for (const index in row.children) {
- this.$refs.selecttemplatetable.toggleRowSelection(
- row.children[index]
- );
- }
- }
- // 下面两步的作用是为了上选中的数据的输出顺序不变
- for (const index in this.selectedTemp.list) {
- this.$refs.selecttemplatetable.toggleRowSelection(
- this.selectedTemp.list[index]
- );
- if (this.selectedTemp.list[index].children.length > 0) {
- for (const j in this.selectedTemp.list[index].children) {
- this.$refs.selecttemplatetable.toggleRowSelection(
- this.selectedTemp.list[index].children[j]
- );
- }
- }
- }
- for (const index in this.selectedTemp.list) {
- this.$refs.selecttemplatetable.toggleRowSelection(
- this.selectedTemp.list[index]
- );
- if (this.selectedTemp.list[index].children.length > 0) {
- for (const j in this.selectedTemp.list[index].children) {
- this.$refs.selecttemplatetable.toggleRowSelection(
- this.selectedTemp.list[index].children[j]
- );
- }
- }
- }
-
- // console.log(this.selectedTemp.list);
- },
- spanselecttable({ row, column, rowIndex, columnIndex }) {
- if (columnIndex == 0) {
- const _row = this.selectedTemp.rows[rowIndex];
- const _col = _row > 0 ? 1 : 0;
- return {
- rowspan: _row,
- colspan: _col
- };
- }
- },
- calcselectedTemp() {
- var rowKeys = 0;
- for (const index in this.selectedTemp.list) {
- var pkey = rowKeys;
- this.selectedTemp.rows[rowKeys] = 1;
- if (this.selectedTemp.list[index].children.length > 0) {
- for (const childindex in this.selectedTemp.list[index].children) {
- rowKeys++;
- this.selectedTemp.rows[pkey] += 1;
- this.selectedTemp.rows[rowKeys] = 0;
- }
- }
- rowKeys++;
- this.$nextTick(function() {
- if (this.selectedTemp.list[index].selection) {
- this.$refs.selecttemplatetable.toggleRowSelection(
- this.selectedTemp.list[index]
- );
- }
- });
- }
- },
- templateTableChange(currentRow, oldCurrentRow) {
- this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
- if (currentRow == null) {
- return false;
- }
-
- this.selectedTemp.id = currentRow.id;
- this.selectedTemp.name = currentRow.name;
- this.selectedTemp.org_id = currentRow.org_id;
- if (this.selectedTemp.id in this.adviceTemplateMaps) {
- var mapid = this.selectedTemp.id;
- var thisRowKey = 0;
- for (const index in this.adviceTemplateMaps[mapid]
- .DoctorAdviceTemplate) {
- thisRowKey++;
- var item = {
- advice_name: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].advice_name,
- advice_desc: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].advice_desc,
- single_dose:
- "" +
- this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .single_dose,
- single_dose_unit: this.adviceTemplateMaps[mapid]
- .DoctorAdviceTemplate[index].single_dose_unit,
- drug_spec:
- "" +
- this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .drug_spec,
- drug_spec_unit: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].drug_spec_unit,
- prescribing_number:
- "" +
- this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .prescribing_number,
- prescribing_number_unit: this.adviceTemplateMaps[mapid]
- .DoctorAdviceTemplate[index].prescribing_number_unit,
- delivery_way: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].delivery_way,
- execution_frequency: this.adviceTemplateMaps[mapid]
- .DoctorAdviceTemplate[index].execution_frequency,
- advice_id: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].id,
- selection: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].selection,
-
- day_count: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].day_count,
- week_days: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].week_days,
- frequency_type: this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].frequency_type,
- drug_id:this.adviceTemplateMaps[mapid].drug_id,
- way:this.adviceTemplateMaps[mapid].way,
- drug_name_id:this.adviceTemplateMaps[mapid].way,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: 0,
- row_key: thisRowKey
- };
- if (
- "children" in
- this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index] &&
- this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].children
- .length > 0
- ) {
- var parentRow = thisRowKey;
- var children = this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[
- index
- ].children;
- for (const key in children) {
- thisRowKey++;
- var child = {
- advice_id: children[key].id,
- advice_name: children[key].advice_name,
- advice_desc: children[key].advice_desc,
- single_dose: "" + children[key].single_dose,
- single_dose_unit: children[key].single_dose_unit,
- drug_spec: "" + children[key].drug_spec,
- drug_spec_unit: children[key].drug_spec_unit,
- prescribing_number: "" + children[key].prescribing_number,
- prescribing_number_unit: children[key].prescribing_number_unit,
- delivery_way: children[key].delivery_way,
- execution_frequency: children[key].execution_frequency,
- drug_id:children[key].drug_id,
- way:children[key].way,
- drug_name_id:children[key].drug_name_id,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: parentRow,
- row_key: thisRowKey
- };
- item.children.push(child);
- }
- this.$set(item, "children", item.children);
- }
-
- this.selectedTemp.list.unshift(item);
- }
- }
- },
- newAddTempForm() {
- this.allSelectedTemplate = [];
- var thisRowKey = 0;
- for (const indexs in this.adviceTemplateMaps) {
- const adviceTemplate = this.adviceTemplateMaps[indexs];
- for (const index in adviceTemplate.DoctorAdviceTemplate) {
- if (adviceTemplate.DoctorAdviceTemplate[index].selection) {
- thisRowKey++;
- // console.log(adviceTemplate.DoctorAdviceTemplate[index].id);
- var item = {
- advice_name:
- adviceTemplate.DoctorAdviceTemplate[index].advice_name,
- advice_desc:
- adviceTemplate.DoctorAdviceTemplate[index].advice_desc,
- single_dose:
- "" + adviceTemplate.DoctorAdviceTemplate[index].single_dose,
- single_dose_unit:
- adviceTemplate.DoctorAdviceTemplate[index].single_dose_unit,
- drug_spec:
- "" + adviceTemplate.DoctorAdviceTemplate[index].drug_spec,
- drug_spec_unit:
- adviceTemplate.DoctorAdviceTemplate[index].drug_spec_unit,
- prescribing_number:
- "" +
- adviceTemplate.DoctorAdviceTemplate[index].prescribing_number,
- prescribing_number_unit:
- adviceTemplate.DoctorAdviceTemplate[index]
- .prescribing_number_unit,
- delivery_way:
- adviceTemplate.DoctorAdviceTemplate[index].delivery_way,
- execution_frequency:
- adviceTemplate.DoctorAdviceTemplate[index].execution_frequency,
- advice_id: adviceTemplate.DoctorAdviceTemplate[index].id,
- selection: adviceTemplate.DoctorAdviceTemplate[index].selection,
-
- day_count: adviceTemplate.DoctorAdviceTemplate[index].day_count,
- frequency_type:
- adviceTemplate.DoctorAdviceTemplate[index].frequency_type,
- week_days: adviceTemplate.DoctorAdviceTemplate[index].week_days,
- template_id: "T" + adviceTemplate.DoctorAdviceTemplate[index].id,
- drug_id: adviceTemplate.DoctorAdviceTemplate[index].drug_id,
- way:adviceTemplate.DoctorAdviceTemplate[index].way,
- drug_name_id:adviceTemplate.DoctorAdviceTemplate[index].drug_name_id,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: 0,
- row_key: thisRowKey
- };
- console.log("item22222222",item)
- if (
- "children" in adviceTemplate.DoctorAdviceTemplate[index] &&
- adviceTemplate.DoctorAdviceTemplate[index].children.length > 0
- ) {
- var parentRow = thisRowKey;
- var children =
- adviceTemplate.DoctorAdviceTemplate[index].children;
- for (const key in children) {
- thisRowKey++;
- var child = {
- advice_id: children[key].id,
- template_id: "T" + children[key].id,
-
- advice_name: children[key].advice_name,
- advice_desc: children[key].advice_desc,
- single_dose: "" + children[key].single_dose,
- single_dose_unit: children[key].single_dose_unit,
- drug_spec: "" + children[key].drug_spec,
- drug_spec_unit: children[key].drug_spec_unit,
- prescribing_number: "" + children[key].prescribing_number,
- prescribing_number_unit:
- children[key].prescribing_number_unit,
- delivery_way: children[key].delivery_way,
- execution_frequency: children[key].execution_frequency,
- drug_id:children[key].drug_id,
- way:children[key].way,
- drug_name_id:children[key].drug_name_id,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: parentRow,
- row_key: thisRowKey
- };
- console.log("child",child)
- item.children.push(child);
- this.allSelectedTemplate.unshift(child);
- }
- this.$set(item, "children", item.children);
- }
- this.allSelectedTemplate.unshift(item);
- adviceTemplate.DoctorAdviceTemplate[index].selection = false;
- }
- }
- }
-
- var childMap = {};
- for (const index in this.allSelectedTemplate) {
- if (this.allSelectedTemplate[index].parent_row > 0) {
- if (!(this.allSelectedTemplate[index].parent_row in childMap)) {
- childMap[this.allSelectedTemplate[index].parent_row] = [];
- }
- childMap[this.allSelectedTemplate[index].parent_row].push(
- this.allSelectedTemplate[index]
- );
- }
- }
-
- for (const index in this.allSelectedTemplate) {
- if (this.allSelectedTemplate[index].parent_row > 0) {
- continue;
- }
- this.rowKey++;
- // console.log(this.allSelectedTemplate[index]);
- var item = {
- template_id: this.allSelectedTemplate[index].template_id,
- advice_name: this.allSelectedTemplate[index].advice_name,
- advice_desc: this.allSelectedTemplate[index].advice_desc,
- single_dose: "" + this.allSelectedTemplate[index].single_dose,
- single_dose_unit: this.allSelectedTemplate[index].single_dose_unit,
- drug_spec: "" + this.allSelectedTemplate[index].drug_spec,
- drug_spec_unit: this.allSelectedTemplate[index].drug_spec_unit,
- prescribing_number:
- "" + this.allSelectedTemplate[index].prescribing_number,
- prescribing_number_unit: this.allSelectedTemplate[index]
- .prescribing_number_unit,
- delivery_way: this.allSelectedTemplate[index].delivery_way,
- execution_frequency: this.allSelectedTemplate[index]
- .execution_frequency,
-
- day_count: this.allSelectedTemplate[index].day_count,
- frequency_type: this.allSelectedTemplate[index].frequency_type,
- week_days: this.allSelectedTemplate[index].week_days,
- drug_id:this.allSelectedTemplate[index].drug_id,
- way:this.allSelectedTemplate[index].way,
- drug_name_id:this.allSelectedTemplate[index].drug_name_id,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: 0,
- row_key: this.rowKey
- };
-
- if (this.allSelectedTemplate[index].children.length > 0) {
- if (this.allSelectedTemplate[index].row_key in childMap) {
- var parentRow = this.rowKey;
- var children = childMap[this.allSelectedTemplate[index].row_key];
- for (const key in children) {
- this.rowKey++;
- var child = {
- template_id: children[key].template_id,
- advice_name: children[key].advice_name,
- advice_desc: children[key].advice_desc,
- single_dose: "" + children[key].single_dose,
- single_dose_unit: children[key].single_dose_unit,
- drug_spec: "" + children[key].drug_spec,
- drug_spec_unit: children[key].drug_spec_unit,
- prescribing_number: "" + children[key].prescribing_number,
- prescribing_number_unit: children[key].prescribing_number_unit,
- delivery_way: children[key].delivery_way,
- execution_frequency: children[key].execution_frequency,
- drug_id:children[key].drug_id,
- way:children[key].way,
- drug_name_id:children[key].way,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: parentRow,
- row_key: this.rowKey
- };
- console.log("child",child)
- item.children.push(child);
- }
- this.$set(item, "children", item.children);
- }
- }
- this.groupForm.adviceNames.push(item);
- }
-
- // console.log(this.groupForm);
-
- this.templateFormVisible = false;
- // 清除数据源的选中记录
- },
- addTempForm(formName) {
- var _this = this;
- this.$refs[formName].validate(valid => {
- if (valid) {
- if (_this.templateForm.id in _this.adviceTemplateMaps) {
- var mapid = _this.templateForm.id;
- for (const index in _this.adviceTemplateMaps[mapid]
- .DoctorAdviceTemplate) {
- this.rowKey++;
- var item = {
- advice_name:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .advice_name,
- advice_desc:
- "" +
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .advice_desc,
- single_dose:
- "" +
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .single_dose,
- single_dose_unit:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .single_dose_unit,
- drug_spec:
- "" +
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .drug_spec,
- drug_spec_unit:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .drug_spec_unit,
- prescribing_number:
- "" +
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .prescribing_number,
- prescribing_number_unit:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .prescribing_number_unit,
- delivery_way:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .delivery_way,
- execution_frequency:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .execution_frequency,
- parent_id:
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .parent_id,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: 0,
- row_key: this.rowKey
- };
- if (
- "children" in
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index] &&
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .children
- ) {
- var parentRow = this.rowKey;
- var children =
- _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index]
- .children;
- for (const key in children) {
- this.rowKey++;
- var child = {
- advice_name: children[key].advice_name,
- advice_desc: children[key].advice_desc,
- single_dose: "" + children[key].single_dose,
- single_dose_unit: children[key].single_dose_unit,
- drug_spec: "" + children[key].drug_spec,
- drug_spec_unit: children[key].drug_spec_unit,
- prescribing_number: "" + children[key].prescribing_number,
- prescribing_number_unit:
- children[key].prescribing_number_unit,
- delivery_way: children[key].delivery_way,
- execution_frequency: children[key].execution_frequency,
- drug_id:children[key].drug_id,
- way:children[key].way,
- drug_name_id:children[key].way,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: parentRow,
- row_key: this.rowKey
- };
- item.children.push(child);
- }
- _this.$set(item, "children", item.children);
- }
-
- _this.groupForm.adviceNames.unshift(item);
-
- // _this.groupForm.adviceNames.unshift(item);
-
- _this.toggleRowExpansion();
- }
- }
- _this.templateFormVisible = false;
- }
- });
- },
- submitNameForm(formName) {
-
- if(this.src_type == ""){
- this.nameForm.way = 0
- this.nameForm.drug_id = 0
- }
-
- if(this.src_type == 2){ //自备药
- var arr = this.nameForm.advice_name.split("(自备药)")
- this.nameForm.advice_name = arr[0]
- }
- console.log("医嘱2222",this.nameForm)
-
- var _this = this;
- this.$refs[formName].validate(valid => {
- if (valid) {
- if (_this.nameForm.isEdit) {
- var ale = _this.groupForm.adviceNames.length;
- if (_this.isChild) {
- for (let index = 0; index < ale; index++) {
- if (
- _this.groupSelectRow.parent_row ==
- _this.groupForm.adviceNames[index].row_key
- ) {
- var cle = _this.groupForm.adviceNames[index].children.length;
- var children = _this.groupForm.adviceNames[index].children;
- for (let j = 0; j < ale; j++) {
- if (_this.groupSelectRow.row_key == children[j].row_key) {_this.groupForm.adviceNames[index].children[j].advice_name = _this.nameForm.advice_name;
- _this.groupForm.adviceNames[index].children[j].advice_desc = _this.nameForm.advice_desc;
- _this.groupForm.adviceNames[index].children[j].single_dose = "" + _this.nameForm.single_dose;
- _this.groupForm.adviceNames[index].children[j].single_dose_unit = _this.nameForm.single_dose_unit;
- _this.groupForm.adviceNames[index].children[j].drug_spec ="" + _this.nameForm.drug_spec;
- _this.groupForm.adviceNames[index].children[j].drug_spec_unit = _this.nameForm.drug_spec_unit;
- _this.groupForm.adviceNames[index].children[j].prescribing_number ="" + _this.nameForm.prescribing_number;
- _this.groupForm.adviceNames[index].children[j].prescribing_number_unit =_this.nameForm.prescribing_number_unit;
- _this.groupForm.adviceNames[index].children[j].delivery_way = _this.nameForm.delivery_way;
- _this.groupForm.adviceNames[index].children[j].execution_frequency =_this.nameForm.execution_frequency;
- _this.groupForm.adviceNames[index].children[j].drug_id = _this.nameForm.drug_id;
- _this.groupForm.adviceNames[index].children[j].way = _this.nameForm.way;
- _this.groupForm.adviceNames[index].children[j].push_start_time = _this.nameForm.push_start_time;
- _this.groupForm.adviceNames[index].children[j].remark = _this.nameForm.remark;
-
- _this.$set(
- _this.groupForm.adviceNames[index].children,
- j,
- _this.groupForm.adviceNames[index].children[j]
- );
- _this.toggleRowExpansion();
- break;
- }
- }
- }
- }
- } else {
- for (let index = 0; index < ale; index++) {
- if (_this.groupSelectRow.row_key == _this.groupForm.adviceNames[index].row_key) {
- _this.groupForm.adviceNames[index].advice_name =_this.nameForm.advice_name;
- _this.groupForm.adviceNames[index].advice_desc =_this.nameForm.advice_desc;
-
- _this.groupForm.adviceNames[index].single_dose = "" + _this.nameForm.single_dose;
- _this.groupForm.adviceNames[index].single_dose_unit =_this.nameForm.single_dose_unit;
- _this.groupForm.adviceNames[index].drug_spec = "" + _this.nameForm.drug_spec;
- _this.groupForm.adviceNames[index].drug_spec_unit =_this.nameForm.drug_spec_unit;
- _this.groupForm.adviceNames[index].prescribing_number = "" + _this.nameForm.prescribing_number;
- _this.groupForm.adviceNames[index].prescribing_number_unit = _this.nameForm.prescribing_number_unit;
- _this.groupForm.adviceNames[index].delivery_way = _this.nameForm.delivery_way;
- _this.groupForm.adviceNames[index].execution_frequency = _this.nameForm.execution_frequency;
- _this.groupForm.adviceNames[index].push_start_time = _this.nameForm.push_start_time
- _this.groupForm.adviceNames[index].remark = _this.nameForm.remark
- if (_this.nameForm.frequency_type == 1) {
- _this.groupForm.adviceNames[index].frequency_type =
- _this.nameForm.frequency_type;
- _this.groupForm.adviceNames[index].day_count = "0";
- _this.groupForm.adviceNames[index].week_days = "";
- } else if (_this.nameForm.frequency_type == 2) {
- _this.groupForm.adviceNames[index].frequency_type =
- _this.nameForm.frequency_type;
- _this.groupForm.adviceNames[index].day_count =
- _this.nameForm.day_count;
- _this.groupForm.adviceNames[index].week_days = "";
- } else if (_this.nameForm.frequency_type == 3) {
- _this.groupForm.adviceNames[index].frequency_type =
- _this.nameForm.frequency_type;
- _this.groupForm.adviceNames[index].drug_id = _this.nameForm.drug_id
- _this.groupForm.adviceNames[index].way = _this.nameForm.way
- _this.groupForm.adviceNames[index].day_count = "0";
- _this.groupForm.adviceNames[index].week_days = this.weeks
- .filter(function(s) {
- return s && s.trim();
- })
- .join(",");
- }
- _this.$set(
- _this.groupForm.adviceNames,
- index,
- _this.groupForm.adviceNames[index]
- );
- _this.toggleRowExpansion();
- this.weeks = [];
-
- break;
- }
- }
- }
- } else {
- if (_this.isChild) {
- _this.rowKey++;
- _this.nameForm.row_key = _this.rowKey;
-
- var ale = _this.groupForm.adviceNames.length;
- for (let index = 0; index < ale; index++) {
- if (
- _this.nameForm.parent_row ==
- _this.groupForm.adviceNames[index].row_key
- ) {
- _this.groupForm.adviceNames[index].children.push(
- _this.nameForm
- );
- _this.$set(
- _this.groupForm.adviceNames,
- index,
- _this.groupForm.adviceNames[index]
- );
- // _this.$refs.advicenametable.doLayout();
-
- _this.toggleRowExpansion();
- break;
- }
- }
- } else {
- _this.nameForm.template_id =
- "D" + new Date().getTime() + this.getRandValue();
-
- if (_this.nameForm.frequency_type == 1) {
- _this.nameForm.frequency_type = _this.nameForm.frequency_type;
- _this.nameForm.day_count = "0";
- _this.nameForm.week_days = "";
- } else if (this.nameForm.frequency_type == 2) {
- _this.nameForm.frequency_type = _this.nameForm.frequency_type;
- _this.nameForm.day_count = _this.nameForm.day_count;
- _this.nameForm.week_days = "";
- } else if (this.nameForm.frequency_type == 3) {
- _this.nameForm.frequency_type = _this.nameForm.frequency_type;
-
- _this.nameForm.day_count = "0";
- _this.nameForm.week_days = this.weeks
- .filter(function(s) {
- return s && s.trim();
- })
- .join(",");
- }
-
- this.weeks = [];
-
- _this.rowKey++;
- _this.nameForm.row_key = _this.rowKey;
- _this.groupForm.adviceNames.push(_this.nameForm);
- _this.toggleRowExpansion();
- }
- }
- _this.nameFormVisible = false;
- }
- });
- },
-
- setAdminUserES(id) {
- if (id == 0) {
- return "";
- }
- if (id in this.operatorMaps) {
- return this.operatorMaps[id].url;
- } else {
- return "";
- }
- },
- tranSex(gender) {
- var sex = "未知";
- switch (gender) {
- case 1:
- sex = "男";
- break;
- case 2:
- sex = "女";
- break;
- default:
- break;
- }
- return sex;
- },
- load(tree, treeNode, resolve) {},
- toggleRowExpansion() {
- for (const index in this.groupForm.adviceNames) {
- this.$refs.advicenametable.toggleRowExpansion(
- this.groupForm.adviceNames[index],
- true
- );
- }
- },
- handleSpanTempArr() {
- this.tempArr = [];
-
- for (let i = 0; i < this.adviceTableData.length; i++) {
- if (i === 0) {
- this.tempArr.push(1);
- this.pos = 0;
- } else {
- // 判断当前元素与上一个元素是否相同
- if (
- this.adviceTableData[i].groupno ===
- this.adviceTableData[i - 1].groupno
- ) {
- this.tempArr[this.pos] += 1;
- this.tempArr.push(0);
- } else {
- this.tempArr.push(1);
- this.pos = i;
- }
- }
- }
-
- // let sameRowArr = [], sIdx = 0;
- // this.adviceTemplates.forEach((item, index) => {
- // item.index = index
- // if (index === 0) {
- // sameRowArr.push([index])
- // } else {
- // if (item.template_id === this.adviceTemplates[index - 1].template_id) {
- // sameRowArr[sIdx].push(index)
- // } else {
- // sIdx = sIdx + 1;
- // sameRowArr.push([index])
- // }
- // }
- // })
- // this.sameRowArr = sameRowArr;
- },
- mergeSpan({ row, column, rowIndex, columnIndex }) {
- // console.log("row29292929",columnIndex)
- // console.log("conlumnindex",this.tempArr)
- if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) {
- const _row = this.tempArr[rowIndex];
- const _col = _row > 0 ? 1 : 0;
- // console.log("_row--------------",_row)
- // console.log("_col",_col)
- return {
- rowspan: _row,
- colspan: _col
- };
- }
- },
- cancleDialog() {
- this.templateFormVisible = false;
- this.weeks = [];
- for (const indexs in this.adviceTemplateMaps) {
- const adviceTemplate = this.adviceTemplateMaps[indexs];
- for (const index in adviceTemplate.DoctorAdviceTemplate) {
- adviceTemplate.DoctorAdviceTemplate[index].selection = false;
- }
- }
- },
- changeRemind(val) {
- const params = {
- is_open_remind: val,
- id: this.patientID
- };
- PostRemind(params).then(response => {
- if (response.data.state == 1) {
- this.is_open_remind = response.data.data.is_open_remind;
- if (response.data.data.is_open_remind == 1) {
- this.$message.success("开启成功");
- } else {
- this.$message.success("关闭成功");
- }
- } else {
- this.$message.error(response.data.msg);
- }
- });
- },
- getPatient(params) {
- fetchPatient(params.id).then(response => {
- if (response.data.state == 1) {
- var patietInfo = response.data.data.patient;
- this.is_open_remind = patietInfo.is_open_remind;
- } else {
- this.$message.error(response.data.msg);
- }
- });
- },
- getRandValue() {
- var charactors = "1234567890";
-
- var value = "",
- i;
-
- for (let j = 1; j <= 4; j++) {
- i = parseInt(10 * Math.random());
-
- value = value + charactors.charAt(i);
- }
- return value;
- },
- getAllAdviceConfig: function() {
- getAllAdviceConfig().then(response => {
- if (response.data.state == 1) {
- this.deliveryWayOptions =
- response.data.data.drugways === null? []: response.data.data.drugways;
- this.executionFrequencyOptions = response.data.data.efs === null ? [] : response.data.data.efs;
- // var dics = response.data.data.dics
- // var obj = {id:0,name:"全部"}
- // this.deliveryWay.push(obj)
- // this.deliveryWay.push(...dics)
- }
- });
- },
- // 获取勾选中的行
- getPrintInfo(ids) {
- console.log("ids",ids)
- console.log("23332332323232",this.adviceType,"33333333",this.stopType)
-
- getPrintInfo({ids:ids},this.adviceType,this.stopType).then(response => {
- if (response.data.state === 1) {
- var doctoradvice = response.data.data.doctoradvice;
- console.log("doctoradvice", doctoradvice);
-
- this.dataAdvice = doctoradvice;
- if (this.adviceType === 3 || this.adviceType === 2 || this.adviceType == 4) {
-
- this.lstableData = this.dataAdvice;
-
- } else if (this.adviceType === 1) {
- this.cqtableData = doctoradvice;
- }
- }
- });
- },
- getdata: function(data) {
- data = data.sort();
- for (var i = 0; i < data.length; i++) {
- if (data[i] === data[i + 1]) {
- data.splice(i, 1);
- }
- }
- return data;
- },
- getPatientSchedules(id) {
- getPatientSchedules(id).then(response => {
- if (response.data.state === 1) {
- var scheduls = response.data.data.scheduls;
- // console.log("scheduls", scheduls);
- this.schedulStatus = 1;
- // console.log("sch22", this.schedulStatus);
- }
- if (response.data.state === 0) {
- this.schedulStatus = 2;
- // console.log("sch23", this.schedulStatus);
- }
- });
- },
- changeOptions(type) {
- if (type == 3 && this.schedulStatus == 2) {
- this.$message.error("该病人未排班,不能开临时医嘱!");
- this.groupFormVisible = false;
- }
- },
- handleCurrentChange(page) {
- this.listQuery.page = page;
- this.getList();
- },
- handleSizeChange(limit) {
- this.listQuery.limit = limit;
- this.getList();
- },
-
- getSelfMedicalList(id){
- const params = {
- patient_id:id
- }
- console.log("params-----",params)
- getSelfMedicalList(params).then(response=>{
- if (response.data.state == 1) {
- this.arr_drug = []
- console.log('qweretretyyuiu',response.data.data);
- var medicalList = response.data.data.private_drug_list
- var base_drug_list = response.data.data.base_drug_list
- var base_drug_cofig = response.data.data.base_drug_config
- var private_drug_cofig = response.data.data.private_drug_config
-
-
- if(private_drug_cofig != null&&private_drug_cofig.drug_start == 1) {
-
- for (let i = 0; i < medicalList.length; i++) {
- if(medicalList[i].drug_specs != null) {
- for (let a = 0; a < medicalList[i].drug_specs.length; a++) {
- medicalList[i].drug_specs[a]['type'] = 2
- }
- }
- let obj = {
- drug_name: "",
- drug_desc: "",
- delivery_way: "",
- execution_frequency: "",
- single_dose: "",
- single_dose_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- type_id: "",
- type: "",
- custom_id: "",
- drug_specs: [],
- drug_id:"",
- }
-
- medicalList[i].drug_name = medicalList[i].drug_name + "(自备药)"
- obj.drug_name = medicalList[i].drug_name
- obj.delivery_way = medicalList[i].delivery_way
- obj.execution_frequency = medicalList[i].execution_frequency
- obj.single_dose = medicalList[i].single_dose
- obj.prescribing_number = medicalList[i].prescribing_number
- obj.type_id = medicalList[i].id
- obj.type = 2
- obj.custom_id = this.rand(10000000, 99999999)
- obj.drug_specs = medicalList[i].drug_specs
- obj.drug_id = medicalList[i].id
- this.all_drug.push(obj)
- }
- }
-
-
- for (let i = 0; i < base_drug_list.length; i++) {
- if(base_drug_list[i].drug_specs != null) {
- for (let a = 0; a < base_drug_list[i].drug_specs.length; a++) {
- base_drug_list[i].drug_specs[a]['type'] = 1
- }
- }
- let obj = {
- drug_name: "",
- drug_desc: "",
- delivery_way: "",
- execution_frequency: "",
- single_dose: "",
- single_dose_unit: "",
- prescribing_number: "",
- prescribing_number_unit: "",
- type_id: "",
- type: "",
- custom_id: "",
- drug_specs: [],
- drug_id:"",
- }
-
- obj.drug_name = base_drug_list[i].drug_name
- obj.delivery_way = base_drug_list[i].delivery_way
- obj.execution_frequency = base_drug_list[i].execution_frequency
- obj.single_dose = base_drug_list[i].single_dose
- obj.prescribing_number = base_drug_list[i].prescribing_number
- obj.type_id = base_drug_list[i].id
- obj.type = 1
- obj.custom_id = this.rand(10000000, 99999999)
- obj.drug_specs = base_drug_list[i].drug_specs
- obj.drug_id = base_drug_list[i].id
- this.all_drug.push(obj)
- }
- }
-
- this.private_drug_config = response.data.data.private_drug_config
- console.log("medicals",medicalList)
- this.medicals = medicalList
-
- })
- },
- changeDrugNameTwo(name){
- this.current_drug_name = name
- this.adviceForm.advice_desc = ''
- this.drugSpec = []
- console.log('7777777',name);
- for (let i = 0; i < this.all_drug.length; i++) {
- // if(this.all_drug[i].drug_name.indexOf(name) != -1){
-
- // }
- if (this.all_drug[i].drug_name == name) {
- this.drugSpec = this.all_drug[i].drug_specs
- console.log('this.drugSpec',this.drugSpec);
- for(let i=0;i<this.drugSpec.length;i++){
- console.log('this.drugSpec.length',this.drugSpec[i].drug_name);
- if (this.drugSpec[i].drug_name == name) {
- console.log('22222222',this.drugSpec[i])
- this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
- this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
- this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
- this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
- this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
- this.drug_id = this.drugSpec[i].id
- this.src_type = this.drugSpec[i].type
- this.adviceForm.drug_id = this.drugSpec[i].id
- this.adviceForm.way = this.drugSpec[i].type
- this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
- this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
- this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
- if(this.drugSpec[i].drug_name_id){
- this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
- }else{
- this.adviceForm.drug_name_id = 0
- }
- }
- }
- }
- }
- },
- changeDrugDescTwo(name){
- this.current_drug_spec = name
- // for (let i = 0; i < this.drugSpec.length; i++) {
- // if (this.drugSpec[i].drug_spec == name) {
- // console.log('22222222',this.drugSpec[i])
- // this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
- // this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
- // this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
- // this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
- // this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
- // this.drug_id = this.drugSpec[i].id
- // this.src_type = this.drugSpec[i].type
- // this.adviceForm.drug_id = this.drugSpec[i].id
- // this.adviceForm.way = this.drugSpec[i].type
- // this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
- // this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
- // this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
- // if(this.drugSpec[i].drug_name_id){
- // this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
- // }else{
- // this.adviceForm.drug_name_id = 0
- // }
- // }
- // }
- },
- changeDrugName(name){
- this.current_drug_name = name
- this.nameForm.advice_desc = ''
- this.drugSpec = []
- for (let i = 0; i < this.all_drug.length; i++) {
- if (this.all_drug[i].drug_name == name) {
- this.drugSpec = this.all_drug[i].drug_specs
- console.log('wertwet',this.drugSpec);
- }
- }
- },
- changeDrugDesc(name) {
- this.current_drug_spec = name
- for (let i = 0; i < this.drugSpec.length; i++) {
- if (this.drugSpec[i].drug_spec == name) {
- this.nameForm.advice_desc = this.drugSpec[i].drug_spec
- this.nameForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
- this.nameForm.single_dose = this.drugSpec[i].single_dose.toString()
- this.nameForm.delivery_way = this.drugSpec[i].delivery_way.toString()
- this.nameForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
- this.drug_id = this.drugSpec[i].id
- this.src_type = this.drugSpec[i].type
- this.nameForm.drug_id = this.drugSpec[i].id
- this.nameForm.way = this.drugSpec[i].type
- this.nameForm.single_dose_unit = this.drugSpec[i].min_unit
- this.nameForm.drug_spec_unit = this.drugSpec[i].min_unit
- this.nameForm.prescribing_number_unit = this.drugSpec[i].min_unit
- if(this.drugSpec[i].drug_name_id){
- this.nameForm.drug_name_id = this.drugSpec[i].drug_name_id
- }else{
- this.nameForm.drug_name_id = 0
- }
- }
- }
- },
- rand(min, max) {
- return Math.floor(Math.random() * (max - min)) + min;
- },
-
- querySearch(queryString, cb) {
- console.log('queryString1111',queryString)
- var restaurants = this.all_drug;
- restaurants.map(item => {
- item.value = item.drug_name
- })
- var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
- // var results=arr
- // 调用 callback 返回建议列表的数据
- console.log('results',results)
- cb(results);
- },
-
- createFilter(queryString) {
- return (restaurant) => {
- // return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
- return (restaurant.drug_name.indexOf(queryString) != -1);
- };
- },
-
- querySearch1(queryString, cb) {
- console.log('queryString',queryString)
- var restaurants = this.drugSpec;
- console.log(restaurants)
- restaurants.map(item => {
- item.value = item.drug_spec
- })
- var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
- // 调用 callback 返回建议列表的数据
- console.log('results',results)
- cb(results);
- },
-
- handleSelect1(val){
- this.drug_id = val.drug_id
-
- },
- handleSelect(val){
- this.src_type = 1
- this.drug_id = val.drug_id
- this.nameForm.drug_id = val.drug_id
- this.nameForm.way = 1
- this.nameForm.drug_name_id = val.drug_id
- var tmp = val.drug_specs[0]
- console.log("tmp",tmp)
- this.nameForm.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
- this.nameForm.drug_spec_unit = tmp.max_unit
- this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
- this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
- this.nameForm.single_dose = tmp.single_dose//单次用量
- this.nameForm.single_dose_unit = tmp.drug_dose_unit
- this.nameForm.delivery_way = tmp.delivery_way//给药途径
- this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
- this.nameForm.drug_id = tmp.id
- console.log("isiisisthis.adviceForm",this.adviceForm)
- this.adviceForm.drug_id = tmp.id
- for (let i = 0; i < this.drugSpec.length; i++) {
- if (this.drugSpec[i].drug_spec == tmp.drug_name) {
- console.log('22222222',this.drugSpec[i])
- this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
- this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
- this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
- this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
- this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
- this.drug_id = this.drugSpec[i].id
- this.src_type = this.drugSpec[i].type
- this.adviceForm.drug_id = this.drugSpec[i].id
- this.adviceForm.way = this.drugSpec[i].type
- this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
- this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
- this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
- if(this.drugSpec[i].drug_name_id){
- this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
- }else{
- this.adviceForm.drug_name_id = 0
- }
- }
- }
- },
- getTime(val) {
- if(val < 0){
- return ""
- }
- if(val == ""){
- return ""
- }else {
- return uParseTime(val, '{y}-{m}-{d}')
- }
- },
- },
- watch: {
-
- adviceTableData: function() {
- console.log("hhahahhahah",this.adviceTableData)
- this.handleSpanTempArr();
- },
- "selectedTemp.list": function() {
- this.calcselectedTemp();
- },
- multipleSelection: function() {
- const arr = [];
- const group = [];
- const grouptwo = [];
- const ids = [];
- console.log("multipleSelection",this.multipleSelection)
- for (const i in this.multipleSelection) {
- arr.push(this.multipleSelection[i]);
- group.push(this.multipleSelection[i].groupno);
-
- }
- grouptwo.push(this.getdata(group));
- // console.log('组号', group)
- // console.log('组号2', grouptwo)
- // console.log('ids', ids)
- this.getPrintInfo(group);
- }
- },
- components: {
- PatientSidebar,
- EditGroupAdvice
- },
- created() {
- const id = this.$route.params && this.$route.params.id;
- this.patientID = parseInt(id);
- if (isNaN(this.patientID) || this.patientID <= 0) {
- this.$notify.error({
- title: "错误",
- message: "无效的id"
- });
- this.$router.push("/patients/patients");
- }
- this.listQuery.id = this.patientID;
- this.org_id = this.$store.getters.xt_user.template_info.org_id
- // var nowDate = new Date()
- // var nowYear = nowDate.getFullYear()
- // var nowMonth = nowDate.getMonth() + 1
- // var nowDay = nowDate.getDate()
-
- // this.listQuery.end_time =
- // nowYear +
- // '-' +
- // (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
- // '-' +
- // (nowDay < 10 ? '0' + nowDay : nowDay)
- //
- // nowDate.setMonth(nowDate.getMonth() - 1)
- // nowYear = nowDate.getFullYear()
- // nowMonth = nowDate.getMonth() + 1
- // nowDay = nowDate.getDate()
- //
- // this.listQuery.start_time =
- // nowYear +
- // '-' +
- // (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
- // '-' +
- // (nowDay < 10 ? '0' + nowDay : nowDay)
-
- // this.fetchAllDoctorAndNurse();
- this.fetchAllAdminUsers();
- this.getAllAdviceConfig();
- this.getList();
- const params = {
- id: this.patientID
- };
- this.getPatient(params);
-
- var xtuser = this.$store.getters.xt_user;
- this.orgname = xtuser.org.org_name;
- this.adminusername = xtuser.user.user_name;
- this.aminuserid = xtuser.user.id;
- this.unitsOption = getDataConfig("hemodialysis", "units");
- //查询该病人是否有排班记录
- this.getPatientSchedules(id);
- this.getSelfMedicalList(id)
- }
- };
- </script>
-
- <style>
- #oictable ::-webkit-scrollbar {
- height: 15px;
- }
- </style>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
-
- .printForm {
- width: 960px;
- }
-
- .printForm .hospital_title {
- font-size: 20px;
- font-weight: 400;
- text-align: center;
- letter-spacing: 5px;
- }
-
- .printForm .title {
- font-size: 30px;
- font-weight: 500;
- text-align: center;
- }
-
- .printForm .title {
- font-size: 30px;
- font-weight: 500;
- text-align: center;
- }
-
- .printForm .info ul {
- display: -webkit-box;
- display: -moz-box;
- display: -ms-flexbox;
- display: -webkit-flex;
- display: flex;
- align-items: center;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -o-box-sizing: border-box;
- -ms-box-sizing: border-box;
- box-sizing: border-box;
- -webkit-justify-content: space-around;
- -moz-justify-content: space-around;
- -ms-justify-content: space-around;
- -o-justify-content: space-around;
- justify-content: space-around;
- }
-
- .printForm .info ul li {
- display: flex;
- box-sizing: border-box;
- justify-content: space-around;
- }
-
- .printForm .info ul li .InputBox {
- padding: 0;
- border: none;
- border-bottom: 1px #e5e5e5 solid;
- outline: none;
- width: 80px;
- }
-
- .printForm .printTable tr {
- padding: 2px;
- }
-
- .printForm .printTable tr > th {
- padding: 6px 4px;
- }
-
- .printForm .printTable tr > td {
- padding: 6px 4px;
- }
-
- .es-img {
- height: 25px;
- }
-
- .advice-container {
- font-size: 15px;
-
- .filter-container {
- padding-bottom: 5px;
- }
-
- .search-component {
- width: 500px;
-
- .searchBox {
- width: 300px;
- height: 36px;
- line-height: 36px;
- padding-left: 15px;
- border: 1px #dcdfe6 solid;
- border-right: none;
- outline: none;
- float: left;
- border-radius: 6px 0 0 6px;
- font-size: 14px;
- color: #333;
- background: #fff;
- box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
- }
-
- .searchBtn {
- background-color: #409eff;
- color: #fff;
- font-size: 15px;
- text-align: center;
- height: 36px;
- line-height: 36px;
- float: left;
- outline: none;
- width: 70px;
- border: none;
- border-radius: 0 6px 6px 0;
- font-family: "Microsoft Yahei";
- cursor: pointer;
- }
- }
- .amount {
- font-weight: normal;
- padding: 10px 0 0 0;
- color: #606266;
- font-size: 14px;
-
- span {
- color: #ef2525;
- font-family: "Arial";
- padding: 0 2px;
- }
- }
- .el-dropdown-link {
- cursor: pointer;
- }
- }
-
- .advice-order .ls-title {
- text-align: center;
- font-weight: 600;
- font-size: 30px;
- line-height: 80px;
- margin-bottom: 20px;
- }
-
- .advice-order .ls-type {
- text-align: center;
- margin-bottom: 20px;
- }
-
- .advice-order .ls-name {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 30px 2em;
- }
- </style>
- <style>
- .advice-order .el-table__body {
- border: 1px solid #333;
- }
-
- .advice-order .el-table__body td {
- border: 1px solid #333;
- }
-
- .advice-order .item-value {
- flex: 1;
- border-bottom: 1px solid #333;
- }
-
- .advice-order th,
- .advice-order td {
- padding: 5px 10px;
- }
-
- #user-advice-name-table .expanded {
- display: table-row !important;
- }
-
- #user-advice-name-table .el-table__expand-icon {
- -webkit-transform: rotate(90deg) !important;
- transform: rotate(90deg) !important;
- }
-
- .user-advice-table-row:hover > td {
- background: #fff !important;
- }
-
- .user-advice-table-row td:hover {
- background: #fff !important;
- }
-
- #user-advice-select-template-table .el-table__row {
- display: table-row !important;
- }
-
- #user-advice-select-template-table .el-table__expand-icon {
- -webkit-transform: rotate(90deg) !important;
- transform: rotate(90deg) !important;
- }
-
- .advicenamedisplay .cell {
- float: left;
- text-align: left;
- }
- </style>
|