123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002 |
- <template>
- <div>
- <el-dialog
- title="透析处方"
- :visible.sync="isVisibility"
- width="1010px"
- :modal-append-to-body="false"
- :append-to-body="true"
- class="newDialog"
- >
- <el-button
- style="position: absolute;left: 12%;top: 2%"
- @click="handlePatientInfo"
- >{{ patient.name }}
- </el-button
- >
- <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
- <el-form
- ref="dialysisPrescription"
- :model="dialysisPrescription"
- label-width="148px"
- >
- <el-row :gutter="24">
- <el-col :span="8" v-if="isShows('透析模式')">
- <el-form-item label="透析模式">
- <el-select
- v-model="dialysisPrescription.mode_id"
- @change="changePrescription(dialysisPrescription.mode_id)"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in treatment_mode"
- :label="item.name"
- :value="item.id"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(h): ">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysis_duration_hour"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(min): ">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysis_duration_minute"
- ></el-input>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
- <el-col :span="8" v-if="isShows('血流量')">
- <el-form-item label="血流量(ml/min):">
- <el-input
- type="number"
- v-model="dialysisPrescription.blood_flow_volume"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8"
- v-if="isShows('预冲量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 36)">
- <el-form-item label="预冲量(ml):">
- <el-input
- type="number"
- v-model="dialysisPrescription.pre_impulse"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('预冲量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id !=23 && this.$store.getters.xt_user.template_info.template_id !=36">
- <el-form-item label="预冲量(L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.pre_impulse"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
- <el-form-item label="目标超滤量(ml):">
- <el-input
- type="number"
- v-model="dialysisPrescription.target_ultrafiltration"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8"
- v-if="isShows('目标超滤量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
- <el-form-item label="目标超滤量(L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.target_ultrafiltration"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('单超时长')">
- <el-form-item label="单超时长(h):">
- <el-input v-model="dialysisPrescription.single_time"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('单超脱水')">
- <el-form-item label="单超脱水(L):">
- <el-input v-model="dialysisPrescription.single_water"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液配方')">
- <el-form-item label="透析液配方:">
- <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
- <el-select
- v-model="dialysisPrescription.dialysate_formulation"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in dialysate_formulation_options"
- :key="index + 'w'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
-
- <el-col :span="8" v-if="isShows('抗凝剂')">
- <el-form-item label="抗凝剂:">
- <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
- style="width:100%;"
- @change="changeThisAnticoagulant">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
- :value="3"></el-option>
- <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
- :key="index + 'e'"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
- <el-form-item label="抗凝剂商品名称:">
- <el-input
- v-model="dialysisPrescription.antioxidant_commodity_name"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="肝素钠(mg/h):">
- <el-input
- v-model="dialysisPrescription.heparin_sodium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="鱼精蛋白(mg/h):">
- <el-input
- v-model="dialysisPrescription.nucleoprotamine"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="下机前推注鱼精蛋白(mg):">
- <el-input
- v-model="dialysisPrescription.push_the_protamine"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
- <el-form-item label="无肝素备注:">
- <el-input
- v-model="dialysisPrescription.no_heparin_remarks"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
- <el-form-item
- v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987'
- :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item
- v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 && dialysisPrescription.anticoagulant == 2'
- :label="'首剂(mg) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
-
-
- </div>
-
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- <el-form-item v-else :label="'首剂(iu) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- </div>
- </div>
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item v-else :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- </div>
-
- </el-col>
-
-
- <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
- <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
- v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(mg/h) : '"
- v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 ">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- </div>
- <div v-else>
- <el-form-item :label="'维持(iu/h) : '"
- v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(mg/h) : '"
- v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- </div>
- </div>
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-else>
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- </div>
-
- </el-col>
-
- <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
- <el-form-item
- v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987'
- :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38|| this.$store.getters.xt_user.template_info.org_id == 9987'
- :label="'总量(mg) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
- <div v-else>
- <el-form-item
- v-if='dialysisPrescription.anticoagulant != 2'
- :label="'总量(iu) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if='dialysisPrescription.anticoagulant == 2'
- :label="'总量(mg) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
- </div>
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item v-else :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
-
- </el-col>
-
-
- <el-col :span="8"
- v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46)"
- v-show="zhiShow">
- <el-form-item label="置换量(ml):">
- <el-input
- type="number"
- v-model="dialysisPrescription.replacement_total"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8"
- v-if="isShows('置换量') && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 46"
- v-show="zhiShow">
- <el-form-item label="置换量(L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.replacement_total"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
- <el-form-item label="置换速度(ml/min)">
- <el-input
- v-model="dialysisPrescription.displace_speed"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col
- :span="8"
- v-if="anticoagulant.gaimingcheng != -1 && isShows('钙名称')"
- >
- <el-form-item label="钙名称 : ">
- <el-input
- v-model="dialysisPrescription.anticoagulant_gaimingcheng"
- :disabled="anticoagulant.gaimingcheng == 1 ? false : true"
- placeholder="钙名称"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col
- :span="8"
- v-if="anticoagulant.gaijiliang != -1 && isShows('钙剂量')"
- >
- <el-form-item label="钙剂量(ml) : ">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_gaijiliang"
- :disabled="anticoagulant.gaijiliang == 1 ? false : true"
- placeholder="钙剂量"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钾')">
- <el-form-item label="钾(mmol/L): ">
- <el-input
- type="number"
- v-model="dialysisPrescription.kalium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钠')">
- <el-form-item label="钠(mmol/L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.sodium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钙')">
- <el-form-item label="钙(mmol/L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.calcium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('碳酸氢盐')">
- <el-form-item label="碳酸氢盐(mmol/L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.bicarbonate"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖(mmol/L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.glucose"
- ></el-input>
- </el-form-item>
- </el-col> -->
- <el-col :span="8" v-if="isShows('透析液流量')">
- <el-form-item label="透析液流量(ml/min):">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysate_flow"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液温度')">
- <el-form-item label="透析液温度(°C):">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysate_temperature"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('电导率')">
- <el-form-item label="电导率(mS/cm): ">
- <el-input
- type="number"
- v-model="dialysisPrescription.conductivity"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('透析器/灌流器')">
- <el-form-item label="透析器/灌流器">
- <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
- @focus="showInnerDialog('5')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析器')">
- <el-form-item label="透析器:">
- <el-input v-model="dialysisPrescription.dialysis_dialyszers"
- @focus="showInnerDialog('7')"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('灌流器')">
- <el-form-item label="灌流器:">
- <el-input v-model="dialysisPrescription.dialysis_irrigation"
- @focus="showInnerDialog('8')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('血浆分离器')">
- <el-form-item label="血浆分离器:">
- <el-input v-model="dialysisPrescription.plasma_separator"
- @focus="showInnerDialog('9')"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('胆红素吸附柱')">
- <el-form-item label="胆红素吸附柱:">
- <el-input v-model="dialysisPrescription.bilirubin_adsorption_column"
- @focus="showInnerDialog('10')"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('体液过多症状')">
- <el-form-item label="体液过多症状:">
- <el-select
- v-model="dialysisPrescription.body_fluid"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in body_fluid_option"
- :label="item.name"
- :key="index + 't'"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('体液过多其他症状')">
- <el-form-item label="体液过多其他症状">
- <el-input
- v-model="dialysisPrescription.body_fluid_other"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析前使用特殊药物')">
- <el-form-item label="透析前使用特殊药物">
- <el-select
- v-model="dialysisPrescription.special_medicine"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in special_medicine_option"
- :label="item.name"
- :key="index + 'y'"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
- <el-form-item label="透析前使用其他特殊药物">
- <el-input
- v-model="dialysisPrescription.special_medicine_other"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8">
- <el-form-item
- label="置换液:"
- v-if="isShows('置换液')"
- v-show="huShow"
- >
- <el-select
- v-model="dialysisPrescription.displace_liqui_part"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in displace_liqui_part_option"
- :key="index + 'u'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24)"
- v-show="totalShow">
- <el-form-item label="置换液总量(ml)">
- <el-input
- v-model="dialysisPrescription.displace_liqui_value"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8"
- v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24"
- v-show="totalShow">
- <el-form-item label="置换液总量(L)">
- <el-input
- v-model="dialysisPrescription.displace_liqui_value"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('目标KT/V')">
- <el-form-item label="目标KT/V">
- <el-input v-model="dialysisPrescription.target_ktv"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('血管通路')">
- <el-form-item label="血管通路:">
- <el-select
- v-model="dialysisPrescription.blood_access"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(option, index) in blood_access_option"
- :key="index + 'i'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('抗凝提前停止')">
- <el-form-item label="抗凝提前停止(h): ">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_stop_time_hour"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('抗凝提前停止')">
- <el-form-item label="抗凝提前停止(min): ">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_stop_time_min"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('抽血')">
- <el-form-item label="抽血:">
-
- <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
-
-
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('病情')">
- <el-form-item label="病情:">
- <el-select v-model="dialysisPrescription.illness" placeholder="请选择">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in illnessList "
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖:">
- <el-input v-model="dialysisPrescription.amylaceum"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('置换流量')">
- <el-form-item label="置换流量(L/h):">
- <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧')">
- <el-form-item label="吸氧:">
- <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
- @change="changeOxygenList">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in oxygenList "
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
- <el-form-item label="吸氧流量(L/分):">
- <el-input v-model="dialysisPrescription.oxygen_flow"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
- <el-form-item label="吸氧时长(h):">
- <el-input v-model="dialysisPrescription.oxygen_time"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('透析管路')">
- <el-form-item label="透析管路:">
- <el-select
- v-model="dialysisPrescription.hemodialysis_pipelines"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in hemodialysisPipelinesOptions"
- :label="item.name"
- :key="index + 't'"
- :value="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('透析管路支数')">
- <el-form-item label="透析管路支数">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('穿刺针')">
- <el-form-item label="穿刺针">
- <el-input v-model="dialysisPrescription.puncture_needle"
- @focus="showInnerDialog('11')"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('穿刺针支数')">
- <el-form-item label="穿刺针支数">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('促红素')">
- <el-form-item label="促红素:">
- <el-select
- v-model="dialysisPrescription.epo"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in epoOptions"
- :label="item.name"
- :key="index + 't'"
- :value="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('促红素支数')">
- <el-form-item label="促红素支数">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('最大超滤率')">
- <el-form-item label="最大超滤率(ml/h)">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
- </el-form-item>
- </el-col>
-
-
- </el-row>
-
-
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="备注: ">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.remark"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleCancle">取 消</el-button>
- <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
- <el-button type="primary" @click="handleCommit" :loading="isLoading">保 存</el-button>
- <el-button type="primary" @click="handleSolution" :loading="isLoading"
- >保存为长期处方</el-button
- >
- </span>
- </el-dialog>
-
- <el-dialog
- title="长期医嘱推送"
- :visible.sync="isShowRemindAdvice"
- width="1010px"
- :modal-append-to-body="false"
- :append-to-body="true"
- >
- <div style='display:flex;align-items:center;'>
- <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="start_time"
- ></el-date-picker>
-
- <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
- </div>
- <el-checkbox-group v-model="checkedCities">
- <el-checkbox
- style="display: flex;align-items: center"
- v-for="(advice, index) in targetAdvices"
- :label="advice.id"
- :key="index+'q'"
- :value="advice.id"
- :name="advice.id"
- >
- <div style="padding-top: 10px;padding-left: 10px">
- 开嘱医生 {{ getDoctorName(advice.advice_doctor) }}
- </div>
- <br/>
- <div style="padding-left: 10px">
- 开嘱时间 {{ getTime(advice.created_time) }}
- </div>
- <br/>
- <div style="padding-bottom: 10px;padding-left: 10px">
- 医嘱内容 {{ getContent(advice) }}
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 1"
- >
- 推送频率 每次必推
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 2"
- >
- 推送频率 {{ advice.day_count }}天/次
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 3"
- >
- 推送频率 每周{{ advice.week_day }}
- </div>
- </el-checkbox>
- </el-checkbox-group>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleAdviceCancle">取 消</el-button>
- <el-button type="primary" @click="handleAdviceCommit" :loading="isLoading">保 存</el-button>
- </span>
- </el-dialog>
-
- <el-dialog
- :title="patient.name"
- :visible.sync="msgtip_visibility"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- :show-close="false"
- width="30%"
- >
- <div class="newLine">
- <span>本次透析日期</span>
- <span>{{ dialysis_date }}</span>
- </div>
- <div class="newLine">
- <span>透前称重(kg)</span>
- <span>{{ getBeforeWeight(predialysis) }}</span>
- </div>
- <div class="newLine">
- <span>干体重(kg)</span>
- <span>{{ getDryWeight() }}</span>
- </div>
- <div class="newLine">
- <span>衣物重(kg)</span>
- <span>{{ predialysis.additional_weight }}</span>
- </div>
- <div class="newLine">
- <span>体重增加(kg)</span>
- <span>{{ add_weight }}</span>
- </div>
- <div class="newLine">
- <span>透后称重(kg)</span>
- <span>{{ getAfterWeight(record) }}</span>
- </div>
- <div class="newLine">
- <span>体重减少(kg)</span>
- <span>{{ record.weight_loss }}</span>
- </div>
- <div class="newLine">
- <span>上次透后称重(kg)</span>
- <span>{{ getLastAfterWeight(last_record) }}</span>
- </div>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="cancleMsg()">取 消</el-button>
- <el-button type="primary" @click="cancleMsg()">确 定</el-button>
- </span>
- </el-dialog>
-
- <multi-select-box
- :propsForm="InnerDialogProps"
- v-on:dialog-comfirm="innerDialogComfirm"
- v-on:dialog-cancle="innerDialogCancle"
- ></multi-select-box>
-
-
- </div>
- </template>
-
- <script>
- import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution } from '@/api/dialysis'
- import { getDataConfig } from '@/utils/data'
- import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
- import store from '@/store'
- import MsgTip from './MsgTip'
-
- import request from '@/utils/request'
- import multiSelectBox from './MultiSelectBox'
-
- export default {
- name: 'dialysisPrescriptionDialog',
- components: { MsgTip, multiSelectBox },
- props: {
- mode_id: {
- type: Number
- },
- schedual: {
- type: Object
- },
- is_open: {
- type: Number,
- default: () => {
- return 0
- }
- },
- waitUploadAdvices: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- targetAdvices: {
- type: Array,
- default: () => {
- return []
- }
- },
- admin_users: {
- type: Array,
- default: () => {
- return []
- }
- },
- niprocart_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- jms_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- fistula_needle_set_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- fistula_needle_set_16_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- hemoperfusion_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- dialyser_sterilised_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- filtryzer_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- dialyzers_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- injector_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- bloodlines_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- tubingHemodialysis_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- safe_package_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- aliquid_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- config: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- prescription: {
- // 透析处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- solution: {
- // 长期处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- dialysis_order: {
- // 透析记录
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- patient: {
- // 患者信息
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- devices: {
- type: Array,
- default: function() {
- return new Array()
- }
- },
-
- predialysis: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_predialysis: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- record: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_record: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- dry_weight: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_prescription: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- scheudle_mode: Number,
- stockType: {
- type: Array,
- default: () => {
- return []
- }
- },
- lastAssessment: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- }
- },
- computed: {
- dialysis_date: function() {
- if (this.$route.query.date) {
- return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
- } else {
- return this.record_date
- }
- }
- },
- data() {
- return {
- InnerDialogProps: {
- values: [],
- visibility: false,
- isShowTextArea: true,
- customContent: '',
- titles: '',
- type: '' // 不同弹框类型,用来匹配数据
- },
- advice_start_time: '',
- showTxt: '',
- start_time: '',
- hasPermission: true,
- zhiShow: false,
- totalShow: false,
- huShow: false,
- showName: '',
- isShowRemindAdvice: false,
- checkedCities: [],
- isVisibility: false,
- isShowTime: false,
- isClose: false,
- isShow: false,
- record_date: '',
- time: '',
- treatment_mode: [],
- timeValue: '',
- deviceList: [],
- replacement_ways: [],
- anticoagulantsConfit: {},
- dialysate_formulation_options: [],
- add_weight: 0,
- body_fluid_option: [],
- special_medicine_option: [],
- displace_liqui_part_option: [],
- blood_access_option: [],
- is_pre: 0,
- msgtip_visibility: false,
-
- dialysisPrescription: {
- replacement_total: '',
- mode_id: '',
- dialysis_duration: '',
- dialysis_duration_hour: '',
- dialysis_duration_minute: '',
- mode_name: '',
- dialyzer: '',
- perfusion_apparatus: '',
- blood_flow_volume: '',
- dewater_amount: '',
- displace_liqui: '',
- replacement_way: '',
- anticoagulant: '',
- anticoagulant_shouji: '',
- anticoagulant_weichi: '',
- anticoagulant_zongliang: '',
- anticoagulant_gaimingcheng: '',
- anticoagulant_gaijiliang: '',
- kalium: '',
- sodium: '',
- calcium: '',
- bicarbonate: '',
- glucose: '',
- dry_weight: '',
- dialysate_flow: '',
- dialysate_temperature: '',
- target_ultrafiltration: '',
- dialysate_formulation: '',
- conductivity: '',
- doctor: '',
- remark: '',
- dialyzer_perfusion_apparatus: '',
-
- body_fluid: '',
- body_fluid_other: '',
- special_medicine: '',
- special_medicine_other: '',
- displace_liqui_part: '',
- displace_liqui_value: '',
- ultrafiltration: '',
- blood_access: '',
-
- niprocart: '',
- jms: '',
- fistula_needle_set: '',
- fistula_needle_set_16: '',
- hemoperfusion: '',
- dialyser_sterilised: '',
- filtryzer: '',
- target_ktv: '',
- dialyzers: '',
- injector: '',
- bloodlines: '',
- tubing_hemodialysis: '',
- package: '',
- a_liquid: '',
- no_anticoagulant_shouji: '0',
- no_anticoagulant_weichi: '0',
- no_anticoagulant_zongliang: '0',
- creater: 0,
- pre_impulse: 0, //预冲量
- anticoagulant_stop_time_hour: '',
- anticoagulant_stop_time_min: '',
- push_the_protamine: '',//下机前推注鱼精蛋白
- heparin_sodium: '', //肝素钠
- nucleoprotamine: '',//鱼精蛋白
- no_heparin_remarks: '',
- blood: '',
- dialysis_dialyszers: '',
- dialysis_irrigation: '',
- irrigation: '',
- antioxidant_commodity_name: '',
- displace_speed: '',
- illness: '',
- amylaceum: '',
- single_time: '',
- single_water: '',
- replacement_flow: '',
- plasma_separator: '',
- bilirubin_adsorption_column: '',
- oxygen_uptake: '',
- oxygen_flow: '',
- oxygen_time: '',
-
- hemodialysis_pipelines: '',
- hemodialysis_pipelines_count: '',
- puncture_needle: '',
- puncture_needle_count: '',
- epo: '',
- epo_count: '',
- max_ultrafiltration_rate:'',
- hemodialysisPipelinesOptions: [],
- punctureNeedleOptions: [],
- epoOptions: [],
- impulse:0,
- },
-
- anticoagulant: {
- id: 0,
- name: '',
- type: 1,
- shouji: 1,
- weichi: 1,
- zongliang: 1,
- gaimingcheng: -1,
- gaijiliang: -1,
- shouji_unit: 'mg',
- weichi_unit: 'mg/h',
- zongliang_unit: 'mg',
- gaimingcheng_unit: '',
- gaijiliang_unit: ''
- },
-
- doctorAdvices: [],
- dialyzerPerfusionApparatus: [],
- bloods: [],
- irrigations: [],
- dialyzers: [],
- illnessList: [],
- plasmaSeparatorList: [],
- bilirubinAdsorptionColumn: [],
- oxygenList: [
- { id: 1, name: '需' },
- { id: 2, name: '无' }
- ],
- oxygenShow: false,
- hemodialysisPipelinesOptions: [],
- epoOptions: [],
- isLoading: false
- }
- },
- methods: {
- changeOxygenList(val) {
- if (val == 1) {
- this.oxygenShow = true
- }
- if (val == 2) {
- this.oxygenShow = false
- this.prescription.oxygen_flow = ''
- this.prescription.oxygen_time = ''
- }
- },
- changeTime: function(val) {
- this.advice_start_time = val
-
- },
- showInnerDialog: function(val) {
- this.InnerDialogProps.visibility = true
- switch (val) {
- case '5': // 透析器/灌流器
-
- this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
- this.InnerDialogProps.titles = '透析器/灌流器'
- this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
-
- this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
- this.InnerDialogProps.isShowTextArea = false
- break
-
- case '6': // 透析器/灌流器
-
- this.InnerDialogProps.values = this.bloods
- this.InnerDialogProps.titles = '抽血'
- this.InnerDialogProps.type = 'blood'
- this.InnerDialogProps.selected = this.dialysisPrescription.blood
- this.InnerDialogProps.isShowTextArea = false
-
- case '7': // 透析器
-
- for (let i = 0; i < this.dialyzers.length; i++) {
- this.dialyzers[i].name = this.dialyzers[i].specification_name
- }
- this.InnerDialogProps.values = this.dialyzers
- this.InnerDialogProps.titles = '透析器'
- this.InnerDialogProps.type = 'dialyzers'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
- this.InnerDialogProps.isShowTextArea = false
- break
- case '8':
- for (let i = 0; i < this.irrigations.length; i++) {
- this.irrigations[i].name = this.irrigations[i].specification_name
- }
- this.InnerDialogProps.values = this.irrigations
- this.InnerDialogProps.titles = '透析器'
- this.InnerDialogProps.type = 'irrigations'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
- this.InnerDialogProps.isShowTextArea = false
- break
- case '9': // 血浆灌流器
-
- this.InnerDialogProps.values = this.plasmaSeparatorList
- this.InnerDialogProps.titles = '血浆灌流器'
- this.InnerDialogProps.type = 'plasma_separator'
- this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
- this.InnerDialogProps.isShowTextArea = false
- break
-
- case '10': // 胆红素吸附柱
-
- this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
- this.InnerDialogProps.titles = '胆红素吸附柱'
- this.InnerDialogProps.type = 'bilirubin_adsorption_column'
- this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
- this.InnerDialogProps.isShowTextArea = false
- break
- case '11': //穿刺针
-
- this.InnerDialogProps.values = this.punctureNeedleOptions
- this.InnerDialogProps.titles = '穿刺针'
- this.InnerDialogProps.type = 'puncture_needle'
- this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
- this.InnerDialogProps.isShowTextArea = false
- break
- }
- },
- innerDialogComfirm: function(val) {
- this.InnerDialogProps.visibility = false
- switch (val.type) {
- case 'dialyzer_perfusion_apparatus':
- this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
- break
- case 'blood':
- this.dialysisPrescription.blood = val.value.join(',')
- break
- case 'dialyzers':
- this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
- break
- case 'irrigations':
- this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
- break
- case 'plasma_separator':
- this.dialysisPrescription.plasma_separator = val.value.join(',')
- break
- case 'bilirubin_adsorption_column':
- this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
- break
- case 'puncture_needle':
- this.dialysisPrescription.puncture_needle = val.value.join(',')
- break
- }
- },
- innerDialogCancle: function() {
- this.InnerDialogProps.visibility = false
- },
-
- getDryWeight() {
- if (this.dry_weight != null && this.dry_weight.id > 0) {
- return this.dry_weight.dry_weight
- } else {
- if (this.last_predialysis != null && this.last_predialysis.id > 0) {
- return this.last_predialysis.dry_weight
- } else {
- return ''
- }
- }
- },
- getLastAfterWeight(record) {
- if (record != null && record.id > 0) {
- if (record.weight_after > 0) {
- let additional_weight = 0
- if (this.predialysis.additional_weight != undefined) {
- additional_weight = this.predialysis.additional_weight
- }
- return parseFloat(record.weight_after - additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- getBeforeWeight(predialysis) {
- if (predialysis.id > 0) {
- if (predialysis.weight_before > 0) {
- return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- getAfterWeight(record) {
- if (record.id > 0) {
- if (record.weight_after > 0) {
- return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
-
- this.treatment_mode = this.$store.getters.treatment_mode
- // console.log("99999",this.treatment_mode)
- this.perfusion_apparatus = getDataConfig(
- 'hemodialysis',
- 'perfusion_apparatus'
- )
- this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
- this.dialysate_formulation_options = getDataConfig(
- 'hemodialysis',
- 'dialysate_formulation'
- )
- // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
-
- var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
-
- // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
- // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
- // }
- // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
- // const arr = []
- // anticoagulantsConfit.map((item, index) => {
- // const objChild = { ...item }
- // arr.push(objChild)
- // })
- // var arrthree = {}
- // arrthree = { ...arr }
- // console.log('arrthree', arrthree)
- const arrFour = []
- Object.keys(anticoagulantsConfitOne).map((item, index) => {
- if (index != 2) {
- arrFour.push(anticoagulantsConfitOne[item])
- }
- })
-
- this.anticoagulantsConfit = arrFour
- this.dialysisList = this.devices
-
- this.body_fluid_option = this.$store.getters.body_fluid
- this.special_medicine_option = this.$store.getters.special_medicine
- this.displace_liqui_part_option = this.$store.getters.displace_liqui
-
- this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
- this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
- this.epoOptions = getDataConfig('hemodialysis', 'epo')
-
- // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
- this.blood_access_option = getDataConfig(
- 'hemodialysis',
- 'vascular_access_desc'
- )
-
- // console.log('血管通路', this.blood_access_option)
- this.dialyzerPerfusionApparatus = getDataConfig(
- 'hemodialysis',
- 'dialyzer_perfusion_apparatus'
- )
- // console.log('3333333', this.dialyzerPerfusionApparatus)
- this.bloods = getDataConfig(
- 'hemodialysis',
- 'blood'
- )
-
- // dialyzerPerfusionApparatus.map(item => {
- // item.name = item.name.toUpperCase()
- // })
- // //去重
- // var arr = this.unique(dialyzerPerfusionApparatus)
- // this.dialyzerPerfusionApparatus = arr
- // console.log('灌流器', arr)
-
- if (this.$route.query && this.$route.query.date) {
- var date = this.$route.query && this.$route.query.date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- } else {
- var date = schedual.schedule_date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- }
-
- if (this.prescription != null && typeof this.prescription.id !== 'undefined' && this.prescription.id > 0) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
- for (const key in this.solution) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = this.solution[key]
- }
- }
- } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
- for (const key in lastDialysisPrescribe) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = lastDialysisPrescribe[key]
- }
- }
- } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
- for (const key in system_prescribe) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = system_prescribe[key]
- }
- }
- } else {
-
- if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
-
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- } else {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- }
- // this.dialysisPrescription.mode_id = schedual.mode_id
-
- }
- var thismode = parseInt(this.dialysisPrescription.anticoagulant)
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- if (
- typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
- this.anticoagulantsConfit[thismode] == null
- ) {
- return false
- }
- this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
-
- },
- menuMsgTip: function() {
- this.msgtip_visibility = false
- this.isVisibility = true
- },
- handleAdviceCommit() {
- //
- let results = []
- for (let i = 0; i < this.targetAdvices.length; i++) {
- for (let a = 0; a < this.checkedCities.length; a++) {
- if (this.targetAdvices[i].id == this.checkedCities[a]) {
- results.push(this.targetAdvices[i])
- }
- }
- }
- var obj5 = {}
- results = results.reduce((cur, next) => {
- obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
- return cur
- }, [])
-
- var date = new Date()
- var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
-
- if (results.length > 0) {
- if(!this.isLoading){
- if (this.is_pre == 1) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('医嘱推送2', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['patient_id'] = this.$route.query.patient_id
- if (this.prescription.creater <= 0) {
- ParamsQuery['mode'] = '1'
- } else {
- ParamsQuery['mode'] = '2'
- if (
- this.$store.getters.xt_user.user.id !=
- this.dialysisPrescription.creater
- ) {
- ParamsQuery['mode'] = '3'
- }
- }
- this.isLoading = true
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- this.isLoading = false
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- var date = new Date()
-
- // console.log(this.start_time)
-
- const params = {
- advices: results,
- advice_date: this.start_time.split(' ')[0],
- advice_doctor: results[0].advice_doctor,
- advice_type: results[0].advice_type,
- parent_id: this.patient_id,
- start_time: this.start_time,
- remark: ''
- }
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- this.isLoading = false
- } else {
- this.isLoading = false
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_pre == 2) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('医嘱推送3', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = 1
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- this.isLoading = false
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- // console.log(hour + ':' + minute)
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- const params = {
- advices: results,
- advice_date: this.start_time.split(' ')[0],
- advice_doctor: results[0].advice_doctor,
- advice_type: results[0].advice_type,
- parent_id: this.patient_id,
- start_time: this.start_time,
- remark: ''
- }
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- this.isLoading = false
- } else {
- this.isLoading = false
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.is_pre == 1) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('医嘱推送4', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription)
- let mode = ''
- if (this.prescription.creater <= 0) {
- mode = 1
- } else {
- mode = 2
- }
- ParamsQuery['mode'] = mode
- console.log("paramsquery",ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_pre == 2) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = 1
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
-
- this.isShowRemindAdvice = false
- this.isVisibility = true
-
- },
- handleAdviceCancle() {
- this.isShowRemindAdvice = false
- this.isVisibility = true
- },
- getTime(val) {
- return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
- },
- show(pre, schedual, last, his_is_open,is_advice_open) {
-
- if (pre != undefined) {
- if (pre.oxygen_uptake == 1) {
- this.oxygenShow = true
- }
- if (pre.oxygen_uptake == 2) {
- this.oxygenShow = false
- this.prescription.oxygen_flow = ''
- this.prescription.oxygen_time = ''
- }
- }
- if (his_is_open == 1) {
- this.is_open = 0
- }
- if(is_advice_open == 1){
- this.is_open = 1
- }
-
- if(this.$store.getters.xt_user.org.id == 10101){
- if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
- var date = new Date(this.predialysis.created_time * 1000)
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- } else {
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }
- }else{
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ) {
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if(this.$store.getters.xt_user.org.id == 10234 || this.$store.getters.xt_user.org.id == 9671){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- } else {
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }
- }
-
-
- if (pre.anticoagulant == 3) {
- this.dialysisPrescription.anticoagulant = '低分子肝素'
- }
-
- // 入口
- var pre = pre
- this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
- if (pre.id > 0) {
- this.dialysisPrescription.mode_id = pre.mode_id
- }
- // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
- // console.log('this.schedual', schedual.mode_id)
- if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- } else if (
- pre.mode_id == 1 ||
- pre.mode_id == 3 ||
- pre.mode_id == 4 ||
- pre.mode_id == 6 ||
- pre.mode_id == 7 ||
- pre.mode_id == 8 ||
- pre.mode_id == 9 ||
- pre.mode_id == 10 ||
- pre.mode_id == 11 ||
- pre.mode_id == 13 ||
- pre.mode_id == 14 ||
- pre.mode_id == 19
- ) {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- }
- this.pre = pre
- // console.log("pre1", pre);
- this.getPermission()
-
- let last_weight_after = 0
- let weight_before = 0
-
- if (this.last_record == null) {
- last_weight_after = 0
- } else {
- last_weight_after = this.last_record.weight_after
- }
- console.log("last2323232323232332",last)
- if (this.predialysis == null || this.predialysis.id == 0) {
- if (last != null) {
-
- this.dialysisPrescription.niprocart = last.niprocart
- this.dialysisPrescription.jms = last.jms
- this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
- this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
- this.dialysisPrescription.hemoperfusion = last.hemoperfusion
- this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
- this.dialysisPrescription.filtryzer = last.filtryzer
- this.dialysisPrescription.target_ktv = last.target_ktv
- this.dialysisPrescription.dialyzers = last.dialyzers
- this.dialysisPrescription.injector = last.injector
- this.dialysisPrescription.bloodlines = last.bloodlines
- this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
- this.dialysisPrescription.package = last.package
- this.dialysisPrescription.a_liquid = last.a_liquid
-
- weight_before = 0
-
- }
-
- } else {
- weight_before = this.predialysis.weight_before
- }
-
-
- if (weight_before > 0 && last_weight_after > 0) {
- this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
- 2
- )
- // console.log('体重增加', this.add_weight)
- }
-
- this.isVisibility = true
- this.checkedCities = []
- for (let i = 0; i < this.targetAdvices.length; i++) {
- if (this.targetAdvices[i].isCheck == 1) {
- this.checkedCities.push(this.targetAdvices[i].id)
- }
- }
- },
- hide() {
- this.isVisibility = false
- },
- changeThisAnticoagulant: function(val) {
- console.log("val",val)
- var thismode = val
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- if (val <= 2) {
- this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
- }
- if (val > 2) {
- this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
- }
- if ((this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 41 || this.$store.getters.xt_user.template_info.template_id == 6) && val == 2) {
- if(val == 2){
- this.anticoagulant.shouji_unit = 'mg'
- }else{
- this.anticoagulant.shouji_unit = 'iu'
- }
-
- this.anticoagulant.weichi_unit = 'mg/h'
- this.anticoagulant.zongliang_unit = 'mg'
- }
-
- if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
- this.anticoagulant.shouji_unit = 'ml'
- this.anticoagulant.weichi_unit = 'ml'
- this.anticoagulant.zongliang_unit = 'ml'
- }
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.$store.getters.xt_user.template_info.template_id == 6 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
-
- },
-
- handleCommit: function() {
- if(!this.isLoading){
- if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
- this.dialysisPrescription.anticoagulant = 3
- }
- if (this.dialysisPrescription.anticoagulant == 1) {
- this.dialysisPrescription.anticoagulant_weichi = '0'
- this.dialysisPrescription.anticoagulant_shouji = '0'
- this.dialysisPrescription.anticoagulant_zongliang = '0'
- }
- if (this.$store.getters.xt_user.template_info.template_id == 6) {
- if (this.dialysisPrescription.mode_id == 2) {
- if (
- this.dialysisPrescription.displace_liqui_part == 0 ||
- this.dialysisPrescription.displace_liqui_part == -2 ||
- this.dialysisPrescription.displace_liqui_value == 0 ||
- this.dialysisPrescription.displace_liqui_value == ''
- ) {
- this.$message.error('HDF模式下置换液和置换液总量不能为空!')
- return
- }
- }
- }
-
- this.is_pre = 1
-
- if (this.prescription.id == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('night', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
-
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第一', ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
-
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('ParamsQuerytwo', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第二')
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- console.log('paramsquerythree', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第三')
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- this.advice_start_time,
-
- remark: ''
- }
- console.log('params--------', params)
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('paramsqueryfour', ParamsQuery)
- // console.log('创建者', this.prescription.creater)
- // if (this.prescription.creater <= 0) {
- // mode = 1;
- // } else {
- // mode = 2;
- // }
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription);
- console.log('第四')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- // console.log("aaaaaaa", prescription_resp);
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.prescription.creater == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('paramsqueryfive', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第五')
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('ParamsQuerysix', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('第6')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('parasmqueryseven', parasmqueryseven)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('第七')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
-
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(
- this.$route.query.patient_id,
- 0,
- params
- ).then(rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- }
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('eight', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第八')
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('night', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '2'
- ParamsQuery['patient_id'] = this.patient.id
-
- if (
- this.$store.getters.xt_user.user.id !=
- this.dialysisPrescription.creater
- ) {
- ParamsQuery['mode'] = '3'
- }
- console.log('第九',ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- }
- },
- handleCancle: function() {
- this.hide()
- },
- handleSolution: function() {
- if(!this.isLoading){
- if (this.dialysisPrescription.anticoagulant == 1) {
- this.dialysisPrescription.anticoagulant_weichi = '0'
- this.dialysisPrescription.anticoagulant_shouji = '0'
- this.dialysisPrescription.anticoagulant_zongliang = '0'
- }
- if (this.$store.getters.xt_user.template_info.template_id == 6) {
- if (this.dialysisPrescription.mode_id == 2) {
- if (
- this.dialysisPrescription.displace_liqui_part == 0 ||
- this.dialysisPrescription.displace_liqui_part == -2 ||
- this.dialysisPrescription.displace_liqui_value == 0 ||
- this.dialysisPrescription.displace_liqui_value == ''
- ) {
- this.$message.error('HDF模式下置换液和置换液总量不能为空!')
- return
- }
- }
- }
-
- this.is_pre = 2
-
- if (this.prescription.id == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了2",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了3",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr3', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方2', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- // if (this.patient.id <= 0) {
- // this.$message.error('没有选择患者')
- // this.loading = false
- // return
- // }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- // console.log('长期处方3', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription)
-
- ParamsQuery['mode'] = '1'
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了5",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr5', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方5', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.prescription.creater == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方6', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了7",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- console.log('长期处方7', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- // console.log('长期处方8', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const params = {
-
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(
- this.$route.query.patient_id,
- 0,
- params
- ).then(rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- }
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- console.log("预充了99999",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方9', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了1",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr12333223', arr)
-
- const ParamsQuery = arr
-
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('长期处方10', ParamsQuery)
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- }
- },
- isShows(name) {
- var filedList = store.getters.xt_user.fileds
- for (let i = 0; i < filedList.length; i++) {
-
- if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
-
- return true
- }
-
- }
- return false
- },
- getDoctorName(doctor_id) {
- for (let i = 0; i < this.admin_users.length; i++) {
- if (this.admin_users[i].id == doctor_id) {
- return this.admin_users[i].name
- }
- }
- },
- getContent(val) {
- let prescribing_number = ''
- let single_dose = ''
- let advice_desc = ''
-
- if (val.prescribing_number > 0) {
- prescribing_number =
- val.prescribing_number + val.prescribing_number_unit
- }
- if (val.single_dose > 0) {
- single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
- }
-
- if (val.advice_desc > 0 || val.advice_desc.length > 0) {
- advice_desc = val.advice_desc + val.drug_spec_unit
- }
-
- let name = ''
- if (val.child.length > 0) {
- for (let i = 0; i < val.child.length; i++) {
- if (val.child[i].prescribing_number > 0) {
- val.child[i]['presc'] =
- val.child[i].prescribing_number +
- val.child[i].prescribing_number_unit
- } else {
- val.child[i]['presc'] = ''
- }
-
- if (val.child[i].single_dose > 0) {
- val.child[i]['single'] =
- ' ' +
- ' 单次用量 ' +
- ' ' +
- val.child[i].single_dose +
- val.child[i].single_dose_unit
- } else {
- val.child[i]['single'] = ''
- }
- name =
- name +
- '▲' +
- val.child[i].advice_name +
- '' +
- val.child[i].advice_desc +
- val.child[i].drug_spec_unit +
- val.child[i].presc +
- val.child[i].single
- }
- return (
- val.advice_name +
- ' ' +
- advice_desc +
- ' ' +
- val.drug_spec_unit +
- prescribing_number +
- ' ' +
- single_dose +
- ' ' +
- ' ' +
- val.delivery_way +
- ' ' +
- val.execution_frequency +
- val.remark +
- name
- )
- } else {
- return (
- val.advice_name +
- ' ' +
- advice_desc +
- prescribing_number +
- ' ' +
- single_dose +
- ' ' +
- ' ' +
- val.delivery_way +
- ' ' +
- val.execution_frequency +
- val.remark
- )
- }
- },
- changePrescription(id) {
- console.log("id233223232323232323",id)
- if(id == 1){
- this.dialysisPrescription.displace_liqui_value = ""
- this.dialysisPrescription.displace_liqui_part = ""
- }
- const ParamsQuery = {}
- ParamsQuery['patient_id'] = this.$route.query.patient_id
- ParamsQuery['mode_id'] = id
- GetSolution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- console.log('切换数据', response.data.data.solution)
- this.$message.success('切换成功')
- if (response.data.data.solution != null) {
- for (const key in response.data.data.solution) {
- // 长期处方不为空
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
- this.dialysisPrescription[key] =
- response.data.data.solution[key]
- }
- }
- } else {
- if (response.data.data.prescription != null) {
- // 临时处方不为空
- for (const key in response.data.data.prescription) {
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
- this.dialysisPrescription[key] =
- response.data.data.prescription[key]
- }
- }
- } else if (response.data.data.system_prescription != null) {
- // 系统处方不为空
- for (const key in response.data.data.system_prescription) {
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
- this.dialysisPrescription[key] =
- response.data.data.system_prescription[key]
- }
- }
-
- } else {
- for (const key in this.dialysisPrescription) {
- // 临时处方为空
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
- this.dialysisPrescription[key] = ''
- }
- }
- this.dialysisPrescription.mode_id = id
- }
- }
- }
-
- if (
- this.dialysisPrescription.dialysis_duration_hour === '' ||
- this.dialysisPrescription.dialysis_duration_minute === ''
- ) {
- this.timeValue = ''
- this.time = '03:00'
- } else {
- this.timeValue =
- this.dialysisPrescription.dialysis_duration_hour +
- '小时' +
- this.dialysisPrescription.dialysis_duration_minute +
- '分钟'
- this.time =
- (this.dialysisPrescription.dialysis_duration_hour > 10
- ? this.dialysisPrescription.dialysis_duration_hour
- : '0' + this.dialysisPrescription.dialysis_duration_hour) +
- ':' +
- (this.dialysisPrescription.dialysis_duration_minute > 10
- ? this.dialysisPrescription.dialysis_duration_minute
- : '0' + this.dialysisPrescription.dialysis_duration_minute)
- }
- })
-
- if (
- id === 1 ||
- id === 3 ||
- id === 4 ||
- id === 6 ||
- id === 7 ||
- id === 8 ||
- id === 9 ||
- id === 10 ||
- id === 11 ||
- id === 13 ||
- id === 14 ||
- id === 15 ||
- id === 16 ||
- id === 19
- ) {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- } else {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- }
-
- },
- handlePatientInfo() {
- this.isVisibility = false
- this.msgtip_visibility = true
- },
- cancleMsg() {
- this.isVisibility = true
- this.msgtip_visibility = false
- },
- getPermission() {
- request
- .get('/api/func_per/get', {
- params: {
- create_url: '/api/dialysis/prescription?mode=1',
- modify_url: '/api/dialysis/prescription?mode=2',
- modify_other_url: '/api/dialysis/prescription?mode=3',
- module: 1
- }
- })
- .then(res => {
- // console.log(res)
- // console.log('predialysis.creater', this.pre.creater)
- // console.log('admin.id', this.$store.getters.xt_user.user.id)
- if (res.data.state == 0) {
- this.hasPermission = false
- } else if (res.data.state == 1) {
- if (this.pre.id != '' && this.pre.creater != 0) {
- // 有数据
- if (this.pre.creater == this.$store.getters.xt_user.user.id) {
- // 创建人是自己
- if (res.data.data.is_has_modify == false) {
- this.hasPermission = false
- this.showTxt = '你没有修改透析处方权限'
- }
- } else {
- // 创建人不是自己
- if (res.data.data.is_has_modify_other == false) {
- this.hasPermission = false
- this.showTxt = '你没有修改他人透析处方权限'
- }
- }
- } else if (this.pre.id == '' || this.pre.creater == 0) {
- if (res.data.data.is_has_create == false) {
- this.hasPermission = false
- this.showTxt = '你没有新增透析处方权限'
- }
- }
- }
- })
- },
- unique(arr) {
- const res = new Map()
- return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
- }
-
- },
-
- watch: {
- 'dialysisPrescription.dialysis_duration_hour': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
- },
- 'dialysisPrescription.dialysis_duration_minute': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
- this.dialysisPrescription.anticoagulant_weichi
- )
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- },
- 'dialysisPrescription.anticoagulant_shouji': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi
- )
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- 'dialysisPrescription.anticoagulant_weichi': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
- },
- 'prescription.id': {
- immediate: true,
- deep: true,
- handler(oldVal, newVal) {
- if (oldVal == newVal) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- }
- if (this.prescription.id > 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- } else if (this.prescription.id == 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- }
- }
- },
- 'solution.id': function() {
- if (this.solution.id > 0) {
- if (
- this.prescription != null &&
- typeof this.prescription.id !== 'undefined' &&
- this.prescription.id > 0
- ) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- } else if (
- this.solution != null &&
- typeof this.solution.id !== 'undefined' &&
- this.solution.id
- ) {
- for (const key in this.solution) {
- this.dialysisPrescription[key] = this.solution[key]
- }
-
- if (this.solution['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.solution['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.solution['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.solution['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.solution['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.solution['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.solution['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.solution['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.solution['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.solution['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.solution['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.solution['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.solution['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.solution['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.solution['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.solution['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.solution['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.solution['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.solution['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.solution['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
-
- }
- }
- },
- stockType: function() {
- console.log('stockType', this.stockType)
- var arr = []
- var arrTwo = []
- for (let i = 0; i < this.stockType.length; i++) {
- if (this.stockType[i].stock_attribute == 2) {
- arr.push(this.stockType[i])
- }
- if (this.stockType[i].stock_attribute == 3) {
- arrTwo.push(this.stockType[i])
- }
- }
- var dialyzator = []
- var irrigation = []
- for (let i = 0; i < arr.length; i++) {
- for (let j = 0; j < arr[i].GoodInfo.length; j++) {
- dialyzator.push(arr[i].GoodInfo[j])
- }
- }
- this.dialyzers = dialyzator
-
- for (let i = 0; i < arrTwo.length; i++) {
- for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
- irrigation.push(arrTwo[i].GoodInfo[j])
- }
- }
- this.irrigations = irrigation
- console.log('透析器', this.dialyzers)
- console.log('灌流器', this.irrigations)
- }
- },
- created() {
-
- this.illnessList = getDataConfig('hemodialysis', 'illness')
-
- this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
-
- this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
-
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- .el-checkbox,
- .el-checkbox__input {
- vertical-align: middle;
- }
-
- .newLine {
- display: flex;
- justify-content: space-between;
- height: 40px;
- line-height: 40px;
- border-bottom: 1px solid #ccc;
- color: #303133;
- }
-
- .warnTxt {
- text-align: center;
- margin: 0 auto;
- background: #faa331;
- max-width: 240px;
- padding: 10px 20px;
- border-radius: 4px;
- margin-bottom: 10px;
- color: #fff;
- }
- </style>
- <style lang="scss">
- .newDialog {
-
- .el-dialog__body {
- padding: 10px 20px 30px;
- }
-
- }
- </style>
|