XMLWAN 4 years ago
parent
commit
d61621a9a9

+ 192 - 192
src/pages/main/today/dialysisPrescription.vue View File

@@ -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>

+ 79 - 79
src/pages/waitingRoom/components/dialysisPrescription.vue View File

@@ -122,10 +122,10 @@
122 122
 
123 123
 <script>
124 124
 export default {
125
-  name: "DialysisPrescription",
126
-  data() {
125
+  name: 'DialysisPrescription',
126
+  data () {
127 127
     return {
128
-      title: "透析处方"
128
+      title: '透析处方'
129 129
       // note: "",
130 130
       // doctor: "刘小军 医生",
131 131
       // row1: [
@@ -157,7 +157,7 @@ export default {
157 157
       // ],
158 158
       // prescription: null,
159 159
       // solution: null,
160
-    };
160
+    }
161 161
   },
162 162
   props: {
163 163
     prescription: {
@@ -180,95 +180,95 @@ export default {
180 180
   // },
181 181
   computed: {
182 182
     // row1
183
-    dialysis_mode: function() {
184
-      return this.getValueStr("mode_id", "mode_id");
183
+    dialysis_mode: function () {
184
+      return this.getValueStr('mode_id', 'mode_id')
185 185
     },
186
-    perfusion_apparatus: function() {
187
-      return this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
186
+    perfusion_apparatus: function () {
187
+      return this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
188 188
     },
189
-    displace_liqui: function() {
190
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
191
-      return v.length == 0 ? "0" : v;
189
+    displace_liqui: function () {
190
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
191
+      return v.length == 0 ? '0' : v
192 192
     },
193
-    anticoagulant_shouji: function() {
194
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
195
-      return v.length == 0 ? "0" : v;
193
+    anticoagulant_shouji: function () {
194
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
195
+      return v.length == 0 ? '0' : v
196 196
     },
197
-    kalium: function() {
198
-      var v = this.getValueStr("kalium", "kalium");
199
-      return v.length == 0 ? "0" : v;
197
+    kalium: function () {
198
+      var v = this.getValueStr('kalium', 'kalium')
199
+      return v.length == 0 ? '0' : v
200 200
     },
201
-    bicarbonate: function() {
202
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
203
-      return v.length == 0 ? "0" : v;
201
+    bicarbonate: function () {
202
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
203
+      return v.length == 0 ? '0' : v
204 204
     },
205
-    dialysate_flow: function() {
206
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
207
-      return v.length == 0 ? "0" : v;
205
+    dialysate_flow: function () {
206
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
207
+      return v.length == 0 ? '0' : v
208 208
     },
209 209
     // row2
210
-    dialysis_duration: function() {
211
-      var v = this.getValueStr("dialysis_duration", "dialysis_duration");
212
-      return v.length == 0 ? "0" : v;
210
+    dialysis_duration: function () {
211
+      var v = this.getValueStr('dialysis_duration', 'dialysis_duration')
212
+      return v.length == 0 ? '0' : v
213 213
     },
214
-    blood_flow_volume: function() {
215
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
216
-      return v.length == 0 ? "0" : v;
214
+    blood_flow_volume: function () {
215
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
216
+      return v.length == 0 ? '0' : v
217 217
     },
218
-    replacement_way: function() {
219
-      return this.getValueStr("replacement_way", "replacement_way");
218
+    replacement_way: function () {
219
+      return this.getValueStr('replacement_way', 'replacement_way')
220 220
     },
221
-    anticoagulant_weichi: function() {
222
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
223
-      return v.length == 0 ? "0" : v;
221
+    anticoagulant_weichi: function () {
222
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
223
+      return v.length == 0 ? '0' : v
224 224
     },
225
-    sodium: function() {
226
-      var v = this.getValueStr("sodium", "sodium");
227
-      return v.length == 0 ? "0" : v;
225
+    sodium: function () {
226
+      var v = this.getValueStr('sodium', 'sodium')
227
+      return v.length == 0 ? '0' : v
228 228
     },
229
-    glucose: function() {
230
-      var v = this.getValueStr("glucose", "glucose");
231
-      return v.length == 0 ? "0" : v;
229
+    glucose: function () {
230
+      var v = this.getValueStr('glucose', 'glucose')
231
+      return v.length == 0 ? '0' : v
232 232
     },
233
-    dialysate_temperature: function() {
233
+    dialysate_temperature: function () {
234 234
       var v = this.getValueStr(
235
-        "dialysate_temperature",
236
-        "dialysate_temperature"
237
-      );
238
-      return v.length == 0 ? "0" : v;
235
+        'dialysate_temperature',
236
+        'dialysate_temperature'
237
+      )
238
+      return v.length == 0 ? '0' : v
239 239
     },
240
-    dialyzer: function() {
241
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
242
-      return v.length == 0 ? "0" : v;
240
+    dialyzer: function () {
241
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
242
+      return v.length == 0 ? '0' : v
243 243
     },
244
-    prescription_dewatering: function() {
245
-      var v = this.getValueStr("prescription_dewatering", "dewater");
246
-      return v.length == 0 ? "0" : v;
244
+    prescription_dewatering: function () {
245
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
246
+      return v.length == 0 ? '0' : v
247 247
     },
248
-    anticoagulant: function() {
249
-      return this.getValueStr("anticoagulant", "anticoagulant");
248
+    anticoagulant: function () {
249
+      return this.getValueStr('anticoagulant', 'anticoagulant')
250 250
     },
251
-    anticoagulant_zongliang: function() {
251
+    anticoagulant_zongliang: function () {
252 252
       var v = this.getValueStr(
253
-        "anticoagulant_zongliang",
254
-        "anticoagulant_zongliang"
255
-      );
256
-      return v.length == 0 ? "0" : v;
253
+        'anticoagulant_zongliang',
254
+        'anticoagulant_zongliang'
255
+      )
256
+      return v.length == 0 ? '0' : v
257 257
     },
258
-    calcium: function() {
259
-      var v = this.getValueStr("calcium", "calcium");
260
-      return v.length == 0 ? "0" : v;
258
+    calcium: function () {
259
+      var v = this.getValueStr('calcium', 'calcium')
260
+      return v.length == 0 ? '0' : v
261 261
     },
262
-    dry_weight: function() {
263
-      var v = this.getValueStr("dry_weight", "dry_weight");
264
-      return v.length == 0 ? "0" : v;
262
+    dry_weight: function () {
263
+      var v = this.getValueStr('dry_weight', 'dry_weight')
264
+      return v.length == 0 ? '0' : v
265 265
     },
266
-    conductivity: function() {
267
-      var v = this.getValueStr("conductivity", "conductivity");
268
-      return v.length == 0 ? "0" : v;
266
+    conductivity: function () {
267
+      var v = this.getValueStr('conductivity', 'conductivity')
268
+      return v.length == 0 ? '0' : v
269 269
     },
270
-    note: function() {
271
-      return this.getValueStr("remark", "remark");
270
+    note: function () {
271
+      return this.getValueStr('remark', 'remark')
272 272
     }
273 273
   },
274 274
   methods: {
@@ -276,26 +276,26 @@ export default {
276 276
     //   this.prescription = prescription
277 277
     //   this.solution = solution
278 278
     // },
279
-    getValueStr(pkey, skey) {
279
+    getValueStr (pkey, skey) {
280 280
       // console.log(this.prescription.id)
281 281
       if (
282
-        (this.prescription == null || this.prescription.id == "") &&
283
-        (this.solution == null || this.solution.id == "")
282
+        (this.prescription == null || this.prescription.id == '') &&
283
+        (this.solution == null || this.solution.id == '')
284 284
       ) {
285
-        return "";
286
-      } else if (this.prescription != null && this.prescription.id != "") {
285
+        return ''
286
+      } else if (this.prescription != null && this.prescription.id != '') {
287 287
         if (
288 288
           this.prescription[pkey] == null ||
289 289
           this.prescription[pkey] == undefined
290 290
         ) {
291
-          return "";
291
+          return ''
292 292
         }
293
-        return this.prescription[pkey] + "";
293
+        return this.prescription[pkey] + ''
294 294
       } else {
295 295
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
296
-          return "";
296
+          return ''
297 297
         }
298
-        return this.solution[skey] + "";
298
+        return this.solution[skey] + ''
299 299
       }
300 300
     }
301 301
     // setPrescription1(prescription, solution) {
@@ -382,7 +382,7 @@ export default {
382 382
     //   }
383 383
     // }
384 384
   }
385
-};
385
+}
386 386
 </script>
387 387
 
388 388
 <style rel="stylesheet/scss" lang="scss" scoped></style>