血透系统PC前端

dialysisPrescriptionDialog.vue 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. <template>
  2. <el-dialog
  3. title="透析处方"
  4. :visible.sync="isVisibility"
  5. width="1010px"
  6. modal-append-to-body=“false”
  7. :append-to-body="true"
  8. >
  9. <el-form ref="dialysisPrescription" :model="dialysisPrescription" label-width="148px">
  10. <!-- <el-row :gutter="20"> -->
  11. <el-row :gutter="24">
  12. <el-col :span="8" v-if="isShows('透析模式')">
  13. <el-form-item label="透析模式: ">
  14. <el-select v-model="dialysisPrescription.mode_id">
  15. <el-option :key="0" label="请选择" :value="0"></el-option>
  16. <el-option v-for="item in treatment_mode" :label="item.name" :value="item.id" :key="item.id"></el-option>
  17. </el-select>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="8" v-if="isShows('透析时长')">
  21. <el-form-item label="透析时长(h): " >
  22. <el-input type="number" v-model="dialysisPrescription.dialysis_duration_hour"></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="8" v-if="isShows('透析时长')">
  26. <el-form-item label="透析时长(min): " >
  27. <el-input type="number" v-model="dialysisPrescription.dialysis_duration_minute"></el-input>
  28. </el-form-item>
  29. </el-col>
  30. <!-- </el-row>
  31. <el-row :gutter="20"> -->
  32. <el-col :span="8" v-if="isShows('血流量')">
  33. <el-form-item label="血流量(ml/min):" >
  34. <el-input type="number" v-model="dialysisPrescription.blood_flow_volume"></el-input>
  35. </el-form-item>
  36. </el-col>
  37. <el-col :span="8" v-if="isShows('目标超滤量')">
  38. <el-form-item label="目标超滤量(L):" >
  39. <el-input type="number" v-model="dialysisPrescription.target_ultrafiltration"></el-input>
  40. </el-form-item>
  41. </el-col>
  42. <el-col :span="8" v-if="isShows('透析液配方')">
  43. <el-form-item label="透析液配方:" >
  44. <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
  45. <el-select v-model="dialysisPrescription.dialysate_formulation" placeholder="请选择">
  46. <el-option :key="0" label="请选择" :value="0"></el-option>
  47. <el-option v-for="(option, index) in dialysate_formulation_options" :key="index" :label="option.name"
  48. :value="option.id"></el-option>
  49. </el-select>
  50. </el-form-item>
  51. </el-col>
  52. <!-- </el-row>
  53. <el-row :gutter="20"> -->
  54. <el-col :span="8" v-if="isShows('透析液温度')">
  55. <el-form-item label="透析液温度(°C):" >
  56. <el-input type="number" v-model="dialysisPrescription.dialysate_temperature"></el-input>
  57. </el-form-item>
  58. </el-col>
  59. <el-col :span="8" v-if="isShows('置换量')">
  60. <el-form-item label="置换量(L):" >
  61. <el-input type="number" v-model="dialysisPrescription.replacement_total"></el-input>
  62. </el-form-item>
  63. </el-col>
  64. <el-col :span="8" v-if="isShows('抗凝剂')">
  65. <el-form-item label="抗凝剂:" >
  66. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"
  67. @change="changeThisAnticoagulant">
  68. <el-option :key="0" label="请选择" :value="0"></el-option>
  69. <el-option v-for="item in anticoagulantsConfit" :label="item.name" :key="item.id"
  70. :value="item.id"></el-option>
  71. </el-select>
  72. </el-form-item>
  73. </el-col>
  74. <!-- </el-row>
  75. <el-row :gutter="20"> -->
  76. <el-col :span="8" v-if="anticoagulant.shouji != -1&&isShows('首剂')">
  77. <el-form-item :label="'首剂('+anticoagulant.shouji_unit+') : '">
  78. <el-input type="number" v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  79. </el-form-item>
  80. </el-col>
  81. <el-col :span="8" v-if="anticoagulant.weichi != -1&&isShows('维持')">
  82. <el-form-item :label="'维持('+anticoagulant.weichi_unit+') : '" v-if="anticoagulant.weichi != -1">
  83. <el-input type="number" v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  84. </el-form-item>
  85. </el-col>
  86. <el-col :span="8" v-if="anticoagulant.zongliang != -1&&isShows('总量')">
  87. <el-form-item :label="'总量('+anticoagulant.zongliang_unit+') : '">
  88. <el-input type="number" v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  89. </el-form-item>
  90. </el-col>
  91. <el-col :span="8" v-if="anticoagulant.gaimingcheng != -1&&isShows('钙名称')">
  92. <el-form-item label="钙名称 : ">
  93. <el-input v-model="dialysisPrescription.anticoagulant_gaimingcheng"
  94. :disabled="anticoagulant.gaimingcheng==1?false:true" placeholder="钙名称"></el-input>
  95. </el-form-item>
  96. </el-col>
  97. <el-col :span="8" v-if="anticoagulant.gaijiliang != -1&&isShows('钙剂量')">
  98. <el-form-item label="钙剂量(ml/h) : ">
  99. <el-input type="number" v-model="dialysisPrescription.anticoagulant_gaijiliang"
  100. :disabled="anticoagulant.gaijiliang==1?false:true" placeholder="钙剂量"></el-input>
  101. </el-form-item>
  102. </el-col>
  103. <!-- </el-row>
  104. <el-row :gutter="20"> -->
  105. <el-col :span="8" v-if="isShows('钾')">
  106. <el-form-item label="钾(mmol/L): " >
  107. <el-input type="number" v-model="dialysisPrescription.kalium"></el-input>
  108. </el-form-item>
  109. </el-col>
  110. <el-col :span="8" v-if="isShows('钠')">
  111. <el-form-item label="钠(mmol/L):">
  112. <el-input type="number" v-model="dialysisPrescription.sodium"></el-input>
  113. </el-form-item>
  114. </el-col>
  115. <el-col :span="8" v-if="isShows('钙')">
  116. <el-form-item label="钙(mmol/L):">
  117. <el-input type="number" v-model="dialysisPrescription.calcium"></el-input>
  118. </el-form-item>
  119. </el-col>
  120. <!-- </el-row>
  121. <el-row :gutter="20"> -->
  122. <el-col :span="8" v-if="isShows('透析器/灌流器')">
  123. <el-form-item label="透析器/灌流器:">
  124. <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
  125. </el-form-item>
  126. </el-col>
  127. <el-col :span="8" v-if="isShows('碳酸氢盐')">
  128. <el-form-item label="碳酸氢盐(mmol/L):">
  129. <el-input type="number" v-model="dialysisPrescription.bicarbonate"></el-input>
  130. </el-form-item>
  131. </el-col>
  132. <el-col :span="8" v-if="isShows('葡萄糖')">
  133. <el-form-item label="葡萄糖(mmol/L):" >
  134. <el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
  135. </el-form-item>
  136. </el-col>
  137. <!-- </el-row>
  138. <el-row :gutter="20"> -->
  139. <el-col :span="8" v-if="isShows('透析液流量')">
  140. <el-form-item label="透析液流量(ml/min):">
  141. <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="8" v-if="isShows('电导率')">
  145. <el-form-item label="电导率(mS/cm): ">
  146. <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
  147. </el-form-item>
  148. </el-col>
  149. <el-col :span="8" v-if="isShows('体液过多症状')">
  150. <el-form-item label="体液过多症状:">
  151. <el-select v-model="dialysisPrescription.body_fluid" placeholder="请选择" style="width:100%;"
  152. >
  153. <el-option :key="0" label="请选择" :value="0"></el-option>
  154. <el-option v-for="item in body_fluid_option" :label="item.name" :key="item.id"
  155. :value="item.id"></el-option>
  156. </el-select>
  157. </el-form-item>
  158. </el-col>
  159. <!-- </el-row>
  160. <el-row :gutter="20" > -->
  161. <el-col :span="8" v-if="isShows('体液过多其他症状')">
  162. <el-form-item label="其他体液过多症状">
  163. <el-input v-model="dialysisPrescription.body_fluid_other"></el-input>
  164. </el-form-item>
  165. </el-col>
  166. <el-col :span="8" v-if="isShows('透析前使用特殊药物')">
  167. <el-form-item label="透析前使用特殊药物">
  168. <el-select v-model="dialysisPrescription.special_medicine" placeholder="请选择" style="width:100%;"
  169. >
  170. <el-option :key="0" label="请选择" :value="0"></el-option>
  171. <el-option v-for="item in special_medicine_option" :label="item.name" :key="item.id"
  172. :value="item.id"></el-option>
  173. </el-select>
  174. </el-form-item>
  175. </el-col>
  176. <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
  177. <el-form-item label="使用其他特殊药物">
  178. <el-input v-model="dialysisPrescription.special_medicine_other"></el-input>
  179. </el-form-item>
  180. </el-col>
  181. <!-- </el-row>
  182. <el-row :gutter="20" > -->
  183. <el-col :span="8">
  184. <el-form-item label="置换液:" v-if="isShows('置换液')">
  185. <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
  186. <el-option :key="0" label="请选择" :value="0"></el-option>
  187. <el-option v-for="(option, index) in displace_liqui_part_option" :key="index"
  188. :label="option.name" :value="option.id"></el-option>
  189. </el-select>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :span="8" v-if="isShows('置换液总量')">
  193. <el-form-item label="置换液总量(L)">
  194. <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
  195. </el-form-item>
  196. </el-col>
  197. <el-col :span="8" v-if="isShows('血管通路(内瘘)')">
  198. <el-form-item label="血管通路(内瘘):">
  199. <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
  200. <el-option :key="0" label="请选择" :value="0"></el-option>
  201. <el-option v-for="(option, index) in blood_access_option" :key="index"
  202. :label="option.name" :value="option.id"></el-option>
  203. </el-select>
  204. </el-form-item>
  205. </el-col>
  206. <!-- </el-row>
  207. <el-row :gutter="20" > -->
  208. <el-col :span="8" v-if="isShows('实际超滤量')">
  209. <el-form-item label="实际超滤量(L)">
  210. <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>
  211. </el-form-item>
  212. </el-col>
  213. </el-row>
  214. <el-row :gutter="20">
  215. <el-col :span="24">
  216. <el-form-item label="备注: ">
  217. <el-input type="textarea" v-model="dialysisPrescription.remark" :rows="5"></el-input>
  218. </el-form-item>
  219. </el-col>
  220. </el-row>
  221. </el-form>
  222. <span slot="footer" class="dialog-footer">
  223. <el-button @click="handleCancle">取 消</el-button>
  224. <el-button type="primary" @click="handleCommit">保 存</el-button>
  225. <el-button type="primary" @click="handleSolution">保存为长期处方</el-button>
  226. </span>
  227. </el-dialog>
  228. </template>
  229. <script>
  230. import { postPrescription, postSoulution } from '@/api/dialysis'
  231. import { getDataConfig } from '@/utils/data'
  232. import { uParseTime } from '@/utils/tools'
  233. import store from "@/store";
  234. export default {
  235. name: 'dialysisPrescriptionDialog',
  236. props: {
  237. prescription: { // 透析处方
  238. type: Object,
  239. default: () => {
  240. return { id: 0 }
  241. }
  242. },
  243. solution: { // 长期处方
  244. type: Object,
  245. default: () => {
  246. return { id: 0 }
  247. }
  248. },
  249. dialysis_order: { // 透析记录
  250. type: Object,
  251. default: () => {
  252. return { id: 0 }
  253. }
  254. },
  255. patient: { // 患者信息
  256. type: Object,
  257. default: () => {
  258. return { id: 0 }
  259. }
  260. },
  261. devices: {
  262. type: Array,
  263. default: function() {
  264. return new Array()
  265. }
  266. }
  267. },
  268. data() {
  269. return {
  270. isVisibility: false,
  271. isShowTime: false,
  272. isClose: false,
  273. isShow: false,
  274. record_date: '',
  275. time: '',
  276. treatment_mode: [],
  277. deviceList: [],
  278. replacement_ways: [],
  279. anticoagulantsConfit: {},
  280. dialysate_formulation_options: [],
  281. body_fluid_option: [],
  282. special_medicine_option: [],
  283. displace_liqui_part_option: [],
  284. blood_access_option: [],
  285. dialysisPrescription: {
  286. replacement_total: '',
  287. mode_id: '',
  288. dialysis_duration: '',
  289. dialysis_duration_hour: '',
  290. dialysis_duration_minute: '',
  291. mode_name: '',
  292. dialyzer: '',
  293. perfusion_apparatus: '',
  294. blood_flow_volume: '',
  295. dewater_amount: '',
  296. displace_liqui: '',
  297. replacement_way: '',
  298. anticoagulant: '',
  299. anticoagulant_shouji: '',
  300. anticoagulant_weichi: '',
  301. anticoagulant_zongliang: '',
  302. anticoagulant_gaimingcheng: '',
  303. anticoagulant_gaijiliang: '',
  304. kalium: '',
  305. sodium: '',
  306. calcium: '',
  307. bicarbonate: '',
  308. glucose: '',
  309. dry_weight: '',
  310. dialysate_flow: '',
  311. dialysate_temperature: '',
  312. target_ultrafiltration: '',
  313. dialysate_formulation: '',
  314. conductivity: '',
  315. doctor: '',
  316. remark: '',
  317. dialyzer_perfusion_apparatus: '',
  318. body_fluid: '',
  319. body_fluid_other: '',
  320. special_medicine: '',
  321. special_medicine_other: '',
  322. displace_liqui_part: '',
  323. displace_liqui_value: '',
  324. ultrafiltration: '',
  325. blood_access: ''
  326. },
  327. anticoagulant: {
  328. id: 0,
  329. name: '',
  330. type: 1,
  331. shouji: 1,
  332. weichi: 1,
  333. zongliang: 1,
  334. gaimingcheng: -1,
  335. gaijiliang: -1,
  336. shouji_unit: 'mg',
  337. weichi_unit: 'mg/h',
  338. zongliang_unit: 'mg',
  339. gaimingcheng_unit: '',
  340. gaijiliang_unit: ''
  341. }
  342. }
  343. },
  344. methods: {
  345. show() {
  346. this.isVisibility = true
  347. },
  348. hide() {
  349. this.isVisibility = false
  350. },
  351. changeThisAnticoagulant: function(val) {
  352. var thismode = parseInt(val)
  353. if (isNaN(thismode) || thismode <= 0) {
  354. return false
  355. }
  356. if (typeof (this.anticoagulantsConfit[thismode]) === 'undefined' || this.anticoagulantsConfit[thismode] == null) {
  357. return false
  358. }
  359. this.anticoagulant = this.anticoagulantsConfit[thismode]
  360. }, handleCommit: function() {
  361. if (this.patient.id <= 0) {
  362. this.$message.error('没有选择患者')
  363. this.loading = false
  364. return
  365. }
  366. const ParamsQuery = this.dialysisPrescription
  367. ParamsQuery['patient'] = this.patient.id
  368. ParamsQuery['record_date'] = this.record_date
  369. postPrescription(ParamsQuery).then(response => {
  370. if (response.data.state == 0) {
  371. this.$message.error(response.data.msg)
  372. return false
  373. } else {
  374. this.$notify({
  375. title: '成功',
  376. message: '提交成功',
  377. type: 'success',
  378. duration: 2000
  379. })
  380. const prescription_resp = response.data.data.prescription
  381. var prescription = this.prescription
  382. for (var index in prescription_resp) {
  383. // prescription[index] = prescription_resp[index];
  384. this.$set(prescription, index, prescription_resp[index])
  385. }
  386. this.hide()
  387. }
  388. })
  389. }, handleCancle: function() {
  390. this.hide()
  391. }, handleSolution: function() {
  392. if (this.patient.id <= 0) {
  393. this.$message.error('没有选择患者')
  394. this.loading = false
  395. return
  396. }
  397. const ParamsQuery = this.dialysisPrescription
  398. ParamsQuery['patient'] = this.patient.id
  399. ParamsQuery['record_date'] = this.record_date
  400. postSoulution(ParamsQuery).then(response => {
  401. if (response.data.state == 0) {
  402. this.$message.error(response.data.msg)
  403. return false
  404. } else {
  405. this.$notify({
  406. title: '成功',
  407. message: '提交成功',
  408. type: 'success',
  409. duration: 2000
  410. })
  411. const prescription_resp = response.data.data.prescription
  412. const solution_resp = response.data.data.solution
  413. var prescription = this.prescription
  414. var solution = this.solution
  415. for (var index in prescription_resp) {
  416. // prescription[index] = prescription_resp[index];
  417. this.$set(prescription, index, prescription_resp[index])
  418. }
  419. for (var index in solution_resp) {
  420. // solution[index] = solution_resp[index];
  421. this.$set(solution, index, solution_resp[index])
  422. }
  423. this.hide()
  424. }
  425. })
  426. }, isShows(name){
  427. var filedList = store.getters.xt_user.fileds
  428. for (let i = 0; i < filedList.length; i++){
  429. if(filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
  430. return true
  431. }
  432. }
  433. return false
  434. },
  435. },
  436. created() {
  437. this.treatment_mode = this.$store.getters.treatment_mode
  438. this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
  439. this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
  440. this.dialysate_formulation_options = getDataConfig('hemodialysis', 'dialysate_formulation')
  441. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  442. this.dialysisList = this.devices
  443. this.body_fluid_option = this.$store.getters.body_fluid
  444. this.special_medicine_option = this.$store.getters.special_medicine
  445. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  446. this.blood_access_option = this.$store.getters.blood_access_internal_fistula
  447. var date = this.$route.query && this.$route.query.date
  448. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  449. },
  450. watch: {
  451. isVisibility(val) {
  452. },
  453. 'prescription.id': function() {
  454. if (this.prescription.id > 0) {
  455. for (var index in this.dialysisPrescription) {
  456. this.dialysisPrescription[index] = this.prescription[index]
  457. }
  458. // console.log(this.prescription['dialysate_formulation'])
  459. if (this.prescription['dialysate_formulation'] == 0) {
  460. this.dialysisPrescription['dialysate_formulation'] = ''
  461. }
  462. // else{
  463. // this.dialysisPrescription['dialysate_formulation'] = this.prescription['dialysate_formulation']
  464. //
  465. // }
  466. //
  467. //
  468. if (this.prescription['anticoagulant'] == 0) {
  469. this.dialysisPrescription['anticoagulant'] = ''
  470. }
  471. // else{
  472. // this.dialysisPrescription['anticoagulant'] = this.prescription['anticoagulant']
  473. //
  474. // }
  475. if (this.prescription['dialysis_duration_hour'] == 0) {
  476. this.dialysisPrescription['dialysis_duration_hour'] = ''
  477. }
  478. if (this.prescription['dialysis_duration_minute'] == 0) {
  479. this.dialysisPrescription['dialysis_duration_minute'] = ''
  480. }
  481. if (this.prescription['blood_flow_volume'] == 0) {
  482. this.dialysisPrescription['blood_flow_volume'] = ''
  483. }
  484. if (this.prescription['target_ultrafiltration'] == 0) {
  485. this.dialysisPrescription['target_ultrafiltration'] = ''
  486. }
  487. if (this.prescription['dialysate_temperature'] == 0) {
  488. this.dialysisPrescription['dialysate_temperature'] = ''
  489. }
  490. if (this.prescription['anticoagulant_shouji'] == 0) {
  491. this.dialysisPrescription['anticoagulant_shouji'] = ''
  492. }
  493. if (this.prescription['anticoagulant_weichi'] == 0) {
  494. this.dialysisPrescription['anticoagulant_weichi'] = ''
  495. }
  496. if (this.prescription['anticoagulant_zongliang'] == 0) {
  497. this.dialysisPrescription['anticoagulant_zongliang'] = ''
  498. }
  499. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  500. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  501. }
  502. if (this.prescription['kalium'] == 0) {
  503. this.dialysisPrescription['kalium'] = ''
  504. }
  505. if (this.prescription['sodium'] == 0) {
  506. this.dialysisPrescription['sodium'] = ''
  507. }
  508. if (this.prescription['calcium'] == 0) {
  509. this.dialysisPrescription['calcium'] = ''
  510. }
  511. if (this.prescription['bicarbonate'] == 0) {
  512. this.dialysisPrescription['bicarbonate'] = ''
  513. }
  514. if (this.prescription['glucose'] == 0) {
  515. this.dialysisPrescription['glucose'] = ''
  516. }
  517. if (this.prescription['dialysate_flow'] == 0) {
  518. this.dialysisPrescription['dialysate_flow'] = ''
  519. }
  520. if (this.prescription['conductivity'] == 0) {
  521. this.dialysisPrescription['conductivity'] = ''
  522. }
  523. if (this.prescription['replacement_total'] == 0) {
  524. this.dialysisPrescription['replacement_total'] = ''
  525. }
  526. }
  527. },
  528. 'solution.id': function() {
  529. if (this.solution.id > 0) {
  530. if (this.prescription != null && typeof (this.prescription.id) !== 'undefined' && this.prescription.id > 0) {
  531. for (const key in this.prescription) {
  532. this.dialysisPrescription[key] = this.prescription[key]
  533. }
  534. if (this.prescription['dialysate_formulation'] == 0) {
  535. this.dialysisPrescription['dialysate_formulation'] = ''
  536. }
  537. // else{
  538. // this.dialysisPrescription['dialysate_formulation'] = this.prescription['dialysate_formulation']+''
  539. //
  540. // }
  541. //
  542. //
  543. if (this.prescription['anticoagulant'] == 0) {
  544. this.dialysisPrescription['anticoagulant'] = ''
  545. }
  546. //
  547. // else{
  548. // this.dialysisPrescription['anticoagulant'] = this.prescription['anticoagulant']+''
  549. //
  550. // }
  551. if (this.prescription['dialysis_duration_hour'] == 0) {
  552. this.dialysisPrescription['dialysis_duration_hour'] = ''
  553. }
  554. if (this.prescription['dialysis_duration_minute'] == 0) {
  555. this.dialysisPrescription['dialysis_duration_minute'] = ''
  556. }
  557. if (this.prescription['blood_flow_volume'] == 0) {
  558. this.dialysisPrescription['blood_flow_volume'] = ''
  559. }
  560. if (this.prescription['target_ultrafiltration'] == 0) {
  561. this.dialysisPrescription['target_ultrafiltration'] = ''
  562. }
  563. if (this.prescription['dialysate_temperature'] == 0) {
  564. this.dialysisPrescription['dialysate_temperature'] = ''
  565. }
  566. if (this.prescription['anticoagulant_shouji'] == 0) {
  567. this.dialysisPrescription['anticoagulant_shouji'] = ''
  568. }
  569. if (this.prescription['anticoagulant_weichi'] == 0) {
  570. this.dialysisPrescription['anticoagulant_weichi'] = ''
  571. }
  572. if (this.prescription['anticoagulant_zongliang'] == 0) {
  573. this.dialysisPrescription['anticoagulant_zongliang'] = ''
  574. }
  575. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  576. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  577. }
  578. if (this.prescription['kalium'] == 0) {
  579. this.dialysisPrescription['kalium'] = ''
  580. }
  581. if (this.prescription['sodium'] == 0) {
  582. this.dialysisPrescription['sodium'] = ''
  583. }
  584. if (this.prescription['calcium'] == 0) {
  585. this.dialysisPrescription['calcium'] = ''
  586. }
  587. if (this.prescription['bicarbonate'] == 0) {
  588. this.dialysisPrescription['bicarbonate'] = ''
  589. }
  590. if (this.prescription['glucose'] == 0) {
  591. this.dialysisPrescription['glucose'] = ''
  592. }
  593. if (this.prescription['dialysate_flow'] == 0) {
  594. this.dialysisPrescription['dialysate_flow'] = ''
  595. }
  596. if (this.prescription['conductivity'] == 0) {
  597. this.dialysisPrescription['conductivity'] = ''
  598. }
  599. if (this.prescription['replacement_total'] == 0) {
  600. this.dialysisPrescription['replacement_total'] = ''
  601. }
  602. } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
  603. for (const key in this.solution) {
  604. this.dialysisPrescription[key] = this.solution[key]
  605. }
  606. if (this.solution['dialysate_formulation'] == 0) {
  607. this.dialysisPrescription['dialysate_formulation'] = ''
  608. }
  609. // else{
  610. // this.dialysisPrescription['dialysate_formulation'] = this.solution['dialysate_formulation']+''
  611. //
  612. // }
  613. if (this.solution['anticoagulant'] == 0) {
  614. this.dialysisPrescription['anticoagulant'] = ''
  615. }
  616. if (this.solution['dialysis_duration_hour'] == 0) {
  617. this.dialysisPrescription['dialysis_duration_hour'] = ''
  618. }
  619. if (this.solution['dialysis_duration_minute'] == 0) {
  620. this.dialysisPrescription['dialysis_duration_minute'] = ''
  621. }
  622. if (this.solution['blood_flow_volume'] == 0) {
  623. this.dialysisPrescription['blood_flow_volume'] = ''
  624. }
  625. if (this.solution['target_ultrafiltration'] == 0) {
  626. this.dialysisPrescription['target_ultrafiltration'] = ''
  627. }
  628. if (this.solution['dialysate_temperature'] == 0) {
  629. this.dialysisPrescription['dialysate_temperature'] = ''
  630. }
  631. if (this.solution['anticoagulant_shouji'] == 0) {
  632. this.dialysisPrescription['anticoagulant_shouji'] = ''
  633. }
  634. if (this.solution['anticoagulant_weichi'] == 0) {
  635. this.dialysisPrescription['anticoagulant_weichi'] = ''
  636. }
  637. if (this.solution['anticoagulant_zongliang'] == 0) {
  638. this.dialysisPrescription['anticoagulant_zongliang'] = ''
  639. }
  640. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  641. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  642. }
  643. if (this.solution['kalium'] == 0) {
  644. this.dialysisPrescription['kalium'] = ''
  645. }
  646. if (this.solution['sodium'] == 0) {
  647. this.dialysisPrescription['sodium'] = ''
  648. }
  649. if (this.solution['calcium'] == 0) {
  650. this.dialysisPrescription['calcium'] = ''
  651. }
  652. if (this.solution['bicarbonate'] == 0) {
  653. this.dialysisPrescription['bicarbonate'] = ''
  654. }
  655. if (this.solution['glucose'] == 0) {
  656. this.dialysisPrescription['glucose'] = ''
  657. }
  658. if (this.solution['dialysate_flow'] == 0) {
  659. this.dialysisPrescription['dialysate_flow'] = ''
  660. }
  661. if (this.solution['conductivity'] == 0) {
  662. this.dialysisPrescription['conductivity'] = ''
  663. }
  664. if (this.solution['replacement_total'] == 0) {
  665. this.dialysisPrescription['replacement_total'] = ''
  666. }
  667. }
  668. }
  669. }
  670. }
  671. }
  672. </script>
  673. <style scoped>
  674. </style>