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