dialysisPrescriptionDialog.vue 95KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542
  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. >
  10. <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{patient.name}}</el-button>
  11. <el-form ref="dialysisPrescription" :model="dialysisPrescription" label-width="148px">
  12. <el-row :gutter="24">
  13. <el-col :span="8" v-if="isShows('透析模式')">
  14. <el-form-item label="透析模式">
  15. <el-select v-model="dialysisPrescription.mode_id"
  16. @change="changePrescription(dialysisPrescription.mode_id)">
  17. <el-option :key="0" label="请选择" :value="0"></el-option>
  18. <el-option v-for="(item,index) in treatment_mode" :label="item.name" :value="item.id"
  19. :key="index+1"></el-option>
  20. </el-select>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :span="8" v-if="isShows('透析时长')">
  24. <el-form-item label="透析时长(h): ">
  25. <el-input type="number" v-model="dialysisPrescription.dialysis_duration_hour"></el-input>
  26. </el-form-item>
  27. </el-col>
  28. <el-col :span="8" v-if="isShows('透析时长')">
  29. <el-form-item label="透析时长(min): ">
  30. <el-input type="number" v-model="dialysisPrescription.dialysis_duration_minute"></el-input>
  31. </el-form-item>
  32. </el-col>
  33. <!-- </el-row>
  34. <el-row :gutter="20"> -->
  35. <el-col :span="8" v-if="isShows('血流量')">
  36. <el-form-item label="血流量(ml/min):">
  37. <el-input type="number" v-model="dialysisPrescription.blood_flow_volume"></el-input>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="8" v-if="isShows('目标超滤量')">
  41. <el-form-item label="目标超滤量(L):">
  42. <el-input type="number" v-model="dialysisPrescription.target_ultrafiltration"></el-input>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :span="8" v-if="isShows('透析液配方')">
  46. <el-form-item label="透析液配方:">
  47. <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
  48. <el-select v-model="dialysisPrescription.dialysate_formulation" placeholder="请选择">
  49. <el-option :key="0" label="请选择" :value="0"></el-option>
  50. <el-option v-for="(option, index) in dialysate_formulation_options" :key="index+1" :label="option.name"
  51. :value="option.id"></el-option>
  52. </el-select>
  53. </el-form-item>
  54. </el-col>
  55. <!-- </el-row>
  56. <el-row :gutter="20"> -->
  57. <el-col :span="8" v-if="isShows('抗凝剂')">
  58. <el-form-item label="抗凝剂:">
  59. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"
  60. @change="changeThisAnticoagulant">
  61. <el-option :key="0" label="请选择" :value="0"></el-option>
  62. <el-option v-for="(item,index) in anticoagulantsConfit" :label="item.name" :key="index + 1"
  63. :value="item.id"></el-option>
  64. </el-select>
  65. </el-form-item>
  66. </el-col>
  67. <el-col :span="8" v-if="anticoagulant.shouji != -1&&isShows('首剂')">
  68. <el-form-item :label="'首剂('+anticoagulant.shouji_unit+') : '">
  69. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  70. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  71. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  72. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :span="8" v-if="anticoagulant.weichi != -1&&isShows('维持')">
  76. <el-form-item :label="'维持('+anticoagulant.weichi_unit+') : '" v-if="anticoagulant.weichi != -1">
  77. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  78. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  79. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  80. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  81. </el-form-item>
  82. </el-col>
  83. <el-col :span="8" v-if="anticoagulant.zongliang != -1&&isShows('总量')">
  84. <el-form-item :label="'总量('+anticoagulant.zongliang_unit+') : '">
  85. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  86. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  87. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  88. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  89. </el-form-item>
  90. </el-col>
  91. <el-col :span="8" v-if="isShows('置换量')" v-show="zhiShow">
  92. <el-form-item label="置换量(L):">
  93. <el-input type="number" v-model="dialysisPrescription.replacement_total"></el-input>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="8" v-if="anticoagulant.gaimingcheng != -1&&isShows('钙名称')">
  97. <el-form-item label="钙名称 : ">
  98. <el-input v-model="dialysisPrescription.anticoagulant_gaimingcheng"
  99. :disabled="anticoagulant.gaimingcheng==1?false:true" placeholder="钙名称"></el-input>
  100. </el-form-item>
  101. </el-col>
  102. <el-col :span="8" v-if="anticoagulant.gaijiliang != -1&&isShows('钙剂量')">
  103. <el-form-item label="钙剂量(ml) : ">
  104. <el-input type="number" v-model="dialysisPrescription.anticoagulant_gaijiliang"
  105. :disabled="anticoagulant.gaijiliang==1?false:true" placeholder="钙剂量"></el-input>
  106. </el-form-item>
  107. </el-col>
  108. <el-col :span="8" v-if="isShows('钾')">
  109. <el-form-item label="钾(mmol/L): ">
  110. <el-input type="number" v-model="dialysisPrescription.kalium"></el-input>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="8" v-if="isShows('钠')">
  114. <el-form-item label="钠(mmol/L):">
  115. <el-input type="number" v-model="dialysisPrescription.sodium"></el-input>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="8" v-if="isShows('钙')">
  119. <el-form-item label="钙(mmol/L):">
  120. <el-input type="number" v-model="dialysisPrescription.calcium"></el-input>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="8" v-if="isShows('碳酸氢盐')">
  124. <el-form-item label="碳酸氢盐(mmol/L):">
  125. <el-input type="number" v-model="dialysisPrescription.bicarbonate"></el-input>
  126. </el-form-item>
  127. </el-col>
  128. <el-col :span="8" v-if="isShows('葡萄糖')">
  129. <el-form-item label="葡萄糖(mmol/L):">
  130. <el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
  131. </el-form-item>
  132. </el-col>
  133. <el-col :span="8" v-if="isShows('透析液流量')">
  134. <el-form-item label="透析液流量(ml/min):">
  135. <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
  136. </el-form-item>
  137. </el-col>
  138. <el-col :span="8" v-if="isShows('透析液温度')">
  139. <el-form-item label="透析液温度(°C):">
  140. <el-input type="number" v-model="dialysisPrescription.dialysate_temperature"></el-input>
  141. </el-form-item>
  142. </el-col>
  143. <el-col :span="8" v-if="isShows('电导率')">
  144. <el-form-item label="电导率(mS/cm): ">
  145. <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
  146. </el-form-item>
  147. </el-col>
  148. <el-col :span="8" v-if="isShows('透析器/灌流器')">
  149. <el-form-item label="透析器/灌流器:">
  150. <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
  151. </el-form-item>
  152. </el-col>
  153. <el-col :span="8" v-if="isShows('体液过多症状')">
  154. <el-form-item label="体液过多症状:">
  155. <el-select v-model="dialysisPrescription.body_fluid" placeholder="请选择" style="width:100%;"
  156. >
  157. <el-option :key="0" label="请选择" :value="0"></el-option>
  158. <el-option v-for="(item,index) in body_fluid_option" :label="item.name" :key="index+1"
  159. :value="item.id"></el-option>
  160. </el-select>
  161. </el-form-item>
  162. </el-col>
  163. <!-- </el-row>
  164. <el-row :gutter="20" > -->
  165. <el-col :span="8" v-if="isShows('体液过多其他症状')">
  166. <el-form-item label="体液过多其他症状">
  167. <el-input v-model="dialysisPrescription.body_fluid_other"></el-input>
  168. </el-form-item>
  169. </el-col>
  170. <el-col :span="8" v-if="isShows('透析前使用特殊药物')">
  171. <el-form-item label="透析前使用特殊药物">
  172. <el-select v-model="dialysisPrescription.special_medicine" placeholder="请选择" style="width:100%;"
  173. >
  174. <el-option :key="0" label="请选择" :value="0"></el-option>
  175. <el-option v-for="(item,index) in special_medicine_option" :label="item.name" :key="index+1"
  176. :value="item.id"></el-option>
  177. </el-select>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
  181. <el-form-item label="透析前使用其他特殊药物">
  182. <el-input v-model="dialysisPrescription.special_medicine_other"></el-input>
  183. </el-form-item>
  184. </el-col>
  185. <!-- </el-row>
  186. <el-row :gutter="20" > -->
  187. <el-col :span="8">
  188. <el-form-item label="置换液:" v-if="isShows('置换液')"
  189. v-show="huShow">
  190. <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
  191. <el-option :key="0" label="请选择" :value="0"></el-option>
  192. <el-option v-for="(option, index) in displace_liqui_part_option" :key="index+1"
  193. :label="option.name" :value="option.id"></el-option>
  194. </el-select>
  195. </el-form-item>
  196. </el-col>
  197. <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
  198. <el-form-item label="置换液总量(L)">
  199. <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
  200. </el-form-item>
  201. </el-col>
  202. <el-col :span="8" v-if="isShows('目标KT/V')">
  203. <el-form-item label="目标KT/V">
  204. <el-input v-model="dialysisPrescription.target_ktv"></el-input>
  205. </el-form-item>
  206. </el-col>
  207. <el-col :span="8" v-if="isShows('血管通路')">
  208. <el-form-item label="血管通路:">
  209. <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
  210. <el-option :key="0" label="请选择" :value="0"></el-option>
  211. <el-option v-for="(option, index) in blood_access_option" :key="index+1"
  212. :label="option.name" :value="option.id"></el-option>
  213. </el-select>
  214. </el-form-item>
  215. </el-col>
  216. <!-- </el-row>
  217. <el-row :gutter="20" > -->
  218. <el-col :span="8" v-if="isShows('实际超滤量')">
  219. <el-form-item label="实际超滤量(L)">
  220. <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>
  221. </el-form-item>
  222. </el-col>
  223. <!--透析耗材-->
  224. <el-col :span="8" v-if="isShows('血液透析干粉')&&config.is_open == 1">
  225. <el-form-item label="血液透析干粉:">
  226. <el-select v-model="dialysisPrescription.niprocart" placeholder="请选择">
  227. <el-option :key="0" label="请选择" :value="0"></el-option>
  228. <el-option v-for="(option, index) in niprocart_info" :key="index+1"
  229. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  230. </el-select>
  231. </el-form-item>
  232. </el-col>
  233. <el-col :span="8" v-if="isShows('一次性使用动静脉穿刺针')&&config.is_open == 1">
  234. <el-form-item label="一次性使用动静脉穿刺针:">
  235. <el-select v-model="dialysisPrescription.jms" placeholder="请选择">
  236. <el-option :key="0" label="请选择" :value="0"></el-option>
  237. <el-option v-for="(option, index) in jms_info" :key="index+1"
  238. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  239. </el-select>
  240. </el-form-item>
  241. </el-col>
  242. <el-col :span="8" v-if="isShows('内瘘管翼状针')&&config.is_open == 1">
  243. <el-form-item label="内瘘管翼状针:">
  244. <el-select v-model="dialysisPrescription.fistula_needle_set" placeholder="请选择">
  245. <el-option :key="0" label="请选择" :value="0"></el-option>
  246. <el-option v-for="(option, index) in fistula_needle_set_info" :key="index+1"
  247. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  248. </el-select>
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="8" v-if="isShows('内瘘管翼状针16G')&&config.is_open == 1">
  252. <el-form-item label="内瘘管翼状针16G:">
  253. <el-select v-model="dialysisPrescription.fistula_needle_set_16" placeholder="请选择">
  254. <el-option :key="0" label="请选择" :value="0"></el-option>
  255. <el-option v-for="(option, index) in fistula_needle_set_16_info" :key="index+1"
  256. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  257. </el-select>
  258. </el-form-item>
  259. </el-col>
  260. <el-col :span="8" v-if="isShows('一次性使用血液灌流器')&&config.is_open == 1">
  261. <el-form-item label="一次性使用血液灌流器:">
  262. <el-select v-model="dialysisPrescription.hemoperfusion" placeholder="请选择">
  263. <el-option :key="0" label="请选择" :value="0"></el-option>
  264. <el-option v-for="(option, index) in hemoperfusion_info" :key="index+1"
  265. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  266. </el-select>
  267. </el-form-item>
  268. </el-col>
  269. <el-col :span="8" v-if="isShows('空心纤维血液透析器')&&config.is_open == 1">
  270. <el-form-item label="空心纤维血液透析器:">
  271. <el-select v-model="dialysisPrescription.dialyser_sterilised" placeholder="请选择">
  272. <el-option :key="0" label="请选择" :value="0"></el-option>
  273. <el-option v-for="(option, index) in dialyser_sterilised_info" :key="index+1"
  274. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  275. </el-select>
  276. </el-form-item>
  277. </el-col>
  278. <el-col :span="8" v-if="isShows('中空纤维透析器')&&config.is_open == 1">
  279. <el-form-item label="中空纤维透析器:">
  280. <el-select v-model="dialysisPrescription.filtryzer" placeholder="请选择">
  281. <el-option :key="0" label="请选择" :value="0"></el-option>
  282. <el-option v-for="(option, index) in filtryzer_info" :key="index+1"
  283. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  284. </el-select>
  285. </el-form-item>
  286. </el-col>
  287. <el-col :span="8" v-if="isShows('透析器')&&config.is_open == 1">
  288. <el-form-item label="透析器:">
  289. <el-select v-model="dialysisPrescription.dialyzers" placeholder="请选择">
  290. <el-option :key="0" label="请选择" :value="0"></el-option>
  291. <el-option v-for="(option, index) in dialyzers_info" :key="index+1"
  292. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  293. </el-select>
  294. </el-form-item>
  295. </el-col>
  296. <el-col :span="8" v-if="isShows('注射器')&&config.is_open == 1">
  297. <el-form-item label="注射器:">
  298. <el-select v-model="dialysisPrescription.injector" placeholder="请选择">
  299. <el-option :key="0" label="请选择" :value="0"></el-option>
  300. <el-option v-for="(option, index) in injector_info" :key="index+1"
  301. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  302. </el-select>
  303. </el-form-item>
  304. </el-col>
  305. <el-col :span="8" v-if="isShows('体外循环血路管')&&config.is_open == 1">
  306. <el-form-item label="体外循环血路管:">
  307. <el-select v-model="dialysisPrescription.bloodlines" placeholder="请选择">
  308. <el-option :key="0" label="请选择" :value="0"></el-option>
  309. <el-option v-for="(option, index) in bloodlines_info" :key="index+1"
  310. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  311. </el-select>
  312. </el-form-item>
  313. </el-col>
  314. <el-col :span="8" v-if="isShows('血液净化补液管路(置换管)')&&config.is_open == 1">
  315. <el-form-item label="血液净化补液管路(置换管):">
  316. <el-select v-model="dialysisPrescription.tubing_hemodialysis" placeholder="请选择">
  317. <el-option :key="0" label="请选择" :value="0"></el-option>
  318. <el-option v-for="(option, index) in tubingHemodialysis_info" :key="index+1"
  319. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  320. </el-select>
  321. </el-form-item>
  322. </el-col>
  323. <el-col :span="8" v-if="isShows('护理包')&&config.is_open == 1">
  324. <el-form-item label="护理包:">
  325. <el-select v-model="dialysisPrescription.package" placeholder="请选择">
  326. <el-option :key="0" label="请选择" :value="0"></el-option>
  327. <el-option v-for="(option, index) in safe_package_info" :key="index+1"
  328. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  329. </el-select>
  330. </el-form-item>
  331. </el-col>
  332. <el-col :span="8" v-if="isShows('A液')&&config.is_open == 1">
  333. <el-form-item label="A液:">
  334. <el-select v-model="dialysisPrescription.a_liquid" placeholder="请选择">
  335. <el-option :key="0" label="请选择" :value="0"></el-option>
  336. <el-option v-for="(option, index) in aliquid_info" :key="index+1"
  337. :label="option.GoodInfo.specification_name" :value="option.GoodInfo.id"></el-option>
  338. </el-select>
  339. </el-form-item>
  340. </el-col>
  341. </el-row>
  342. <el-row :gutter="20">
  343. <el-col :span="24">
  344. <el-form-item label="备注: ">
  345. <el-input type="textarea" v-model="dialysisPrescription.remark" :rows="5"></el-input>
  346. </el-form-item>
  347. </el-col>
  348. </el-row>
  349. </el-form>
  350. <span slot="footer" class="dialog-footer">
  351. <el-button @click="handleCancle">取 消</el-button>
  352. <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button>
  353. <el-button type="primary" @click="handleSolution" v-if="isPermission()">保存为长期处方</el-button>
  354. </span>
  355. </el-dialog>
  356. <el-dialog
  357. title="长期医嘱推送"
  358. :visible.sync="isShowRemindAdvice"
  359. width="1010px"
  360. :modal-append-to-body="false"
  361. :append-to-body="true"
  362. >
  363. <el-checkbox-group v-model="checkedCities">
  364. <el-checkbox style="display: flex;align-items: center" v-for="(advice, index) in targetAdvices"
  365. :label="advice.id"
  366. :key="index"
  367. :value="advice.id"
  368. :name="advice.id">
  369. <div style="padding-top: 10px;padding-left: 10px">开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}</div>
  370. <br/>
  371. <div style="padding-left: 10px">开嘱时间&nbsp;{{ getTime(advice.created_time) }}</div>
  372. <br/>
  373. <div style="padding-bottom: 10px;padding-left: 10px"> 医嘱内容&nbsp;{{getContent(advice)}}</div>
  374. <div style="padding-bottom: 10px;padding-left: 10px" v-if="advice.frequency_type == 1"> 推送频率 每次必推</div>
  375. <div style="padding-bottom: 10px;padding-left: 10px" v-if="advice.frequency_type == 2"> 推送频率&nbsp;{{advice.day_count}}天/次</div>
  376. <div style="padding-bottom: 10px;padding-left: 10px" v-if="advice.frequency_type == 3"> 推送频率&nbsp;每周{{advice.week_day}}</div>
  377. </el-checkbox>
  378. </el-checkbox-group>
  379. <span slot="footer" class="dialog-footer">
  380. <el-button @click="handleAdviceCancle">取 消</el-button>
  381. <el-button type="primary" @click="handleAdviceCommit">保 存</el-button>
  382. </span>
  383. </el-dialog>
  384. <el-dialog
  385. :title="patient.name"
  386. :visible.sync="msgtip_visibility"
  387. :close-on-click-modal="false"
  388. :close-on-press-escape="false"
  389. :show-close="false"
  390. width="30%"
  391. >
  392. <div class="newLine">
  393. <span>本次透析日期</span>
  394. <span>{{dialysis_date}}</span>
  395. </div>
  396. <div class="newLine">
  397. <span>透前称重(kg)</span>
  398. <span>{{ getBeforeWeight(predialysis)}}</span>
  399. </div>
  400. <div class="newLine">
  401. <span>干体重(kg)</span>
  402. <span>{{ getDryWeight()}}</span>
  403. </div>
  404. <div class="newLine">
  405. <span>衣物重(kg)</span>
  406. <span>{{
  407. predialysis.additional_weight
  408. }}</span>
  409. </div>
  410. <div class="newLine">
  411. <span>体重增加(kg)</span>
  412. <span>{{ add_weight }}</span>
  413. </div>
  414. <div class="newLine">
  415. <span>透后称重(kg)</span>
  416. <span>{{ getAfterWeight(record) }}</span>
  417. </div>
  418. <div class="newLine">
  419. <span>体重减少(kg)</span>
  420. <span>{{ record.weight_loss }}</span>
  421. </div>
  422. <div class="newLine">
  423. <span>上次透后称重(kg)</span>
  424. <span>{{getLastAfterWeight(last_record)}}</span>
  425. </div>
  426. <span slot="footer" class="dialog-footer">
  427. <el-button @click="cancleMsg()">取 消</el-button>
  428. <el-button type="primary" @click="cancleMsg()">确 定</el-button>
  429. </span>
  430. </el-dialog>
  431. </div>
  432. </template>
  433. <script>
  434. import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution } from '@/api/dialysis'
  435. import { getDataConfig } from '@/utils/data'
  436. import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
  437. import store from '@/store'
  438. import MsgTip from './MsgTip'
  439. export default {
  440. name: 'dialysisPrescriptionDialog',
  441. components: { MsgTip },
  442. props: {
  443. schedual: {
  444. type: Object
  445. },
  446. is_open: {
  447. type: Number,
  448. default: () => {
  449. return 0
  450. }
  451. },
  452. waitUploadAdvices: {
  453. type: Array,
  454. default: () => {
  455. return []
  456. }
  457. },
  458. targetAdvices: {
  459. type: Array,
  460. default: () => {
  461. return []
  462. }
  463. },
  464. admin_users: {
  465. type: Array,
  466. default: () => {
  467. return []
  468. }
  469. },
  470. niprocart_info: {
  471. type: Array,
  472. default: () => {
  473. return []
  474. }
  475. },
  476. jms_info: {
  477. type: Array,
  478. default: () => {
  479. return []
  480. }
  481. },
  482. fistula_needle_set_info: {
  483. type: Array,
  484. default: () => {
  485. return []
  486. }
  487. },
  488. fistula_needle_set_16_info: {
  489. type: Array,
  490. default: () => {
  491. return []
  492. }
  493. },
  494. hemoperfusion_info: {
  495. type: Array,
  496. default: () => {
  497. return []
  498. }
  499. },
  500. dialyser_sterilised_info: {
  501. type: Array,
  502. default: () => {
  503. return []
  504. }
  505. },
  506. filtryzer_info: {
  507. type: Array,
  508. default: () => {
  509. return []
  510. }
  511. },
  512. dialyzers_info: {
  513. type: Array,
  514. default: () => {
  515. return []
  516. }
  517. },
  518. injector_info: {
  519. type: Array,
  520. default: () => {
  521. return []
  522. }
  523. },
  524. bloodlines_info: {
  525. type: Array,
  526. default: () => {
  527. return []
  528. }
  529. },
  530. tubingHemodialysis_info: {
  531. type: Array,
  532. default: () => {
  533. return []
  534. }
  535. },
  536. safe_package_info: {
  537. type: Array,
  538. default: () => {
  539. return []
  540. }
  541. },
  542. aliquid_info: {
  543. type: Array,
  544. default: () => {
  545. return []
  546. }
  547. },
  548. config: {
  549. type: Object,
  550. default: () => {
  551. return { id: 0 }
  552. }
  553. },
  554. prescription: { // 透析处方
  555. type: Object,
  556. default: () => {
  557. return { id: 0 }
  558. }
  559. },
  560. solution: { // 长期处方
  561. type: Object,
  562. default: () => {
  563. return { id: 0 }
  564. }
  565. },
  566. dialysis_order: { // 透析记录
  567. type: Object,
  568. default: () => {
  569. return { id: 0 }
  570. }
  571. },
  572. patient: { // 患者信息
  573. type: Object,
  574. default: () => {
  575. return { id: 0 }
  576. }
  577. },
  578. devices: {
  579. type: Array,
  580. default: function() {
  581. return new Array()
  582. }
  583. },
  584. predialysis: {
  585. type: Object,
  586. default: () => {
  587. return { id: 0 }
  588. }
  589. },
  590. last_predialysis: {
  591. type: Object,
  592. default: () => {
  593. return { id: 0 }
  594. }
  595. },
  596. record: {
  597. type: Object,
  598. default: () => {
  599. return { id: 0 }
  600. }
  601. },
  602. last_record: {
  603. type: Object,
  604. default: () => {
  605. return { id: 0 }
  606. }
  607. }, dry_weight: {
  608. type: Object,
  609. default: () => {
  610. return { id: 0 }
  611. }
  612. }, last_prescription: {
  613. type: Object,
  614. default: () => {
  615. return { id: 0 }
  616. }
  617. }
  618. },
  619. computed: {
  620. dialysis_date: function() {
  621. return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
  622. }
  623. },
  624. data() {
  625. return {
  626. zhiShow: false,
  627. totalShow: false,
  628. huShow: false,
  629. showName: '',
  630. isShowRemindAdvice: false,
  631. checkedCities: [],
  632. isVisibility: false,
  633. isShowTime: false,
  634. isClose: false,
  635. isShow: false,
  636. record_date: '',
  637. time: '',
  638. treatment_mode: [],
  639. timeValue: '',
  640. deviceList: [],
  641. replacement_ways: [],
  642. anticoagulantsConfit: {},
  643. dialysate_formulation_options: [],
  644. add_weight: 0,
  645. body_fluid_option: [],
  646. special_medicine_option: [],
  647. displace_liqui_part_option: [],
  648. blood_access_option: [],
  649. is_pre: 0,
  650. msgtip_visibility: false,
  651. dialysisPrescription: {
  652. replacement_total: '',
  653. mode_id: '',
  654. dialysis_duration: '',
  655. dialysis_duration_hour: '',
  656. dialysis_duration_minute: '',
  657. mode_name: '',
  658. dialyzer: '',
  659. perfusion_apparatus: '',
  660. blood_flow_volume: '',
  661. dewater_amount: '',
  662. displace_liqui: '',
  663. replacement_way: '',
  664. anticoagulant: '',
  665. anticoagulant_shouji: '',
  666. anticoagulant_weichi: '',
  667. anticoagulant_zongliang: '',
  668. anticoagulant_gaimingcheng: '',
  669. anticoagulant_gaijiliang: '',
  670. kalium: '',
  671. sodium: '',
  672. calcium: '',
  673. bicarbonate: '',
  674. glucose: '',
  675. dry_weight: '',
  676. dialysate_flow: '',
  677. dialysate_temperature: '',
  678. target_ultrafiltration: '',
  679. dialysate_formulation: '',
  680. conductivity: '',
  681. doctor: '',
  682. remark: '',
  683. dialyzer_perfusion_apparatus: '',
  684. body_fluid: '',
  685. body_fluid_other: '',
  686. special_medicine: '',
  687. special_medicine_other: '',
  688. displace_liqui_part: '',
  689. displace_liqui_value: '',
  690. ultrafiltration: '',
  691. blood_access: '',
  692. niprocart: '',
  693. jms: '',
  694. fistula_needle_set: '',
  695. fistula_needle_set_16: '',
  696. hemoperfusion: '',
  697. dialyser_sterilised: '',
  698. filtryzer: '',
  699. target_ktv: '',
  700. dialyzers: '',
  701. injector: '',
  702. bloodlines: '',
  703. tubing_hemodialysis: '',
  704. package: '',
  705. a_liquid: '',
  706. no_anticoagulant_shouji: '0',
  707. no_anticoagulant_weichi: '0',
  708. no_anticoagulant_zongliang: '0',
  709. creater:0,
  710. },
  711. anticoagulant: {
  712. id: 0,
  713. name: '',
  714. type: 1,
  715. shouji: 1,
  716. weichi: 1,
  717. zongliang: 1,
  718. gaimingcheng: -1,
  719. gaijiliang: -1,
  720. shouji_unit: 'mg',
  721. weichi_unit: 'mg/h',
  722. zongliang_unit: 'mg',
  723. gaimingcheng_unit: '',
  724. gaijiliang_unit: ''
  725. },
  726. doctorAdvices: []
  727. }
  728. },
  729. methods: {
  730. getDryWeight() {
  731. if (this.dry_weight != null && this.dry_weight.id > 0) {
  732. return this.dry_weight.dry_weight
  733. } else {
  734. if (this.last_predialysis != null && this.last_predialysis.id > 0) {
  735. return this.last_predialysis.dry_weight
  736. } else {
  737. return ''
  738. }
  739. }
  740. },
  741. getLastAfterWeight(record) {
  742. if (record != null && record.id > 0) {
  743. if (record.weight_after > 0) {
  744. let additional_weight = 0
  745. if (this.predialysis.additional_weight != undefined) {
  746. additional_weight = this.predialysis.additional_weight
  747. }
  748. return parseFloat(record.weight_after - additional_weight).toFixed(1)
  749. } else {
  750. return ''
  751. }
  752. }
  753. },
  754. getBeforeWeight(predialysis) {
  755. if (predialysis.id > 0) {
  756. if (predialysis.weight_before > 0) {
  757. return predialysis.weight_before - predialysis.additional_weight
  758. } else {
  759. return ''
  760. }
  761. }
  762. }, getAfterWeight(record) {
  763. if (record.id > 0) {
  764. if (record.weight_after > 0) {
  765. return record.weight_after - this.predialysis.additional_weight
  766. } else {
  767. return ''
  768. }
  769. }
  770. },
  771. isPermission() {
  772. if (this.$store.getters.xt_user.user.user_type == 3 && (this.$store.getters.xt_user.template_info.template_id == 2 || this.$store.getters.xt_user.template_info.template_id == 6)) {
  773. return false
  774. } else {
  775. return true
  776. }
  777. },
  778. setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
  779. this.treatment_mode = this.$store.getters.treatment_mode
  780. this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
  781. this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
  782. this.dialysate_formulation_options = getDataConfig('hemodialysis', 'dialysate_formulation')
  783. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  784. this.dialysisList = this.devices
  785. this.body_fluid_option = this.$store.getters.body_fluid
  786. this.special_medicine_option = this.$store.getters.special_medicine
  787. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  788. this.blood_access_option = this.$store.getters.blood_access_internal_fistula
  789. var date = this.$route.query && this.$route.query.date
  790. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  791. if (this.prescription != null && typeof (this.prescription.id) !== 'undefined' && this.prescription.id > 0) {
  792. for (const key in this.prescription) {
  793. this.dialysisPrescription[key] = this.prescription[key]
  794. }
  795. } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
  796. for (const key in this.solution) {
  797. if (key != 'target_ultrafiltration') {
  798. this.dialysisPrescription[key] = this.solution[key]
  799. }
  800. }
  801. } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
  802. for (const key in lastDialysisPrescribe) {
  803. if (key != 'target_ultrafiltration') {
  804. this.dialysisPrescription[key] = lastDialysisPrescribe[key]
  805. }
  806. }
  807. } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
  808. for (const key in system_prescribe) {
  809. if (key != 'target_ultrafiltration') {
  810. this.dialysisPrescription[key] = system_prescribe[key]
  811. }
  812. }
  813. } else {
  814. this.dialysisPrescription.mode_id = schedual.mode_id
  815. }
  816. var thismode = parseInt(this.dialysisPrescription.anticoagulant)
  817. if (isNaN(thismode) || thismode <= 0) {
  818. return false
  819. }
  820. if (typeof (this.anticoagulantsConfit[thismode]) === 'undefined' || this.anticoagulantsConfit[thismode] == null) {
  821. return false
  822. }
  823. this.anticoagulant = this.anticoagulantsConfit[thismode]
  824. },
  825. menuMsgTip: function() {
  826. this.msgtip_visibility = false
  827. this.isVisibility = true
  828. },
  829. handleAdviceCommit() {
  830. let results = []
  831. for (let i = 0; i < this.targetAdvices.length; i++) {
  832. for (let a = 0; a < this.checkedCities.length; a++) {
  833. if (this.targetAdvices[i].id == this.checkedCities[a]) {
  834. results.push(this.targetAdvices[i])
  835. }
  836. }
  837. }
  838. var obj5 = {}
  839. results = results.reduce((cur, next) => {
  840. obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
  841. return cur
  842. }, [])
  843. var date = new Date()
  844. var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  845. var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  846. if (results.length > 0) {
  847. if (this.is_pre == 1) {
  848. if (this.patient.id <= 0) {
  849. this.$message.error('没有选择患者')
  850. this.loading = false
  851. return
  852. }
  853. const ParamsQuery = this.dialysisPrescription
  854. ParamsQuery['patient'] = this.patient.id
  855. ParamsQuery['record_date'] = this.record_date
  856. console.log(this.prescription)
  857. if(this.prescription.creater <= 0){
  858. mode = 1
  859. }else {
  860. mode = 2
  861. }
  862. postPrescription(ParamsQuery).then(response => {
  863. if (response.data.state == 0) {
  864. this.$message.error(response.data.msg)
  865. return false
  866. } else {
  867. this.$notify({
  868. title: '成功',
  869. message: '提交成功',
  870. type: 'success',
  871. duration: 2000
  872. })
  873. console.log(hour + ':' + minute)
  874. const params = {
  875. advices: results,
  876. advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  877. advice_doctor: results[0].advice_doctor,
  878. advice_type: results[0].advice_type,
  879. parent_id: this.patient_id,
  880. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
  881. remark: ''
  882. }
  883. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
  884. var resp = rs.data
  885. if (resp.state == 1) {
  886. this.doctorAdvices = resp.data.advices
  887. this.$emit('advice')
  888. } else {
  889. }
  890. })
  891. const prescription_resp = response.data.data.prescription
  892. var prescription = this.prescription
  893. for (var index in prescription_resp) {
  894. // prescription[index] = prescription_resp[index];
  895. this.$set(prescription, index, prescription_resp[index])
  896. }
  897. this.hide()
  898. }
  899. })
  900. } else if (this.is_pre == 2) {
  901. if (this.patient.id <= 0) {
  902. this.$message.error('没有选择患者')
  903. this.loading = false
  904. return
  905. }
  906. const ParamsQuery = this.dialysisPrescription
  907. ParamsQuery['patient'] = this.patient.id
  908. ParamsQuery['record_date'] = this.record_date
  909. postSoulution(ParamsQuery).then(response => {
  910. if (response.data.state == 0) {
  911. this.$message.error(response.data.msg)
  912. return false
  913. } else {
  914. this.$notify({
  915. title: '成功',
  916. message: '提交成功',
  917. type: 'success',
  918. duration: 2000
  919. })
  920. console.log(hour + ':' + minute)
  921. const params = {
  922. advices: results,
  923. advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  924. advice_doctor: results[0].advice_doctor,
  925. advice_type: results[0].advice_type,
  926. parent_id: this.patient_id,
  927. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
  928. remark: ''
  929. }
  930. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
  931. var resp = rs.data
  932. if (resp.state == 1) {
  933. // this.doctorAdvices = resp.data.advices
  934. this.$emit('advice')
  935. } else {
  936. }
  937. })
  938. const prescription_resp = response.data.data.prescription
  939. const solution_resp = response.data.data.solution
  940. var prescription = this.prescription
  941. var solution = this.solution
  942. for (var index in prescription_resp) {
  943. // prescription[index] = prescription_resp[index];
  944. this.$set(prescription, index, prescription_resp[index])
  945. }
  946. for (var index in solution_resp) {
  947. // solution[index] = solution_resp[index];
  948. this.$set(solution, index, solution_resp[index])
  949. }
  950. this.hide()
  951. }
  952. })
  953. }
  954. } else {
  955. if (this.is_pre == 1) {
  956. if (this.patient.id <= 0) {
  957. this.$message.error('没有选择患者')
  958. this.loading = false
  959. return
  960. }
  961. const ParamsQuery = this.dialysisPrescription
  962. ParamsQuery['patient'] = this.patient.id
  963. ParamsQuery['record_date'] = this.record_date
  964. console.log(this.prescription)
  965. if(this.prescription.creater <= 0){
  966. mode = 1
  967. }else {
  968. mode = 2
  969. }
  970. postPrescription(ParamsQuery).then(response => {
  971. if (response.data.state == 0) {
  972. this.$message.error(response.data.msg)
  973. return false
  974. } else {
  975. this.$notify({
  976. title: '成功',
  977. message: '提交成功',
  978. type: 'success',
  979. duration: 2000
  980. })
  981. const prescription_resp = response.data.data.prescription
  982. var prescription = this.prescription
  983. for (var index in prescription_resp) {
  984. // prescription[index] = prescription_resp[index];
  985. this.$set(prescription, index, prescription_resp[index])
  986. }
  987. this.hide()
  988. }
  989. })
  990. } else if (this.is_pre == 2) {
  991. if (this.patient.id <= 0) {
  992. this.$message.error('没有选择患者')
  993. this.loading = false
  994. return
  995. }
  996. const ParamsQuery = this.dialysisPrescription
  997. ParamsQuery['patient'] = this.patient.id
  998. ParamsQuery['record_date'] = this.record_date
  999. postSoulution(ParamsQuery).then(response => {
  1000. if (response.data.state == 0) {
  1001. this.$message.error(response.data.msg)
  1002. return false
  1003. } else {
  1004. this.$notify({
  1005. title: '成功',
  1006. message: '提交成功',
  1007. type: 'success',
  1008. duration: 2000
  1009. })
  1010. const prescription_resp = response.data.data.prescription
  1011. const solution_resp = response.data.data.solution
  1012. var prescription = this.prescription
  1013. var solution = this.solution
  1014. for (var index in prescription_resp) {
  1015. // prescription[index] = prescription_resp[index];
  1016. this.$set(prescription, index, prescription_resp[index])
  1017. }
  1018. for (var index in solution_resp) {
  1019. // solution[index] = solution_resp[index];
  1020. this.$set(solution, index, solution_resp[index])
  1021. }
  1022. this.hide()
  1023. }
  1024. })
  1025. }
  1026. }
  1027. this.isShowRemindAdvice = false
  1028. this.isVisibility = true
  1029. },
  1030. handleAdviceCancle() {
  1031. this.isShowRemindAdvice = false
  1032. this.isVisibility = true
  1033. },
  1034. getTime(val) {
  1035. return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
  1036. },
  1037. show() {
  1038. let last_weight_after = 0
  1039. let weight_before = 0
  1040. if (this.last_record == null) {
  1041. last_weight_after = 0
  1042. } else {
  1043. last_weight_after = this.last_record.weight_after
  1044. }
  1045. if (this.predialysis == null || this.predialysis.id == 0) {
  1046. weight_before = 0
  1047. } else {
  1048. weight_before = this.predialysis.weight_before
  1049. }
  1050. if (weight_before > 0 && last_weight_after > 0) {
  1051. this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(2)
  1052. }
  1053. this.isVisibility = true
  1054. this.checkedCities = []
  1055. for (let i = 0; i < this.targetAdvices.length; i++) {
  1056. if (this.targetAdvices[i].isCheck == 1) {
  1057. this.checkedCities.push(this.targetAdvices[i].id)
  1058. }
  1059. }
  1060. },
  1061. hide() {
  1062. this.isVisibility = false
  1063. },
  1064. changeThisAnticoagulant: function(val) {
  1065. var thismode = parseInt(val)
  1066. if (isNaN(thismode) || thismode <= 0) {
  1067. return false
  1068. }
  1069. if (typeof (this.anticoagulantsConfit[thismode]) === 'undefined' || this.anticoagulantsConfit[thismode] == null) {
  1070. return false
  1071. }
  1072. this.anticoagulant = this.anticoagulantsConfit[thismode]
  1073. }, handleCommit: function() {
  1074. if (this.dialysisPrescription.anticoagulant == 1) {
  1075. this.dialysisPrescription.anticoagulant_weichi = '0'
  1076. this.dialysisPrescription.anticoagulant_shouji = '0'
  1077. this.dialysisPrescription.anticoagulant_zongliang = '0'
  1078. }
  1079. if (this.$store.getters.xt_user.template_info.template_id == 6) {
  1080. if (this.dialysisPrescription.mode_id == 2) {
  1081. if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
  1082. this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  1083. return
  1084. }
  1085. }
  1086. }
  1087. this.is_pre = 1
  1088. if (this.prescription.id == 0) {
  1089. if (this.is_open == 0) {
  1090. if (this.patient.id <= 0) {
  1091. this.$message.error('没有选择患者')
  1092. this.loading = false
  1093. return
  1094. }
  1095. const ParamsQuery = this.dialysisPrescription
  1096. ParamsQuery['patient'] = this.patient.id
  1097. ParamsQuery['record_date'] = this.record_date
  1098. console.log(this.prescription)
  1099. if(this.prescription.creater <= 0){
  1100. mode = 1
  1101. }else {
  1102. mode = 2
  1103. }
  1104. postPrescription(ParamsQuery).then(response => {
  1105. if (response.data.state == 0) {
  1106. this.$message.error(response.data.msg)
  1107. return false
  1108. } else {
  1109. this.$notify({
  1110. title: '成功',
  1111. message: '提交成功',
  1112. type: 'success',
  1113. duration: 2000
  1114. })
  1115. const prescription_resp = response.data.data.prescription
  1116. var prescription = this.prescription
  1117. for (var index in prescription_resp) {
  1118. // prescription[index] = prescription_resp[index];
  1119. this.$set(prescription, index, prescription_resp[index])
  1120. }
  1121. this.hide()
  1122. }
  1123. })
  1124. } else if (this.is_open == 1) {
  1125. if (this.targetAdvices.length > 0) {
  1126. // 弹框推送提醒
  1127. this.isShowRemindAdvice = true
  1128. this.isVisibility = false
  1129. } else {
  1130. if (this.patient.id <= 0) {
  1131. this.$message.error('没有选择患者')
  1132. this.loading = false
  1133. return
  1134. }
  1135. const ParamsQuery = this.dialysisPrescription
  1136. ParamsQuery['patient'] = this.patient.id
  1137. ParamsQuery['record_date'] = this.record_date
  1138. console.log(this.prescription)
  1139. if(this.prescription.creater <= 0){
  1140. mode = 1
  1141. }else {
  1142. mode = 2
  1143. }
  1144. postPrescription(ParamsQuery).then(response => {
  1145. if (response.data.state == 0) {
  1146. this.$message.error(response.data.msg)
  1147. return false
  1148. } else {
  1149. this.$notify({
  1150. title: '成功',
  1151. message: '提交成功',
  1152. type: 'success',
  1153. duration: 2000
  1154. })
  1155. const prescription_resp = response.data.data.prescription
  1156. var prescription = this.prescription
  1157. for (var index in prescription_resp) {
  1158. // prescription[index] = prescription_resp[index];
  1159. this.$set(prescription, index, prescription_resp[index])
  1160. }
  1161. this.hide()
  1162. }
  1163. })
  1164. }
  1165. } else if (this.is_open == 2) {
  1166. if (this.waitUploadAdvices.length > 0) {
  1167. const params = {
  1168. advices: this.waitUploadAdvices,
  1169. advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1170. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  1171. advice_type: this.waitUploadAdvices[0].advice_type,
  1172. parent_id: this.patient_id,
  1173. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1174. remark: ''
  1175. }
  1176. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
  1177. var resp = rs.data
  1178. if (resp.state == 1) {
  1179. // this.doctorAdvices = resp.data.advices
  1180. this.$emit('advice')
  1181. } else {
  1182. }
  1183. })
  1184. if (this.patient.id <= 0) {
  1185. this.$message.error('没有选择患者')
  1186. this.loading = false
  1187. return
  1188. }
  1189. const ParamsQuery = this.dialysisPrescription
  1190. ParamsQuery['patient'] = this.patient.id
  1191. ParamsQuery['record_date'] = this.record_date
  1192. console.log(this.prescription)
  1193. if(this.prescription.creater <= 0){
  1194. mode = 1
  1195. }else {
  1196. mode = 2
  1197. }
  1198. postPrescription(ParamsQuery).then(response => {
  1199. if (response.data.state == 0) {
  1200. this.$message.error(response.data.msg)
  1201. return false
  1202. } else {
  1203. this.$notify({
  1204. title: '成功',
  1205. message: '提交成功',
  1206. type: 'success',
  1207. duration: 2000
  1208. })
  1209. const prescription_resp = response.data.data.prescription
  1210. var prescription = this.prescription
  1211. for (var index in prescription_resp) {
  1212. // prescription[index] = prescription_resp[index];
  1213. this.$set(prescription, index, prescription_resp[index])
  1214. }
  1215. this.hide()
  1216. }
  1217. })
  1218. } else {
  1219. if (this.patient.id <= 0) {
  1220. this.$message.error('没有选择患者')
  1221. this.loading = false
  1222. return
  1223. }
  1224. const ParamsQuery = this.dialysisPrescription
  1225. ParamsQuery['patient'] = this.patient.id
  1226. ParamsQuery['record_date'] = this.record_date
  1227. console.log(this.prescription)
  1228. if(this.prescription.creater <= 0){
  1229. mode = 1
  1230. }else {
  1231. mode = 2
  1232. }
  1233. postPrescription(ParamsQuery).then(response => {
  1234. if (response.data.state == 0) {
  1235. this.$message.error(response.data.msg)
  1236. return false
  1237. } else {
  1238. this.$notify({
  1239. title: '成功',
  1240. message: '提交成功',
  1241. type: 'success',
  1242. duration: 2000
  1243. })
  1244. const prescription_resp = response.data.data.prescription
  1245. var prescription = this.prescription
  1246. for (var index in prescription_resp) {
  1247. // prescription[index] = prescription_resp[index];
  1248. this.$set(prescription, index, prescription_resp[index])
  1249. }
  1250. this.hide()
  1251. }
  1252. })
  1253. }
  1254. }
  1255. } else {
  1256. if (this.prescription.creater == 0) {
  1257. if (this.is_open == 0) {
  1258. if (this.patient.id <= 0) {
  1259. this.$message.error('没有选择患者')
  1260. this.loading = false
  1261. return
  1262. }
  1263. const ParamsQuery = this.dialysisPrescription
  1264. ParamsQuery['patient'] = this.patient.id
  1265. ParamsQuery['record_date'] = this.record_date
  1266. console.log(this.prescription)
  1267. if(this.prescription.creater <= 0){
  1268. mode = 1
  1269. }else {
  1270. mode = 2
  1271. }
  1272. postPrescription(ParamsQuery).then(response => {
  1273. if (response.data.state == 0) {
  1274. this.$message.error(response.data.msg)
  1275. return false
  1276. } else {
  1277. this.$notify({
  1278. title: '成功',
  1279. message: '提交成功',
  1280. type: 'success',
  1281. duration: 2000
  1282. })
  1283. const prescription_resp = response.data.data.prescription
  1284. var prescription = this.prescription
  1285. for (var index in prescription_resp) {
  1286. // prescription[index] = prescription_resp[index];
  1287. this.$set(prescription, index, prescription_resp[index])
  1288. }
  1289. this.hide()
  1290. }
  1291. })
  1292. } else if (this.is_open == 1) {
  1293. if (this.targetAdvices.length > 0) {
  1294. // 弹框推送提醒
  1295. this.isShowRemindAdvice = true
  1296. this.isVisibility = false
  1297. } else {
  1298. if (this.patient.id <= 0) {
  1299. this.$message.error('没有选择患者')
  1300. this.loading = false
  1301. return
  1302. }
  1303. const ParamsQuery = this.dialysisPrescription
  1304. ParamsQuery['patient'] = this.patient.id
  1305. ParamsQuery['record_date'] = this.record_date
  1306. console.log(this.prescription)
  1307. if(this.prescription.creater <= 0){
  1308. mode = 1
  1309. }else {
  1310. mode = 2
  1311. }
  1312. postPrescription(ParamsQuery).then(response => {
  1313. if (response.data.state == 0) {
  1314. this.$message.error(response.data.msg)
  1315. return false
  1316. } else {
  1317. this.$notify({
  1318. title: '成功',
  1319. message: '提交成功',
  1320. type: 'success',
  1321. duration: 2000
  1322. })
  1323. const prescription_resp = response.data.data.prescription
  1324. var prescription = this.prescription
  1325. for (var index in prescription_resp) {
  1326. // prescription[index] = prescription_resp[index];
  1327. this.$set(prescription, index, prescription_resp[index])
  1328. }
  1329. this.hide()
  1330. }
  1331. })
  1332. }
  1333. } else if (this.is_open == 2) {
  1334. if (this.waitUploadAdvices.length > 0) {
  1335. const params = {
  1336. advices: this.waitUploadAdvices,
  1337. advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1338. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  1339. advice_type: this.waitUploadAdvices[0].advice_type,
  1340. parent_id: this.patient_id,
  1341. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1342. remark: ''
  1343. }
  1344. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
  1345. var resp = rs.data
  1346. if (resp.state == 1) {
  1347. // this.doctorAdvices = resp.data.advices
  1348. this.$emit('advice')
  1349. } else {
  1350. }
  1351. })
  1352. if (this.patient.id <= 0) {
  1353. this.$message.error('没有选择患者')
  1354. this.loading = false
  1355. return
  1356. }
  1357. const ParamsQuery = this.dialysisPrescription
  1358. ParamsQuery['patient'] = this.patient.id
  1359. ParamsQuery['record_date'] = this.record_date
  1360. console.log(this.prescription)
  1361. if(this.prescription.creater <= 0){
  1362. mode = 1
  1363. }else {
  1364. mode = 2
  1365. }
  1366. postPrescription(ParamsQuery).then(response => {
  1367. if (response.data.state == 0) {
  1368. this.$message.error(response.data.msg)
  1369. return false
  1370. } else {
  1371. this.$notify({
  1372. title: '成功',
  1373. message: '提交成功',
  1374. type: 'success',
  1375. duration: 2000
  1376. })
  1377. const prescription_resp = response.data.data.prescription
  1378. var prescription = this.prescription
  1379. for (var index in prescription_resp) {
  1380. // prescription[index] = prescription_resp[index];
  1381. this.$set(prescription, index, prescription_resp[index])
  1382. }
  1383. this.hide()
  1384. }
  1385. })
  1386. } else {
  1387. if (this.patient.id <= 0) {
  1388. this.$message.error('没有选择患者')
  1389. this.loading = false
  1390. return
  1391. }
  1392. const ParamsQuery = this.dialysisPrescription
  1393. ParamsQuery['patient'] = this.patient.id
  1394. ParamsQuery['record_date'] = this.record_date
  1395. console.log(this.prescription)
  1396. if(this.prescription.creater <= 0){
  1397. mode = 1
  1398. }else {
  1399. mode = 2
  1400. }
  1401. postPrescription(ParamsQuery).then(response => {
  1402. if (response.data.state == 0) {
  1403. this.$message.error(response.data.msg)
  1404. return false
  1405. } else {
  1406. this.$notify({
  1407. title: '成功',
  1408. message: '提交成功',
  1409. type: 'success',
  1410. duration: 2000
  1411. })
  1412. const prescription_resp = response.data.data.prescription
  1413. var prescription = this.prescription
  1414. for (var index in prescription_resp) {
  1415. // prescription[index] = prescription_resp[index];
  1416. this.$set(prescription, index, prescription_resp[index])
  1417. }
  1418. this.hide()
  1419. }
  1420. })
  1421. }
  1422. }
  1423. } else {
  1424. if (this.patient.id <= 0) {
  1425. this.$message.error('没有选择患者')
  1426. this.loading = false
  1427. return
  1428. }
  1429. const ParamsQuery = this.dialysisPrescription
  1430. ParamsQuery['patient'] = this.patient.id
  1431. ParamsQuery['record_date'] = this.record_date
  1432. console.log(this.prescription)
  1433. if(this.prescription.creater <= 0){
  1434. mode = 1
  1435. }else {
  1436. mode = 2
  1437. }
  1438. postPrescription(ParamsQuery).then(response => {
  1439. if (response.data.state == 0) {
  1440. this.$message.error(response.data.msg)
  1441. return false
  1442. } else {
  1443. this.$notify({
  1444. title: '成功',
  1445. message: '提交成功',
  1446. type: 'success',
  1447. duration: 2000
  1448. })
  1449. const prescription_resp = response.data.data.prescription
  1450. var prescription = this.prescription
  1451. for (var index in prescription_resp) {
  1452. // prescription[index] = prescription_resp[index];
  1453. this.$set(prescription, index, prescription_resp[index])
  1454. }
  1455. this.hide()
  1456. }
  1457. })
  1458. }
  1459. }
  1460. }, handleCancle: function() {
  1461. this.hide()
  1462. }, handleSolution: function() {
  1463. if (this.dialysisPrescription.anticoagulant == 1) {
  1464. this.dialysisPrescription.anticoagulant_weichi = '0'
  1465. this.dialysisPrescription.anticoagulant_shouji = '0'
  1466. this.dialysisPrescription.anticoagulant_zongliang = '0'
  1467. }
  1468. if (this.$store.getters.xt_user.template_info.template_id == 6) {
  1469. if (this.dialysisPrescription.mode_id == 2) {
  1470. if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
  1471. this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  1472. return
  1473. }
  1474. }
  1475. }
  1476. this.is_pre = 2
  1477. if (this.prescription.id == 0) {
  1478. if (this.is_open == 0) {
  1479. if (this.patient.id <= 0) {
  1480. this.$message.error('没有选择患者')
  1481. this.loading = false
  1482. return
  1483. }
  1484. const ParamsQuery = this.dialysisPrescription
  1485. ParamsQuery['patient'] = this.patient.id
  1486. ParamsQuery['record_date'] = this.record_date
  1487. postSoulution(ParamsQuery).then(response => {
  1488. if (response.data.state == 0) {
  1489. this.$message.error(response.data.msg)
  1490. return false
  1491. } else {
  1492. this.$notify({
  1493. title: '成功',
  1494. message: '提交成功',
  1495. type: 'success',
  1496. duration: 2000
  1497. })
  1498. const prescription_resp = response.data.data.prescription
  1499. const solution_resp = response.data.data.solution
  1500. var prescription = this.prescription
  1501. var solution = this.solution
  1502. for (var index in prescription_resp) {
  1503. // prescription[index] = prescription_resp[index];
  1504. this.$set(prescription, index, prescription_resp[index])
  1505. }
  1506. for (var index in solution_resp) {
  1507. // solution[index] = solution_resp[index];
  1508. this.$set(solution, index, solution_resp[index])
  1509. }
  1510. this.hide()
  1511. }
  1512. })
  1513. } else if (this.is_open == 1) {
  1514. if (this.targetAdvices.length > 0) {
  1515. // 弹框推送提醒
  1516. this.isShowRemindAdvice = true
  1517. this.isVisibility = false
  1518. } else {
  1519. if (this.patient.id <= 0) {
  1520. this.$message.error('没有选择患者')
  1521. this.loading = false
  1522. return
  1523. }
  1524. const ParamsQuery = this.dialysisPrescription
  1525. ParamsQuery['patient'] = this.patient.id
  1526. ParamsQuery['record_date'] = this.record_date
  1527. postSoulution(ParamsQuery).then(response => {
  1528. if (response.data.state == 0) {
  1529. this.$message.error(response.data.msg)
  1530. return false
  1531. } else {
  1532. this.$notify({
  1533. title: '成功',
  1534. message: '提交成功',
  1535. type: 'success',
  1536. duration: 2000
  1537. })
  1538. const prescription_resp = response.data.data.prescription
  1539. const solution_resp = response.data.data.solution
  1540. var prescription = this.prescription
  1541. var solution = this.solution
  1542. for (var index in prescription_resp) {
  1543. // prescription[index] = prescription_resp[index];
  1544. this.$set(prescription, index, prescription_resp[index])
  1545. }
  1546. for (var index in solution_resp) {
  1547. // solution[index] = solution_resp[index];
  1548. this.$set(solution, index, solution_resp[index])
  1549. }
  1550. this.hide()
  1551. }
  1552. })
  1553. }
  1554. } else if (this.is_open == 2) {
  1555. if (this.waitUploadAdvices.length > 0) {
  1556. const params = {
  1557. advices: this.waitUploadAdvices,
  1558. advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1559. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  1560. advice_type: this.waitUploadAdvices[0].advice_type,
  1561. parent_id: this.patient_id,
  1562. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1563. remark: ''
  1564. }
  1565. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
  1566. var resp = rs.data
  1567. if (resp.state == 1) {
  1568. // this.doctorAdvices = resp.data.advices
  1569. this.$emit('advice')
  1570. } else {
  1571. }
  1572. })
  1573. if (this.patient.id <= 0) {
  1574. this.$message.error('没有选择患者')
  1575. this.loading = false
  1576. return
  1577. }
  1578. const ParamsQuery = this.dialysisPrescription
  1579. ParamsQuery['patient'] = this.patient.id
  1580. ParamsQuery['record_date'] = this.record_date
  1581. console.log(this.prescription)
  1582. if(this.prescription.creater <= 0){
  1583. mode = 1
  1584. }else {
  1585. mode = 2
  1586. }
  1587. postPrescription(ParamsQuery).then(response => {
  1588. if (response.data.state == 0) {
  1589. this.$message.error(response.data.msg)
  1590. return false
  1591. } else {
  1592. this.$notify({
  1593. title: '成功',
  1594. message: '提交成功',
  1595. type: 'success',
  1596. duration: 2000
  1597. })
  1598. const prescription_resp = response.data.data.prescription
  1599. var prescription = this.prescription
  1600. for (var index in prescription_resp) {
  1601. // prescription[index] = prescription_resp[index];
  1602. this.$set(prescription, index, prescription_resp[index])
  1603. }
  1604. this.hide()
  1605. }
  1606. })
  1607. } else {
  1608. if (this.patient.id <= 0) {
  1609. this.$message.error('没有选择患者')
  1610. this.loading = false
  1611. return
  1612. }
  1613. const ParamsQuery = this.dialysisPrescription
  1614. ParamsQuery['patient'] = this.patient.id
  1615. ParamsQuery['record_date'] = this.record_date
  1616. postSoulution(ParamsQuery).then(response => {
  1617. if (response.data.state == 0) {
  1618. this.$message.error(response.data.msg)
  1619. return false
  1620. } else {
  1621. this.$notify({
  1622. title: '成功',
  1623. message: '提交成功',
  1624. type: 'success',
  1625. duration: 2000
  1626. })
  1627. const prescription_resp = response.data.data.prescription
  1628. const solution_resp = response.data.data.solution
  1629. var prescription = this.prescription
  1630. var solution = this.solution
  1631. for (var index in prescription_resp) {
  1632. // prescription[index] = prescription_resp[index];
  1633. this.$set(prescription, index, prescription_resp[index])
  1634. }
  1635. for (var index in solution_resp) {
  1636. // solution[index] = solution_resp[index];
  1637. this.$set(solution, index, solution_resp[index])
  1638. }
  1639. this.hide()
  1640. }
  1641. })
  1642. }
  1643. }
  1644. } else {
  1645. if (this.prescription.creater == 0) {
  1646. if (this.is_open == 0) {
  1647. if (this.patient.id <= 0) {
  1648. this.$message.error('没有选择患者')
  1649. this.loading = false
  1650. return
  1651. }
  1652. const ParamsQuery = this.dialysisPrescription
  1653. ParamsQuery['patient'] = this.patient.id
  1654. ParamsQuery['record_date'] = this.record_date
  1655. postSoulution(ParamsQuery).then(response => {
  1656. if (response.data.state == 0) {
  1657. this.$message.error(response.data.msg)
  1658. return false
  1659. } else {
  1660. this.$notify({
  1661. title: '成功',
  1662. message: '提交成功',
  1663. type: 'success',
  1664. duration: 2000
  1665. })
  1666. const prescription_resp = response.data.data.prescription
  1667. const solution_resp = response.data.data.solution
  1668. var prescription = this.prescription
  1669. var solution = this.solution
  1670. for (var index in prescription_resp) {
  1671. // prescription[index] = prescription_resp[index];
  1672. this.$set(prescription, index, prescription_resp[index])
  1673. }
  1674. for (var index in solution_resp) {
  1675. // solution[index] = solution_resp[index];
  1676. this.$set(solution, index, solution_resp[index])
  1677. }
  1678. this.hide()
  1679. }
  1680. })
  1681. } else if (this.is_open == 1) {
  1682. if (this.targetAdvices.length > 0) {
  1683. // 弹框推送提醒
  1684. this.isShowRemindAdvice = true
  1685. this.isVisibility = false
  1686. } else {
  1687. if (this.patient.id <= 0) {
  1688. this.$message.error('没有选择患者')
  1689. this.loading = false
  1690. return
  1691. }
  1692. const ParamsQuery = this.dialysisPrescription
  1693. ParamsQuery['patient'] = this.patient.id
  1694. ParamsQuery['record_date'] = this.record_date
  1695. postSoulution(ParamsQuery).then(response => {
  1696. if (response.data.state == 0) {
  1697. this.$message.error(response.data.msg)
  1698. return false
  1699. } else {
  1700. this.$notify({
  1701. title: '成功',
  1702. message: '提交成功',
  1703. type: 'success',
  1704. duration: 2000
  1705. })
  1706. const prescription_resp = response.data.data.prescription
  1707. const solution_resp = response.data.data.solution
  1708. var prescription = this.prescription
  1709. var solution = this.solution
  1710. for (var index in prescription_resp) {
  1711. // prescription[index] = prescription_resp[index];
  1712. this.$set(prescription, index, prescription_resp[index])
  1713. }
  1714. for (var index in solution_resp) {
  1715. // solution[index] = solution_resp[index];
  1716. this.$set(solution, index, solution_resp[index])
  1717. }
  1718. this.hide()
  1719. }
  1720. })
  1721. }
  1722. } else if (this.is_open == 2) {
  1723. if (this.waitUploadAdvices.length > 0) {
  1724. const params = {
  1725. advices: this.waitUploadAdvices,
  1726. advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1727. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  1728. advice_type: this.waitUploadAdvices[0].advice_type,
  1729. parent_id: this.patient_id,
  1730. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  1731. remark: ''
  1732. }
  1733. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
  1734. var resp = rs.data
  1735. if (resp.state == 1) {
  1736. // this.doctorAdvices = resp.data.advices
  1737. this.$emit('advice')
  1738. } else {
  1739. }
  1740. })
  1741. if (this.patient.id <= 0) {
  1742. this.$message.error('没有选择患者')
  1743. this.loading = false
  1744. return
  1745. }
  1746. const ParamsQuery = this.dialysisPrescription
  1747. ParamsQuery['patient'] = this.patient.id
  1748. ParamsQuery['record_date'] = this.record_date
  1749. postSoulution(ParamsQuery).then(response => {
  1750. if (response.data.state == 0) {
  1751. this.$message.error(response.data.msg)
  1752. return false
  1753. } else {
  1754. this.$notify({
  1755. title: '成功',
  1756. message: '提交成功',
  1757. type: 'success',
  1758. duration: 2000
  1759. })
  1760. const prescription_resp = response.data.data.prescription
  1761. const solution_resp = response.data.data.solution
  1762. var prescription = this.prescription
  1763. var solution = this.solution
  1764. for (var index in prescription_resp) {
  1765. // prescription[index] = prescription_resp[index];
  1766. this.$set(prescription, index, prescription_resp[index])
  1767. }
  1768. for (var index in solution_resp) {
  1769. // solution[index] = solution_resp[index];
  1770. this.$set(solution, index, solution_resp[index])
  1771. }
  1772. this.hide()
  1773. }
  1774. })
  1775. } else {
  1776. if (this.patient.id <= 0) {
  1777. this.$message.error('没有选择患者')
  1778. this.loading = false
  1779. return
  1780. }
  1781. const ParamsQuery = this.dialysisPrescription
  1782. ParamsQuery['patient'] = this.patient.id
  1783. ParamsQuery['record_date'] = this.record_date
  1784. postSoulution(ParamsQuery).then(response => {
  1785. if (response.data.state == 0) {
  1786. this.$message.error(response.data.msg)
  1787. return false
  1788. } else {
  1789. this.$notify({
  1790. title: '成功',
  1791. message: '提交成功',
  1792. type: 'success',
  1793. duration: 2000
  1794. })
  1795. const prescription_resp = response.data.data.prescription
  1796. const solution_resp = response.data.data.solution
  1797. var prescription = this.prescription
  1798. var solution = this.solution
  1799. for (var index in prescription_resp) {
  1800. // prescription[index] = prescription_resp[index];
  1801. this.$set(prescription, index, prescription_resp[index])
  1802. }
  1803. for (var index in solution_resp) {
  1804. // solution[index] = solution_resp[index];
  1805. this.$set(solution, index, solution_resp[index])
  1806. }
  1807. this.hide()
  1808. }
  1809. })
  1810. }
  1811. }
  1812. } else {
  1813. if (this.patient.id <= 0) {
  1814. this.$message.error('没有选择患者')
  1815. this.loading = false
  1816. return
  1817. }
  1818. const ParamsQuery = this.dialysisPrescription
  1819. ParamsQuery['patient'] = this.patient.id
  1820. ParamsQuery['record_date'] = this.record_date
  1821. postSoulution(ParamsQuery).then(response => {
  1822. if (response.data.state == 0) {
  1823. this.$message.error(response.data.msg)
  1824. return false
  1825. } else {
  1826. this.$notify({
  1827. title: '成功',
  1828. message: '提交成功',
  1829. type: 'success',
  1830. duration: 2000
  1831. })
  1832. const prescription_resp = response.data.data.prescription
  1833. const solution_resp = response.data.data.solution
  1834. var prescription = this.prescription
  1835. var solution = this.solution
  1836. for (var index in prescription_resp) {
  1837. // prescription[index] = prescription_resp[index];
  1838. this.$set(prescription, index, prescription_resp[index])
  1839. }
  1840. for (var index in solution_resp) {
  1841. // solution[index] = solution_resp[index];
  1842. this.$set(solution, index, solution_resp[index])
  1843. }
  1844. this.hide()
  1845. }
  1846. })
  1847. }
  1848. }
  1849. }, isShows(name) {
  1850. var filedList = store.getters.xt_user.fileds
  1851. for (let i = 0; i < filedList.length; i++) {
  1852. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  1853. return true
  1854. }
  1855. }
  1856. return false
  1857. }, getDoctorName(doctor_id) {
  1858. for (let i = 0; i < this.admin_users.length; i++) {
  1859. if (this.admin_users[i].id == doctor_id) {
  1860. return this.admin_users[i].name
  1861. }
  1862. }
  1863. }, getContent(val) {
  1864. let prescribing_number = ''
  1865. let single_dose = ''
  1866. let advice_desc = ''
  1867. if (val.prescribing_number > 0) {
  1868. prescribing_number = val.prescribing_number + val.prescribing_number_unit
  1869. }
  1870. if (val.single_dose > 0) {
  1871. single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
  1872. }
  1873. if (val.advice_desc > 0) {
  1874. advice_desc = val.advice_desc + val.drug_spec_unit
  1875. }
  1876. let name = ''
  1877. if (val.child.length > 0) {
  1878. for (let i = 0; i < val.child.length; i++) {
  1879. if (val.child[i].prescribing_number > 0) {
  1880. val.child[i]['presc'] = val.child[i].prescribing_number + val.child[i].prescribing_number_unit
  1881. } else {
  1882. val.child[i]['presc'] = ''
  1883. }
  1884. if (val.child[i].single_dose > 0) {
  1885. val.child[i]['single'] = ' ' + ' 单次用量 ' + ' ' + val.child[i].single_dose + val.child[i].single_dose_unit
  1886. } else {
  1887. val.child[i]['single'] = ''
  1888. }
  1889. name = name + '▲' + val.child[i].advice_name + '' +
  1890. val.child[i].advice_desc +
  1891. val.child[i].drug_spec_unit +
  1892. val.child[i].presc +
  1893. val.child[i].single
  1894. }
  1895. return val.advice_name + ' ' + advice_desc + ' ' +
  1896. val.drug_spec_unit +
  1897. prescribing_number +
  1898. ' ' + single_dose + ' ' + ' ' + val.delivery_way + ' ' + val.execution_frequency + val.remark + name
  1899. } else {
  1900. return val.advice_name + ' ' + advice_desc +
  1901. prescribing_number +
  1902. ' ' + single_dose + ' ' + ' ' + val.delivery_way + ' ' + val.execution_frequency + val.remark
  1903. }
  1904. },
  1905. changePrescription(id) {
  1906. const ParamsQuery = {}
  1907. ParamsQuery['patient_id'] = this.$route.query.patient_id
  1908. ParamsQuery['mode_id'] = id
  1909. GetSolution(ParamsQuery).then(response => {
  1910. if (response.data.state == 0) {
  1911. this.$message.error(response.data.msg)
  1912. return false
  1913. } else {
  1914. this.$message.success('切换成功')
  1915. if (response.data.data.solution != null) {
  1916. for (const key in response.data.data.solution) { // 长期处方不为空
  1917. if (key != 'target_ultrafiltration') {
  1918. this.dialysisPrescription[key] = response.data.data.solution[key]
  1919. }
  1920. }
  1921. } else {
  1922. if (response.data.data.prescription != null) { // 临时处方不为空
  1923. for (const key in response.data.data.prescription) {
  1924. if (key != 'target_ultrafiltration') {
  1925. this.dialysisPrescription[key] = response.data.data.prescription[key]
  1926. }
  1927. }
  1928. } else if (response.data.data.system_prescription != null) { // 临时处方不为空
  1929. for (const key in response.data.data.system_prescription) {
  1930. if (key != 'target_ultrafiltration') {
  1931. this.dialysisPrescription[key] = response.data.data.system_prescription[key]
  1932. }
  1933. }
  1934. } else {
  1935. for (const key in this.dialysisPrescription) { // 临时处方为空
  1936. if (key != 'target_ultrafiltration') {
  1937. this.dialysisPrescription[key] = ''
  1938. }
  1939. }
  1940. this.dialysisPrescription.mode_id = id
  1941. }
  1942. }
  1943. }
  1944. if (this.dialysisPrescription.dialysis_duration_hour === '' || this.dialysisPrescription.dialysis_duration_minute === '') {
  1945. this.timeValue = ''
  1946. this.time = '03:00'
  1947. } else {
  1948. this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
  1949. this.time = (this.dialysisPrescription.dialysis_duration_hour > 10 ? this.dialysisPrescription.dialysis_duration_hour : '0' + this.dialysisPrescription.dialysis_duration_hour) + ':' + (this.dialysisPrescription.dialysis_duration_minute > 10 ? this.dialysisPrescription.dialysis_duration_minute : '0' + this.dialysisPrescription.dialysis_duration_minute)
  1950. }
  1951. })
  1952. if (id === 1 || id === 3 || id === 4 || id === 6 || id === 7 || id === 8 || id === 9 || id === 10 || id === 11 || id === 13 || id === 14 || id === 15 || id === 16) {
  1953. this.zhiShow = false
  1954. this.huShow = false
  1955. this.totalShow = false
  1956. } else {
  1957. this.zhiShow = true
  1958. this.huShow = true
  1959. this.totalShow = true
  1960. }
  1961. }, handlePatientInfo() {
  1962. this.isVisibility = false
  1963. this.msgtip_visibility = true
  1964. }, cancleMsg() {
  1965. this.isVisibility = true
  1966. this.msgtip_visibility = false
  1967. }
  1968. },
  1969. watch: {
  1970. 'dialysisPrescription.dialysis_duration_hour': function() {
  1971. let dialysis_duration_minute = 0
  1972. let dialysis_duration_hour = 0
  1973. let duration = 0
  1974. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  1975. dialysis_duration_minute = 0
  1976. } else {
  1977. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  1978. }
  1979. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  1980. dialysis_duration_hour = 0
  1981. } else {
  1982. dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
  1983. }
  1984. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  1985. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
  1986. this.dialysisPrescription.anticoagulant_shouji,
  1987. duration,
  1988. this.dialysisPrescription.anticoagulant_weichi
  1989. )
  1990. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  1991. this.dialysisPrescription.anticoagulant_zongliang = ''
  1992. }
  1993. },
  1994. 'dialysisPrescription.dialysis_duration_minute': function() {
  1995. let dialysis_duration_minute = 0
  1996. let dialysis_duration_hour = 0
  1997. let duration = 0
  1998. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  1999. dialysis_duration_minute = 0
  2000. } else {
  2001. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  2002. }
  2003. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  2004. dialysis_duration_hour = 0
  2005. } else {
  2006. dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
  2007. }
  2008. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  2009. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
  2010. this.dialysisPrescription.anticoagulant_shouji,
  2011. duration,
  2012. this.dialysisPrescription.anticoagulant_weichi
  2013. )
  2014. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  2015. this.dialysisPrescription.anticoagulant_zongliang = ''
  2016. }
  2017. },
  2018. 'dialysisPrescription.anticoagulant_shouji': function() {
  2019. let dialysis_duration_minute = 0
  2020. let dialysis_duration_hour = 0
  2021. let duration = 0
  2022. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  2023. dialysis_duration_minute = 0
  2024. } else {
  2025. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  2026. }
  2027. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  2028. dialysis_duration_hour = 0
  2029. } else {
  2030. dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
  2031. }
  2032. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  2033. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
  2034. this.dialysisPrescription.anticoagulant_shouji,
  2035. duration,
  2036. this.dialysisPrescription.anticoagulant_weichi
  2037. )
  2038. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  2039. this.dialysisPrescription.anticoagulant_zongliang = ''
  2040. }
  2041. },
  2042. 'dialysisPrescription.anticoagulant_weichi': function() {
  2043. let dialysis_duration_minute = 0
  2044. let dialysis_duration_hour = 0
  2045. let duration = 0
  2046. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  2047. dialysis_duration_minute = 0
  2048. } else {
  2049. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  2050. }
  2051. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  2052. dialysis_duration_hour = 0
  2053. } else {
  2054. dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
  2055. }
  2056. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  2057. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
  2058. this.dialysisPrescription.anticoagulant_shouji,
  2059. duration,
  2060. this.dialysisPrescription.anticoagulant_weichi
  2061. )
  2062. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  2063. this.dialysisPrescription.anticoagulant_zongliang = ''
  2064. }
  2065. }, 'prescription.id': function() {
  2066. if (this.prescription.id > 0) {
  2067. for (var index in this.dialysisPrescription) {
  2068. this.dialysisPrescription[index] = this.prescription[index]
  2069. }
  2070. if (this.prescription['dialysate_formulation'] == 0) {
  2071. this.dialysisPrescription['dialysate_formulation'] = ''
  2072. }
  2073. if (this.prescription['anticoagulant'] == 0) {
  2074. this.dialysisPrescription['anticoagulant'] = ''
  2075. }
  2076. if (this.prescription['dialysis_duration_hour'] == 0) {
  2077. this.dialysisPrescription['dialysis_duration_hour'] = ''
  2078. }
  2079. if (this.prescription['dialysis_duration_minute'] == 0) {
  2080. this.dialysisPrescription['dialysis_duration_minute'] = ''
  2081. }
  2082. if (this.prescription['blood_flow_volume'] == 0) {
  2083. this.dialysisPrescription['blood_flow_volume'] = ''
  2084. }
  2085. if (this.prescription['target_ultrafiltration'] == 0) {
  2086. this.dialysisPrescription['target_ultrafiltration'] = ''
  2087. }
  2088. if (this.prescription['dialysate_temperature'] == 0) {
  2089. this.dialysisPrescription['dialysate_temperature'] = ''
  2090. }
  2091. if (this.prescription['anticoagulant_shouji'] == 0) {
  2092. this.dialysisPrescription['anticoagulant_shouji'] = ''
  2093. }
  2094. if (this.prescription['anticoagulant_weichi'] == 0) {
  2095. this.dialysisPrescription['anticoagulant_weichi'] = ''
  2096. }
  2097. if (this.prescription['anticoagulant_zongliang'] == 0) {
  2098. this.dialysisPrescription['anticoagulant_zongliang'] = ''
  2099. }
  2100. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  2101. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  2102. }
  2103. if (this.prescription['kalium'] == 0) {
  2104. this.dialysisPrescription['kalium'] = ''
  2105. }
  2106. if (this.prescription['sodium'] == 0) {
  2107. this.dialysisPrescription['sodium'] = ''
  2108. }
  2109. if (this.prescription['calcium'] == 0) {
  2110. this.dialysisPrescription['calcium'] = ''
  2111. }
  2112. if (this.prescription['bicarbonate'] == 0) {
  2113. this.dialysisPrescription['bicarbonate'] = ''
  2114. }
  2115. if (this.prescription['glucose'] == 0) {
  2116. this.dialysisPrescription['glucose'] = ''
  2117. }
  2118. if (this.prescription['dialysate_flow'] == 0) {
  2119. this.dialysisPrescription['dialysate_flow'] = ''
  2120. }
  2121. if (this.prescription['conductivity'] == 0) {
  2122. this.dialysisPrescription['conductivity'] = ''
  2123. }
  2124. if (this.prescription['replacement_total'] == 0) {
  2125. this.dialysisPrescription['replacement_total'] = ''
  2126. }
  2127. if (this.prescription['target_ktv'] == 0) {
  2128. this.dialysisPrescription['target_ktv'] = ''
  2129. }
  2130. }
  2131. },
  2132. 'solution.id': function() {
  2133. if (this.solution.id > 0) {
  2134. if (this.prescription != null && typeof (this.prescription.id) !== 'undefined' && this.prescription.id > 0) {
  2135. for (const key in this.prescription) {
  2136. this.dialysisPrescription[key] = this.prescription[key]
  2137. }
  2138. if (this.prescription['dialysate_formulation'] == 0) {
  2139. this.dialysisPrescription['dialysate_formulation'] = ''
  2140. }
  2141. if (this.prescription['anticoagulant'] == 0) {
  2142. this.dialysisPrescription['anticoagulant'] = ''
  2143. }
  2144. if (this.prescription['dialysis_duration_hour'] == 0) {
  2145. this.dialysisPrescription['dialysis_duration_hour'] = ''
  2146. }
  2147. if (this.prescription['dialysis_duration_minute'] == 0) {
  2148. this.dialysisPrescription['dialysis_duration_minute'] = ''
  2149. }
  2150. if (this.prescription['blood_flow_volume'] == 0) {
  2151. this.dialysisPrescription['blood_flow_volume'] = ''
  2152. }
  2153. if (this.prescription['target_ultrafiltration'] == 0) {
  2154. this.dialysisPrescription['target_ultrafiltration'] = ''
  2155. }
  2156. if (this.prescription['dialysate_temperature'] == 0) {
  2157. this.dialysisPrescription['dialysate_temperature'] = ''
  2158. }
  2159. if (this.prescription['anticoagulant_shouji'] == 0) {
  2160. this.dialysisPrescription['anticoagulant_shouji'] = ''
  2161. }
  2162. if (this.prescription['anticoagulant_weichi'] == 0) {
  2163. this.dialysisPrescription['anticoagulant_weichi'] = ''
  2164. }
  2165. if (this.prescription['anticoagulant_zongliang'] == 0) {
  2166. this.dialysisPrescription['anticoagulant_zongliang'] = ''
  2167. }
  2168. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  2169. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  2170. }
  2171. if (this.prescription['kalium'] == 0) {
  2172. this.dialysisPrescription['kalium'] = ''
  2173. }
  2174. if (this.prescription['sodium'] == 0) {
  2175. this.dialysisPrescription['sodium'] = ''
  2176. }
  2177. if (this.prescription['calcium'] == 0) {
  2178. this.dialysisPrescription['calcium'] = ''
  2179. }
  2180. if (this.prescription['bicarbonate'] == 0) {
  2181. this.dialysisPrescription['bicarbonate'] = ''
  2182. }
  2183. if (this.prescription['glucose'] == 0) {
  2184. this.dialysisPrescription['glucose'] = ''
  2185. }
  2186. if (this.prescription['dialysate_flow'] == 0) {
  2187. this.dialysisPrescription['dialysate_flow'] = ''
  2188. }
  2189. if (this.prescription['conductivity'] == 0) {
  2190. this.dialysisPrescription['conductivity'] = ''
  2191. }
  2192. if (this.prescription['replacement_total'] == 0) {
  2193. this.dialysisPrescription['replacement_total'] = ''
  2194. }
  2195. if (this.prescription['target_ktv'] == 0) {
  2196. this.dialysisPrescription['target_ktv'] = ''
  2197. }
  2198. } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
  2199. for (const key in this.solution) {
  2200. this.dialysisPrescription[key] = this.solution[key]
  2201. }
  2202. if (this.solution['dialysate_formulation'] == 0) {
  2203. this.dialysisPrescription['dialysate_formulation'] = ''
  2204. }
  2205. if (this.solution['anticoagulant'] == 0) {
  2206. this.dialysisPrescription['anticoagulant'] = ''
  2207. }
  2208. if (this.solution['dialysis_duration_hour'] == 0) {
  2209. this.dialysisPrescription['dialysis_duration_hour'] = ''
  2210. }
  2211. if (this.solution['dialysis_duration_minute'] == 0) {
  2212. this.dialysisPrescription['dialysis_duration_minute'] = ''
  2213. }
  2214. if (this.solution['blood_flow_volume'] == 0) {
  2215. this.dialysisPrescription['blood_flow_volume'] = ''
  2216. }
  2217. if (this.solution['target_ultrafiltration'] == 0) {
  2218. this.dialysisPrescription['target_ultrafiltration'] = ''
  2219. }
  2220. if (this.solution['dialysate_temperature'] == 0) {
  2221. this.dialysisPrescription['dialysate_temperature'] = ''
  2222. }
  2223. if (this.solution['anticoagulant_shouji'] == 0) {
  2224. this.dialysisPrescription['anticoagulant_shouji'] = ''
  2225. }
  2226. if (this.solution['anticoagulant_weichi'] == 0) {
  2227. this.dialysisPrescription['anticoagulant_weichi'] = ''
  2228. }
  2229. if (this.solution['anticoagulant_zongliang'] == 0) {
  2230. this.dialysisPrescription['anticoagulant_zongliang'] = ''
  2231. }
  2232. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  2233. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  2234. }
  2235. if (this.solution['kalium'] == 0) {
  2236. this.dialysisPrescription['kalium'] = ''
  2237. }
  2238. if (this.solution['sodium'] == 0) {
  2239. this.dialysisPrescription['sodium'] = ''
  2240. }
  2241. if (this.solution['calcium'] == 0) {
  2242. this.dialysisPrescription['calcium'] = ''
  2243. }
  2244. if (this.solution['bicarbonate'] == 0) {
  2245. this.dialysisPrescription['bicarbonate'] = ''
  2246. }
  2247. if (this.solution['glucose'] == 0) {
  2248. this.dialysisPrescription['glucose'] = ''
  2249. }
  2250. if (this.solution['dialysate_flow'] == 0) {
  2251. this.dialysisPrescription['dialysate_flow'] = ''
  2252. }
  2253. if (this.solution['conductivity'] == 0) {
  2254. this.dialysisPrescription['conductivity'] = ''
  2255. }
  2256. if (this.solution['replacement_total'] == 0) {
  2257. this.dialysisPrescription['replacement_total'] = ''
  2258. }
  2259. if (this.solution['target_ktv'] == 0) {
  2260. this.dialysisPrescription['target_ktv'] = ''
  2261. }
  2262. }
  2263. }
  2264. }
  2265. }
  2266. }
  2267. </script>
  2268. <style rel="stylesheet/scss" lang="scss" scoped>
  2269. .el-checkbox, .el-checkbox__input {
  2270. vertical-align: middle;
  2271. }
  2272. .newLine {
  2273. display: flex;
  2274. justify-content: space-between;
  2275. height: 40px;
  2276. line-height: 40px;
  2277. border-bottom: 1px solid #ccc;
  2278. }
  2279. </style>