dialysisPrescriptionDialog.vue 138KB

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