|
@@ -117,20 +117,17 @@
|
117
|
117
|
<span class="unit" v-if="this.prescription.anticoagulant == 5">{{anticoagulant_zongliang != '0'?"ml":""}}</span>
|
118
|
118
|
</li>
|
119
|
119
|
|
120
|
|
-
|
121
|
120
|
<li v-if="isShow('钙名称')&&this.prescription.anticoagulant == 5">
|
122
|
121
|
<label>钙名称: </label>
|
123
|
122
|
<span class="content">{{this.prescription.anticoagulant_gaimingcheng}}</span>
|
124
|
123
|
</li>
|
125
|
124
|
|
126
|
|
-
|
127
|
125
|
<li v-if="isShow('钙剂量')&&this.prescription.anticoagulant == 5">
|
128
|
126
|
<label>钙剂量: </label>
|
129
|
127
|
<span class="content">{{this.prescription.anticoagulant_gaijiliang}}</span>
|
130
|
128
|
<span class="unit" v-if="this.prescription.anticoagulant == 5">{{'ml'}}</span>
|
131
|
129
|
</li>
|
132
|
130
|
|
133
|
|
-
|
134
|
131
|
<li v-if="isShow('钠')">
|
135
|
132
|
<label>钠 : </label>
|
136
|
133
|
<span class="content">{{sodium != '0'?sodium:""}}</span>
|
|
@@ -204,7 +201,7 @@
|
204
|
201
|
<li v-if="isShow('电导度')">
|
205
|
202
|
<label>电导度 : </label>
|
206
|
203
|
<span class="content">{{conductivity != '0'?conductivity:""}}</span>
|
207
|
|
- <span class="unit">{{conductivity != '0'?"mS/m":""}}</span>
|
|
204
|
+ <span class="unit">{{conductivity != '0'?"mS/cm":""}}</span>
|
208
|
205
|
</li>
|
209
|
206
|
|
210
|
207
|
</ul>
|
|
@@ -214,291 +211,337 @@
|
214
|
211
|
</template>
|
215
|
212
|
|
216
|
213
|
<script>
|
217
|
|
- import {getDataConfig} from '@/utils/data'
|
218
|
|
- export default {
|
219
|
|
- name: 'DialysisPrescription',
|
220
|
|
- data () {
|
221
|
|
- return {
|
222
|
|
- title: '透析处方',
|
223
|
|
- perfusion_apparatus_map: {},
|
224
|
|
- dialysateFormulationMap: {}
|
|
214
|
+import { getDataConfig } from "@/utils/data";
|
|
215
|
+export default {
|
|
216
|
+ name: "DialysisPrescription",
|
|
217
|
+ data() {
|
|
218
|
+ return {
|
|
219
|
+ title: "透析处方",
|
|
220
|
+ perfusion_apparatus_map: {},
|
|
221
|
+ dialysateFormulationMap: {}
|
|
222
|
+ };
|
|
223
|
+ },
|
|
224
|
+ props: {
|
|
225
|
+ prescription: {
|
|
226
|
+ type: Object
|
|
227
|
+ },
|
|
228
|
+ solution: {
|
|
229
|
+ type: Object
|
|
230
|
+ },
|
|
231
|
+ device_number_map: {
|
|
232
|
+ type: Object
|
|
233
|
+ }
|
|
234
|
+ },
|
|
235
|
+ computed: {
|
|
236
|
+ target_ultrafiltration: function() {
|
|
237
|
+ var v = this.getValueStr(
|
|
238
|
+ "target_ultrafiltration",
|
|
239
|
+ "target_ultrafiltration"
|
|
240
|
+ );
|
|
241
|
+ v = this.getFloat(v);
|
|
242
|
+ return v.length == 0 ? "0" : v;
|
|
243
|
+ },
|
|
244
|
+ dialysis_mode: function() {
|
|
245
|
+ var mode = this.getValueStr("mode_id", "mode_id");
|
|
246
|
+ if (mode.length == 0) {
|
|
247
|
+ return "";
|
225
|
248
|
}
|
|
249
|
+ if (this.$store.getters.treatment_mode[mode] != undefined) {
|
|
250
|
+ return this.$store.getters.treatment_mode[mode].name;
|
|
251
|
+ }
|
|
252
|
+ return "";
|
226
|
253
|
},
|
227
|
|
- props: {
|
228
|
|
- prescription: {
|
229
|
|
- type: Object
|
230
|
|
- },
|
231
|
|
- solution: {
|
232
|
|
- type: Object
|
233
|
|
- },
|
234
|
|
- device_number_map: {
|
235
|
|
- type: Object
|
|
254
|
+ perfusion_apparatus: function() {
|
|
255
|
+ var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
|
|
256
|
+ if (v.length == 0) {
|
|
257
|
+ return "";
|
|
258
|
+ }
|
|
259
|
+ if (this.perfusion_apparatus_map[v] != undefined) {
|
|
260
|
+ return this.perfusion_apparatus_map[v].name;
|
236
|
261
|
}
|
|
262
|
+ return "";
|
|
263
|
+ },
|
|
264
|
+ displace_liqui: function() {
|
|
265
|
+ var v = this.getValueStr("displace_liqui", "displace_liqui");
|
|
266
|
+ return v.length == 0 ? "0" : v;
|
|
267
|
+ },
|
|
268
|
+ anticoagulant_shouji: function() {
|
|
269
|
+ var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
|
|
270
|
+ return v.length == 0 ? "0" : v;
|
|
271
|
+ },
|
|
272
|
+ kalium: function() {
|
|
273
|
+ var v = this.getValueStr("kalium", "kalium");
|
|
274
|
+ v = this.getFloat(v);
|
|
275
|
+ return v == 0 ? "0" : v;
|
|
276
|
+ },
|
|
277
|
+ replacement_total: function() {
|
|
278
|
+ var v = this.getValueStr("replacement_total", "replacement_total");
|
|
279
|
+ return v.length == 0 ? "0" : v;
|
|
280
|
+ },
|
|
281
|
+ bicarbonate: function() {
|
|
282
|
+ var v = this.getValueStr("bicarbonate", "bicarbonate");
|
|
283
|
+ return v.length == 0 ? "0" : v;
|
|
284
|
+ },
|
|
285
|
+ dialysate_flow: function() {
|
|
286
|
+ var v = this.getValueStr("dialysate_flow", "dialysate_flow");
|
|
287
|
+ return v.length == 0 ? "0" : v;
|
|
288
|
+ },
|
|
289
|
+ dialysis_duration: function() {
|
|
290
|
+ var dialysis_duration_hour = this.getValueStr(
|
|
291
|
+ "dialysis_duration_hour",
|
|
292
|
+ "dialysis_duration_hour"
|
|
293
|
+ );
|
|
294
|
+ var dialysis_duration_minute = this.getValueStr(
|
|
295
|
+ "dialysis_duration_minute",
|
|
296
|
+ "dialysis_duration_minute"
|
|
297
|
+ );
|
|
298
|
+ if (
|
|
299
|
+ dialysis_duration_hour.length == 0 &&
|
|
300
|
+ dialysis_duration_minute.length == 0
|
|
301
|
+ ) {
|
|
302
|
+ return "0";
|
|
303
|
+ } else {
|
|
304
|
+ var time =
|
|
305
|
+ dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
|
|
306
|
+ return time.length == 0 ? "0" : time;
|
|
307
|
+ }
|
|
308
|
+ },
|
|
309
|
+ blood_flow_volume: function() {
|
|
310
|
+ var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
|
|
311
|
+ return v.length == 0 ? "0" : v;
|
|
312
|
+ },
|
|
313
|
+ replacement_way: function() {
|
|
314
|
+ return this.getValueStr("replacement_way", "replacement_way");
|
|
315
|
+ },
|
|
316
|
+ anticoagulant_weichi: function() {
|
|
317
|
+ var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
|
|
318
|
+ return v.length == 0 ? "0" : v;
|
|
319
|
+ },
|
|
320
|
+ sodium: function() {
|
|
321
|
+ var v = this.getValueStr("sodium", "sodium");
|
|
322
|
+ console.log(v);
|
|
323
|
+ v = this.getFloat(v);
|
|
324
|
+ console.log(v);
|
|
325
|
+ return v == 0 ? "0" : v;
|
|
326
|
+ },
|
|
327
|
+ glucose: function() {
|
|
328
|
+ var v = this.getValueStr("glucose", "glucose");
|
|
329
|
+ return v.length == 0 ? "0" : v;
|
|
330
|
+ },
|
|
331
|
+ dialysate_temperature: function() {
|
|
332
|
+ var v = this.getValueStr(
|
|
333
|
+ "dialysate_temperature",
|
|
334
|
+ "dialysate_temperature"
|
|
335
|
+ );
|
|
336
|
+ return v.length == 0 ? "0" : v;
|
|
337
|
+ },
|
|
338
|
+ dialyzer: function() {
|
|
339
|
+ var v = this.getValueStr("dialyzer", "hemodialysis_machine");
|
|
340
|
+ if (v.length == 0) {
|
|
341
|
+ return "";
|
|
342
|
+ }
|
|
343
|
+ if (this.device_number_map[v] != undefined) {
|
|
344
|
+ return this.device_number_map[v].name;
|
|
345
|
+ }
|
|
346
|
+ return "";
|
|
347
|
+ },
|
|
348
|
+ dialysate_formulation: function() {
|
|
349
|
+ var v = this.getValueStr(
|
|
350
|
+ "dialysate_formulation",
|
|
351
|
+ "dialysate_formulation"
|
|
352
|
+ );
|
|
353
|
+ if (v.length == 0) {
|
|
354
|
+ return "";
|
|
355
|
+ }
|
|
356
|
+ if (v in this.dialysateFormulationMap) {
|
|
357
|
+ return this.dialysateFormulationMap[v].name;
|
|
358
|
+ }
|
|
359
|
+ return "";
|
|
360
|
+ },
|
|
361
|
+ prescription_dewatering: function() {
|
|
362
|
+ var v = this.getValueStr("prescription_dewatering", "dewater");
|
|
363
|
+ return v.length == 0 ? "0" : v;
|
|
364
|
+ },
|
|
365
|
+ anticoagulant: function() {
|
|
366
|
+ var v = this.getValueStr("anticoagulant", "anticoagulant");
|
|
367
|
+ if (v.length == 0) {
|
|
368
|
+ return "";
|
|
369
|
+ }
|
|
370
|
+ if (this.$store.getters.anticoagulants_confit[v] != undefined) {
|
|
371
|
+ return this.$store.getters.anticoagulants_confit[v].name;
|
|
372
|
+ }
|
|
373
|
+ return "";
|
|
374
|
+ },
|
|
375
|
+ anticoagulant_zongliang: function() {
|
|
376
|
+ var v = this.getValueStr(
|
|
377
|
+ "anticoagulant_zongliang",
|
|
378
|
+ "anticoagulant_zongliang"
|
|
379
|
+ );
|
|
380
|
+ return v.length == 0 ? "0" : v;
|
|
381
|
+ },
|
|
382
|
+ calcium: function() {
|
|
383
|
+ var v = this.getValueStr("calcium", "calcium");
|
|
384
|
+ v = this.getFloat(v);
|
|
385
|
+ return v == 0 ? "0" : v;
|
237
|
386
|
},
|
238
|
|
- computed: {
|
239
|
|
- target_ultrafiltration: function () {
|
240
|
|
- var v = this.getValueStr('target_ultrafiltration', 'target_ultrafiltration')
|
241
|
|
- v = this.getFloat(v)
|
242
|
|
- return v.length == 0 ? '0' : v
|
243
|
|
- },
|
244
|
|
- dialysis_mode: function () {
|
245
|
|
- var mode = this.getValueStr('mode_id', 'mode_id')
|
246
|
|
- if (mode.length == 0) {
|
247
|
|
- return ''
|
248
|
|
- }
|
249
|
|
- if (this.$store.getters.treatment_mode[mode] != undefined) {
|
250
|
|
- return this.$store.getters.treatment_mode[mode].name
|
251
|
|
- }
|
252
|
|
- return ''
|
253
|
|
- },
|
254
|
|
- perfusion_apparatus: function () {
|
255
|
|
- var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
|
256
|
|
- if (v.length == 0) {
|
257
|
|
- return ''
|
258
|
|
- }
|
259
|
|
- if (this.perfusion_apparatus_map[v] != undefined) {
|
260
|
|
- return this.perfusion_apparatus_map[v].name
|
261
|
|
- }
|
262
|
|
- return ''
|
263
|
|
- },
|
264
|
|
- displace_liqui: function () {
|
265
|
|
- var v = this.getValueStr('displace_liqui', 'displace_liqui')
|
266
|
|
- return v.length == 0 ? '0' : v
|
267
|
|
- },
|
268
|
|
- anticoagulant_shouji: function () {
|
269
|
|
- var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
|
270
|
|
- return v.length == 0 ? '0' : v
|
271
|
|
- },
|
272
|
|
- kalium: function () {
|
273
|
|
- var v = this.getValueStr('kalium', 'kalium')
|
274
|
|
- v = this.getFloat(v)
|
275
|
|
- return v == 0 ? '0' : v
|
276
|
|
- },
|
277
|
|
- replacement_total: function () {
|
278
|
|
- var v = this.getValueStr('replacement_total', 'replacement_total')
|
279
|
|
- return v.length == 0 ? '0' : v
|
280
|
|
- },
|
281
|
|
- bicarbonate: function () {
|
282
|
|
- var v = this.getValueStr('bicarbonate', 'bicarbonate')
|
283
|
|
- return v.length == 0 ? '0' : v
|
284
|
|
- },
|
285
|
|
- dialysate_flow: function () {
|
286
|
|
- var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
|
287
|
|
- return v.length == 0 ? '0' : v
|
288
|
|
- },
|
289
|
|
- dialysis_duration: function () {
|
290
|
|
- var dialysis_duration_hour = (this.getValueStr('dialysis_duration_hour', 'dialysis_duration_hour'))
|
291
|
|
- var dialysis_duration_minute = (this.getValueStr('dialysis_duration_minute', 'dialysis_duration_minute'))
|
292
|
|
- if (dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0) {
|
293
|
|
- return '0'
|
294
|
|
- } else {
|
295
|
|
- var time = dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
|
296
|
|
- return time.length == 0 ? '0' : time
|
297
|
|
- }
|
298
|
|
- },
|
299
|
|
- blood_flow_volume: function () {
|
300
|
|
- var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
|
301
|
|
- return v.length == 0 ? '0' : v
|
302
|
|
- },
|
303
|
|
- replacement_way: function () {
|
304
|
|
- return this.getValueStr('replacement_way', 'replacement_way')
|
305
|
|
- },
|
306
|
|
- anticoagulant_weichi: function () {
|
307
|
|
- var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
|
308
|
|
- return v.length == 0 ? '0' : v
|
309
|
|
- },
|
310
|
|
- sodium: function () {
|
311
|
|
- var v = this.getValueStr('sodium', 'sodium')
|
312
|
|
- console.log(v)
|
313
|
|
- v = this.getFloat(v)
|
314
|
|
- console.log(v)
|
315
|
|
- return v == 0 ? '0' : v
|
316
|
|
- },
|
317
|
|
- glucose: function () {
|
318
|
|
- var v = this.getValueStr('glucose', 'glucose')
|
319
|
|
- return v.length == 0 ? '0' : v
|
320
|
|
- },
|
321
|
|
- dialysate_temperature: function () {
|
322
|
|
- var v = this.getValueStr('dialysate_temperature', 'dialysate_temperature')
|
323
|
|
- return v.length == 0 ? '0' : v
|
324
|
|
- },
|
325
|
|
- dialyzer: function () {
|
326
|
|
- var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
|
327
|
|
- if (v.length == 0) {
|
328
|
|
- return ''
|
329
|
|
- }
|
330
|
|
- if (this.device_number_map[v] != undefined) {
|
331
|
|
- return this.device_number_map[v].name
|
332
|
|
- }
|
333
|
|
- return ''
|
334
|
|
- },
|
335
|
|
- dialysate_formulation: function () {
|
336
|
|
- var v = this.getValueStr('dialysate_formulation', 'dialysate_formulation')
|
337
|
|
- if (v.length == 0) {
|
338
|
|
- return ''
|
339
|
|
- }
|
340
|
|
- if (v in this.dialysateFormulationMap) {
|
341
|
|
- return this.dialysateFormulationMap[v].name
|
342
|
|
- }
|
343
|
|
- return ''
|
344
|
|
- },
|
345
|
|
- prescription_dewatering: function () {
|
346
|
|
- var v = this.getValueStr('prescription_dewatering', 'dewater')
|
347
|
|
- return v.length == 0 ? '0' : v
|
348
|
|
- },
|
349
|
|
- anticoagulant: function () {
|
350
|
|
- var v = this.getValueStr('anticoagulant', 'anticoagulant')
|
351
|
|
- if (v.length == 0) {
|
352
|
|
- return ''
|
353
|
|
- }
|
354
|
|
- if (this.$store.getters.anticoagulants_confit[v] != undefined) {
|
355
|
|
- return this.$store.getters.anticoagulants_confit[v].name
|
356
|
|
- }
|
357
|
|
- return ''
|
358
|
|
- },
|
359
|
|
- anticoagulant_zongliang: function () {
|
360
|
|
- var v = this.getValueStr('anticoagulant_zongliang', 'anticoagulant_zongliang')
|
361
|
|
- return v.length == 0 ? '0' : v
|
362
|
|
- },
|
363
|
|
- calcium: function () {
|
364
|
|
- var v = this.getValueStr('calcium', 'calcium')
|
365
|
|
- v = this.getFloat(v)
|
366
|
|
- return v == 0 ? '0' : v
|
367
|
|
- },
|
368
|
387
|
|
369
|
|
- conductivity: function () {
|
370
|
|
- var v = this.getValueStr('conductivity', 'conductivity')
|
371
|
|
- return v.length == 0 ? '0' : v
|
372
|
|
- },
|
373
|
|
- dialyzer_perfusion_apparatus: function () {
|
374
|
|
- return this.getValueStr('dialyzer_perfusion_apparatus', 'dialyzer_perfusion_apparatus')
|
375
|
|
- },
|
376
|
|
- note: function () {
|
377
|
|
- return this.getValueStr('remark', 'remark')
|
378
|
|
- },
|
379
|
|
- body_fluid: function () {
|
380
|
|
- var id = this.getValueStr('body_fluid', 'body_fluid')
|
381
|
|
- if (id == 0) {
|
382
|
|
- return ''
|
383
|
|
- }
|
384
|
|
- var bodyFluidOptions = this.$store.getters.body_fluid
|
385
|
|
- for (let i = 0; i < bodyFluidOptions.length; i++) {
|
386
|
|
- if (bodyFluidOptions[i].id == id) {
|
387
|
|
- return bodyFluidOptions[i].name
|
388
|
|
- }
|
389
|
|
- }
|
390
|
|
- },
|
391
|
|
- special_medicine: function () {
|
392
|
|
- var id = this.getValueStr('special_medicine', 'special_medicine')
|
393
|
|
- if (id == 0) {
|
394
|
|
- return ''
|
395
|
|
- }
|
396
|
|
- var special_medicine = this.$store.getters.special_medicine
|
397
|
|
- for (let i = 0; i < special_medicine.length; i++) {
|
398
|
|
- if (special_medicine[i].id == id) {
|
399
|
|
- return special_medicine[i].name
|
400
|
|
- }
|
401
|
|
- }
|
402
|
|
- },
|
403
|
|
- special_medicine_other: function () {
|
404
|
|
- return this.getValueStr('special_medicine_other', 'special_medicine_other')
|
405
|
|
- },
|
406
|
|
- blood_access: function () {
|
407
|
|
- var id = this.getValueStr('blood_access', 'blood_access')
|
408
|
|
- if (id == 0) {
|
409
|
|
- return ''
|
|
388
|
+ conductivity: function() {
|
|
389
|
+ var v = this.getValueStr("conductivity", "conductivity");
|
|
390
|
+ return v.length == 0 ? "0" : v;
|
|
391
|
+ },
|
|
392
|
+ dialyzer_perfusion_apparatus: function() {
|
|
393
|
+ return this.getValueStr(
|
|
394
|
+ "dialyzer_perfusion_apparatus",
|
|
395
|
+ "dialyzer_perfusion_apparatus"
|
|
396
|
+ );
|
|
397
|
+ },
|
|
398
|
+ note: function() {
|
|
399
|
+ return this.getValueStr("remark", "remark");
|
|
400
|
+ },
|
|
401
|
+ body_fluid: function() {
|
|
402
|
+ var id = this.getValueStr("body_fluid", "body_fluid");
|
|
403
|
+ if (id == 0) {
|
|
404
|
+ return "";
|
|
405
|
+ }
|
|
406
|
+ var bodyFluidOptions = this.$store.getters.body_fluid;
|
|
407
|
+ for (let i = 0; i < bodyFluidOptions.length; i++) {
|
|
408
|
+ if (bodyFluidOptions[i].id == id) {
|
|
409
|
+ return bodyFluidOptions[i].name;
|
410
|
410
|
}
|
411
|
|
- var blood_access = this.$store.getters.blood_access
|
412
|
|
- console.log('blood_access', blood_access)
|
413
|
|
- for (let i = 0; i < blood_access.length; i++) {
|
414
|
|
- if (blood_access[i].id == id) {
|
415
|
|
- return blood_access[i].name
|
416
|
|
- }
|
|
411
|
+ }
|
|
412
|
+ },
|
|
413
|
+ special_medicine: function() {
|
|
414
|
+ var id = this.getValueStr("special_medicine", "special_medicine");
|
|
415
|
+ if (id == 0) {
|
|
416
|
+ return "";
|
|
417
|
+ }
|
|
418
|
+ var special_medicine = this.$store.getters.special_medicine;
|
|
419
|
+ for (let i = 0; i < special_medicine.length; i++) {
|
|
420
|
+ if (special_medicine[i].id == id) {
|
|
421
|
+ return special_medicine[i].name;
|
417
|
422
|
}
|
418
|
|
- },
|
419
|
|
- displace_liqui: function () {
|
420
|
|
- var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
|
421
|
|
- var displace_liqui_value = this.getValueStr('displace_liqui_value', 'displace_liqui_value')
|
422
|
|
- var displace_liqui_part = ''
|
423
|
|
- var displace_liqui = this.$store.getters.displace_liqui
|
424
|
|
- for (let i = 0; i < displace_liqui.length; i++) {
|
425
|
|
- if (displace_liqui[i].id == id) {
|
426
|
|
- displace_liqui_part = displace_liqui[i].name
|
427
|
|
- }
|
|
423
|
+ }
|
|
424
|
+ },
|
|
425
|
+ special_medicine_other: function() {
|
|
426
|
+ return this.getValueStr(
|
|
427
|
+ "special_medicine_other",
|
|
428
|
+ "special_medicine_other"
|
|
429
|
+ );
|
|
430
|
+ },
|
|
431
|
+ blood_access: function() {
|
|
432
|
+ var id = this.getValueStr("blood_access", "blood_access");
|
|
433
|
+ if (id == 0) {
|
|
434
|
+ return "";
|
|
435
|
+ }
|
|
436
|
+ var blood_access = this.$store.getters.blood_access;
|
|
437
|
+ console.log("blood_access", blood_access);
|
|
438
|
+ for (let i = 0; i < blood_access.length; i++) {
|
|
439
|
+ if (blood_access[i].id == id) {
|
|
440
|
+ return blood_access[i].name;
|
428
|
441
|
}
|
429
|
|
- return displace_liqui_part
|
430
|
|
- },
|
431
|
|
- ultrafiltration: function () {
|
432
|
|
- var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
|
433
|
|
- v = this.getFloat(v)
|
434
|
|
- return v.length == 0 ? '0' : v
|
435
|
|
- },
|
436
|
|
- target_ktv: function () {
|
437
|
|
- var v = this.getValueStr('target_ktv', 'target_ktv')
|
438
|
|
- return v.length == 0 ? '0' : v
|
439
|
442
|
}
|
440
|
443
|
},
|
441
|
|
- created () {
|
442
|
|
- var perfusion_apparatus = this.$store.getters.perfusion_apparatus
|
443
|
|
- var map = {}
|
444
|
|
- for (let index = 0; index < perfusion_apparatus.length; index++) {
|
445
|
|
- const p = perfusion_apparatus[index]
|
446
|
|
- map[p.id] = p
|
|
444
|
+ displace_liqui: function() {
|
|
445
|
+ var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
|
|
446
|
+ var displace_liqui_value = this.getValueStr(
|
|
447
|
+ "displace_liqui_value",
|
|
448
|
+ "displace_liqui_value"
|
|
449
|
+ );
|
|
450
|
+ var displace_liqui_part = "";
|
|
451
|
+ var displace_liqui = this.$store.getters.displace_liqui;
|
|
452
|
+ for (let i = 0; i < displace_liqui.length; i++) {
|
|
453
|
+ if (displace_liqui[i].id == id) {
|
|
454
|
+ displace_liqui_part = displace_liqui[i].name;
|
|
455
|
+ }
|
447
|
456
|
}
|
448
|
|
- this.perfusion_apparatus_map = map
|
|
457
|
+ return displace_liqui_part;
|
|
458
|
+ },
|
|
459
|
+ ultrafiltration: function() {
|
|
460
|
+ var v = this.getValueStr("ultrafiltration", "ultrafiltration");
|
|
461
|
+ v = this.getFloat(v);
|
|
462
|
+ return v.length == 0 ? "0" : v;
|
|
463
|
+ },
|
|
464
|
+ target_ktv: function() {
|
|
465
|
+ var v = this.getValueStr("target_ktv", "target_ktv");
|
|
466
|
+ return v.length == 0 ? "0" : v;
|
|
467
|
+ }
|
|
468
|
+ },
|
|
469
|
+ created() {
|
|
470
|
+ var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
|
|
471
|
+ var map = {};
|
|
472
|
+ for (let index = 0; index < perfusion_apparatus.length; index++) {
|
|
473
|
+ const p = perfusion_apparatus[index];
|
|
474
|
+ map[p.id] = p;
|
|
475
|
+ }
|
|
476
|
+ this.perfusion_apparatus_map = map;
|
449
|
477
|
|
450
|
|
- var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
|
451
|
|
- for (var index in dialysateFormulationOptions) {
|
452
|
|
- this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index]
|
|
478
|
+ var dialysateFormulationOptions = getDataConfig(
|
|
479
|
+ "hemodialysis",
|
|
480
|
+ "dialysate_formulation"
|
|
481
|
+ );
|
|
482
|
+ for (var index in dialysateFormulationOptions) {
|
|
483
|
+ this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
|
|
484
|
+ dialysateFormulationOptions[index];
|
|
485
|
+ }
|
|
486
|
+ },
|
|
487
|
+ methods: {
|
|
488
|
+ getDisplaceLiquiValue: function() {
|
|
489
|
+ return this.getValueStr("displace_liqui_value", "displace_liqui_value");
|
|
490
|
+ },
|
|
491
|
+ isShow(name) {
|
|
492
|
+ var filedList = this.$store.getters.user.fileds;
|
|
493
|
+ for (let i = 0; i < filedList.length; i++) {
|
|
494
|
+ if (
|
|
495
|
+ filedList[i].module == 1 &&
|
|
496
|
+ filedList[i].filed_name_cn == name &&
|
|
497
|
+ filedList[i].is_show == 1
|
|
498
|
+ ) {
|
|
499
|
+ return true;
|
|
500
|
+ }
|
453
|
501
|
}
|
|
502
|
+ return false;
|
454
|
503
|
},
|
455
|
|
- methods: {
|
456
|
|
- getDisplaceLiquiValue:function(){
|
457
|
|
- return this.getValueStr('displace_liqui_value', 'displace_liqui_value')
|
458
|
|
- },
|
459
|
|
- isShow (name) {
|
460
|
|
- var filedList = this.$store.getters.user.fileds
|
461
|
|
- for (let i = 0; i < filedList.length; i++) {
|
462
|
|
- if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
|
463
|
|
- return true
|
464
|
|
- }
|
|
504
|
+ getValueStr(pkey, skey) {
|
|
505
|
+ if (
|
|
506
|
+ (this.prescription == null || this.prescription.id == "") &&
|
|
507
|
+ (this.solution == null || this.solution.id == "")
|
|
508
|
+ ) {
|
|
509
|
+ return "";
|
|
510
|
+ } else if (this.prescription != null && this.prescription.id != "") {
|
|
511
|
+ if (
|
|
512
|
+ this.prescription[pkey] == null ||
|
|
513
|
+ this.prescription[pkey] == undefined
|
|
514
|
+ ) {
|
|
515
|
+ return "";
|
|
516
|
+ }
|
|
517
|
+ return this.prescription[pkey] + "";
|
|
518
|
+ } else {
|
|
519
|
+ if (this.solution[skey] == null || this.solution[skey] == undefined) {
|
|
520
|
+ return "";
|
465
|
521
|
}
|
466
|
|
- return false
|
467
|
|
- },
|
468
|
|
- getValueStr (pkey, skey) {
|
469
|
|
- if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
|
470
|
|
- return ''
|
471
|
|
- } else if (this.prescription != null && this.prescription.id != '') {
|
472
|
|
- if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
|
473
|
|
- return ''
|
474
|
|
- }
|
475
|
|
- return this.prescription[pkey] + ''
|
476
|
|
- } else {
|
477
|
|
- if (this.solution[skey] == null || this.solution[skey] == undefined) {
|
478
|
|
- return ''
|
479
|
|
- }
|
480
|
|
- return this.solution[skey] + ''
|
|
522
|
+ return this.solution[skey] + "";
|
|
523
|
+ }
|
|
524
|
+ },
|
|
525
|
+ getFloat: function(x) {
|
|
526
|
+ if (x != ".") {
|
|
527
|
+ var f = Math.round(x * 100) / 100;
|
|
528
|
+ var s = f.toString();
|
|
529
|
+ var rs = s.indexOf(".");
|
|
530
|
+ if (rs <= 0) {
|
|
531
|
+ rs = s.length;
|
|
532
|
+ s += ".";
|
481
|
533
|
}
|
482
|
|
- },
|
483
|
|
- getFloat: function (x) {
|
484
|
|
- if (x != '.') {
|
485
|
|
- var f = Math.round(x * 100) / 100
|
486
|
|
- var s = f.toString()
|
487
|
|
- var rs = s.indexOf('.')
|
488
|
|
- if (rs <= 0) {
|
489
|
|
- rs = s.length
|
490
|
|
- s += '.'
|
491
|
|
- }
|
492
|
|
- while (s.length <= rs + 1) {
|
493
|
|
- s += '0'
|
494
|
|
- }
|
495
|
|
- return s
|
496
|
|
- } else {
|
497
|
|
- return '0.0'
|
|
534
|
+ while (s.length <= rs + 1) {
|
|
535
|
+ s += "0";
|
498
|
536
|
}
|
|
537
|
+ return s;
|
|
538
|
+ } else {
|
|
539
|
+ return "0.0";
|
499
|
540
|
}
|
500
|
541
|
}
|
501
|
542
|
}
|
|
543
|
+};
|
502
|
544
|
</script>
|
503
|
545
|
|
504
|
|
-<style rel="stylesheet/scss" lang="scss" scoped></style>
|
|
546
|
+<style rel="stylesheet/scss" lang="scss" scoped>
|
|
547
|
+</style>
|