dialysisPrescriptionDialog.vue 139KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750
  1. <template>
  2. <div>
  3. <el-dialog
  4. title="透析处方"
  5. :visible.sync="isVisibility"
  6. width="1010px"
  7. :modal-append-to-body="false"
  8. :append-to-body="true"
  9. class="newDialog"
  10. >
  11. <el-button
  12. style="position: absolute;left: 12%;top: 2%"
  13. @click="handlePatientInfo"
  14. >{{ patient.name }}
  15. </el-button
  16. >
  17. <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
  18. <el-form
  19. ref="dialysisPrescription"
  20. :model="dialysisPrescription"
  21. label-width="148px"
  22. >
  23. <el-row :gutter="24">
  24. <el-col :span="8" v-if="isShows('透析模式')">
  25. <el-form-item label="透析模式">
  26. <el-select
  27. v-model="dialysisPrescription.mode_id"
  28. @change="changePrescription(dialysisPrescription.mode_id)"
  29. >
  30. <el-option :key="0" label="请选择" :value="0"></el-option>
  31. <el-option
  32. v-for="(item, index) in treatment_mode"
  33. :label="item.name"
  34. :value="item.id"
  35. :key="index + 'q'"
  36. ></el-option>
  37. </el-select>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="8" v-if="isShows('透析时长')">
  41. <el-form-item label="透析时长(h): ">
  42. <el-input
  43. type="number"
  44. v-model="dialysisPrescription.dialysis_duration_hour"
  45. ></el-input>
  46. </el-form-item>
  47. </el-col>
  48. <el-col :span="8" v-if="isShows('透析时长')">
  49. <el-form-item label="透析时长(min): ">
  50. <el-input
  51. type="number"
  52. v-model="dialysisPrescription.dialysis_duration_minute"
  53. ></el-input>
  54. </el-form-item>
  55. </el-col>
  56. <!-- </el-row>
  57. <el-row :gutter="20"> -->
  58. <el-col :span="8" v-if="isShows('血流量')">
  59. <el-form-item label="血流量(ml/min):">
  60. <el-input
  61. type="number"
  62. v-model="dialysisPrescription.blood_flow_volume"
  63. ></el-input>
  64. </el-form-item>
  65. </el-col>
  66. <el-col :span="8"
  67. 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)">
  68. <el-form-item label="预冲量(ml):">
  69. <el-input
  70. type="number"
  71. v-model="dialysisPrescription.pre_impulse"
  72. ></el-input>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :span="8"
  76. 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">
  77. <el-form-item label="预冲量(L):">
  78. <el-input
  79. type="number"
  80. v-model="dialysisPrescription.pre_impulse"
  81. ></el-input>
  82. </el-form-item>
  83. </el-col>
  84. <el-col :span="8"
  85. 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.org_id == 9555 )">
  86. <el-form-item label="目标超滤量(ml):">
  87. <el-input
  88. type="number"
  89. v-model="dialysisPrescription.target_ultrafiltration"
  90. ></el-input>
  91. </el-form-item>
  92. </el-col>
  93. <el-col :span="8"
  94. 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.org_id != 9555 ">
  95. <el-form-item label="目标超滤量(L):">
  96. <el-input
  97. type="number"
  98. v-model="dialysisPrescription.target_ultrafiltration"
  99. ></el-input>
  100. </el-form-item>
  101. </el-col>
  102. <el-col :span="8" v-if="isShows('透析液配方')">
  103. <el-form-item label="透析液配方:">
  104. <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
  105. <el-select
  106. v-model="dialysisPrescription.dialysate_formulation"
  107. placeholder="请选择"
  108. >
  109. <el-option :key="0" label="请选择" :value="0"></el-option>
  110. <el-option
  111. v-for="(option, index) in dialysate_formulation_options"
  112. :key="index + 'w'"
  113. :label="option.name"
  114. :value="option.id"
  115. ></el-option>
  116. </el-select>
  117. </el-form-item>
  118. </el-col>
  119. <!-- </el-row>
  120. <el-row :gutter="20"> -->
  121. <el-col :span="8" v-if="isShows('抗凝剂')">
  122. <el-form-item label="抗凝剂:">
  123. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"
  124. @change="changeThisAnticoagulant">
  125. <el-option :key="0" label="请选择" :value="0"></el-option>
  126. <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素" :value="3"></el-option>
  127. <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name" :key="index + 'e'"
  128. :value="item.id"></el-option>
  129. </el-select>
  130. </el-form-item>
  131. </el-col>
  132. <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
  133. <el-form-item label="肝素钠(mg/h):">
  134. <el-input
  135. v-model="dialysisPrescription.heparin_sodium"
  136. ></el-input>
  137. </el-form-item>
  138. </el-col>
  139. <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10" >
  140. <el-form-item label="鱼精蛋白(mg/h):">
  141. <el-input
  142. v-model="dialysisPrescription.nucleoprotamine"
  143. ></el-input>
  144. </el-form-item>
  145. </el-col>
  146. <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  147. <el-form-item label="下机前推注鱼精蛋白(mg):">
  148. <el-input
  149. v-model="dialysisPrescription.push_the_protamine"
  150. ></el-input>
  151. </el-form-item>
  152. </el-col>
  153. <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
  154. <el-form-item label="无肝素备注:">
  155. <el-input
  156. v-model="dialysisPrescription.no_heparin_remarks"
  157. ></el-input>
  158. </el-form-item>
  159. </el-col>
  160. <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
  161. <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' :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
  162. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  163. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  164. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  165. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  166. </el-form-item>
  167. <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' :label="'首剂(mg) : '">
  168. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  169. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  170. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  171. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
  175. <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">
  176. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  177. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  178. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  179. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  180. </el-form-item>
  181. <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">
  182. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  183. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  184. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  185. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  186. </el-form-item>
  187. </el-col>
  188. <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
  189. <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' :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
  190. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  191. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  192. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  193. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  194. </el-form-item>
  195. <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' :label="'总量(mg) : '">
  196. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  197. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  198. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  199. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  200. </el-form-item>
  201. </el-col>
  202. <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)"
  203. v-show="zhiShow">
  204. <el-form-item label="置换量(ml):">
  205. <el-input
  206. type="number"
  207. v-model="dialysisPrescription.replacement_total"
  208. ></el-input>
  209. </el-form-item>
  210. </el-col>
  211. <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"
  212. v-show="zhiShow">
  213. <el-form-item label="置换量(L):">
  214. <el-input
  215. type="number"
  216. v-model="dialysisPrescription.replacement_total"
  217. ></el-input>
  218. </el-form-item>
  219. </el-col>
  220. <el-col
  221. :span="8"
  222. v-if="anticoagulant.gaimingcheng != -1 && isShows('钙名称')"
  223. >
  224. <el-form-item label="钙名称 : ">
  225. <el-input
  226. v-model="dialysisPrescription.anticoagulant_gaimingcheng"
  227. :disabled="anticoagulant.gaimingcheng == 1 ? false : true"
  228. placeholder="钙名称"
  229. ></el-input>
  230. </el-form-item>
  231. </el-col>
  232. <el-col
  233. :span="8"
  234. v-if="anticoagulant.gaijiliang != -1 && isShows('钙剂量')"
  235. >
  236. <el-form-item label="钙剂量(ml) : ">
  237. <el-input
  238. type="number"
  239. v-model="dialysisPrescription.anticoagulant_gaijiliang"
  240. :disabled="anticoagulant.gaijiliang == 1 ? false : true"
  241. placeholder="钙剂量"
  242. ></el-input>
  243. </el-form-item>
  244. </el-col>
  245. <el-col :span="8" v-if="isShows('钾')">
  246. <el-form-item label="钾(mmol/L): ">
  247. <el-input
  248. type="number"
  249. v-model="dialysisPrescription.kalium"
  250. ></el-input>
  251. </el-form-item>
  252. </el-col>
  253. <el-col :span="8" v-if="isShows('钠')">
  254. <el-form-item label="钠(mmol/L):">
  255. <el-input
  256. type="number"
  257. v-model="dialysisPrescription.sodium"
  258. ></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="8" v-if="isShows('钙')">
  262. <el-form-item label="钙(mmol/L):">
  263. <el-input
  264. type="number"
  265. v-model="dialysisPrescription.calcium"
  266. ></el-input>
  267. </el-form-item>
  268. </el-col>
  269. <el-col :span="8" v-if="isShows('碳酸氢盐')">
  270. <el-form-item label="碳酸氢盐(mmol/L):">
  271. <el-input
  272. type="number"
  273. v-model="dialysisPrescription.bicarbonate"
  274. ></el-input>
  275. </el-form-item>
  276. </el-col>
  277. <el-col :span="8" v-if="isShows('葡萄糖')">
  278. <el-form-item label="葡萄糖(mmol/L):">
  279. <el-input
  280. type="number"
  281. v-model="dialysisPrescription.glucose"
  282. ></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="8" v-if="isShows('透析液流量')">
  286. <el-form-item label="透析液流量(ml/min):">
  287. <el-input
  288. type="number"
  289. v-model="dialysisPrescription.dialysate_flow"
  290. ></el-input>
  291. </el-form-item>
  292. </el-col>
  293. <el-col :span="8" v-if="isShows('透析液温度')">
  294. <el-form-item label="透析液温度(°C):">
  295. <el-input
  296. type="number"
  297. v-model="dialysisPrescription.dialysate_temperature"
  298. ></el-input>
  299. </el-form-item>
  300. </el-col>
  301. <el-col :span="8" v-if="isShows('电导率')">
  302. <el-form-item label="电导率(mS/cm): ">
  303. <el-input
  304. type="number"
  305. v-model="dialysisPrescription.conductivity"
  306. ></el-input>
  307. </el-form-item>
  308. </el-col>
  309. <!-- <el-col :span="8" v-if="isShows('透析器/灌流器')">-->
  310. <!-- <el-form-item label="透析器/灌流器:">-->
  311. <!-- <el-input-->
  312. <!-- v-model="dialysisPrescription.dialyzer_perfusion_apparatus"-->
  313. <!-- ></el-input>-->
  314. <!-- </el-form-item>-->
  315. <!-- </el-col>-->
  316. <el-col :span="8" v-if="isShows('透析器/灌流器')">
  317. <el-form-item label="透析器/灌流器">
  318. <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
  319. <!--<el-select-->
  320. <!--v-model="dialysisPrescription.dialyzer_perfusion_apparatus"-->
  321. <!--placeholder="请选择"-->
  322. <!--style="width:100%;"-->
  323. <!--&gt;-->
  324. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  325. <!--<el-option-->
  326. <!--v-for="(item, index) in dialyzerPerfusionApparatus"-->
  327. <!--:label="item.name"-->
  328. <!--:key="index+'r'"-->
  329. <!--:value="item.id"-->
  330. <!--&gt;</el-option>-->
  331. <!--</el-select>-->
  332. </el-form-item>
  333. </el-col>
  334. <el-col :span="8" v-if="isShows('体液过多症状')">
  335. <el-form-item label="体液过多症状:">
  336. <el-select
  337. v-model="dialysisPrescription.body_fluid"
  338. placeholder="请选择"
  339. style="width:100%;"
  340. >
  341. <el-option :key="0" label="请选择" :value="0"></el-option>
  342. <el-option
  343. v-for="(item, index) in body_fluid_option"
  344. :label="item.name"
  345. :key="index + 't'"
  346. :value="item.id"
  347. ></el-option>
  348. </el-select>
  349. </el-form-item>
  350. </el-col>
  351. <!-- </el-row>
  352. <el-row :gutter="20" > -->
  353. <el-col :span="8" v-if="isShows('体液过多其他症状')">
  354. <el-form-item label="体液过多其他症状">
  355. <el-input
  356. v-model="dialysisPrescription.body_fluid_other"
  357. ></el-input>
  358. </el-form-item>
  359. </el-col>
  360. <el-col :span="8" v-if="isShows('透析前使用特殊药物')">
  361. <el-form-item label="透析前使用特殊药物">
  362. <el-select
  363. v-model="dialysisPrescription.special_medicine"
  364. placeholder="请选择"
  365. style="width:100%;"
  366. >
  367. <el-option :key="0" label="请选择" :value="0"></el-option>
  368. <el-option
  369. v-for="(item, index) in special_medicine_option"
  370. :label="item.name"
  371. :key="index + 'y'"
  372. :value="item.id"
  373. ></el-option>
  374. </el-select>
  375. </el-form-item>
  376. </el-col>
  377. <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
  378. <el-form-item label="透析前使用其他特殊药物">
  379. <el-input
  380. v-model="dialysisPrescription.special_medicine_other"
  381. ></el-input>
  382. </el-form-item>
  383. </el-col>
  384. <!-- </el-row>
  385. <el-row :gutter="20" > -->
  386. <el-col :span="8">
  387. <el-form-item
  388. label="置换液:"
  389. v-if="isShows('置换液')"
  390. v-show="huShow"
  391. >
  392. <el-select
  393. v-model="dialysisPrescription.displace_liqui_part"
  394. placeholder="请选择"
  395. >
  396. <el-option :key="0" label="请选择" :value="0"></el-option>
  397. <el-option
  398. v-for="(option, index) in displace_liqui_part_option"
  399. :key="index + 'u'"
  400. :label="option.name"
  401. :value="option.id"
  402. ></el-option>
  403. </el-select>
  404. </el-form-item>
  405. </el-col>
  406. <el-col :span="8" v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21)" v-show="totalShow">
  407. <el-form-item label="置换液总量(ml)">
  408. <el-input
  409. v-model="dialysisPrescription.displace_liqui_value"
  410. ></el-input>
  411. </el-form-item>
  412. </el-col>
  413. <el-col :span="8" v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21" v-show="totalShow">
  414. <el-form-item label="置换液总量(L)">
  415. <el-input
  416. v-model="dialysisPrescription.displace_liqui_value"
  417. ></el-input>
  418. </el-form-item>
  419. </el-col>
  420. <el-col :span="8" v-if="isShows('目标KT/V')">
  421. <el-form-item label="目标KT/V">
  422. <el-input v-model="dialysisPrescription.target_ktv"></el-input>
  423. </el-form-item>
  424. </el-col>
  425. <el-col :span="8" v-if="isShows('血管通路')">
  426. <el-form-item label="血管通路:">
  427. <el-select
  428. v-model="dialysisPrescription.blood_access"
  429. placeholder="请选择"
  430. >
  431. <el-option :key="0" label="请选择" :value="0"></el-option>
  432. <el-option
  433. v-for="(option, index) in blood_access_option"
  434. :key="index + 'i'"
  435. :label="option.name"
  436. :value="option.id"
  437. ></el-option>
  438. </el-select>
  439. </el-form-item>
  440. </el-col>
  441. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  442. <el-form-item label="抗凝提前停止(h): ">
  443. <el-input
  444. type="number"
  445. v-model="dialysisPrescription.anticoagulant_stop_time_hour"
  446. ></el-input>
  447. </el-form-item>
  448. </el-col>
  449. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  450. <el-form-item label="抗凝提前停止(min): ">
  451. <el-input
  452. type="number"
  453. v-model="dialysisPrescription.anticoagulant_stop_time_min"
  454. ></el-input>
  455. </el-form-item>
  456. </el-col>
  457. <el-col :span="8" v-if="isShows('抽血')">
  458. <el-form-item label="抽血:">
  459. <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
  460. </el-form-item>
  461. </el-col>
  462. <!-- </el-row>
  463. <el-row :gutter="20" > -->
  464. <!-- <el-col :span="8" v-if="isShows('实际超滤量')">-->
  465. <!-- <el-form-item label="实际超滤量(L)">-->
  466. <!-- <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>-->
  467. <!-- </el-form-item>-->
  468. <!-- </el-col>-->
  469. <!--透析耗材-->
  470. <!--<el-col-->
  471. <!--:span="8"-->
  472. <!--v-if="isShows('血液透析干粉') && config.is_open == 1"-->
  473. <!--&gt;-->
  474. <!--<el-form-item label="血液透析干粉:">-->
  475. <!--<el-select-->
  476. <!--v-model="dialysisPrescription.niprocart"-->
  477. <!--placeholder="请选择"-->
  478. <!--&gt;-->
  479. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  480. <!--<el-option-->
  481. <!--v-for="(option, index) in niprocart_info"-->
  482. <!--:key="index + 'p'"-->
  483. <!--:label="option.GoodInfo.specification_name"-->
  484. <!--:value="option.GoodInfo.id"-->
  485. <!--&gt;</el-option>-->
  486. <!--</el-select>-->
  487. <!--</el-form-item>-->
  488. <!--</el-col>-->
  489. <!--<el-col-->
  490. <!--:span="8"-->
  491. <!--v-if="isShows('一次性使用动静脉穿刺针') && config.is_open == 1"-->
  492. <!--&gt;-->
  493. <!--<el-form-item label="一次性使用动静脉穿刺针:">-->
  494. <!--<el-select-->
  495. <!--v-model="dialysisPrescription.jms"-->
  496. <!--placeholder="请选择"-->
  497. <!--&gt;-->
  498. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  499. <!--<el-option-->
  500. <!--v-for="(option, index) in jms_info"-->
  501. <!--:key="index + 'a'"-->
  502. <!--:label="option.GoodInfo.specification_name"-->
  503. <!--:value="option.GoodInfo.id"-->
  504. <!--&gt;</el-option>-->
  505. <!--</el-select>-->
  506. <!--</el-form-item>-->
  507. <!--</el-col>-->
  508. <!--<el-col-->
  509. <!--:span="8"-->
  510. <!--v-if="isShows('内瘘管翼状针') && config.is_open == 1"-->
  511. <!--&gt;-->
  512. <!--<el-form-item label="内瘘管翼状针:">-->
  513. <!--<el-select-->
  514. <!--v-model="dialysisPrescription.fistula_needle_set"-->
  515. <!--placeholder="请选择"-->
  516. <!--&gt;-->
  517. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  518. <!--<el-option-->
  519. <!--v-for="(option, index) in fistula_needle_set_info"-->
  520. <!--:key="index + 's'"-->
  521. <!--:label="option.GoodInfo.specification_name"-->
  522. <!--:value="option.GoodInfo.id"-->
  523. <!--&gt;</el-option>-->
  524. <!--</el-select>-->
  525. <!--</el-form-item>-->
  526. <!--</el-col>-->
  527. <!--<el-col-->
  528. <!--:span="8"-->
  529. <!--v-if="isShows('内瘘管翼状针16G') && config.is_open == 1"-->
  530. <!--&gt;-->
  531. <!--<el-form-item label="内瘘管翼状针16G:">-->
  532. <!--<el-select-->
  533. <!--v-model="dialysisPrescription.fistula_needle_set_16"-->
  534. <!--placeholder="请选择"-->
  535. <!--&gt;-->
  536. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  537. <!--<el-option-->
  538. <!--v-for="(option, index) in fistula_needle_set_16_info"-->
  539. <!--:key="index + 'd'"-->
  540. <!--:label="option.GoodInfo.specification_name"-->
  541. <!--:value="option.GoodInfo.id"-->
  542. <!--&gt;</el-option>-->
  543. <!--</el-select>-->
  544. <!--</el-form-item>-->
  545. <!--</el-col>-->
  546. <!--<el-col-->
  547. <!--:span="8"-->
  548. <!--v-if="isShows('一次性使用血液灌流器') && config.is_open == 1"-->
  549. <!--&gt;-->
  550. <!--<el-form-item label="一次性使用血液灌流器:">-->
  551. <!--<el-select-->
  552. <!--v-model="dialysisPrescription.hemoperfusion"-->
  553. <!--placeholder="请选择"-->
  554. <!--&gt;-->
  555. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  556. <!--<el-option-->
  557. <!--v-for="(option, index) in hemoperfusion_info"-->
  558. <!--:key="index + 'f'"-->
  559. <!--:label="option.GoodInfo.specification_name"-->
  560. <!--:value="option.GoodInfo.id"-->
  561. <!--&gt;</el-option>-->
  562. <!--</el-select>-->
  563. <!--</el-form-item>-->
  564. <!--</el-col>-->
  565. <!--<el-col-->
  566. <!--:span="8"-->
  567. <!--v-if="isShows('空心纤维血液透析器') && config.is_open == 1"-->
  568. <!--&gt;-->
  569. <!--<el-form-item label="空心纤维血液透析器:">-->
  570. <!--<el-select-->
  571. <!--v-model="dialysisPrescription.dialyser_sterilised"-->
  572. <!--placeholder="请选择"-->
  573. <!--&gt;-->
  574. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  575. <!--<el-option-->
  576. <!--v-for="(option, index) in dialyser_sterilised_info"-->
  577. <!--:key="index + 'g'"-->
  578. <!--:label="option.GoodInfo.specification_name"-->
  579. <!--:value="option.GoodInfo.id"-->
  580. <!--&gt;</el-option>-->
  581. <!--</el-select>-->
  582. <!--</el-form-item>-->
  583. <!--</el-col>-->
  584. <!--<el-col-->
  585. <!--:span="8"-->
  586. <!--v-if="isShows('中空纤维透析器') && config.is_open == 1"-->
  587. <!--&gt;-->
  588. <!--<el-form-item label="中空纤维透析器:">-->
  589. <!--<el-select-->
  590. <!--v-model="dialysisPrescription.filtryzer"-->
  591. <!--placeholder="请选择"-->
  592. <!--&gt;-->
  593. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  594. <!--<el-option-->
  595. <!--v-for="(option, index) in filtryzer_info"-->
  596. <!--:key="index + 'h'"-->
  597. <!--:label="option.GoodInfo.specification_name"-->
  598. <!--:value="option.GoodInfo.id"-->
  599. <!--&gt;</el-option>-->
  600. <!--</el-select>-->
  601. <!--</el-form-item>-->
  602. <!--</el-col>-->
  603. <!--<el-col :span="8" v-if="isShows('透析器') && config.is_open == 1">-->
  604. <!--<el-form-item label="透析器:">-->
  605. <!--<el-select-->
  606. <!--v-model="dialysisPrescription.dialyzers"-->
  607. <!--placeholder="请选择"-->
  608. <!--&gt;-->
  609. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  610. <!--<el-option-->
  611. <!--v-for="(option, index) in dialyzers_info"-->
  612. <!--:key="index + 1"-->
  613. <!--:label="option.GoodInfo.specification_name"-->
  614. <!--:value="option.GoodInfo.id"-->
  615. <!--&gt;</el-option>-->
  616. <!--</el-select>-->
  617. <!--</el-form-item>-->
  618. <!--</el-col>-->
  619. <!--<el-col :span="8" v-if="isShows('注射器') && config.is_open == 1">-->
  620. <!--<el-form-item label="注射器:">-->
  621. <!--<el-select-->
  622. <!--v-model="dialysisPrescription.injector"-->
  623. <!--placeholder="请选择"-->
  624. <!--&gt;-->
  625. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  626. <!--<el-option-->
  627. <!--v-for="(option, index) in injector_info"-->
  628. <!--:key="index + 'j'"-->
  629. <!--:label="option.GoodInfo.specification_name"-->
  630. <!--:value="option.GoodInfo.id"-->
  631. <!--&gt;</el-option>-->
  632. <!--</el-select>-->
  633. <!--</el-form-item>-->
  634. <!--</el-col>-->
  635. <!--<el-col-->
  636. <!--:span="8"-->
  637. <!--v-if="isShows('体外循环血路管') && config.is_open == 1"-->
  638. <!--&gt;-->
  639. <!--<el-form-item label="体外循环血路管:">-->
  640. <!--<el-select-->
  641. <!--v-model="dialysisPrescription.bloodlines"-->
  642. <!--placeholder="请选择"-->
  643. <!--&gt;-->
  644. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  645. <!--<el-option-->
  646. <!--v-for="(option, index) in bloodlines_info"-->
  647. <!--:key="index + 'k'"-->
  648. <!--:label="option.GoodInfo.specification_name"-->
  649. <!--:value="option.GoodInfo.id"-->
  650. <!--&gt;</el-option>-->
  651. <!--</el-select>-->
  652. <!--</el-form-item>-->
  653. <!--</el-col>-->
  654. <!--<el-col-->
  655. <!--:span="8"-->
  656. <!--v-if="isShows('血液净化补液管路(置换管)') && config.is_open == 1"-->
  657. <!--&gt;-->
  658. <!--<el-form-item label="血液净化补液管路(置换管):">-->
  659. <!--<el-select-->
  660. <!--v-model="dialysisPrescription.tubing_hemodialysis"-->
  661. <!--placeholder="请选择"-->
  662. <!--&gt;-->
  663. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  664. <!--<el-option-->
  665. <!--v-for="(option, index) in tubingHemodialysis_info"-->
  666. <!--:key="index + 'x'"-->
  667. <!--:label="option.GoodInfo.specification_name"-->
  668. <!--:value="option.GoodInfo.id"-->
  669. <!--&gt;</el-option>-->
  670. <!--</el-select>-->
  671. <!--</el-form-item>-->
  672. <!--</el-col>-->
  673. <!--<el-col :span="8" v-if="isShows('护理包') && config.is_open == 1">-->
  674. <!--<el-form-item label="护理包:">-->
  675. <!--<el-select-->
  676. <!--v-model="dialysisPrescription.package"-->
  677. <!--placeholder="请选择"-->
  678. <!--&gt;-->
  679. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  680. <!--<el-option-->
  681. <!--v-for="(option, index) in safe_package_info"-->
  682. <!--:key="index + 'z'"-->
  683. <!--:label="option.GoodInfo.specification_name"-->
  684. <!--:value="option.GoodInfo.id"-->
  685. <!--&gt;</el-option>-->
  686. <!--</el-select>-->
  687. <!--</el-form-item>-->
  688. <!--</el-col>-->
  689. <!--<el-col :span="8" v-if="isShows('A液') && config.is_open == 1">-->
  690. <!--<el-form-item label="A液:">-->
  691. <!--<el-select-->
  692. <!--v-model="dialysisPrescription.a_liquid"-->
  693. <!--placeholder="请选择"-->
  694. <!--&gt;-->
  695. <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
  696. <!--<el-option-->
  697. <!--v-for="(option, index) in aliquid_info"-->
  698. <!--:key="index + 'c'"-->
  699. <!--:label="option.GoodInfo.specification_name"-->
  700. <!--:value="option.GoodInfo.id"-->
  701. <!--&gt;</el-option>-->
  702. <!--</el-select>-->
  703. <!--</el-form-item>-->
  704. <!--</el-col>-->
  705. </el-row>
  706. <el-row :gutter="20">
  707. <el-col :span="24">
  708. <el-form-item label="备注: ">
  709. <el-input
  710. type="textarea"
  711. v-model="dialysisPrescription.remark"
  712. :rows="5"
  713. ></el-input>
  714. </el-form-item>
  715. </el-col>
  716. </el-row>
  717. </el-form>
  718. <span slot="footer" class="dialog-footer">
  719. <el-button @click="handleCancle">取 消</el-button>
  720. <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
  721. <el-button type="primary" @click="handleCommit">保 存</el-button>
  722. <el-button type="primary" @click="handleSolution"
  723. >保存为长期处方</el-button
  724. >
  725. </span>
  726. </el-dialog>
  727. <el-dialog
  728. title="长期医嘱推送"
  729. :visible.sync="isShowRemindAdvice"
  730. width="1010px"
  731. :modal-append-to-body="false"
  732. :append-to-body="true"
  733. >
  734. <div style='display:flex;align-items:center;'>
  735. <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
  736. <el-date-picker
  737. type="datetime"
  738. format="yyyy-MM-dd HH:mm"
  739. value-format="yyyy-MM-dd HH:mm"
  740. placeholder="选择时间"
  741. v-model="start_time"
  742. ></el-date-picker>
  743. <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
  744. </div>
  745. <el-checkbox-group v-model="checkedCities">
  746. <el-checkbox
  747. style="display: flex;align-items: center"
  748. v-for="(advice, index) in targetAdvices"
  749. :label="advice.id"
  750. :key="index+'q'"
  751. :value="advice.id"
  752. :name="advice.id"
  753. >
  754. <div style="padding-top: 10px;padding-left: 10px">
  755. 开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}
  756. </div>
  757. <br/>
  758. <div style="padding-left: 10px">
  759. 开嘱时间&nbsp;{{ getTime(advice.created_time) }}
  760. </div>
  761. <br/>
  762. <div style="padding-bottom: 10px;padding-left: 10px">
  763. 医嘱内容&nbsp;{{ getContent(advice) }}
  764. </div>
  765. <div
  766. style="padding-bottom: 10px;padding-left: 10px"
  767. v-if="advice.frequency_type == 1"
  768. >
  769. 推送频率 每次必推
  770. </div>
  771. <div
  772. style="padding-bottom: 10px;padding-left: 10px"
  773. v-if="advice.frequency_type == 2"
  774. >
  775. 推送频率&nbsp;{{ advice.day_count }}天/次
  776. </div>
  777. <div
  778. style="padding-bottom: 10px;padding-left: 10px"
  779. v-if="advice.frequency_type == 3"
  780. >
  781. 推送频率&nbsp;每周{{ advice.week_day }}
  782. </div>
  783. </el-checkbox>
  784. </el-checkbox-group>
  785. <span slot="footer" class="dialog-footer">
  786. <el-button @click="handleAdviceCancle">取 消</el-button>
  787. <el-button type="primary" @click="handleAdviceCommit">保 存</el-button>
  788. </span>
  789. </el-dialog>
  790. <el-dialog
  791. :title="patient.name"
  792. :visible.sync="msgtip_visibility"
  793. :close-on-click-modal="false"
  794. :close-on-press-escape="false"
  795. :show-close="false"
  796. width="30%"
  797. >
  798. <div class="newLine">
  799. <span>本次透析日期</span>
  800. <span>{{ dialysis_date }}</span>
  801. </div>
  802. <div class="newLine">
  803. <span>透前称重(kg)</span>
  804. <span>{{ getBeforeWeight(predialysis) }}</span>
  805. </div>
  806. <div class="newLine">
  807. <span>干体重(kg)</span>
  808. <span>{{ getDryWeight() }}</span>
  809. </div>
  810. <div class="newLine">
  811. <span>衣物重(kg)</span>
  812. <span>{{ predialysis.additional_weight }}</span>
  813. </div>
  814. <div class="newLine">
  815. <span>体重增加(kg)</span>
  816. <span>{{ add_weight }}</span>
  817. </div>
  818. <div class="newLine">
  819. <span>透后称重(kg)</span>
  820. <span>{{ getAfterWeight(record) }}</span>
  821. </div>
  822. <div class="newLine">
  823. <span>体重减少(kg)</span>
  824. <span>{{ record.weight_loss }}</span>
  825. </div>
  826. <div class="newLine">
  827. <span>上次透后称重(kg)</span>
  828. <span>{{ getLastAfterWeight(last_record) }}</span>
  829. </div>
  830. <span slot="footer" class="dialog-footer">
  831. <el-button @click="cancleMsg()">取 消</el-button>
  832. <el-button type="primary" @click="cancleMsg()">确 定</el-button>
  833. </span>
  834. </el-dialog>
  835. <multi-select-box
  836. :propsForm="InnerDialogProps"
  837. v-on:dialog-comfirm="innerDialogComfirm"
  838. v-on:dialog-cancle="innerDialogCancle"
  839. ></multi-select-box>
  840. </div>
  841. </template>
  842. <script>
  843. import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution } from '@/api/dialysis'
  844. import { getDataConfig } from '@/utils/data'
  845. import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
  846. import store from '@/store'
  847. import MsgTip from './MsgTip'
  848. import request from '@/utils/request'
  849. import multiSelectBox from './MultiSelectBox'
  850. export default {
  851. name: 'dialysisPrescriptionDialog',
  852. components: { MsgTip,multiSelectBox },
  853. props: {
  854. schedual: {
  855. type: Object
  856. },
  857. is_open: {
  858. type: Number,
  859. default: () => {
  860. return 0
  861. }
  862. },
  863. waitUploadAdvices: {
  864. type: Array,
  865. default: () => {
  866. return []
  867. }
  868. },
  869. targetAdvices: {
  870. type: Array,
  871. default: () => {
  872. return []
  873. }
  874. },
  875. admin_users: {
  876. type: Array,
  877. default: () => {
  878. return []
  879. }
  880. },
  881. niprocart_info: {
  882. type: Array,
  883. default: () => {
  884. return []
  885. }
  886. },
  887. jms_info: {
  888. type: Array,
  889. default: () => {
  890. return []
  891. }
  892. },
  893. fistula_needle_set_info: {
  894. type: Array,
  895. default: () => {
  896. return []
  897. }
  898. },
  899. fistula_needle_set_16_info: {
  900. type: Array,
  901. default: () => {
  902. return []
  903. }
  904. },
  905. hemoperfusion_info: {
  906. type: Array,
  907. default: () => {
  908. return []
  909. }
  910. },
  911. dialyser_sterilised_info: {
  912. type: Array,
  913. default: () => {
  914. return []
  915. }
  916. },
  917. filtryzer_info: {
  918. type: Array,
  919. default: () => {
  920. return []
  921. }
  922. },
  923. dialyzers_info: {
  924. type: Array,
  925. default: () => {
  926. return []
  927. }
  928. },
  929. injector_info: {
  930. type: Array,
  931. default: () => {
  932. return []
  933. }
  934. },
  935. bloodlines_info: {
  936. type: Array,
  937. default: () => {
  938. return []
  939. }
  940. },
  941. tubingHemodialysis_info: {
  942. type: Array,
  943. default: () => {
  944. return []
  945. }
  946. },
  947. safe_package_info: {
  948. type: Array,
  949. default: () => {
  950. return []
  951. }
  952. },
  953. aliquid_info: {
  954. type: Array,
  955. default: () => {
  956. return []
  957. }
  958. },
  959. config: {
  960. type: Object,
  961. default: () => {
  962. return { id: 0 }
  963. }
  964. },
  965. prescription: {
  966. // 透析处方
  967. type: Object,
  968. default: () => {
  969. return { id: 0 }
  970. }
  971. },
  972. solution: {
  973. // 长期处方
  974. type: Object,
  975. default: () => {
  976. return { id: 0 }
  977. }
  978. },
  979. dialysis_order: {
  980. // 透析记录
  981. type: Object,
  982. default: () => {
  983. return { id: 0 }
  984. }
  985. },
  986. patient: {
  987. // 患者信息
  988. type: Object,
  989. default: () => {
  990. return { id: 0 }
  991. }
  992. },
  993. devices: {
  994. type: Array,
  995. default: function() {
  996. return new Array()
  997. }
  998. },
  999. predialysis: {
  1000. type: Object,
  1001. default: () => {
  1002. return { id: 0 }
  1003. }
  1004. },
  1005. last_predialysis: {
  1006. type: Object,
  1007. default: () => {
  1008. return { id: 0 }
  1009. }
  1010. },
  1011. record: {
  1012. type: Object,
  1013. default: () => {
  1014. return { id: 0 }
  1015. }
  1016. },
  1017. last_record: {
  1018. type: Object,
  1019. default: () => {
  1020. return { id: 0 }
  1021. }
  1022. },
  1023. dry_weight: {
  1024. type: Object,
  1025. default: () => {
  1026. return { id: 0 }
  1027. }
  1028. },
  1029. last_prescription: {
  1030. type: Object,
  1031. default: () => {
  1032. return { id: 0 }
  1033. }
  1034. },
  1035. scheudle_mode:Number
  1036. },
  1037. computed: {
  1038. dialysis_date: function() {
  1039. if (this.$route.query.date) {
  1040. return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
  1041. } else {
  1042. return this.record_date
  1043. }
  1044. }
  1045. },
  1046. data() {
  1047. return {
  1048. InnerDialogProps: {
  1049. values: [],
  1050. visibility: false,
  1051. isShowTextArea: true,
  1052. customContent: '',
  1053. titles: '',
  1054. type: '' // 不同弹框类型,用来匹配数据
  1055. },
  1056. advice_start_time: '',
  1057. showTxt: '',
  1058. start_time:'',
  1059. hasPermission: true,
  1060. zhiShow: false,
  1061. totalShow: false,
  1062. huShow: false,
  1063. showName: '',
  1064. isShowRemindAdvice: false,
  1065. checkedCities: [],
  1066. isVisibility: false,
  1067. isShowTime: false,
  1068. isClose: false,
  1069. isShow: false,
  1070. record_date: '',
  1071. time: '',
  1072. treatment_mode: [],
  1073. timeValue: '',
  1074. deviceList: [],
  1075. replacement_ways: [],
  1076. anticoagulantsConfit: {},
  1077. dialysate_formulation_options: [],
  1078. add_weight: 0,
  1079. body_fluid_option: [],
  1080. special_medicine_option: [],
  1081. displace_liqui_part_option: [],
  1082. blood_access_option: [],
  1083. is_pre: 0,
  1084. msgtip_visibility: false,
  1085. dialysisPrescription: {
  1086. replacement_total: '',
  1087. mode_id: '',
  1088. dialysis_duration: '',
  1089. dialysis_duration_hour: '',
  1090. dialysis_duration_minute: '',
  1091. mode_name: '',
  1092. dialyzer: '',
  1093. perfusion_apparatus: '',
  1094. blood_flow_volume: '',
  1095. dewater_amount: '',
  1096. displace_liqui: '',
  1097. replacement_way: '',
  1098. anticoagulant: '',
  1099. anticoagulant_shouji: '',
  1100. anticoagulant_weichi: '',
  1101. anticoagulant_zongliang: '',
  1102. anticoagulant_gaimingcheng: '',
  1103. anticoagulant_gaijiliang: '',
  1104. kalium: '',
  1105. sodium: '',
  1106. calcium: '',
  1107. bicarbonate: '',
  1108. glucose: '',
  1109. dry_weight: '',
  1110. dialysate_flow: '',
  1111. dialysate_temperature: '',
  1112. target_ultrafiltration: '',
  1113. dialysate_formulation: '',
  1114. conductivity: '',
  1115. doctor: '',
  1116. remark: '',
  1117. dialyzer_perfusion_apparatus: '',
  1118. body_fluid: '',
  1119. body_fluid_other: '',
  1120. special_medicine: '',
  1121. special_medicine_other: '',
  1122. displace_liqui_part: '',
  1123. displace_liqui_value: '',
  1124. ultrafiltration: '',
  1125. blood_access: '',
  1126. niprocart: '',
  1127. jms: '',
  1128. fistula_needle_set: '',
  1129. fistula_needle_set_16: '',
  1130. hemoperfusion: '',
  1131. dialyser_sterilised: '',
  1132. filtryzer: '',
  1133. target_ktv: '',
  1134. dialyzers: '',
  1135. injector: '',
  1136. bloodlines: '',
  1137. tubing_hemodialysis: '',
  1138. package: '',
  1139. a_liquid: '',
  1140. no_anticoagulant_shouji: '0',
  1141. no_anticoagulant_weichi: '0',
  1142. no_anticoagulant_zongliang: '0',
  1143. creater: 0,
  1144. pre_impulse:0, //预冲量
  1145. anticoagulant_stop_time_hour:"",
  1146. anticoagulant_stop_time_min:"",
  1147. push_the_protamine:"",//下机前推注鱼精蛋白
  1148. heparin_sodium:"", //肝素钠
  1149. nucleoprotamine:"",//鱼精蛋白
  1150. no_heparin_remarks:"",
  1151. blood:"",
  1152. },
  1153. anticoagulant: {
  1154. id: 0,
  1155. name: '',
  1156. type: 1,
  1157. shouji: 1,
  1158. weichi: 1,
  1159. zongliang: 1,
  1160. gaimingcheng: -1,
  1161. gaijiliang: -1,
  1162. shouji_unit: 'mg',
  1163. weichi_unit: 'mg/h',
  1164. zongliang_unit: 'mg',
  1165. gaimingcheng_unit: '',
  1166. gaijiliang_unit: ''
  1167. },
  1168. doctorAdvices: [],
  1169. dialyzerPerfusionApparatus: [],
  1170. bloods:[]
  1171. }
  1172. },
  1173. methods: {
  1174. changeTime:function(val){
  1175. this.advice_start_time = val
  1176. },
  1177. showInnerDialog: function(val) {
  1178. this.InnerDialogProps.visibility = true
  1179. switch (val) {
  1180. case '5': // 透析器/灌流器
  1181. var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
  1182. var newArr = arr.split(",")
  1183. console.log("透析器/灌流器",newArr)
  1184. var Arr = []
  1185. for(let i=0;i<newArr.length;i++){
  1186. for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
  1187. var newarr = newArr[i].toUpperCase()
  1188. var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
  1189. if(newarr == dialy){
  1190. Arr.push(this.dialyzerPerfusionApparatus[j].name)
  1191. }
  1192. }
  1193. }
  1194. var arrtwo = Arr.join(",")
  1195. console.log("Arr",arrtwo)
  1196. this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
  1197. this.InnerDialogProps.titles = '透析器/灌流器'
  1198. this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
  1199. this.InnerDialogProps.selected = arrtwo
  1200. this.InnerDialogProps.isShowTextArea = false
  1201. break
  1202. case '6': // 透析器/灌流器
  1203. this.InnerDialogProps.values = this.bloods
  1204. this.InnerDialogProps.titles = '抽血'
  1205. this.InnerDialogProps.type = 'blood'
  1206. this.InnerDialogProps.selected = this.dialysisPrescription.blood
  1207. this.InnerDialogProps.isShowTextArea = false
  1208. // if(this.dialysisPrescription.blood !="" || dialysisPrescription.blood !=undefined ){
  1209. // var arr = this.dialysisPrescription.blood
  1210. // var newArr = arr.split(",")
  1211. // console.log("抽血",newArr)
  1212. // var Arr = []
  1213. // for(let i=0;i<newArr.length;i++){
  1214. // for(let j=0;j<this.bloods.length;j++){
  1215. // var newarr = newArr[i].toUpperCase()
  1216. // var dialy = this.bloods[j].name.toUpperCase()
  1217. // if(newarr == dialy){
  1218. // Arr.push(this.bloods[j].name)
  1219. // }
  1220. // }
  1221. // }
  1222. // var arrtwo = Arr.join(",")
  1223. // console.log("Arr",arrtwo)
  1224. // this.InnerDialogProps.values = this.bloods
  1225. // this.InnerDialogProps.titles = '抽血'
  1226. // this.InnerDialogProps.type = 'blood'
  1227. // this.InnerDialogProps.selected = arrtwo
  1228. // this.InnerDialogProps.isShowTextArea = false
  1229. // break
  1230. // }
  1231. }
  1232. },
  1233. innerDialogComfirm: function(val) {
  1234. this.InnerDialogProps.visibility = false
  1235. switch (val.type) {
  1236. case 'dialyzer_perfusion_apparatus':
  1237. this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
  1238. break
  1239. case 'blood':
  1240. this.dialysisPrescription.blood = val.value.join(',')
  1241. break
  1242. }
  1243. },
  1244. innerDialogCancle: function() {
  1245. this.InnerDialogProps.visibility = false
  1246. },
  1247. getDryWeight() {
  1248. if (this.dry_weight != null && this.dry_weight.id > 0) {
  1249. return this.dry_weight.dry_weight
  1250. } else {
  1251. if (this.last_predialysis != null && this.last_predialysis.id > 0) {
  1252. return this.last_predialysis.dry_weight
  1253. } else {
  1254. return ''
  1255. }
  1256. }
  1257. },
  1258. getLastAfterWeight(record) {
  1259. if (record != null && record.id > 0) {
  1260. if (record.weight_after > 0) {
  1261. let additional_weight = 0
  1262. if (this.predialysis.additional_weight != undefined) {
  1263. additional_weight = this.predialysis.additional_weight
  1264. }
  1265. return parseFloat(record.weight_after - additional_weight).toFixed(1)
  1266. } else {
  1267. return ''
  1268. }
  1269. }
  1270. },
  1271. getBeforeWeight(predialysis) {
  1272. if (predialysis.id > 0) {
  1273. if (predialysis.weight_before > 0) {
  1274. return predialysis.weight_before - predialysis.additional_weight
  1275. } else {
  1276. return ''
  1277. }
  1278. }
  1279. },
  1280. getAfterWeight(record) {
  1281. if (record.id > 0) {
  1282. if (record.weight_after > 0) {
  1283. return record.weight_after - this.predialysis.additional_weight
  1284. } else {
  1285. return ''
  1286. }
  1287. }
  1288. },
  1289. setLastRecord: function(schedual,lastAssessmentAfterDislysis,lastPredialysisEvaluation,lastDialysisPrescribe,lastDryWeightDislysis,system_prescribe) {
  1290. this.treatment_mode = this.$store.getters.treatment_mode
  1291. // console.log("99999",this.treatment_mode)
  1292. this.perfusion_apparatus = getDataConfig(
  1293. 'hemodialysis',
  1294. 'perfusion_apparatus'
  1295. )
  1296. this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
  1297. this.dialysate_formulation_options = getDataConfig(
  1298. 'hemodialysis',
  1299. 'dialysate_formulation'
  1300. )
  1301. // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1302. var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
  1303. // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
  1304. // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
  1305. // }
  1306. // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
  1307. // const arr = []
  1308. // anticoagulantsConfit.map((item, index) => {
  1309. // const objChild = { ...item }
  1310. // arr.push(objChild)
  1311. // })
  1312. // var arrthree = {}
  1313. // arrthree = { ...arr }
  1314. // console.log('arrthree', arrthree)
  1315. const arrFour = []
  1316. Object.keys(anticoagulantsConfitOne).map((item, index) => {
  1317. if (index != 2) {
  1318. arrFour.push(anticoagulantsConfitOne[item])
  1319. }
  1320. })
  1321. this.anticoagulantsConfit = arrFour
  1322. this.dialysisList = this.devices
  1323. this.body_fluid_option = this.$store.getters.body_fluid
  1324. this.special_medicine_option = this.$store.getters.special_medicine
  1325. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  1326. // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
  1327. this.blood_access_option = getDataConfig(
  1328. 'hemodialysis',
  1329. 'vascular_access_desc'
  1330. )
  1331. // console.log('血管通路', this.blood_access_option)
  1332. this.dialyzerPerfusionApparatus = getDataConfig(
  1333. 'hemodialysis',
  1334. 'dialyzer_perfusion_apparatus'
  1335. )
  1336. this.bloods = getDataConfig(
  1337. 'hemodialysis',
  1338. 'blood'
  1339. )
  1340. console.log("抽血-----",this.bloods)
  1341. // dialyzerPerfusionApparatus.map(item => {
  1342. // item.name = item.name.toUpperCase()
  1343. // })
  1344. // //去重
  1345. // var arr = this.unique(dialyzerPerfusionApparatus)
  1346. // this.dialyzerPerfusionApparatus = arr
  1347. // console.log('灌流器', arr)
  1348. if (this.$route.query && this.$route.query.date) {
  1349. var date = this.$route.query && this.$route.query.date
  1350. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  1351. } else {
  1352. var date = schedual.schedule_date
  1353. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  1354. }
  1355. if (this.prescription != null && typeof this.prescription.id !== 'undefined' &&this.prescription.id > 0) {
  1356. for (const key in this.prescription) {
  1357. this.dialysisPrescription[key] = this.prescription[key]
  1358. }
  1359. } else if (this.solution != null &&typeof this.solution.id !== 'undefined' &&this.solution.id > 0) {
  1360. for (const key in this.solution) {
  1361. if (key != 'target_ultrafiltration') {
  1362. this.dialysisPrescription[key] = this.solution[key]
  1363. }
  1364. }
  1365. } else if (lastDialysisPrescribe != null &&typeof lastDialysisPrescribe.id !== 'undefined' &&lastDialysisPrescribe.id > 0) {
  1366. for (const key in lastDialysisPrescribe) {
  1367. if (key != 'target_ultrafiltration') {
  1368. this.dialysisPrescription[key] = lastDialysisPrescribe[key]
  1369. }
  1370. }
  1371. } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' &&system_prescribe.id > 0) {
  1372. for (const key in system_prescribe) {
  1373. if (key != 'target_ultrafiltration') {
  1374. this.dialysisPrescription[key] = system_prescribe[key]
  1375. }
  1376. }
  1377. } else {
  1378. if (schedual.mode_id == 2 ||schedual.mode_id == 5 ||schedual.mode_id == 12) {
  1379. this.zhiShow = true
  1380. this.huShow = true
  1381. this.totalShow = true
  1382. } else {
  1383. this.zhiShow = false
  1384. this.huShow = false
  1385. this.totalShow = false
  1386. }
  1387. // this.dialysisPrescription.mode_id = schedual.mode_id
  1388. }
  1389. var thismode = parseInt(this.dialysisPrescription.anticoagulant)
  1390. if (isNaN(thismode) || thismode <= 0) {
  1391. return false
  1392. }
  1393. if (
  1394. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  1395. this.anticoagulantsConfit[thismode] == null
  1396. ) {
  1397. return false
  1398. }
  1399. this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
  1400. },
  1401. menuMsgTip: function() {
  1402. this.msgtip_visibility = false
  1403. this.isVisibility = true
  1404. },
  1405. handleAdviceCommit() {
  1406. //
  1407. let results = []
  1408. for (let i = 0; i < this.targetAdvices.length; i++) {
  1409. for (let a = 0; a < this.checkedCities.length; a++) {
  1410. if (this.targetAdvices[i].id == this.checkedCities[a]) {
  1411. results.push(this.targetAdvices[i])
  1412. }
  1413. }
  1414. }
  1415. var obj5 = {}
  1416. results = results.reduce((cur, next) => {
  1417. obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
  1418. return cur
  1419. }, [])
  1420. var date = new Date()
  1421. var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  1422. var minute =
  1423. date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  1424. if (results.length > 0) {
  1425. if (this.is_pre == 1) {
  1426. if (this.patient.id <= 0) {
  1427. this.$message.error('没有选择患者')
  1428. this.loading = false
  1429. return
  1430. }
  1431. var arr = this.dialysisPrescription
  1432. // console.log('arr', arr)
  1433. const ParamsQuery = arr
  1434. // console.log('医嘱推送2', ParamsQuery)
  1435. ParamsQuery['patient'] = this.patient.id
  1436. ParamsQuery['record_date'] = this.record_date
  1437. if (this.prescription.creater <= 0) {
  1438. ParamsQuery['mode'] = '1'
  1439. } else {
  1440. ParamsQuery['mode'] = '2'
  1441. if (
  1442. this.$store.getters.xt_user.user.id !=
  1443. this.dialysisPrescription.creater
  1444. ) {
  1445. ParamsQuery['mode'] = '3'
  1446. }
  1447. }
  1448. postPrescription(ParamsQuery).then(response => {
  1449. if (response.data.state == 0) {
  1450. this.$message.error(response.data.msg)
  1451. return false
  1452. } else {
  1453. this.$notify({
  1454. title: '成功',
  1455. message: '提交成功',
  1456. type: 'success',
  1457. duration: 2000
  1458. })
  1459. var date = new Date()
  1460. // console.log(this.start_time)
  1461. const params = {
  1462. advices: results,
  1463. advice_date: this.start_time.split(" ")[0],
  1464. advice_doctor: results[0].advice_doctor,
  1465. advice_type: results[0].advice_type,
  1466. parent_id: this.patient_id,
  1467. start_time:this.start_time,
  1468. remark: ''
  1469. }
  1470. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  1471. rs => {
  1472. var resp = rs.data
  1473. if (resp.state == 1) {
  1474. this.doctorAdvices = resp.data.advices
  1475. this.$emit('advice')
  1476. } else {
  1477. }
  1478. }
  1479. )
  1480. const prescription_resp = response.data.data.prescription
  1481. var prescription = this.prescription
  1482. for (var index in prescription_resp) {
  1483. // prescription[index] = prescription_resp[index];
  1484. this.$set(prescription, index, prescription_resp[index])
  1485. }
  1486. this.hide()
  1487. }
  1488. })
  1489. } else if (this.is_pre == 2) {
  1490. if (this.patient.id <= 0) {
  1491. this.$message.error('没有选择患者')
  1492. this.loading = false
  1493. return
  1494. }
  1495. var arr = this.dialysisPrescription
  1496. // console.log('arr', arr)
  1497. const ParamsQuery = arr
  1498. // console.log('医嘱推送3', ParamsQuery)
  1499. ParamsQuery['patient'] = this.patient.id
  1500. ParamsQuery['record_date'] = this.record_date
  1501. ParamsQuery['mode'] = 1
  1502. postSoulution(ParamsQuery).then(response => {
  1503. if (response.data.state == 0) {
  1504. this.$message.error(response.data.msg)
  1505. return false
  1506. } else {
  1507. this.$notify({
  1508. title: '成功',
  1509. message: '提交成功',
  1510. type: 'success',
  1511. duration: 2000
  1512. })
  1513. // console.log(hour + ':' + minute)
  1514. var date = new Date()
  1515. var hour =
  1516. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  1517. var minute =
  1518. date.getMinutes() < 10
  1519. ? '0' + date.getMinutes()
  1520. : date.getMinutes()
  1521. const params = {
  1522. advices: results,
  1523. advice_date: this.start_time.split(" ")[0],
  1524. advice_doctor: results[0].advice_doctor,
  1525. advice_type: results[0].advice_type,
  1526. parent_id: this.patient_id,
  1527. start_time:this.start_time,
  1528. remark: '',
  1529. }
  1530. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  1531. rs => {
  1532. var resp = rs.data
  1533. if (resp.state == 1) {
  1534. // this.doctorAdvices = resp.data.advices
  1535. this.$emit('advice')
  1536. } else {
  1537. }
  1538. }
  1539. )
  1540. const prescription_resp = response.data.data.prescription
  1541. const solution_resp = response.data.data.solution
  1542. var prescription = this.prescription
  1543. var solution = this.solution
  1544. for (var index in prescription_resp) {
  1545. // prescription[index] = prescription_resp[index];
  1546. this.$set(prescription, index, prescription_resp[index])
  1547. }
  1548. for (var index in solution_resp) {
  1549. // solution[index] = solution_resp[index];
  1550. this.$set(solution, index, solution_resp[index])
  1551. }
  1552. this.hide()
  1553. }
  1554. })
  1555. }
  1556. } else {
  1557. if (this.is_pre == 1) {
  1558. if (this.patient.id <= 0) {
  1559. this.$message.error('没有选择患者')
  1560. this.loading = false
  1561. return
  1562. }
  1563. var arr = this.dialysisPrescription
  1564. const ParamsQuery = arr
  1565. // console.log('医嘱推送4', ParamsQuery)
  1566. ParamsQuery['patient'] = this.patient.id
  1567. ParamsQuery['record_date'] = this.record_date
  1568. // console.log(this.prescription)
  1569. let mode = ''
  1570. if (this.prescription.creater <= 0) {
  1571. mode = 1
  1572. } else {
  1573. mode = 2
  1574. }
  1575. ParamsQuery['mode'] = mode
  1576. // console.log("paramsquery",ParamsQuery)
  1577. postPrescription(ParamsQuery).then(response => {
  1578. if (response.data.state == 0) {
  1579. this.$message.error(response.data.msg)
  1580. return false
  1581. } else {
  1582. this.$notify({
  1583. title: '成功',
  1584. message: '提交成功',
  1585. type: 'success',
  1586. duration: 2000
  1587. })
  1588. const prescription_resp = response.data.data.prescription
  1589. var prescription = this.prescription
  1590. for (var index in prescription_resp) {
  1591. // prescription[index] = prescription_resp[index];
  1592. this.$set(prescription, index, prescription_resp[index])
  1593. }
  1594. this.hide()
  1595. }
  1596. })
  1597. } else if (this.is_pre == 2) {
  1598. if (this.patient.id <= 0) {
  1599. this.$message.error('没有选择患者')
  1600. this.loading = false
  1601. return
  1602. }
  1603. var arr = this.dialysisPrescription
  1604. const ParamsQuery = arr
  1605. ParamsQuery['patient'] = this.patient.id
  1606. ParamsQuery['record_date'] = this.record_date
  1607. ParamsQuery['mode'] = 1
  1608. postSoulution(ParamsQuery).then(response => {
  1609. if (response.data.state == 0) {
  1610. this.$message.error(response.data.msg)
  1611. return false
  1612. } else {
  1613. this.$notify({
  1614. title: '成功',
  1615. message: '提交成功',
  1616. type: 'success',
  1617. duration: 2000
  1618. })
  1619. const prescription_resp = response.data.data.prescription
  1620. const solution_resp = response.data.data.solution
  1621. var prescription = this.prescription
  1622. var solution = this.solution
  1623. for (var index in prescription_resp) {
  1624. // prescription[index] = prescription_resp[index];
  1625. this.$set(prescription, index, prescription_resp[index])
  1626. }
  1627. for (var index in solution_resp) {
  1628. // solution[index] = solution_resp[index];
  1629. this.$set(solution, index, solution_resp[index])
  1630. }
  1631. this.hide()
  1632. }
  1633. })
  1634. }
  1635. }
  1636. this.isShowRemindAdvice = false
  1637. this.isVisibility = true
  1638. },
  1639. handleAdviceCancle() {
  1640. this.isShowRemindAdvice = false
  1641. this.isVisibility = true
  1642. },
  1643. getTime(val) {
  1644. return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
  1645. },
  1646. show(pre,schedual,last) {
  1647. var date = new Date()
  1648. var year = date.getFullYear()
  1649. var month = date.getMonth() + 1
  1650. var day = date.getDate()
  1651. var hours = date.getHours()
  1652. var minites = date.getMinutes()
  1653. if (month < 10) {
  1654. month = '0' + month
  1655. }
  1656. if (day < 10) {
  1657. day = '0' + day
  1658. }
  1659. if (hours < 10) {
  1660. hours = '0' + hours
  1661. }
  1662. if (minites < 10) {
  1663. minites = '0' + minites
  1664. }
  1665. if(schedual.schedule_type == 1){
  1666. this.start_time = year +"-"+month +"-"+day +" " + "07:00"
  1667. }else if(schedual.schedule_type == 2){
  1668. this.start_time = year +"-"+month +"-"+day +" " + "12:00"
  1669. }else if(schedual.schedule_type ==3){
  1670. this.start_time = year +"-"+month +"-"+day +" " + "18:00"
  1671. }
  1672. if (pre.anticoagulant == 3) {
  1673. this.dialysisPrescription.anticoagulant = '低分子肝素'
  1674. }
  1675. // 入口
  1676. var pre = pre
  1677. this.dialysisPrescription.mode_id = this.$route.query.mode_id
  1678. if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
  1679. this.zhiShow = true
  1680. this.huShow = true
  1681. this.totalShow = true
  1682. } else if (
  1683. pre.mode_id == 1 ||
  1684. pre.mode_id == 3 ||
  1685. pre.mode_id == 4 ||
  1686. pre.mode_id == 6 ||
  1687. pre.mode_id == 7 ||
  1688. pre.mode_id == 8 ||
  1689. pre.mode_id == 9 ||
  1690. pre.mode_id == 10 ||
  1691. pre.mode_id == 11 ||
  1692. pre.mode_id == 13 ||
  1693. pre.mode_id == 14 ||
  1694. pre.mode_id == 19
  1695. ) {
  1696. this.zhiShow = false
  1697. this.huShow = false
  1698. this.totalShow = false
  1699. }
  1700. this.pre = pre
  1701. // console.log("pre1", pre);
  1702. this.getPermission()
  1703. let last_weight_after = 0
  1704. let weight_before = 0
  1705. if (this.last_record == null) {
  1706. last_weight_after = 0
  1707. } else {
  1708. last_weight_after = this.last_record.weight_after
  1709. }
  1710. if (this.predialysis == null || this.predialysis.id == 0) {
  1711. if(last != null) {
  1712. this.dialysisPrescription.niprocart = last.niprocart
  1713. this.dialysisPrescription.jms = last.jms
  1714. this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
  1715. this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
  1716. this.dialysisPrescription.hemoperfusion = last.hemoperfusion
  1717. this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
  1718. this.dialysisPrescription.filtryzer = last.filtryzer
  1719. this.dialysisPrescription.target_ktv = last.target_ktv
  1720. this.dialysisPrescription.dialyzers = last.dialyzers
  1721. this.dialysisPrescription.injector = last.injector
  1722. this.dialysisPrescription.bloodlines = last.bloodlines
  1723. this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
  1724. this.dialysisPrescription.package = last.package
  1725. this.dialysisPrescription.a_liquid = last.a_liquid
  1726. weight_before = 0
  1727. }
  1728. } else {
  1729. weight_before = this.predialysis.weight_before
  1730. }
  1731. if (weight_before > 0 && last_weight_after > 0) {
  1732. this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
  1733. 2
  1734. )
  1735. // console.log('体重增加', this.add_weight)
  1736. }
  1737. this.isVisibility = true
  1738. this.checkedCities = []
  1739. for (let i = 0; i < this.targetAdvices.length; i++) {
  1740. if (this.targetAdvices[i].isCheck == 1) {
  1741. this.checkedCities.push(this.targetAdvices[i].id)
  1742. }
  1743. }
  1744. },
  1745. hide() {
  1746. this.isVisibility = false
  1747. },
  1748. changeThisAnticoagulant: function(val) {
  1749. var thismode = val
  1750. if (isNaN(thismode) || thismode <= 0) {
  1751. return false
  1752. }
  1753. if (val <= 2) {
  1754. this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
  1755. }
  1756. if (val > 2) {
  1757. this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
  1758. }
  1759. if (this.$store.getters.xt_user.template_info.template_id == 13 && val == 2) {
  1760. this.anticoagulant.shouji_unit = 'mg'
  1761. this.anticoagulant.weichi_unit = 'mg/h'
  1762. this.anticoagulant.zongliang_unit = 'mg'
  1763. }
  1764. },
  1765. handleCommit: function() {
  1766. if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
  1767. this.dialysisPrescription.anticoagulant = 3
  1768. }
  1769. if (this.dialysisPrescription.anticoagulant == 1) {
  1770. this.dialysisPrescription.anticoagulant_weichi = '0'
  1771. this.dialysisPrescription.anticoagulant_shouji = '0'
  1772. this.dialysisPrescription.anticoagulant_zongliang = '0'
  1773. }
  1774. if (this.$store.getters.xt_user.template_info.template_id == 6) {
  1775. if (this.dialysisPrescription.mode_id == 2) {
  1776. if (
  1777. this.dialysisPrescription.displace_liqui_part == 0 ||
  1778. this.dialysisPrescription.displace_liqui_part == -2 ||
  1779. this.dialysisPrescription.displace_liqui_value == 0 ||
  1780. this.dialysisPrescription.displace_liqui_value == ''
  1781. ) {
  1782. this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  1783. return
  1784. }
  1785. }
  1786. }
  1787. this.is_pre = 1
  1788. console.log("99999",this.prescription.id)
  1789. console.log("open",this.is_open)
  1790. if (this.prescription.id == 0) {
  1791. if (this.is_open == 0) {
  1792. if (this.patient.id <= 0) {
  1793. this.$message.error('没有选择患者')
  1794. this.loading = false
  1795. return
  1796. }
  1797. var arr = this.dialysisPrescription
  1798. const ParamsQuery = arr
  1799. // console.log('night', ParamsQuery)
  1800. ParamsQuery['patient'] = this.patient.id
  1801. ParamsQuery['record_date'] = this.record_date
  1802. ParamsQuery['mode'] = '1'
  1803. console.log("第一")
  1804. postPrescription(ParamsQuery).then(response => {
  1805. if (response.data.state == 0) {
  1806. this.$message.error(response.data.msg)
  1807. return false
  1808. } else {
  1809. this.$notify({
  1810. title: '成功',
  1811. message: '提交成功',
  1812. type: 'success',
  1813. duration: 2000
  1814. })
  1815. const prescription_resp = response.data.data.prescription
  1816. var prescription = this.prescription
  1817. for (var index in prescription_resp) {
  1818. // prescription[index] = prescription_resp[index];
  1819. this.$set(prescription, index, prescription_resp[index])
  1820. }
  1821. this.hide()
  1822. }
  1823. })
  1824. } else if (this.is_open == 1) {
  1825. if (this.targetAdvices.length > 0) {
  1826. // 弹框推送提醒
  1827. this.isShowRemindAdvice = true
  1828. this.isVisibility = false
  1829. } else {
  1830. if (this.patient.id <= 0) {
  1831. this.$message.error('没有选择患者')
  1832. this.loading = false
  1833. return
  1834. }
  1835. var arr = this.dialysisPrescription
  1836. const ParamsQuery = arr
  1837. // console.log('ParamsQuerytwo', ParamsQuery)
  1838. ParamsQuery['patient'] = this.patient.id
  1839. ParamsQuery['record_date'] = this.record_date
  1840. ParamsQuery['mode'] = '1'
  1841. console.log("第二")
  1842. postPrescription(ParamsQuery).then(response => {
  1843. if (response.data.state == 0) {
  1844. this.$message.error(response.data.msg)
  1845. return false
  1846. } else {
  1847. this.$notify({
  1848. title: '成功',
  1849. message: '提交成功',
  1850. type: 'success',
  1851. duration: 2000
  1852. })
  1853. const prescription_resp = response.data.data.prescription
  1854. var prescription = this.prescription
  1855. for (var index in prescription_resp) {
  1856. // prescription[index] = prescription_resp[index];
  1857. this.$set(prescription, index, prescription_resp[index])
  1858. }
  1859. this.hide()
  1860. }
  1861. })
  1862. }
  1863. } else if (this.is_open == 2) {
  1864. var date = new Date()
  1865. var hour =
  1866. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  1867. var minute =
  1868. date.getMinutes() < 10
  1869. ? '0' + date.getMinutes()
  1870. : date.getMinutes()
  1871. if (this.waitUploadAdvices.length > 0) {
  1872. if (this.patient.id <= 0) {
  1873. this.$message.error('没有选择患者')
  1874. this.loading = false
  1875. return
  1876. }
  1877. var arr = this.dialysisPrescription
  1878. const ParamsQuery = arr
  1879. console.log('paramsquerythree', ParamsQuery)
  1880. ParamsQuery['patient'] = this.patient.id
  1881. ParamsQuery['record_date'] = this.record_date
  1882. ParamsQuery['mode'] = '1'
  1883. console.log("第三")
  1884. postPrescription(ParamsQuery).then(response => {
  1885. if (response.data.state == 0) {
  1886. this.$message.error(response.data.msg)
  1887. return false
  1888. } else {
  1889. this.$notify({
  1890. title: '成功',
  1891. message: '提交成功',
  1892. type: 'success',
  1893. duration: 2000
  1894. })
  1895. const params = {
  1896. advices: this.waitUploadAdvices,
  1897. advice_date: uParseTime(
  1898. this.$route.query.date,
  1899. '{y}-{m}-{d}'
  1900. ),
  1901. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  1902. advice_type: this.waitUploadAdvices[0].advice_type,
  1903. parent_id: this.patient_id,
  1904. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1905. start_time:
  1906. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  1907. ' ' +
  1908. this.advice_start_time,
  1909. remark: ''
  1910. }
  1911. console.log("params--------",params)
  1912. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  1913. rs => {
  1914. var resp = rs.data
  1915. if (resp.state == 1) {
  1916. // this.doctorAdvices = resp.data.advices
  1917. this.$emit('advice')
  1918. } else {
  1919. }
  1920. }
  1921. )
  1922. const prescription_resp = response.data.data.prescription
  1923. var prescription = this.prescription
  1924. for (var index in prescription_resp) {
  1925. // prescription[index] = prescription_resp[index];
  1926. this.$set(prescription, index, prescription_resp[index])
  1927. }
  1928. this.hide()
  1929. }
  1930. })
  1931. } else {
  1932. if (this.patient.id <= 0) {
  1933. this.$message.error('没有选择患者')
  1934. this.loading = false
  1935. return
  1936. }
  1937. var arr = this.dialysisPrescription
  1938. const ParamsQuery = arr
  1939. // console.log('paramsqueryfour', ParamsQuery)
  1940. // console.log('创建者', this.prescription.creater)
  1941. // if (this.prescription.creater <= 0) {
  1942. // mode = 1;
  1943. // } else {
  1944. // mode = 2;
  1945. // }
  1946. ParamsQuery['patient'] = this.patient.id
  1947. ParamsQuery['record_date'] = this.record_date
  1948. // console.log(this.prescription);
  1949. console.log("第四")
  1950. postPrescription(ParamsQuery).then(response => {
  1951. if (response.data.state == 0) {
  1952. this.$message.error(response.data.msg)
  1953. return false
  1954. } else {
  1955. this.$notify({
  1956. title: '成功',
  1957. message: '提交成功',
  1958. type: 'success',
  1959. duration: 2000
  1960. })
  1961. const prescription_resp = response.data.data.prescription
  1962. // console.log("aaaaaaa", prescription_resp);
  1963. var prescription = this.prescription
  1964. for (var index in prescription_resp) {
  1965. // prescription[index] = prescription_resp[index];
  1966. this.$set(prescription, index, prescription_resp[index])
  1967. }
  1968. this.hide()
  1969. }
  1970. })
  1971. }
  1972. }
  1973. } else {
  1974. if (this.prescription.creater == 0) {
  1975. if (this.is_open == 0) {
  1976. if (this.patient.id <= 0) {
  1977. this.$message.error('没有选择患者')
  1978. this.loading = false
  1979. return
  1980. }
  1981. var arr = this.dialysisPrescription
  1982. // console.log('arr', arr)
  1983. const ParamsQuery = arr
  1984. // console.log('paramsqueryfive', ParamsQuery)
  1985. ParamsQuery['patient'] = this.patient.id
  1986. ParamsQuery['record_date'] = this.record_date
  1987. ParamsQuery['mode'] = '1'
  1988. console.log("第五")
  1989. postPrescription(ParamsQuery).then(response => {
  1990. if (response.data.state == 0) {
  1991. this.$message.error(response.data.msg)
  1992. return false
  1993. } else {
  1994. this.$notify({
  1995. title: '成功',
  1996. message: '提交成功',
  1997. type: 'success',
  1998. duration: 2000
  1999. })
  2000. const prescription_resp = response.data.data.prescription
  2001. var prescription = this.prescription
  2002. for (var index in prescription_resp) {
  2003. // prescription[index] = prescription_resp[index];
  2004. this.$set(prescription, index, prescription_resp[index])
  2005. }
  2006. this.hide()
  2007. }
  2008. })
  2009. } else if (this.is_open == 1) {
  2010. if (this.targetAdvices.length > 0) {
  2011. // 弹框推送提醒
  2012. this.isShowRemindAdvice = true
  2013. this.isVisibility = false
  2014. } else {
  2015. if (this.patient.id <= 0) {
  2016. this.$message.error('没有选择患者')
  2017. this.loading = false
  2018. return
  2019. }
  2020. var arr = this.dialysisPrescription
  2021. // console.log('arr', arr)
  2022. const ParamsQuery = arr
  2023. // console.log('ParamsQuerysix', ParamsQuery)
  2024. ParamsQuery['patient'] = this.patient.id
  2025. ParamsQuery['record_date'] = this.record_date
  2026. ParamsQuery['mode'] = '1'
  2027. console.log("第6")
  2028. postPrescription(ParamsQuery).then(response => {
  2029. if (response.data.state == 0) {
  2030. this.$message.error(response.data.msg)
  2031. return false
  2032. } else {
  2033. this.$notify({
  2034. title: '成功',
  2035. message: '提交成功',
  2036. type: 'success',
  2037. duration: 2000
  2038. })
  2039. const prescription_resp = response.data.data.prescription
  2040. var prescription = this.prescription
  2041. for (var index in prescription_resp) {
  2042. // prescription[index] = prescription_resp[index];
  2043. this.$set(prescription, index, prescription_resp[index])
  2044. }
  2045. this.hide()
  2046. }
  2047. })
  2048. }
  2049. } else if (this.is_open == 2) {
  2050. var date = new Date()
  2051. var hour =
  2052. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2053. var minute =
  2054. date.getMinutes() < 10
  2055. ? '0' + date.getMinutes()
  2056. : date.getMinutes()
  2057. if (this.waitUploadAdvices.length > 0) {
  2058. if (this.patient.id <= 0) {
  2059. this.$message.error('没有选择患者')
  2060. this.loading = false
  2061. return
  2062. }
  2063. var arr = this.dialysisPrescription
  2064. // console.log('arr', arr)
  2065. const ParamsQuery = arr
  2066. // console.log('parasmqueryseven', parasmqueryseven)
  2067. ParamsQuery['patient'] = this.patient.id
  2068. ParamsQuery['record_date'] = this.record_date
  2069. ParamsQuery['mode'] = '1'
  2070. console.log("第七")
  2071. postPrescription(ParamsQuery).then(response => {
  2072. if (response.data.state == 0) {
  2073. this.$message.error(response.data.msg)
  2074. return false
  2075. } else {
  2076. this.$notify({
  2077. title: '成功',
  2078. message: '提交成功',
  2079. type: 'success',
  2080. duration: 2000
  2081. })
  2082. const params = {
  2083. advices: this.waitUploadAdvices,
  2084. advice_date: uParseTime(
  2085. this.$route.query.date,
  2086. '{y}-{m}-{d}'
  2087. ),
  2088. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2089. advice_type: this.waitUploadAdvices[0].advice_type,
  2090. parent_id: this.patient_id,
  2091. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2092. start_time:
  2093. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2094. ' ' +
  2095. hour +
  2096. ':' +
  2097. minute,
  2098. remark: ''
  2099. }
  2100. CreateGroupAdvice(
  2101. this.$route.query.patient_id,
  2102. 0,
  2103. params
  2104. ).then(rs => {
  2105. var resp = rs.data
  2106. if (resp.state == 1) {
  2107. // this.doctorAdvices = resp.data.advices
  2108. this.$emit('advice')
  2109. } else {
  2110. }
  2111. })
  2112. const prescription_resp = response.data.data.prescription
  2113. var prescription = this.prescription
  2114. for (var index in prescription_resp) {
  2115. // prescription[index] = prescription_resp[index];
  2116. this.$set(prescription, index, prescription_resp[index])
  2117. }
  2118. this.hide()
  2119. }
  2120. })
  2121. } else {
  2122. if (this.patient.id <= 0) {
  2123. this.$message.error('没有选择患者')
  2124. this.loading = false
  2125. return
  2126. }
  2127. var arr = this.dialysisPrescription
  2128. // console.log('arr', arr)
  2129. const ParamsQuery = arr
  2130. // console.log('eight', ParamsQuery)
  2131. ParamsQuery['patient'] = this.patient.id
  2132. ParamsQuery['record_date'] = this.record_date
  2133. ParamsQuery['mode'] = '1'
  2134. console.log("第八")
  2135. postPrescription(ParamsQuery).then(response => {
  2136. if (response.data.state == 0) {
  2137. this.$message.error(response.data.msg)
  2138. return false
  2139. } else {
  2140. this.$notify({
  2141. title: '成功',
  2142. message: '提交成功',
  2143. type: 'success',
  2144. duration: 2000
  2145. })
  2146. const prescription_resp = response.data.data.prescription
  2147. var prescription = this.prescription
  2148. for (var index in prescription_resp) {
  2149. // prescription[index] = prescription_resp[index];
  2150. this.$set(prescription, index, prescription_resp[index])
  2151. }
  2152. this.hide()
  2153. }
  2154. })
  2155. }
  2156. }
  2157. } else {
  2158. if (this.patient.id <= 0) {
  2159. this.$message.error('没有选择患者')
  2160. this.loading = false
  2161. return
  2162. }
  2163. var arr = this.dialysisPrescription
  2164. // console.log('arr', arr)
  2165. const ParamsQuery = arr
  2166. // console.log('night', ParamsQuery)
  2167. ParamsQuery['patient'] = this.patient.id
  2168. ParamsQuery['record_date'] = this.record_date
  2169. ParamsQuery['mode'] = '2'
  2170. if (
  2171. this.$store.getters.xt_user.user.id !=
  2172. this.dialysisPrescription.creater
  2173. ) {
  2174. ParamsQuery['mode'] = '3'
  2175. }
  2176. console.log("第九")
  2177. postPrescription(ParamsQuery).then(response => {
  2178. if (response.data.state == 0) {
  2179. this.$message.error(response.data.msg)
  2180. return false
  2181. } else {
  2182. this.$notify({
  2183. title: '成功',
  2184. message: '提交成功',
  2185. type: 'success',
  2186. duration: 2000
  2187. })
  2188. const prescription_resp = response.data.data.prescription
  2189. var prescription = this.prescription
  2190. for (var index in prescription_resp) {
  2191. // prescription[index] = prescription_resp[index];
  2192. this.$set(prescription, index, prescription_resp[index])
  2193. }
  2194. this.hide()
  2195. }
  2196. })
  2197. }
  2198. }
  2199. },
  2200. handleCancle: function() {
  2201. this.hide()
  2202. },
  2203. handleSolution: function() {
  2204. if (this.dialysisPrescription.anticoagulant == 1) {
  2205. this.dialysisPrescription.anticoagulant_weichi = '0'
  2206. this.dialysisPrescription.anticoagulant_shouji = '0'
  2207. this.dialysisPrescription.anticoagulant_zongliang = '0'
  2208. }
  2209. if (this.$store.getters.xt_user.template_info.template_id == 6) {
  2210. if (this.dialysisPrescription.mode_id == 2) {
  2211. if (
  2212. this.dialysisPrescription.displace_liqui_part == 0 ||
  2213. this.dialysisPrescription.displace_liqui_part == -2 ||
  2214. this.dialysisPrescription.displace_liqui_value == 0 ||
  2215. this.dialysisPrescription.displace_liqui_value == ''
  2216. ) {
  2217. this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  2218. return
  2219. }
  2220. }
  2221. }
  2222. this.is_pre = 2
  2223. if (this.prescription.id == 0) {
  2224. if (this.is_open == 0) {
  2225. if (this.patient.id <= 0) {
  2226. this.$message.error('没有选择患者')
  2227. this.loading = false
  2228. return
  2229. }
  2230. var arr = this.dialysisPrescription
  2231. // console.log('arr', arr)
  2232. const ParamsQuery = arr
  2233. // console.log('长期处方1', ParamsQuery)
  2234. ParamsQuery['patient'] = this.patient.id
  2235. ParamsQuery['record_date'] = this.record_date
  2236. ParamsQuery['mode'] = '1'
  2237. postSoulution(ParamsQuery).then(response => {
  2238. if (response.data.state == 0) {
  2239. this.$message.error(response.data.msg)
  2240. return false
  2241. } else {
  2242. this.$notify({
  2243. title: '成功',
  2244. message: '提交成功',
  2245. type: 'success',
  2246. duration: 2000
  2247. })
  2248. const prescription_resp = response.data.data.prescription
  2249. const solution_resp = response.data.data.solution
  2250. var prescription = this.prescription
  2251. var solution = this.solution
  2252. for (var index in prescription_resp) {
  2253. // prescription[index] = prescription_resp[index];
  2254. this.$set(prescription, index, prescription_resp[index])
  2255. }
  2256. for (var index in solution_resp) {
  2257. // solution[index] = solution_resp[index];
  2258. this.$set(solution, index, solution_resp[index])
  2259. }
  2260. this.hide()
  2261. }
  2262. })
  2263. } else if (this.is_open == 1) {
  2264. if (this.targetAdvices.length > 0) {
  2265. // 弹框推送提
  2266. this.isShowRemindAdvice = true
  2267. this.isVisibility = false
  2268. } else {
  2269. if (this.patient.id <= 0) {
  2270. this.$message.error('没有选择患者')
  2271. this.loading = false
  2272. return
  2273. }
  2274. var arr = this.dialysisPrescription
  2275. // console.log('arr', arr)
  2276. const ParamsQuery = arr
  2277. // console.log('长期处方2', ParamsQuery)
  2278. ParamsQuery['patient'] = this.patient.id
  2279. ParamsQuery['record_date'] = this.record_date
  2280. ParamsQuery['mode'] = '1'
  2281. postSoulution(ParamsQuery).then(response => {
  2282. if (response.data.state == 0) {
  2283. this.$message.error(response.data.msg)
  2284. return false
  2285. } else {
  2286. this.$notify({
  2287. title: '成功',
  2288. message: '提交成功',
  2289. type: 'success',
  2290. duration: 2000
  2291. })
  2292. const prescription_resp = response.data.data.prescription
  2293. const solution_resp = response.data.data.solution
  2294. var prescription = this.prescription
  2295. var solution = this.solution
  2296. for (var index in prescription_resp) {
  2297. // prescription[index] = prescription_resp[index];
  2298. this.$set(prescription, index, prescription_resp[index])
  2299. }
  2300. for (var index in solution_resp) {
  2301. // solution[index] = solution_resp[index];
  2302. this.$set(solution, index, solution_resp[index])
  2303. }
  2304. this.hide()
  2305. }
  2306. })
  2307. }
  2308. } else if (this.is_open == 2) {
  2309. var date = new Date()
  2310. var hour =
  2311. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2312. var minute =
  2313. date.getMinutes() < 10
  2314. ? '0' + date.getMinutes()
  2315. : date.getMinutes()
  2316. if (this.waitUploadAdvices.length > 0) {
  2317. if (this.patient.id <= 0) {
  2318. this.$message.error('没有选择患者')
  2319. this.loading = false
  2320. return
  2321. }
  2322. var arr = this.dialysisPrescription
  2323. // console.log('arr', arr)
  2324. const ParamsQuery = arr
  2325. // console.log('长期处方3', ParamsQuery)
  2326. ParamsQuery['patient'] = this.patient.id
  2327. ParamsQuery['record_date'] = this.record_date
  2328. // console.log(this.prescription)
  2329. ParamsQuery['mode'] = '1'
  2330. postPrescription(ParamsQuery).then(response => {
  2331. if (response.data.state == 0) {
  2332. this.$message.error(response.data.msg)
  2333. return false
  2334. } else {
  2335. this.$notify({
  2336. title: '成功',
  2337. message: '提交成功',
  2338. type: 'success',
  2339. duration: 2000
  2340. })
  2341. const params = {
  2342. advices: this.waitUploadAdvices,
  2343. advice_date: uParseTime(
  2344. this.$route.query.date,
  2345. '{y}-{m}-{d}'
  2346. ),
  2347. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2348. advice_type: this.waitUploadAdvices[0].advice_type,
  2349. parent_id: this.patient_id,
  2350. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2351. start_time:
  2352. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2353. ' ' +
  2354. hour +
  2355. ':' +
  2356. minute,
  2357. remark: ''
  2358. }
  2359. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  2360. rs => {
  2361. var resp = rs.data
  2362. if (resp.state == 1) {
  2363. // this.doctorAdvices = resp.data.advices
  2364. this.$emit('advice')
  2365. } else {
  2366. }
  2367. }
  2368. )
  2369. const prescription_resp = response.data.data.prescription
  2370. var prescription = this.prescription
  2371. for (var index in prescription_resp) {
  2372. // prescription[index] = prescription_resp[index];
  2373. this.$set(prescription, index, prescription_resp[index])
  2374. }
  2375. this.hide()
  2376. }
  2377. })
  2378. } else {
  2379. if (this.patient.id <= 0) {
  2380. this.$message.error('没有选择患者')
  2381. this.loading = false
  2382. return
  2383. }
  2384. var arr = this.dialysisPrescription
  2385. // console.log('arr', arr)
  2386. const ParamsQuery = arr
  2387. // console.log('长期处方5', ParamsQuery)
  2388. ParamsQuery['patient'] = this.patient.id
  2389. ParamsQuery['record_date'] = this.record_date
  2390. ParamsQuery['mode'] = '1'
  2391. postSoulution(ParamsQuery).then(response => {
  2392. if (response.data.state == 0) {
  2393. this.$message.error(response.data.msg)
  2394. return false
  2395. } else {
  2396. this.$notify({
  2397. title: '成功',
  2398. message: '提交成功',
  2399. type: 'success',
  2400. duration: 2000
  2401. })
  2402. const prescription_resp = response.data.data.prescription
  2403. const solution_resp = response.data.data.solution
  2404. var prescription = this.prescription
  2405. var solution = this.solution
  2406. for (var index in prescription_resp) {
  2407. // prescription[index] = prescription_resp[index];
  2408. this.$set(prescription, index, prescription_resp[index])
  2409. }
  2410. for (var index in solution_resp) {
  2411. // solution[index] = solution_resp[index];
  2412. this.$set(solution, index, solution_resp[index])
  2413. }
  2414. this.hide()
  2415. }
  2416. })
  2417. }
  2418. }
  2419. } else {
  2420. if (this.prescription.creater == 0) {
  2421. if (this.is_open == 0) {
  2422. if (this.patient.id <= 0) {
  2423. this.$message.error('没有选择患者')
  2424. this.loading = false
  2425. return
  2426. }
  2427. var arr = this.dialysisPrescription
  2428. // console.log('arr', arr)
  2429. const ParamsQuery = arr
  2430. // console.log('长期处方6', ParamsQuery)
  2431. ParamsQuery['patient'] = this.patient.id
  2432. ParamsQuery['record_date'] = this.record_date
  2433. ParamsQuery['mode'] = '1'
  2434. postSoulution(ParamsQuery).then(response => {
  2435. if (response.data.state == 0) {
  2436. this.$message.error(response.data.msg)
  2437. return false
  2438. } else {
  2439. this.$notify({
  2440. title: '成功',
  2441. message: '提交成功',
  2442. type: 'success',
  2443. duration: 2000
  2444. })
  2445. const prescription_resp = response.data.data.prescription
  2446. const solution_resp = response.data.data.solution
  2447. var prescription = this.prescription
  2448. var solution = this.solution
  2449. for (var index in prescription_resp) {
  2450. // prescription[index] = prescription_resp[index];
  2451. this.$set(prescription, index, prescription_resp[index])
  2452. }
  2453. for (var index in solution_resp) {
  2454. // solution[index] = solution_resp[index];
  2455. this.$set(solution, index, solution_resp[index])
  2456. }
  2457. this.hide()
  2458. }
  2459. })
  2460. } else if (this.is_open == 1) {
  2461. if (this.targetAdvices.length > 0) {
  2462. // 弹框推送提醒
  2463. this.isShowRemindAdvice = true
  2464. this.isVisibility = false
  2465. } else {
  2466. if (this.patient.id <= 0) {
  2467. this.$message.error('没有选择患者')
  2468. this.loading = false
  2469. return
  2470. }
  2471. var arr = this.dialysisPrescription
  2472. // console.log('arr', arr)
  2473. const ParamsQuery = arr
  2474. // console.log('长期处方7', ParamsQuery)
  2475. ParamsQuery['patient'] = this.patient.id
  2476. ParamsQuery['record_date'] = this.record_date
  2477. ParamsQuery['mode'] = '1'
  2478. postSoulution(ParamsQuery).then(response => {
  2479. if (response.data.state == 0) {
  2480. this.$message.error(response.data.msg)
  2481. return false
  2482. } else {
  2483. this.$notify({
  2484. title: '成功',
  2485. message: '提交成功',
  2486. type: 'success',
  2487. duration: 2000
  2488. })
  2489. const prescription_resp = response.data.data.prescription
  2490. const solution_resp = response.data.data.solution
  2491. var prescription = this.prescription
  2492. var solution = this.solution
  2493. for (var index in prescription_resp) {
  2494. // prescription[index] = prescription_resp[index];
  2495. this.$set(prescription, index, prescription_resp[index])
  2496. }
  2497. for (var index in solution_resp) {
  2498. // solution[index] = solution_resp[index];
  2499. this.$set(solution, index, solution_resp[index])
  2500. }
  2501. this.hide()
  2502. }
  2503. })
  2504. }
  2505. } else if (this.is_open == 2) {
  2506. var date = new Date()
  2507. var hour =
  2508. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2509. var minute =
  2510. date.getMinutes() < 10
  2511. ? '0' + date.getMinutes()
  2512. : date.getMinutes()
  2513. if (this.waitUploadAdvices.length > 0) {
  2514. if (this.patient.id <= 0) {
  2515. this.$message.error('没有选择患者')
  2516. this.loading = false
  2517. return
  2518. }
  2519. var arr = this.dialysisPrescription
  2520. // console.log('arr', arr)
  2521. const ParamsQuery = arr
  2522. // console.log('长期处方8', ParamsQuery)
  2523. ParamsQuery['patient'] = this.patient.id
  2524. ParamsQuery['record_date'] = this.record_date
  2525. ParamsQuery['mode'] = '1'
  2526. postSoulution(ParamsQuery).then(response => {
  2527. if (response.data.state == 0) {
  2528. this.$message.error(response.data.msg)
  2529. return false
  2530. } else {
  2531. this.$notify({
  2532. title: '成功',
  2533. message: '提交成功',
  2534. type: 'success',
  2535. duration: 2000
  2536. })
  2537. const params = {
  2538. advices: this.waitUploadAdvices,
  2539. advice_date: uParseTime(
  2540. this.$route.query.date,
  2541. '{y}-{m}-{d}'
  2542. ),
  2543. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2544. advice_type: this.waitUploadAdvices[0].advice_type,
  2545. parent_id: this.patient_id,
  2546. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
  2547. start_time:
  2548. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2549. ' ' +
  2550. hour +
  2551. ':' +
  2552. minute,
  2553. remark: ''
  2554. }
  2555. CreateGroupAdvice(
  2556. this.$route.query.patient_id,
  2557. 0,
  2558. params
  2559. ).then(rs => {
  2560. var resp = rs.data
  2561. if (resp.state == 1) {
  2562. // this.doctorAdvices = resp.data.advices
  2563. this.$emit('advice')
  2564. } else {
  2565. }
  2566. })
  2567. const prescription_resp = response.data.data.prescription
  2568. const solution_resp = response.data.data.solution
  2569. var prescription = this.prescription
  2570. var solution = this.solution
  2571. for (var index in prescription_resp) {
  2572. // prescription[index] = prescription_resp[index];
  2573. this.$set(prescription, index, prescription_resp[index])
  2574. }
  2575. for (var index in solution_resp) {
  2576. // solution[index] = solution_resp[index];
  2577. this.$set(solution, index, solution_resp[index])
  2578. }
  2579. this.hide()
  2580. }
  2581. })
  2582. } else {
  2583. if (this.patient.id <= 0) {
  2584. this.$message.error('没有选择患者')
  2585. this.loading = false
  2586. return
  2587. }
  2588. var arr = this.dialysisPrescription
  2589. // console.log('arr', arr)
  2590. const ParamsQuery = arr
  2591. // console.log('长期处方9', ParamsQuery)
  2592. ParamsQuery['patient'] = this.patient.id
  2593. ParamsQuery['record_date'] = this.record_date
  2594. ParamsQuery['mode'] = '1'
  2595. postSoulution(ParamsQuery).then(response => {
  2596. if (response.data.state == 0) {
  2597. this.$message.error(response.data.msg)
  2598. return false
  2599. } else {
  2600. this.$notify({
  2601. title: '成功',
  2602. message: '提交成功',
  2603. type: 'success',
  2604. duration: 2000
  2605. })
  2606. const prescription_resp = response.data.data.prescription
  2607. const solution_resp = response.data.data.solution
  2608. var prescription = this.prescription
  2609. var solution = this.solution
  2610. for (var index in prescription_resp) {
  2611. // prescription[index] = prescription_resp[index];
  2612. this.$set(prescription, index, prescription_resp[index])
  2613. }
  2614. for (var index in solution_resp) {
  2615. // solution[index] = solution_resp[index];
  2616. this.$set(solution, index, solution_resp[index])
  2617. }
  2618. this.hide()
  2619. }
  2620. })
  2621. }
  2622. }
  2623. } else {
  2624. if (this.patient.id <= 0) {
  2625. this.$message.error('没有选择患者')
  2626. this.loading = false
  2627. return
  2628. }
  2629. var arr = this.dialysisPrescription
  2630. // console.log('arr', arr)
  2631. const ParamsQuery = arr
  2632. // console.log('长期处方10', ParamsQuery)
  2633. ParamsQuery['patient'] = this.patient.id
  2634. ParamsQuery['record_date'] = this.record_date
  2635. ParamsQuery['mode'] = '1'
  2636. postSoulution(ParamsQuery).then(response => {
  2637. if (response.data.state == 0) {
  2638. this.$message.error(response.data.msg)
  2639. return false
  2640. } else {
  2641. this.$notify({
  2642. title: '成功',
  2643. message: '提交成功',
  2644. type: 'success',
  2645. duration: 2000
  2646. })
  2647. const prescription_resp = response.data.data.prescription
  2648. const solution_resp = response.data.data.solution
  2649. var prescription = this.prescription
  2650. var solution = this.solution
  2651. for (var index in prescription_resp) {
  2652. // prescription[index] = prescription_resp[index];
  2653. this.$set(prescription, index, prescription_resp[index])
  2654. }
  2655. for (var index in solution_resp) {
  2656. // solution[index] = solution_resp[index];
  2657. this.$set(solution, index, solution_resp[index])
  2658. }
  2659. this.hide()
  2660. }
  2661. })
  2662. }
  2663. }
  2664. },
  2665. isShows(name) {
  2666. var filedList = store.getters.xt_user.fileds
  2667. for (let i = 0; i < filedList.length; i++) {
  2668. if (
  2669. filedList[i].module == 1 &&
  2670. filedList[i].filed_name_cn == name &&
  2671. filedList[i].is_show == 1
  2672. ) {
  2673. return true
  2674. }
  2675. }
  2676. return false
  2677. },
  2678. getDoctorName(doctor_id) {
  2679. for (let i = 0; i < this.admin_users.length; i++) {
  2680. if (this.admin_users[i].id == doctor_id) {
  2681. return this.admin_users[i].name
  2682. }
  2683. }
  2684. },
  2685. getContent(val) {
  2686. let prescribing_number = ''
  2687. let single_dose = ''
  2688. let advice_desc = ''
  2689. if (val.prescribing_number > 0) {
  2690. prescribing_number =
  2691. val.prescribing_number + val.prescribing_number_unit
  2692. }
  2693. if (val.single_dose > 0) {
  2694. single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
  2695. }
  2696. if (val.advice_desc > 0 || val.advice_desc.length > 0) {
  2697. advice_desc = val.advice_desc + val.drug_spec_unit
  2698. }
  2699. let name = ''
  2700. if (val.child.length > 0) {
  2701. for (let i = 0; i < val.child.length; i++) {
  2702. if (val.child[i].prescribing_number > 0) {
  2703. val.child[i]['presc'] =
  2704. val.child[i].prescribing_number +
  2705. val.child[i].prescribing_number_unit
  2706. } else {
  2707. val.child[i]['presc'] = ''
  2708. }
  2709. if (val.child[i].single_dose > 0) {
  2710. val.child[i]['single'] =
  2711. ' ' +
  2712. ' 单次用量 ' +
  2713. ' ' +
  2714. val.child[i].single_dose +
  2715. val.child[i].single_dose_unit
  2716. } else {
  2717. val.child[i]['single'] = ''
  2718. }
  2719. name =
  2720. name +
  2721. '▲' +
  2722. val.child[i].advice_name +
  2723. '' +
  2724. val.child[i].advice_desc +
  2725. val.child[i].drug_spec_unit +
  2726. val.child[i].presc +
  2727. val.child[i].single
  2728. }
  2729. return (
  2730. val.advice_name +
  2731. ' ' +
  2732. advice_desc +
  2733. ' ' +
  2734. val.drug_spec_unit +
  2735. prescribing_number +
  2736. ' ' +
  2737. single_dose +
  2738. ' ' +
  2739. ' ' +
  2740. val.delivery_way +
  2741. ' ' +
  2742. val.execution_frequency +
  2743. val.remark +
  2744. name
  2745. )
  2746. } else {
  2747. return (
  2748. val.advice_name +
  2749. ' ' +
  2750. advice_desc +
  2751. prescribing_number +
  2752. ' ' +
  2753. single_dose +
  2754. ' ' +
  2755. ' ' +
  2756. val.delivery_way +
  2757. ' ' +
  2758. val.execution_frequency +
  2759. val.remark
  2760. )
  2761. }
  2762. },
  2763. changePrescription(id) {
  2764. const ParamsQuery = {}
  2765. ParamsQuery['patient_id'] = this.$route.query.patient_id
  2766. ParamsQuery['mode_id'] = id
  2767. GetSolution(ParamsQuery).then(response => {
  2768. if (response.data.state == 0) {
  2769. this.$message.error(response.data.msg)
  2770. return false
  2771. } else {
  2772. this.$message.success('切换成功')
  2773. if (response.data.data.solution != null) {
  2774. for (const key in response.data.data.solution) {
  2775. // 长期处方不为空
  2776. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
  2777. && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
  2778. && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
  2779. this.dialysisPrescription[key] =
  2780. response.data.data.solution[key]
  2781. }
  2782. }
  2783. } else {
  2784. if (response.data.data.prescription != null) {
  2785. // 临时处方不为空
  2786. for (const key in response.data.data.prescription) {
  2787. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
  2788. && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
  2789. && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
  2790. this.dialysisPrescription[key] =
  2791. response.data.data.prescription[key]
  2792. }
  2793. }
  2794. } else if (response.data.data.system_prescription != null) {
  2795. // 系统处方不为空
  2796. for (const key in response.data.data.system_prescription) {
  2797. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
  2798. && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
  2799. && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
  2800. this.dialysisPrescription[key] =
  2801. response.data.data.system_prescription[key]
  2802. }
  2803. }
  2804. } else {
  2805. for (const key in this.dialysisPrescription) {
  2806. // 临时处方为空
  2807. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
  2808. && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
  2809. && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
  2810. this.dialysisPrescription[key] = ''
  2811. }
  2812. }
  2813. this.dialysisPrescription.mode_id = id
  2814. }
  2815. }
  2816. }
  2817. if (
  2818. this.dialysisPrescription.dialysis_duration_hour === '' ||
  2819. this.dialysisPrescription.dialysis_duration_minute === ''
  2820. ) {
  2821. this.timeValue = ''
  2822. this.time = '03:00'
  2823. } else {
  2824. this.timeValue =
  2825. this.dialysisPrescription.dialysis_duration_hour +
  2826. '小时' +
  2827. this.dialysisPrescription.dialysis_duration_minute +
  2828. '分钟'
  2829. this.time =
  2830. (this.dialysisPrescription.dialysis_duration_hour > 10
  2831. ? this.dialysisPrescription.dialysis_duration_hour
  2832. : '0' + this.dialysisPrescription.dialysis_duration_hour) +
  2833. ':' +
  2834. (this.dialysisPrescription.dialysis_duration_minute > 10
  2835. ? this.dialysisPrescription.dialysis_duration_minute
  2836. : '0' + this.dialysisPrescription.dialysis_duration_minute)
  2837. }
  2838. })
  2839. if (
  2840. id === 1 ||
  2841. id === 3 ||
  2842. id === 4 ||
  2843. id === 6 ||
  2844. id === 7 ||
  2845. id === 8 ||
  2846. id === 9 ||
  2847. id === 10 ||
  2848. id === 11 ||
  2849. id === 13 ||
  2850. id === 14 ||
  2851. id === 15 ||
  2852. id === 16 ||
  2853. id === 19
  2854. ) {
  2855. this.zhiShow = false
  2856. this.huShow = false
  2857. this.totalShow = false
  2858. } else {
  2859. this.zhiShow = true
  2860. this.huShow = true
  2861. this.totalShow = true
  2862. }
  2863. },
  2864. handlePatientInfo() {
  2865. this.isVisibility = false
  2866. this.msgtip_visibility = true
  2867. },
  2868. cancleMsg() {
  2869. this.isVisibility = true
  2870. this.msgtip_visibility = false
  2871. },
  2872. getPermission() {
  2873. request
  2874. .get('/api/func_per/get', {
  2875. params: {
  2876. create_url: '/api/dialysis/prescription?mode=1',
  2877. modify_url: '/api/dialysis/prescription?mode=2',
  2878. modify_other_url: '/api/dialysis/prescription?mode=3',
  2879. module: 1
  2880. }
  2881. })
  2882. .then(res => {
  2883. // console.log(res)
  2884. // console.log('predialysis.creater', this.pre.creater)
  2885. // console.log('admin.id', this.$store.getters.xt_user.user.id)
  2886. if (res.data.state == 0) {
  2887. this.hasPermission = false
  2888. } else if (res.data.state == 1) {
  2889. if (this.pre.id != '' && this.pre.creater != 0) {
  2890. // 有数据
  2891. if (this.pre.creater == this.$store.getters.xt_user.user.id) {
  2892. // 创建人是自己
  2893. if (res.data.data.is_has_modify == false) {
  2894. this.hasPermission = false
  2895. this.showTxt = '你没有修改透析处方权限'
  2896. }
  2897. } else {
  2898. // 创建人不是自己
  2899. if (res.data.data.is_has_modify_other == false) {
  2900. this.hasPermission = false
  2901. this.showTxt = '你没有修改他人透析处方权限'
  2902. }
  2903. }
  2904. } else if (this.pre.id == '' || this.pre.creater == 0) {
  2905. if (res.data.data.is_has_create == false) {
  2906. this.hasPermission = false
  2907. this.showTxt = '你没有新增透析处方权限'
  2908. }
  2909. }
  2910. }
  2911. })
  2912. },
  2913. unique(arr) {
  2914. const res = new Map();
  2915. return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
  2916. },
  2917. },
  2918. // created(){
  2919. // var org_id = this.$store.getters.xt_user.template_info.org_id
  2920. // console.log("org_id-----",org_id)
  2921. // },
  2922. watch: {
  2923. 'dialysisPrescription.dialysis_duration_hour': function() {
  2924. let dialysis_duration_minute = 0
  2925. let dialysis_duration_hour = 0
  2926. let duration = 0
  2927. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  2928. dialysis_duration_minute = 0
  2929. } else {
  2930. dialysis_duration_minute = this.dialysisPrescription
  2931. .dialysis_duration_minute
  2932. }
  2933. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  2934. dialysis_duration_hour = 0
  2935. } else {
  2936. dialysis_duration_hour = this.dialysisPrescription
  2937. .dialysis_duration_hour
  2938. }
  2939. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  2940. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
  2941. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  2942. this.dialysisPrescription.anticoagulant_zongliang = ''
  2943. }
  2944. },
  2945. 'dialysisPrescription.dialysis_duration_minute': function() {
  2946. let dialysis_duration_minute = 0
  2947. let dialysis_duration_hour = 0
  2948. let duration = 0
  2949. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  2950. dialysis_duration_minute = 0
  2951. } else {
  2952. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  2953. }
  2954. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  2955. dialysis_duration_hour = 0
  2956. } else {
  2957. dialysis_duration_hour = this.dialysisPrescription
  2958. .dialysis_duration_hour
  2959. }
  2960. duration =
  2961. parseFloat(dialysis_duration_hour) +
  2962. parseFloat(dialysis_duration_minute) / 60
  2963. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  2964. 1,
  2965. this.dialysisPrescription.anticoagulant_shouji,
  2966. duration,
  2967. this.dialysisPrescription.anticoagulant_weichi
  2968. )
  2969. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  2970. this.dialysisPrescription.anticoagulant_zongliang = ''
  2971. }
  2972. // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  2973. // 1,
  2974. // this.dialysisPrescription.anticoagulant_shouji,
  2975. // duration,
  2976. // this.dialysisPrescription.anticoagulant_weichi
  2977. // );
  2978. // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  2979. // this.dialysisPrescription.anticoagulant_zongliang = "";
  2980. // }
  2981. },
  2982. 'dialysisPrescription.anticoagulant_shouji': function() {
  2983. let dialysis_duration_minute = 0
  2984. let dialysis_duration_hour = 0
  2985. let duration = 0
  2986. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  2987. dialysis_duration_minute = 0
  2988. } else {
  2989. dialysis_duration_minute = this.dialysisPrescription
  2990. .dialysis_duration_minute
  2991. }
  2992. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  2993. dialysis_duration_hour = 0
  2994. } else {
  2995. dialysis_duration_hour = this.dialysisPrescription
  2996. .dialysis_duration_hour
  2997. }
  2998. duration =
  2999. parseFloat(dialysis_duration_hour) +
  3000. parseFloat(dialysis_duration_minute) / 60
  3001. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  3002. 1,
  3003. this.dialysisPrescription.anticoagulant_shouji,
  3004. duration,
  3005. this.dialysisPrescription.anticoagulant_weichi
  3006. )
  3007. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3008. this.dialysisPrescription.anticoagulant_zongliang = ''
  3009. }
  3010. // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  3011. // 1,
  3012. // this.dialysisPrescription.anticoagulant_shouji,
  3013. // duration,
  3014. // this.dialysisPrescription.anticoagulant_weichi
  3015. // );
  3016. // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3017. // this.dialysisPrescription.anticoagulant_zongliang = "";
  3018. // }
  3019. },
  3020. 'dialysisPrescription.anticoagulant_weichi': function() {
  3021. let dialysis_duration_minute = 0
  3022. let dialysis_duration_hour = 0
  3023. let duration = 0
  3024. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  3025. dialysis_duration_minute = 0
  3026. } else {
  3027. dialysis_duration_minute = this.dialysisPrescription
  3028. .dialysis_duration_minute
  3029. }
  3030. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  3031. dialysis_duration_hour = 0
  3032. } else {
  3033. dialysis_duration_hour = this.dialysisPrescription
  3034. .dialysis_duration_hour
  3035. }
  3036. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  3037. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
  3038. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3039. this.dialysisPrescription.anticoagulant_zongliang = ''
  3040. }
  3041. // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  3042. // 1,
  3043. // this.dialysisPrescription.anticoagulant_shouji,
  3044. // duration,
  3045. // this.dialysisPrescription.anticoagulant_weichi
  3046. // );
  3047. // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3048. // this.dialysisPrescription.anticoagulant_zongliang = "";
  3049. // }
  3050. },
  3051. 'prescription.id': {
  3052. immediate: true,
  3053. deep: true,
  3054. handler(oldVal, newVal) {
  3055. if (oldVal == newVal) {
  3056. for (var index in this.dialysisPrescription) {
  3057. this.dialysisPrescription[index] = this.prescription[index]
  3058. }
  3059. if (this.prescription['dialysate_formulation'] == 0) {
  3060. this.dialysisPrescription['dialysate_formulation'] = ''
  3061. }
  3062. if (this.prescription['anticoagulant'] == 0) {
  3063. this.dialysisPrescription['anticoagulant'] = ''
  3064. }
  3065. if (this.prescription['dialysis_duration_hour'] == 0) {
  3066. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3067. }
  3068. if (this.prescription['dialysis_duration_minute'] == 0) {
  3069. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3070. }
  3071. if (this.prescription['blood_flow_volume'] == 0) {
  3072. this.dialysisPrescription['blood_flow_volume'] = ''
  3073. }
  3074. if (this.prescription['target_ultrafiltration'] == 0) {
  3075. this.dialysisPrescription['target_ultrafiltration'] = ''
  3076. }
  3077. if (this.prescription['dialysate_temperature'] == 0) {
  3078. this.dialysisPrescription['dialysate_temperature'] = ''
  3079. }
  3080. if (this.prescription['anticoagulant_shouji'] == 0) {
  3081. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3082. }
  3083. if (this.prescription['anticoagulant_weichi'] == 0) {
  3084. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3085. }
  3086. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3087. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3088. }
  3089. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3090. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3091. }
  3092. if (this.prescription['kalium'] == 0) {
  3093. this.dialysisPrescription['kalium'] = ''
  3094. }
  3095. if (this.prescription['sodium'] == 0) {
  3096. this.dialysisPrescription['sodium'] = ''
  3097. }
  3098. if (this.prescription['calcium'] == 0) {
  3099. this.dialysisPrescription['calcium'] = ''
  3100. }
  3101. if (this.prescription['bicarbonate'] == 0) {
  3102. this.dialysisPrescription['bicarbonate'] = ''
  3103. }
  3104. if (this.prescription['glucose'] == 0) {
  3105. this.dialysisPrescription['glucose'] = ''
  3106. }
  3107. if (this.prescription['dialysate_flow'] == 0) {
  3108. this.dialysisPrescription['dialysate_flow'] = ''
  3109. }
  3110. if (this.prescription['conductivity'] == 0) {
  3111. this.dialysisPrescription['conductivity'] = ''
  3112. }
  3113. if (this.prescription['replacement_total'] == 0) {
  3114. this.dialysisPrescription['replacement_total'] = ''
  3115. }
  3116. if (this.prescription['target_ktv'] == 0) {
  3117. this.dialysisPrescription['target_ktv'] = ''
  3118. }
  3119. }
  3120. if (this.prescription.id > 0) {
  3121. for (var index in this.dialysisPrescription) {
  3122. this.dialysisPrescription[index] = this.prescription[index]
  3123. }
  3124. if (this.prescription['dialysate_formulation'] == 0) {
  3125. this.dialysisPrescription['dialysate_formulation'] = ''
  3126. }
  3127. if (this.prescription['anticoagulant'] == 0) {
  3128. this.dialysisPrescription['anticoagulant'] = ''
  3129. }
  3130. if (this.prescription['dialysis_duration_hour'] == 0) {
  3131. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3132. }
  3133. if (this.prescription['dialysis_duration_minute'] == 0) {
  3134. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3135. }
  3136. if (this.prescription['blood_flow_volume'] == 0) {
  3137. this.dialysisPrescription['blood_flow_volume'] = ''
  3138. }
  3139. if (this.prescription['target_ultrafiltration'] == 0) {
  3140. this.dialysisPrescription['target_ultrafiltration'] = ''
  3141. }
  3142. if (this.prescription['dialysate_temperature'] == 0) {
  3143. this.dialysisPrescription['dialysate_temperature'] = ''
  3144. }
  3145. if (this.prescription['anticoagulant_shouji'] == 0) {
  3146. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3147. }
  3148. if (this.prescription['anticoagulant_weichi'] == 0) {
  3149. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3150. }
  3151. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3152. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3153. }
  3154. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3155. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3156. }
  3157. if (this.prescription['kalium'] == 0) {
  3158. this.dialysisPrescription['kalium'] = ''
  3159. }
  3160. if (this.prescription['sodium'] == 0) {
  3161. this.dialysisPrescription['sodium'] = ''
  3162. }
  3163. if (this.prescription['calcium'] == 0) {
  3164. this.dialysisPrescription['calcium'] = ''
  3165. }
  3166. if (this.prescription['bicarbonate'] == 0) {
  3167. this.dialysisPrescription['bicarbonate'] = ''
  3168. }
  3169. if (this.prescription['glucose'] == 0) {
  3170. this.dialysisPrescription['glucose'] = ''
  3171. }
  3172. if (this.prescription['dialysate_flow'] == 0) {
  3173. this.dialysisPrescription['dialysate_flow'] = ''
  3174. }
  3175. if (this.prescription['conductivity'] == 0) {
  3176. this.dialysisPrescription['conductivity'] = ''
  3177. }
  3178. if (this.prescription['replacement_total'] == 0) {
  3179. this.dialysisPrescription['replacement_total'] = ''
  3180. }
  3181. if (this.prescription['target_ktv'] == 0) {
  3182. this.dialysisPrescription['target_ktv'] = ''
  3183. }
  3184. } else if (this.prescription.id == 0) {
  3185. for (var index in this.dialysisPrescription) {
  3186. this.dialysisPrescription[index] = this.prescription[index]
  3187. }
  3188. if (this.prescription['dialysate_formulation'] == 0) {
  3189. this.dialysisPrescription['dialysate_formulation'] = ''
  3190. }
  3191. if (this.prescription['anticoagulant'] == 0) {
  3192. this.dialysisPrescription['anticoagulant'] = ''
  3193. }
  3194. if (this.prescription['dialysis_duration_hour'] == 0) {
  3195. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3196. }
  3197. if (this.prescription['dialysis_duration_minute'] == 0) {
  3198. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3199. }
  3200. if (this.prescription['blood_flow_volume'] == 0) {
  3201. this.dialysisPrescription['blood_flow_volume'] = ''
  3202. }
  3203. if (this.prescription['target_ultrafiltration'] == 0) {
  3204. this.dialysisPrescription['target_ultrafiltration'] = ''
  3205. }
  3206. if (this.prescription['dialysate_temperature'] == 0) {
  3207. this.dialysisPrescription['dialysate_temperature'] = ''
  3208. }
  3209. if (this.prescription['anticoagulant_shouji'] == 0) {
  3210. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3211. }
  3212. if (this.prescription['anticoagulant_weichi'] == 0) {
  3213. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3214. }
  3215. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3216. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3217. }
  3218. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3219. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3220. }
  3221. if (this.prescription['kalium'] == 0) {
  3222. this.dialysisPrescription['kalium'] = ''
  3223. }
  3224. if (this.prescription['sodium'] == 0) {
  3225. this.dialysisPrescription['sodium'] = ''
  3226. }
  3227. if (this.prescription['calcium'] == 0) {
  3228. this.dialysisPrescription['calcium'] = ''
  3229. }
  3230. if (this.prescription['bicarbonate'] == 0) {
  3231. this.dialysisPrescription['bicarbonate'] = ''
  3232. }
  3233. if (this.prescription['glucose'] == 0) {
  3234. this.dialysisPrescription['glucose'] = ''
  3235. }
  3236. if (this.prescription['dialysate_flow'] == 0) {
  3237. this.dialysisPrescription['dialysate_flow'] = ''
  3238. }
  3239. if (this.prescription['conductivity'] == 0) {
  3240. this.dialysisPrescription['conductivity'] = ''
  3241. }
  3242. if (this.prescription['replacement_total'] == 0) {
  3243. this.dialysisPrescription['replacement_total'] = ''
  3244. }
  3245. if (this.prescription['target_ktv'] == 0) {
  3246. this.dialysisPrescription['target_ktv'] = ''
  3247. }
  3248. }
  3249. }
  3250. },
  3251. 'solution.id': function() {
  3252. if (this.solution.id > 0) {
  3253. if (
  3254. this.prescription != null &&
  3255. typeof this.prescription.id !== 'undefined' &&
  3256. this.prescription.id > 0
  3257. ) {
  3258. for (const key in this.prescription) {
  3259. this.dialysisPrescription[key] = this.prescription[key]
  3260. }
  3261. if (this.prescription['dialysate_formulation'] == 0) {
  3262. this.dialysisPrescription['dialysate_formulation'] = ''
  3263. }
  3264. if (this.prescription['anticoagulant'] == 0) {
  3265. this.dialysisPrescription['anticoagulant'] = ''
  3266. }
  3267. if (this.prescription['dialysis_duration_hour'] == 0) {
  3268. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3269. }
  3270. if (this.prescription['dialysis_duration_minute'] == 0) {
  3271. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3272. }
  3273. if (this.prescription['blood_flow_volume'] == 0) {
  3274. this.dialysisPrescription['blood_flow_volume'] = ''
  3275. }
  3276. if (this.prescription['target_ultrafiltration'] == 0) {
  3277. this.dialysisPrescription['target_ultrafiltration'] = ''
  3278. }
  3279. if (this.prescription['dialysate_temperature'] == 0) {
  3280. this.dialysisPrescription['dialysate_temperature'] = ''
  3281. }
  3282. if (this.prescription['anticoagulant_shouji'] == 0) {
  3283. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3284. }
  3285. if (this.prescription['anticoagulant_weichi'] == 0) {
  3286. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3287. }
  3288. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3289. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3290. }
  3291. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3292. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3293. }
  3294. if (this.prescription['kalium'] == 0) {
  3295. this.dialysisPrescription['kalium'] = ''
  3296. }
  3297. if (this.prescription['sodium'] == 0) {
  3298. this.dialysisPrescription['sodium'] = ''
  3299. }
  3300. if (this.prescription['calcium'] == 0) {
  3301. this.dialysisPrescription['calcium'] = ''
  3302. }
  3303. if (this.prescription['bicarbonate'] == 0) {
  3304. this.dialysisPrescription['bicarbonate'] = ''
  3305. }
  3306. if (this.prescription['glucose'] == 0) {
  3307. this.dialysisPrescription['glucose'] = ''
  3308. }
  3309. if (this.prescription['dialysate_flow'] == 0) {
  3310. this.dialysisPrescription['dialysate_flow'] = ''
  3311. }
  3312. if (this.prescription['conductivity'] == 0) {
  3313. this.dialysisPrescription['conductivity'] = ''
  3314. }
  3315. if (this.prescription['replacement_total'] == 0) {
  3316. this.dialysisPrescription['replacement_total'] = ''
  3317. }
  3318. if (this.prescription['target_ktv'] == 0) {
  3319. this.dialysisPrescription['target_ktv'] = ''
  3320. }
  3321. } else if (
  3322. this.solution != null &&
  3323. typeof this.solution.id !== 'undefined' &&
  3324. this.solution.id
  3325. ) {
  3326. for (const key in this.solution) {
  3327. this.dialysisPrescription[key] = this.solution[key]
  3328. }
  3329. if (this.solution['dialysate_formulation'] == 0) {
  3330. this.dialysisPrescription['dialysate_formulation'] = ''
  3331. }
  3332. if (this.solution['anticoagulant'] == 0) {
  3333. this.dialysisPrescription['anticoagulant'] = ''
  3334. }
  3335. if (this.solution['dialysis_duration_hour'] == 0) {
  3336. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3337. }
  3338. if (this.solution['dialysis_duration_minute'] == 0) {
  3339. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3340. }
  3341. if (this.solution['blood_flow_volume'] == 0) {
  3342. this.dialysisPrescription['blood_flow_volume'] = ''
  3343. }
  3344. if (this.solution['target_ultrafiltration'] == 0) {
  3345. this.dialysisPrescription['target_ultrafiltration'] = ''
  3346. }
  3347. if (this.solution['dialysate_temperature'] == 0) {
  3348. this.dialysisPrescription['dialysate_temperature'] = ''
  3349. }
  3350. if (this.solution['anticoagulant_shouji'] == 0) {
  3351. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3352. }
  3353. if (this.solution['anticoagulant_weichi'] == 0) {
  3354. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3355. }
  3356. if (this.solution['anticoagulant_zongliang'] == 0) {
  3357. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3358. }
  3359. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  3360. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3361. }
  3362. if (this.solution['kalium'] == 0) {
  3363. this.dialysisPrescription['kalium'] = ''
  3364. }
  3365. if (this.solution['sodium'] == 0) {
  3366. this.dialysisPrescription['sodium'] = ''
  3367. }
  3368. if (this.solution['calcium'] == 0) {
  3369. this.dialysisPrescription['calcium'] = ''
  3370. }
  3371. if (this.solution['bicarbonate'] == 0) {
  3372. this.dialysisPrescription['bicarbonate'] = ''
  3373. }
  3374. if (this.solution['glucose'] == 0) {
  3375. this.dialysisPrescription['glucose'] = ''
  3376. }
  3377. if (this.solution['dialysate_flow'] == 0) {
  3378. this.dialysisPrescription['dialysate_flow'] = ''
  3379. }
  3380. if (this.solution['conductivity'] == 0) {
  3381. this.dialysisPrescription['conductivity'] = ''
  3382. }
  3383. if (this.solution['replacement_total'] == 0) {
  3384. this.dialysisPrescription['replacement_total'] = ''
  3385. }
  3386. if (this.solution['target_ktv'] == 0) {
  3387. this.dialysisPrescription['target_ktv'] = ''
  3388. }
  3389. }
  3390. }
  3391. },
  3392. }
  3393. }
  3394. </script>
  3395. <style rel="stylesheet/scss" lang="scss" scoped>
  3396. .el-checkbox,
  3397. .el-checkbox__input {
  3398. vertical-align: middle;
  3399. }
  3400. .newLine {
  3401. display: flex;
  3402. justify-content: space-between;
  3403. height: 40px;
  3404. line-height: 40px;
  3405. border-bottom: 1px solid #ccc;
  3406. color: #303133;
  3407. }
  3408. .warnTxt {
  3409. text-align: center;
  3410. margin: 0 auto;
  3411. background: #faa331;
  3412. max-width: 240px;
  3413. padding: 10px 20px;
  3414. border-radius: 4px;
  3415. margin-bottom: 10px;
  3416. color: #fff;
  3417. }
  3418. </style>
  3419. <style lang="scss">
  3420. .newDialog {
  3421. .el-dialog__body {
  3422. padding: 10px 20px 30px;
  3423. }
  3424. }
  3425. </style>