123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602 |
- <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
- ? 'primary'
- : 'warning'
- "
- icon="el-icon-printer"
- >打印
- </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"
- >
- {{ item.label }}
- </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>
- <span
- v-else-if="
- scope.row.advice_type == 3 || scope.row.advice_type == 2
- "
- >临嘱</span
- >
- <span v-else></span>
- </template>
- </el-table-column>
-
- <el-table-column
- label="开始时间"
- width="180"
- property="start_time"
- align="center"
- >
- <template slot-scope="scope">
- <span>{{
- 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">
- {{ 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
- 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">
- {{ 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>
-
- <!-- <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
- >
- </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>
- </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="700px"
- >
- <el-form
- ref="nameForm"
- :rules="nameRules"
- :model="nameForm"
- label-width="90px"
- >
- <el-row>
- <el-col :span="12">
- <el-form-item label="医嘱内容 :" required prop="advice_name">
- <el-input v-model="nameForm.advice_name"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="12">
- <el-form-item label="药品规格 :" prop="advice_desc">
- <el-col :span="8">
- <el-input v-model="nameForm.advice_desc"></el-input>
- </el-col>
- <el-col class="line" :span="2"> </el-col>
- <el-col :span="14">
- <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.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="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-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="90px"
- >
- <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-input v-model="adviceForm.advice_name"></el-input>
- <!--<el-select v-model="adviceForm.advice_name" @change="changeAdviceName" filterable clearable allow-create placeholder="请选择(输入可搜索)" style="width:50%" >-->
- <!--<el-option-->
- <!--v-for="item in adviceTemplates"-->
- <!--:key="item.id"-->
- <!--:label="item.advice_name"-->
- <!--:value="item.id"-->
- <!-->-->
- <!--<span >{{ item.advice_name }}</span>-->
- <!--<span >{{ item.advice_spec }}</span>-->
- <!--</el-option>-->
- <!--</el-select>-->
- </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-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-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>
- <!-- <input type="text" class="InputBox" v-model="currentPatient.name"> -->
- <span class="InputBox"> {{ currentPatient.name }}</span>
- </li>
- <li>
- <span class="name">性别:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"
- > {{ tranSex(currentPatient.gender) }}</span
- >
- </li>
- <li>
- <span class="name">年龄:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"
- > {{ tranAge(currentPatient.birthday) }}岁</span
- >
- </li>
- <li>
- <span class="name">科别:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name">透析号:</span>
- <!-- <input type="text" class="InputBox"> -->
- <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.drug_spec">{{advice.drug_spec}}{{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 && isShowCQStartTime(index, advice)
- "
- >{{ advice.stop_time | parseTime("{y}-{m}-{d}") }}</span
- >
- </td>
- <td>
- <span
- v-if="
- advice.stop_state == 1 && isShowCQStartTime(index, advice)
- "
- >{{ advice.stop_time | parseTime("{h}:{i}") }}</span
- >
- </td>
- <td>
- <div v-if="isShowCQStartTime(index, advice)">
- <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>
- <!-- <input type="text" class="InputBox" v-model="currentPatient.name"> -->
- <span class="InputBox"> {{ currentPatient.name }}</span>
- </li>
- <li>
- <span class="name" style="width:50px;">性别:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"
- > {{ tranSex(currentPatient.gender) }}</span
- >
- </li>
- <li>
- <span class="name" style="width:50px;">年龄:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"
- > {{ tranAge(currentPatient.birthday) }}岁</span
- >
- </li>
- <li>
- <span class="name" style="width:30px;">科:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name" style="width:30px;">区:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name" style="width:30px;">房:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name" style="width:30px;">床:</span>
- <!-- <input type="text" class="InputBox"> -->
- <span class="InputBox"> </span>
- </li>
- <li>
- <span class="name" style="width:70px;">透析号:</span>
- <span class="InputBox"
- > {{ currentPatient.dialysis_no }} </span
- >
-
- <!-- <input type="text" class="InputBox"> -->
- </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.stop_state == 1 && advice.parent_id == 0">{{
- advice.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")
- }}</span>
- <span v-else></span>
- </td>
-
- <td>
- <span v-if="advice.stop_state == 1 && 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 {
- 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";
-
- let rowIndex = 1;
- const rowKey = 0;
-
- export default {
- name: "doctorAdvice",
-
- data() {
- return {
- 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: 3, label: "临时" }
- ],
- adviceTypeOptions: [
- { value: 1, label: "长期" },
- { value: 3, 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
- },
- 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: []
- },
- 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
- },
- 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: []
- };
- },
- methods: {
- clickuseradvicecell(row, column, cell, event) {
- console.log("row1", row);
- console.log("column", column);
- },
- onTranPatient: function(tranPatient) {
- console.log("tranPatient", 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";
- }
- }
-
- 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.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";
- }
-
- 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) {
- 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";
- }
-
- 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);
- }
-
- 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,
- 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
- };
- 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
- };
- 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) {
- var groups = [];
- this.rowKey = 0;
- 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,
-
- isEdit: 0,
- index: 0,
- id: groups[index].id,
- children: [],
- parent_row: 0,
- row_key: this.rowKey,
- table: []
- };
- 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,
- isEdit: 0,
- index: 0,
- id: childMap[item.id][key].id,
- children: [],
- parent_row: item.row_key,
- row_key: this.rowKey
- };
- 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
- };
- 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;
- }
- },
- 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
- };
- },
- getList() {
- 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 one = response.data.data.advicetwo;
- console.log("advicetwo", one);
- 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);
- // console.log("list", list);
- 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) {
- 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() {
- 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) {
- 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,
-
- 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,
-
- 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,
-
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: 0,
- row_key: thisRowKey
- };
- 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,
- isEdit: 0,
- id: 0,
- children: [],
- parent_row: parentRow,
- row_key: thisRowKey
- };
- 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,
-
- 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,
- 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.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,
- 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) {
- 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.$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;
-
- 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].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 }) {
- if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) {
- const _row = this.tempArr[rowIndex];
- const _col = _row > 0 ? 1 : 0;
- 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;
- }
- });
- },
- // 获取勾选中的行
- getPrintInfo(ids) {
- getPrintInfo({ ids: ids }).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.lstableData = this.dataAdvice;
- console.log("---", this.multipleSelection);
- } 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();
- }
- },
- watch: {
- adviceTableData: function() {
- this.handleSpanTempArr();
- },
- "selectedTemp.list": function() {
- this.calcselectedTemp();
- },
- multipleSelection: function() {
- const arr = [];
- const group = [];
- const grouptwo = [];
- const ids = [];
- 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;
- console.log("病人id", 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;
-
- // 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);
- }
- };
- </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>
|