Browse Source

表格渲染

xiaoming_global 5 years ago
parent
commit
b37e84429b

+ 11 - 12
src/pages/advice/DialysisAdviceTable.vue View File

@@ -188,9 +188,9 @@
188 188
 </template>
189 189
 
190 190
 <script>
191
-import SideBar from '@/pages/layout/SideBar';
192
-import { parseTime } from '@/utils';
193
-import { getSchedualDoctors } from '@/api/advice';
191
+import SideBar from '@/pages/layout/SideBar'
192
+import { parseTime } from '@/utils'
193
+import { getSchedualDoctors } from '@/api/advice'
194 194
 
195 195
 export default {
196 196
   name: 'DialysisAdviceTable',
@@ -289,10 +289,10 @@ export default {
289 289
                   advices: []
290 290
                 }
291 291
               )
292
-            };
292
+            }
293 293
             var initGroupBlock = function (group, advice) {
294 294
               group.group_no = advice.groupno
295
-            };
295
+            }
296 296
 
297 297
             var advice_groups = []
298 298
             var group = newGroupObject()
@@ -320,7 +320,7 @@ export default {
320 320
                   group.advices.push(advice)
321 321
                   advice_groups.push(group)
322 322
                   group = newGroupObject()
323
-                  continue;
323
+                  continue
324 324
                 }
325 325
               } else {
326 326
                 if (group.group_no > 0 && group.group_no != advice.groupno) {
@@ -347,8 +347,6 @@ export default {
347 347
         }
348 348
       }
349 349
 
350
-      console.log(scheduleMap)
351
-
352 350
       return scheduleMap
353 351
     }
354 352
   },
@@ -389,11 +387,11 @@ export default {
389 387
     getAdaviceType (type, parent_id) {
390 388
       if (parent_id == 0) {
391 389
         if (type == 1) {
392
-          return '长嘱';
390
+          return '长嘱'
393 391
         } else if (type == 2) {
394
-          return '临嘱';
392
+          return '临嘱'
395 393
         } else if (type == 3) {
396
-          return '临嘱';
394
+          return '临嘱'
397 395
         }
398 396
       }
399 397
     },
@@ -422,7 +420,7 @@ export default {
422 420
     parseTime: function (time, layout) {
423 421
       // console.log(time);
424 422
       if (time == 0) {
425
-        return '';
423
+        return ''
426 424
       }
427 425
       return parseTime(time, layout)
428 426
     },
@@ -436,6 +434,7 @@ export default {
436 434
         if (resp.state == 1) {
437 435
           this.admin_user = resp.data.adminUser
438 436
           var schedules = resp.data.scheduals
437
+          console.log('schedules', schedules)
439 438
           var zoneMap = {}
440 439
           var scheduleMap = {}
441 440
           for (let index = 0; index < schedules.length; index++) {

File diff suppressed because it is too large
+ 586 - 500
src/pages/main/dialog/MonitDialog.vue


File diff suppressed because it is too large
+ 439 - 462
src/pages/main/dialysis/AdviceTable.vue


+ 260 - 276
src/pages/main/dialysis/LongTable.vue View File

@@ -30,17 +30,37 @@
30 30
       </div>
31 31
     </div>-->
32 32
     <div class="newTable">
33
-      <el-table :data="tableData" border style="width: 100%">
34
-        <el-table-column fixed prop="date" label="序号" width="100"></el-table-column>
35
-        <el-table-column prop="name" label="透析模式" width="100"></el-table-column>
36
-        <el-table-column prop="province" label="透析时长" width="120"></el-table-column>
37
-        <el-table-column prop="city" label="医生" width="120"></el-table-column>
38
-        <el-table-column prop="address" label="更新日期" width="100"></el-table-column>
39
-        <el-table-column label="操作" width="100">
33
+      <el-table :data="tableDate" border style="width: 100%">
34
+        <el-table-column fixed prop="date" label="序号" width="100" align="center">
35
+            <template slot-scope="scope">
36
+               {{scope.row.no}}
37
+            </template>
38
+        </el-table-column>
39
+        <el-table-column prop="name" label="透析模式" width="100" align="center">
40 40
           <template slot-scope="scope">
41
-            <el-button @click="handleClick(scope.row)" type="text" size="small">修改</el-button>
41
+               {{scope.row.mode_name}}
42
+          </template>
43
+        </el-table-column>
44
+        <el-table-column prop="province" label="透析时长" width="120" align="center">
45
+          <template slot-scope="scope">
46
+             {{scope.row.dialysis_duration_hour}}h {{scope.row.dialysis_duration_minute}}min
47
+          </template>
48
+        </el-table-column>
49
+        <el-table-column prop="city" label="医生" width="120" align="center">
50
+            <template slot-scope="scope">
51
+                 {{tranDoctor(scope.row.registrars_id)}}
52
+            </template>
53
+        </el-table-column>
54
+        <el-table-column prop="address" label="更新日期" width="100" align="center">
55
+          <template slot-scope="scope">
56
+            {{scope.row.edate}}
42 57
           </template>
43 58
         </el-table-column>
59
+        <!-- <el-table-column label="操作" width="100">
60
+          <template slot-scope="scope">
61
+            <el-button @click="handleClick(scope.row)" type="text" size="small">修改</el-button>
62
+          </template>
63
+        </el-table-column> -->
44 64
       </el-table>
45 65
     </div>
46 66
     <van-popup
@@ -319,18 +339,18 @@
319 339
 import {
320 340
   GetPatientDialysisSolutionList,
321 341
   EditDialysisSolution
322
-} from "@/api/patient";
323
-import { parseTime } from "@/utils";
324
-import { fetchAllAdminUsers } from "@/api/doctor";
325
-import { getDataConfig } from "@/utils/data";
326
-import CheckBoxSubMenu from "../dialog/subMenu/checkBoxSubMenu";
327
-import { Toast } from "vant";
342
+} from '@/api/patient'
343
+import { parseTime } from '@/utils'
344
+import { fetchAllAdminUsers } from '@/api/doctor'
345
+import { getDataConfig } from '@/utils/data'
346
+import CheckBoxSubMenu from '../dialog/subMenu/checkBoxSubMenu'
347
+import { Toast } from 'vant'
328 348
 
329
-let allno = 1;
349
+let allno = 1
330 350
 
331 351
 export default {
332
-  name: "LongTable",
333
-  data() {
352
+  name: 'LongTable',
353
+  data () {
334 354
     return {
335 355
       visibility: false,
336 356
       loading: false,
@@ -351,424 +371,389 @@ export default {
351 371
       },
352 372
       dialysisSolution: {
353 373
         id: 0,
354
-        mode: "",
355
-        mode_id: "",
356
-        mode_name: "",
357
-        dialysis_duration: "",
358
-        dialysis_duration_hour: "",
359
-        dialysis_duration_minute: "",
360
-        hemodialysis_machine: "",
361
-        perfusion_apparatus: "",
362
-        perfusion_apparatus_name: "",
363
-        blood_flow_volume: "",
364
-        dewater: "",
374
+        mode: '',
375
+        mode_id: '',
376
+        mode_name: '',
377
+        dialysis_duration: '',
378
+        dialysis_duration_hour: '',
379
+        dialysis_duration_minute: '',
380
+        hemodialysis_machine: '',
381
+        perfusion_apparatus: '',
382
+        perfusion_apparatus_name: '',
383
+        blood_flow_volume: '',
384
+        dewater: '',
365 385
         displace_liqui: 0,
366
-        replacement_way: "",
367
-        replacement_way_name: "",
368
-        anticoagulant: "",
369
-        anticoagulant_name: "",
370
-        anticoagulant_shouji: "",
371
-        anticoagulant_weichi: "",
372
-        anticoagulant_zongliang: "",
373
-        anticoagulant_gaimingcheng: "",
374
-        anticoagulant_gaijiliang: "",
375
-        target_ultrafiltration: "",
376
-        dialysate_formulation: "",
377
-        replacement_total: "",
378
-        kalium: "",
379
-        sodium: "",
380
-        calcium: "",
381
-        bicarbonate: "",
382
-        glucose: "",
383
-        dry_weight: "",
384
-        dialysate_flow: "",
385
-        dialysate_temperature: "",
386
-        conductivity: "",
387
-        doctor: "",
388
-        remark: ""
386
+        replacement_way: '',
387
+        replacement_way_name: '',
388
+        anticoagulant: '',
389
+        anticoagulant_name: '',
390
+        anticoagulant_shouji: '',
391
+        anticoagulant_weichi: '',
392
+        anticoagulant_zongliang: '',
393
+        anticoagulant_gaimingcheng: '',
394
+        anticoagulant_gaijiliang: '',
395
+        target_ultrafiltration: '',
396
+        dialysate_formulation: '',
397
+        replacement_total: '',
398
+        kalium: '',
399
+        sodium: '',
400
+        calcium: '',
401
+        bicarbonate: '',
402
+        glucose: '',
403
+        dry_weight: '',
404
+        dialysate_flow: '',
405
+        dialysate_temperature: '',
406
+        conductivity: '',
407
+        doctor: '',
408
+        remark: ''
389 409
       },
390 410
       anticoagulant: {
391 411
         id: 0,
392
-        name: "",
412
+        name: '',
393 413
         type: 1,
394 414
         shouji: 1,
395 415
         weichi: 1,
396 416
         zongliang: 1,
397 417
         gaimingcheng: -1,
398 418
         gaijiliang: -1,
399
-        shouji_unit: "mg",
400
-        weichi_unit: "mg/h",
401
-        zongliang_unit: "mg",
402
-        gaimingcheng_unit: "",
403
-        gaijiliang_unit: ""
419
+        shouji_unit: 'mg',
420
+        weichi_unit: 'mg/h',
421
+        zongliang_unit: 'mg',
422
+        gaimingcheng_unit: '',
423
+        gaijiliang_unit: ''
404 424
       },
405 425
       propForm: {
406
-        title: "",
426
+        title: '',
407 427
         list: [],
408 428
         optionList: [],
409 429
         isMultiple: 2,
410
-        result: [], //选中的值
411
-        type: 1, //用来区分不同子菜单,方便对返回值进行赋值
430
+        result: [], // 选中的值
431
+        type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
412 432
         selectId: 0
413 433
       },
414 434
       modeOption: [],
415 435
       dialysateFormulationOptions: [],
416 436
       anticoagulantsConfit: {},
417
-      timeValue: "",
418
-      time: "03:00",
419
-      record_date: "",
420
-
421
-      tableData: [
422
-        {
423
-          date: "2016-05-02",
424
-          name: "王小虎",
425
-          province: "上海",
426
-          city: "普陀区",
427
-          address: "上海市普陀区金沙江路 1518 弄",
428
-          zip: 200333
429
-        },
430
-        {
431
-          date: "2016-05-04",
432
-          name: "王小虎",
433
-          province: "上海",
434
-          city: "普陀区",
435
-          address: "上海市普陀区金沙江路 1517 弄",
436
-          zip: 200333
437
-        },
438
-        {
439
-          date: "2016-05-01",
440
-          name: "王小虎",
441
-          province: "上海",
442
-          city: "普陀区",
443
-          address: "上海市普陀区金沙江路 1519 弄",
444
-          zip: 200333
445
-        },
446
-        {
447
-          date: "2016-05-03",
448
-          name: "王小虎",
449
-          province: "上海",
450
-          city: "普陀区",
451
-          address: "上海市普陀区金沙江路 1516 弄",
452
-          zip: 200333
453
-        }
454
-      ]
455
-    };
437
+      timeValue: '',
438
+      time: '03:00',
439
+      record_date: ''
440
+    }
456 441
   },
457 442
   methods: {
458
-    commitInfo: function() {
459
-      Toast.loading({ forbidClick: true, duration: 0 });
460
-      this.dialysisSolution.mode = this.dialysisSolution.mode_id;
443
+    commitInfo: function () {
444
+      Toast.loading({ forbidClick: true, duration: 0 })
445
+      this.dialysisSolution.mode = this.dialysisSolution.mode_id
461 446
       EditDialysisSolution(
462 447
         this.dialysisSolution.id,
463 448
         this.dialysisSolution
464 449
       ).then(response => {
465 450
         if (response.data.state == 0) {
466
-          Toast.fail(response.data.msg);
467
-          return false;
451
+          Toast.fail(response.data.msg)
452
+          return false
468 453
         } else {
469
-          Toast.success("修改成功");
454
+          Toast.success('修改成功')
470 455
           for (const key in response.data.data.solution) {
471 456
             this.tableDate[this.currentIndex][key] =
472
-              response.data.data.solution[key];
457
+              response.data.data.solution[key]
473 458
           }
474
-          this.popupDidHide();
459
+          this.popupDidHide()
475 460
         }
476
-      });
461
+      })
477 462
     },
478
-    openEdit(index, item) {
479
-      this.currentIndex = index;
463
+    openEdit (index, item) {
464
+      this.currentIndex = index
480 465
       for (var key in item) {
481
-        this.dialysisSolution[key] = item[key];
466
+        this.dialysisSolution[key] = item[key]
482 467
       }
483 468
 
484 469
       this.timeValue =
485 470
         this.dialysisSolution.dialysis_duration_hour +
486
-        "小时" +
471
+        '小时' +
487 472
         this.dialysisSolution.dialysis_duration_minute +
488
-        "分钟";
473
+        '分钟'
489 474
 
490 475
       this.time =
491 476
         (this.dialysisSolution.dialysis_duration_hour >= 10
492 477
           ? this.dialysisSolution.dialysis_duration_hour
493
-          : "0" + this.dialysisSolution.dialysis_duration_hour) +
494
-        ":" +
478
+          : '0' + this.dialysisSolution.dialysis_duration_hour) +
479
+        ':' +
495 480
         (this.dialysisSolution.dialysis_duration_minute >= 10
496 481
           ? this.dialysisSolution.dialysis_duration_minute
497
-          : "0" + this.dialysisSolution.dialysis_duration_minute);
482
+          : '0' + this.dialysisSolution.dialysis_duration_minute)
498 483
 
499
-      this.showObj.showPopup = true;
484
+      this.showObj.showPopup = true
500 485
 
501 486
       // document.getElementById('dialogTop').scrollTop = 200;
502
-      var dialogTop = document.querySelector("#dialogTop");
487
+      var dialogTop = document.querySelector('#dialogTop')
503 488
       if (dialogTop != null) {
504 489
         this.$nextTick(() => {
505
-          dialogTop.scrollTop = 0;
506
-        });
490
+          dialogTop.scrollTop = 0
491
+        })
507 492
       }
508 493
     },
509
-    popupDidHide() {
510
-      this.showObj.showPopup = false;
511
-      this.visibility = false;
512
-      this.showObj.showForm = true;
494
+    popupDidHide () {
495
+      this.showObj.showPopup = false
496
+      this.visibility = false
497
+      this.showObj.showForm = true
513 498
     },
514
-    openPicker: function() {
515
-      this.$refs.picker.open();
499
+    openPicker: function () {
500
+      this.$refs.picker.open()
516 501
     },
517
-    showSubMenu: function(val) {
502
+    showSubMenu: function (val) {
518 503
       switch (val) {
519
-        case "mode":
520
-          this.propForm.type = 1;
521
-          this.showObj.showForm = false;
522
-          this.propForm.title = "透析模式";
523
-          this.visibility = true;
524
-          this.propForm.list = [];
525
-          this.propForm.optionList = this.modeOption;
526
-          this.propForm.isMultiple = 1;
527
-          this.propForm.selectId = this.dialysisSolution.mode_id;
528
-          this.propForm.click_ref = "mode";
529
-
530
-          break;
531
-
532
-        case "anticoagulant":
533
-          this.propForm.type = 5;
534
-          this.showObj.showForm = false;
535
-          this.propForm.title = "抗疑剂";
536
-          this.visibility = true;
537
-          this.propForm.list = [];
538
-          this.propForm.optionList = this.anticoagulantsConfit;
539
-          this.propForm.isMultiple = 1;
540
-          this.propForm.selectId = this.dialysisSolution.anticoagulant;
541
-          this.propForm.click_ref = "anticoagulant";
542
-          break;
543
-        case "dialysate_formulation":
544
-          this.propForm.type = 6;
545
-          this.showObj.showForm = false;
546
-          this.propForm.title = "透析液配方";
547
-          this.visibility = true;
548
-          this.propForm.list = [];
549
-          this.propForm.optionList = this.dialysateFormulationOptions;
550
-          this.propForm.isMultiple = 1;
551
-          this.propForm.selectId = this.dialysisSolution.dialysate_formulation;
552
-          this.propForm.click_ref = "dialysate_formulation";
553
-          break;
504
+        case 'mode':
505
+          this.propForm.type = 1
506
+          this.showObj.showForm = false
507
+          this.propForm.title = '透析模式'
508
+          this.visibility = true
509
+          this.propForm.list = []
510
+          this.propForm.optionList = this.modeOption
511
+          this.propForm.isMultiple = 1
512
+          this.propForm.selectId = this.dialysisSolution.mode_id
513
+          this.propForm.click_ref = 'mode'
514
+
515
+          break
516
+
517
+        case 'anticoagulant':
518
+          this.propForm.type = 5
519
+          this.showObj.showForm = false
520
+          this.propForm.title = '抗疑剂'
521
+          this.visibility = true
522
+          this.propForm.list = []
523
+          this.propForm.optionList = this.anticoagulantsConfit
524
+          this.propForm.isMultiple = 1
525
+          this.propForm.selectId = this.dialysisSolution.anticoagulant
526
+          this.propForm.click_ref = 'anticoagulant'
527
+          break
528
+        case 'dialysate_formulation':
529
+          this.propForm.type = 6
530
+          this.showObj.showForm = false
531
+          this.propForm.title = '透析液配方'
532
+          this.visibility = true
533
+          this.propForm.list = []
534
+          this.propForm.optionList = this.dialysateFormulationOptions
535
+          this.propForm.isMultiple = 1
536
+          this.propForm.selectId = this.dialysisSolution.dialysate_formulation
537
+          this.propForm.click_ref = 'dialysate_formulation'
538
+          break
554 539
       }
555 540
     },
556
-    menuCancle: function() {
557
-      this.visibility = false;
558
-      this.showObj.showForm = true;
541
+    menuCancle: function () {
542
+      this.visibility = false
543
+      this.showObj.showForm = true
559 544
       this.$nextTick(() => {
560 545
         if (
561 546
           this.$refs[this.propForm.click_ref] != undefined &&
562 547
           this.$refs[this.propForm.click_ref] != null
563 548
         ) {
564
-          this.$refs[this.propForm.click_ref].scrollIntoView();
549
+          this.$refs[this.propForm.click_ref].scrollIntoView()
565 550
         }
566
-      });
551
+      })
567 552
     },
568
-    menuComfirm: function(val) {
569
-      this.visibility = false;
570
-      this.showObj.showForm = true;
553
+    menuComfirm: function (val) {
554
+      this.visibility = false
555
+      this.showObj.showForm = true
571 556
       this.$nextTick(() => {
572 557
         if (
573 558
           this.$refs[this.propForm.click_ref] != undefined &&
574 559
           this.$refs[this.propForm.click_ref] != null
575 560
         ) {
576
-          this.$refs[this.propForm.click_ref].scrollIntoView();
561
+          this.$refs[this.propForm.click_ref].scrollIntoView()
577 562
         }
578
-      });
563
+      })
579 564
       switch (val.type) {
580 565
         case 1:
581
-          this.dialysisSolution.mode_id = val.selectId;
566
+          this.dialysisSolution.mode_id = val.selectId
582 567
           this.dialysisSolution.mode_name = this.GetModeByModeId(
583 568
             this.dialysisSolution.mode_id
584
-          );
585
-          break;
569
+          )
570
+          break
586 571
 
587 572
         case 5:
588
-          this.dialysisSolution.anticoagulant = val.selectId;
573
+          this.dialysisSolution.anticoagulant = val.selectId
589 574
 
590 575
           if (
591
-            typeof this.anticoagulantsConfit[val.selectId] == "undefined" ||
576
+            typeof this.anticoagulantsConfit[val.selectId] === 'undefined' ||
592 577
             this.anticoagulantsConfit[val.selectId] == null
593 578
           ) {
594
-            return;
579
+            return
595 580
           }
596
-          this.anticoagulant = this.anticoagulantsConfit[val.selectId];
581
+          this.anticoagulant = this.anticoagulantsConfit[val.selectId]
597 582
 
598
-          break;
583
+          break
599 584
 
600 585
         case 6:
601
-          this.dialysisSolution.dialysate_formulation = val.selectId;
586
+          this.dialysisSolution.dialysate_formulation = val.selectId
602 587
 
603
-          break;
588
+          break
604 589
       }
605 590
     },
606
-    handleTimeConfirm: function(val) {
607
-      val = val.replace("小时");
608
-      val = val.replace("分钟");
609
-      let timeArray = val.split(":");
591
+    handleTimeConfirm: function (val) {
592
+      val = val.replace('小时')
593
+      val = val.replace('分钟')
594
+      let timeArray = val.split(':')
610 595
       if (parseInt(timeArray[0].substring(0, 1)) == 0) {
611 596
         this.dialysisSolution.dialysis_duration_hour = timeArray[0].charAt(
612 597
           timeArray[0].length - 1
613
-        );
598
+        )
614 599
       } else {
615
-        this.dialysisSolution.dialysis_duration_hour = timeArray[0];
600
+        this.dialysisSolution.dialysis_duration_hour = timeArray[0]
616 601
       }
617 602
 
618 603
       if (parseInt(timeArray[1].substring(0, 1)) == 0) {
619 604
         this.dialysisSolution.dialysis_duration_minute = timeArray[1].charAt(
620 605
           timeArray[1].length - 1
621
-        );
606
+        )
622 607
       } else {
623
-        this.dialysisSolution.dialysis_duration_minute = timeArray[1];
608
+        this.dialysisSolution.dialysis_duration_minute = timeArray[1]
624 609
       }
625 610
       this.timeValue =
626 611
         this.dialysisSolution.dialysis_duration_hour +
627
-        "小时" +
612
+        '小时' +
628 613
         this.dialysisSolution.dialysis_duration_minute +
629
-        "分钟";
614
+        '分钟'
630 615
       this.dialysisSolution.dialysis_duration =
631 616
         this.dialysisSolution.dialysis_duration_hour +
632
-        "." +
633
-        this.dialysisSolution.dialysis_duration_minute;
617
+        '.' +
618
+        this.dialysisSolution.dialysis_duration_minute
634 619
     },
635
-    GetModeByModeId: function(val) {
636
-      let treatment_mode_name = "";
637
-      let treatment_mode = this.modeOption;
620
+    GetModeByModeId: function (val) {
621
+      let treatment_mode_name = ''
622
+      let treatment_mode = this.modeOption
638 623
       for (let keys in treatment_mode) {
639 624
         if (treatment_mode[keys].id == val) {
640
-          treatment_mode_name = treatment_mode[keys].name;
625
+          treatment_mode_name = treatment_mode[keys].name
641 626
         }
642 627
       }
643 628
 
644
-      return treatment_mode_name;
629
+      return treatment_mode_name
645 630
     },
646
-    inputFocus: function(event) {
647
-      var input = event.target;
648
-      setTimeout(function() {
649
-        input.scrollIntoView();
650
-      }, 0);
631
+    inputFocus: function (event) {
632
+      var input = event.target
633
+      setTimeout(function () {
634
+        input.scrollIntoView()
635
+      }, 0)
651 636
 
652 637
       if (input.setSelectionRange) {
653
-        setTimeout(function() {
654
-          input.setSelectionRange(0, input.value.length);
655
-        }, 0);
638
+        setTimeout(function () {
639
+          input.setSelectionRange(0, input.value.length)
640
+        }, 0)
656 641
       } else if (input.createTextRange) {
657
-        var rng = input.createTextRange();
658
-        rng.move("character", input.value.length);
659
-        rng.select();
642
+        var rng = input.createTextRange()
643
+        rng.move('character', input.value.length)
644
+        rng.select()
660 645
       }
661 646
     },
662
-    lastInputBlur: function(event) {
663
-      var input = event.target;
664
-      setTimeout(function() {
665
-        input.style.marginBottom = "";
666
-      }, 0);
647
+    lastInputBlur: function (event) {
648
+      var input = event.target
649
+      setTimeout(function () {
650
+        input.style.marginBottom = ''
651
+      }, 0)
667 652
     },
668
-    lastInputFocus: function(event) {
669
-      var input = event.target;
670
-      setTimeout(function() {
671
-        input.style.marginBottom = "2rem";
672
-        input.parentNode.scrollIntoView();
673
-      }, 0);
653
+    lastInputFocus: function (event) {
654
+      var input = event.target
655
+      setTimeout(function () {
656
+        input.style.marginBottom = '2rem'
657
+        input.parentNode.scrollIntoView()
658
+      }, 0)
674 659
     },
675
-    GetDialysateFormulationById: function(val) {
676
-      let name = "";
677
-      let dfl = this.dialysateFormulationOptions.length;
660
+    GetDialysateFormulationById: function (val) {
661
+      let name = ''
662
+      let dfl = this.dialysateFormulationOptions.length
678 663
       for (let index = 0; index < dfl; index++) {
679 664
         if (this.dialysateFormulationOptions[index].id == val) {
680
-          name = this.dialysateFormulationOptions[index].name;
681
-          break;
665
+          name = this.dialysateFormulationOptions[index].name
666
+          break
682 667
         }
683 668
       }
684
-      return name;
669
+      return name
685 670
     },
686
-    GetAnticoagulantById: function(val) {
687
-      let anticoagulan_name = "";
688
-      let anticoagulant = this.anticoagulantsConfit;
671
+    GetAnticoagulantById: function (val) {
672
+      let anticoagulan_name = ''
673
+      let anticoagulant = this.anticoagulantsConfit
689 674
       for (let keys in anticoagulant) {
690 675
         if (anticoagulant[keys].id == val) {
691
-          anticoagulan_name = anticoagulant[keys].name;
676
+          anticoagulan_name = anticoagulant[keys].name
692 677
         }
693 678
       }
694
-      return anticoagulan_name;
679
+      return anticoagulan_name
695 680
     },
696
-    tranDoctor(id) {
681
+    tranDoctor (id) {
697 682
       if (id in this.adminUserOptions) {
698
-        return this.adminUserOptions[id].name;
683
+        return this.adminUserOptions[id].name
699 684
       } else {
700
-        return "未知";
685
+        return '未知'
701 686
       }
702 687
     },
703
-    fetchAllAdminUsers() {
688
+    fetchAllAdminUsers () {
704 689
       fetchAllAdminUsers().then(response => {
705 690
         if (response.data.state == 1) {
706
-          var ul = response.data.data.users.length;
691
+          var ul = response.data.data.users.length
707 692
           for (let index = 0; index < ul; index++) {
708 693
             this.adminUserOptions[response.data.data.users[index].id] =
709
-              response.data.data.users[index];
694
+              response.data.data.users[index]
710 695
           }
711 696
         }
712
-      });
697
+      })
713 698
     },
714
-    onLoad() {
699
+    onLoad () {
715 700
       // 异步更新数据
716
-      this.queryParams.page++;
701
+      this.queryParams.page++
717 702
       GetPatientDialysisSolutionList(this.queryParams).then(response => {
718 703
         if (response.data.state == 1) {
719
-          var sl = response.data.data.solutions.length;
704
+          var sl = response.data.data.solutions.length
720 705
           if (sl == 0) {
721
-            this.finished = true;
706
+            this.finished = true
722 707
           } else {
723 708
             for (let index = 0; index < sl; index++) {
724
-              var solution = response.data.data.solutions[index];
725
-              solution.no = allno;
709
+              var solution = response.data.data.solutions[index]
710
+              solution.no = allno
726 711
               solution.edate = parseTime(
727 712
                 solution.updated_time,
728
-                "{y}-{m}-{d} {h}:{i}"
729
-              );
730
-              allno++;
731
-              this.tableDate.push(solution);
713
+                '{y}-{m}-{d} {h}:{i}'
714
+              )
715
+              allno++
716
+              this.tableDate.push(solution)
732 717
             }
733 718
           }
734
-          this.loading = false;
719
+          this.loading = false
735 720
         }
736
-      });
721
+      })
737 722
     }
738 723
   },
739
-  created() {
740
-    allno = 1;
741
-    this.fetchAllAdminUsers();
742
-    this.queryParams.id = this.$route.query.patient_id;
743
-    this.onLoad();
724
+  created () {
725
+    allno = 1
726
+    this.fetchAllAdminUsers()
727
+    this.queryParams.id = this.$route.query.patient_id
728
+    this.onLoad()
744 729
 
745
-    this.modeOption = this.$store.getters.treatment_mode;
730
+    this.modeOption = this.$store.getters.treatment_mode
746 731
     this.dialysateFormulationOptions = getDataConfig(
747
-      "hemodialysis",
748
-      "dialysate_formulation"
749
-    );
750
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
751
-
752
-    var date = this.$route.query && this.$route.query.date;
753
-    date *= 1000;
754
-    var newDate = new Date(date);
755
-
756
-    var y = newDate.getFullYear();
757
-    var m = newDate.getMonth() + 1;
758
-    var d = newDate.getDate();
732
+      'hemodialysis',
733
+      'dialysate_formulation'
734
+    )
735
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
736
+
737
+    var date = this.$route.query && this.$route.query.date
738
+    date *= 1000
739
+    var newDate = new Date(date)
740
+
741
+    var y = newDate.getFullYear()
742
+    var m = newDate.getMonth() + 1
743
+    var d = newDate.getDate()
759 744
     if (isNaN(y) || isNaN(m) || isNaN(d)) {
760
-      newDate = new Date();
761
-      y = newDate.getFullYear();
762
-      m = newDate.getMonth() + 1;
763
-      d = newDate.getDate();
745
+      newDate = new Date()
746
+      y = newDate.getFullYear()
747
+      m = newDate.getMonth() + 1
748
+      d = newDate.getDate()
764 749
     }
765 750
     this.record_date =
766
-      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
751
+      y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
767 752
   },
768 753
   components: {
769 754
     CheckBoxSubMenu
770 755
   }
771
-};
756
+}
772 757
 </script>
773 758
 
774 759
 <style style="stylesheet/scss" lang="scss"  scoped>
@@ -850,4 +835,3 @@ export default {
850 835
   }
851 836
 }
852 837
 </style>
853
-

+ 215 - 195
src/pages/main/dialysis/RecordTable.vue View File

@@ -89,21 +89,77 @@
89 89
         </div>
90 90
 
91 91
       </div>-->
92
-      <el-table :data="date" border style="width: 100%">
93
-        <el-table-column fixed prop="date" label="透析日期" width="100"></el-table-column>
94
-        <el-table-column prop="name" label="班次" width="100"></el-table-column>
95
-        <el-table-column prop="province" label="分区-机号" width="120"></el-table-column>
96
-        <el-table-column prop="city" label="透析模式" width="120"></el-table-column>
97
-        <el-table-column prop="address" label="透析时长(h)" width="100"></el-table-column>
98
-        <el-table-column prop="date" label="干体重(kg)" width="100"></el-table-column>
99
-        <el-table-column prop="name" label="透前体重(kg)" width="100"></el-table-column>
100
-        <el-table-column prop="province" label="透后体重(kg)" width="120"></el-table-column>
101
-        <el-table-column prop="city" label="透前血压(mmHg)" width="120"></el-table-column>
102
-        <el-table-column prop="address" label="透后血压(mmHg)" width="100"></el-table-column>
103
-        <el-table-column prop="date" label="超滤总量(L)" width="100"></el-table-column>
104
-        <el-table-column prop="name" label="抗凝剂种类 首剂/维持/总量" width="100"></el-table-column>
105
-        <el-table-column prop="province" label="治疗护士" width="120"></el-table-column>
106
-        <el-table-column prop="city" label="治疗医生" width="120"></el-table-column>
92
+      <el-table :data="tableDate" border style="width: 100%">
93
+        <el-table-column fixed prop="date" label="透析日期" width="100" align="center">
94
+             <template slot-scope="scope">
95
+                {{parseTime(scope.row.dialysis_date, "{y}-{m}-{d}")}}
96
+             </template>
97
+        </el-table-column>
98
+        <el-table-column prop="name" label="班次" width="100" align="center">
99
+          <template slot-scope="scope">
100
+            {{scheduleType(scope.row.schedule_type)}}
101
+          </template>
102
+        </el-table-column>
103
+        <el-table-column prop="province" label="分区-机号" width="120" align="center">
104
+            <template slot-scope="scope">
105
+               {{scope.row.partition_name}} - {{scope.row.device_number}}
106
+            </template>
107
+        </el-table-column>
108
+        <el-table-column prop="city" label="透析模式" width="120" align="center">
109
+            <template slot-scope="scope">
110
+              {{modeName(scope.row.prescription.mode_id)}}
111
+            </template>
112
+        </el-table-column>
113
+        <el-table-column prop="address" label="透析时长(h)" width="100" align="center">
114
+            <template slot-scope="scope">
115
+                 {{scope.row.prescription.dialysis_duration?scope.row.prescription.dialysis_duration:""}}
116
+            </template>
117
+        </el-table-column>
118
+        <el-table-column prop="date" label="干体重(kg)" width="100" align="center">
119
+          <template slot-scope="scope">
120
+              {{scope.row.prescription.dry_weight?scope.row.prescription.dry_weight:""}}
121
+          </template>
122
+        </el-table-column>
123
+        <el-table-column prop="name" label="透前体重(kg)" width="100" align="center">
124
+          <template slot-scope="scope">
125
+              {{scope.row.predialysis_evaluation.weight_before?scope.row.predialysis_evaluation.weight_before:""}}
126
+          </template>
127
+        </el-table-column>
128
+        <el-table-column prop="province" label="透后体重(kg)" width="120" align="center">
129
+          <template slot-scope="scope">
130
+               {{scope.row.assessment_after_dislysis.systolic_blood_pressure?scope.row.assessment_after_dislysis.systolic_blood_pressure:""}}
131
+          </template>
132
+        </el-table-column>
133
+        <el-table-column prop="city" label="透前血压(mmHg)" width="120" align="center">
134
+          <template slot-scope="scope">
135
+           {{scope.row.predialysis_evaluation.systolic_blood_pressure?scope.row.predialysis_evaluation.systolic_blood_pressure:""}}
136
+          </template>
137
+        </el-table-column>
138
+        <el-table-column prop="address" label="透后血压(mmHg)" width="100" align="center">
139
+            <template slot-scope="scope">
140
+              {{scope.row.assessment_after_dislysis.systolic_blood_pressure?scope.row.assessment_after_dislysis.systolic_blood_pressure:""}}
141
+            </template>
142
+        </el-table-column>
143
+        <el-table-column prop="date" label="超滤总量(L)" width="100" align="center">
144
+          <template slot-scope="scope">
145
+             {{scope.row.predialysis_evaluation.ultrafiltration_amount?scope.row.predialysis_evaluation.ultrafiltration_amount:""}}
146
+          </template>
147
+        </el-table-column>
148
+        <el-table-column prop="name" label="抗凝剂种类 首剂/维持/总量" width="100" align="center">
149
+           <template slot-scope="scope">
150
+              {{setAnticoagulantsConfit(scope.row.prescription)}}
151
+           </template>
152
+        </el-table-column>
153
+        <el-table-column prop="province" label="治疗护士" width="120" align="center">
154
+             <template slot-scope="scope">
155
+               {{getName(scope.row.treatment_summary.zl_nurse)}}
156
+             </template>
157
+        </el-table-column>
158
+        <el-table-column prop="city" label="治疗医生" width="120" align="center">
159
+            <template slot-scope="scope">
160
+              {{getName(scope.row.treatment_summary.zl_doctor)}}
161
+            </template>
162
+        </el-table-column>
107 163
       </el-table>
108 164
     </van-list>
109 165
 
@@ -126,69 +182,69 @@
126 182
 </template>
127 183
 
128 184
 <script>
129
-import { Popover } from "vux";
130
-import { parseTime } from "@/utils";
131
-import { getRecordList } from "@/api/patient";
132
-import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from "@/api/doctor";
185
+import { Popover } from 'vux'
186
+import { parseTime } from '@/utils'
187
+import { getRecordList } from '@/api/patient'
188
+import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from '@/api/doctor'
133 189
 
134 190
 export default {
135
-  name: "LongTable",
136
-  created() {
137
-    var date = new Date();
138
-    var year = date.getFullYear();
139
-    var month = date.getMonth();
140
-    var day = date.getDate();
191
+  name: 'LongTable',
192
+  created () {
193
+    var date = new Date()
194
+    var year = date.getFullYear()
195
+    var month = date.getMonth()
196
+    var day = date.getDate()
141 197
     if (month < 10) {
142
-      month = "0" + month;
198
+      month = '0' + month
143 199
     }
144 200
     if (day < 10) {
145
-      day = "0" + day;
201
+      day = '0' + day
146 202
     }
147
-    var nowDate = year + "-" + month + "-" + day;
203
+    var nowDate = year + '-' + month + '-' + day
148 204
 
149
-    this.startTime = new Date(nowDate);
205
+    this.startTime = new Date(nowDate)
150 206
 
151
-    this.modeOptions = this.$store.getters.treatment_mode;
207
+    this.modeOptions = this.$store.getters.treatment_mode
152 208
 
153
-    this.modeOptions["0"] = {
209
+    this.modeOptions['0'] = {
154 210
       id: 0,
155
-      name: "全部"
156
-    };
211
+      name: '全部'
212
+    }
157 213
 
158 214
     // console.log(this.modeOptions);
159
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
215
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
160 216
     this.queryParams.start_time = this.parseTime(
161 217
       this.startTime.getTime() / 1000,
162
-      "{y}-{m}-{d}"
163
-    );
218
+      '{y}-{m}-{d}'
219
+    )
164 220
     this.queryParams.end_time = this.parseTime(
165 221
       new Date().getTime() / 1000,
166
-      "{y}-{m}-{d}"
167
-    );
168
-    this.queryParams.patient_id = this.$route.query.patient_id;
169
-    this.queryParams.page = this.queryParams.page + 1;
170
-    this.queryParams.limit = 15;
171
-    this.tableDate = [];
222
+      '{y}-{m}-{d}'
223
+    )
224
+    this.queryParams.patient_id = this.$route.query.patient_id
225
+    this.queryParams.page = this.queryParams.page + 1
226
+    this.queryParams.limit = 15
227
+    this.tableDate = []
172 228
     // console.log(this.queryParams);
173 229
 
174 230
     getRecordList(this.queryParams).then(response => {
175 231
       if (response.data.state == 0) {
176
-        return false;
232
+        return false
177 233
       } else {
178 234
         if (response.data.data.records.length == 0) {
179 235
         } else {
180 236
           for (let i = 0; i < response.data.data.records.length; i++) {
181
-            this.tableDate.push(response.data.data.records[i]);
237
+            this.tableDate.push(response.data.data.records[i])
182 238
           }
183 239
         }
184 240
       }
185
-    });
186
-    this.fetchAllAdminUsers();
187
-    this.fetchAllDoctorAndNurse();
241
+    })
242
+    this.fetchAllAdminUsers()
243
+    this.fetchAllDoctorAndNurse()
188 244
   },
189
-  data() {
245
+  data () {
190 246
     return {
191
-      mode_id: "",
247
+      mode_id: '',
192 248
       loading: false,
193 249
       finished: false,
194 250
       startTime: new Date(),
@@ -201,265 +257,230 @@ export default {
201 257
       adminUserOptions: null,
202 258
 
203 259
       queryParams: {
204
-        mode_id: "",
205
-        start_time: "",
206
-        end_time: "",
260
+        mode_id: '',
261
+        start_time: '',
262
+        end_time: '',
207 263
         page: 0,
208 264
         patient_id: 0,
209 265
         limit: 15
210 266
       },
211 267
 
212
-      tableDate: [],
213
-
214
-      date: [
215
-        {
216
-          date: "2016-05-02",
217
-          name: "王小虎",
218
-          province: "上海",
219
-          city: "普陀区",
220
-          address: "上海市普陀区金沙江路 1518 弄",
221
-          zip: 200333
222
-        },
223
-        {
224
-          date: "2016-05-04",
225
-          name: "王小虎",
226
-          province: "上海",
227
-          city: "普陀区",
228
-          address: "上海市普陀区金沙江路 1517 弄",
229
-          zip: 200333
230
-        },
231
-        {
232
-          date: "2016-05-01",
233
-          name: "王小虎",
234
-          province: "上海",
235
-          city: "普陀区",
236
-          address: "上海市普陀区金沙江路 1519 弄",
237
-          zip: 200333
238
-        },
239
-        {
240
-          date: "2016-05-03",
241
-          name: "王小虎",
242
-          province: "上海",
243
-          city: "普陀区",
244
-          address: "上海市普陀区金沙江路 1516 弄",
245
-          zip: 200333
246
-        }
247
-      ]
248
-    };
268
+      tableDate: []
269
+    }
249 270
   },
250 271
   methods: {
251
-    modeName(mode_id) {
252
-      return typeof this.modeOptions[mode_id] != "undefined" &&
253
-        typeof this.modeOptions[mode_id].name != "undefined"
272
+    modeName (mode_id) {
273
+      return typeof this.modeOptions[mode_id] !== 'undefined' &&
274
+        typeof this.modeOptions[mode_id].name !== 'undefined'
254 275
         ? this.modeOptions[mode_id].name
255
-        : "";
276
+        : ''
256 277
     },
257
-    modeNameOther(mode_id) {
258
-      return typeof this.modeOptions[mode_id] != "undefined" &&
259
-        typeof this.modeOptions[mode_id].name != "undefined"
278
+    modeNameOther (mode_id) {
279
+      return typeof this.modeOptions[mode_id] !== 'undefined' &&
280
+        typeof this.modeOptions[mode_id].name !== 'undefined'
260 281
         ? this.modeOptions[mode_id].name
261
-        : "全部";
282
+        : '全部'
262 283
     },
263 284
 
264
-    parseTime(time, layout) {
265
-      return parseTime(time, layout);
285
+    parseTime (time, layout) {
286
+      return parseTime(time, layout)
266 287
     },
267
-    openStartPicker: function() {
268
-      this.$refs.start_date_picker.open();
288
+    openStartPicker: function () {
289
+      this.$refs.start_date_picker.open()
269 290
     },
270
-    openEndPicker: function() {
271
-      this.$refs.end_date_picker.open();
291
+    openEndPicker: function () {
292
+      this.$refs.end_date_picker.open()
272 293
     },
273
-    handleStartDateConfirm: function(val) {
294
+    handleStartDateConfirm: function (val) {
274 295
       this.queryParams.start_time = this.parseTime(
275 296
         this.startTime / 1000,
276
-        "{y}-{m}-{d}"
277
-      );
297
+        '{y}-{m}-{d}'
298
+      )
278 299
       this.queryParams.end_time = this.parseTime(
279 300
         this.endTime / 1000,
280
-        "{y}-{m}-{d}"
281
-      );
282
-      this.queryParams.page = 1;
283
-      this.queryParams.limit = 15;
301
+        '{y}-{m}-{d}'
302
+      )
303
+      this.queryParams.page = 1
304
+      this.queryParams.limit = 15
284 305
 
285
-      this.getRecordList(this.queryParams);
306
+      this.getRecordList(this.queryParams)
286 307
     },
287
-    handleEndDateConfirm: function(val) {
308
+    handleEndDateConfirm: function (val) {
288 309
       this.queryParams.start_time = this.parseTime(
289 310
         this.startTime / 1000,
290
-        "{y}-{m}-{d}"
291
-      );
311
+        '{y}-{m}-{d}'
312
+      )
292 313
       this.queryParams.end_time = this.parseTime(
293 314
         this.endTime / 1000,
294
-        "{y}-{m}-{d}"
295
-      );
296
-      this.queryParams.page = 1;
297
-      this.queryParams.limit = 15;
298
-      this.getRecordList(this.queryParams);
315
+        '{y}-{m}-{d}'
316
+      )
317
+      this.queryParams.page = 1
318
+      this.queryParams.limit = 15
319
+      this.getRecordList(this.queryParams)
299 320
     },
300
-    getRecordList: function(val) {
301
-      this.tableDate = [];
321
+    getRecordList: function (val) {
322
+      this.tableDate = []
302 323
       getRecordList(val).then(response => {
303 324
         if (response.data.state == 0) {
304
-          return false;
325
+          return false
305 326
         } else {
306 327
           if (response.data.data.records.length == 0) {
307 328
           } else {
308 329
             for (let i = 0; i < response.data.data.records.length; i++) {
309
-              this.tableDate.push(response.data.data.records[i]);
330
+              this.tableDate.push(response.data.data.records[i])
310 331
             }
311 332
           }
312 333
         }
313
-      });
334
+      })
314 335
     },
315
-    onLoad() {
336
+    onLoad () {
316 337
       this.queryParams.start_time = this.parseTime(
317 338
         this.startTime.getTime() / 1000,
318
-        "{y}-{m}-{d}"
319
-      );
339
+        '{y}-{m}-{d}'
340
+      )
320 341
       this.queryParams.end_time = this.parseTime(
321 342
         this.endTime.getTime() / 1000,
322
-        "{y}-{m}-{d}"
323
-      );
324
-      this.queryParams.patient_id = this.$route.query.patient_id;
325
-      this.queryParams.page = this.queryParams.page + 1;
326
-      this.queryParams.limit = 15;
343
+        '{y}-{m}-{d}'
344
+      )
345
+      this.queryParams.patient_id = this.$route.query.patient_id
346
+      this.queryParams.page = this.queryParams.page + 1
347
+      this.queryParams.limit = 15
327 348
 
328 349
       getRecordList(this.queryParams).then(response => {
329 350
         if (response.data.state == 0) {
330
-          this.finished = true;
331
-          this.loading = false;
332
-          return false;
351
+          this.finished = true
352
+          this.loading = false
353
+          return false
333 354
         } else {
334 355
           if (response.data.data.records.length == 0) {
335
-            this.finished = true;
336
-            this.loading = false;
356
+            this.finished = true
357
+            this.loading = false
337 358
           } else {
338 359
             for (let i = 0; i < response.data.data.records.length; i++) {
339
-              this.tableDate.push(response.data.data.records[i]);
360
+              this.tableDate.push(response.data.data.records[i])
340 361
             }
341
-            this.loading = false;
362
+            this.loading = false
342 363
           }
343 364
         }
344
-      });
365
+      })
345 366
     },
346
-    scheduleType(scheduleType) {
347
-      var typeName = "";
367
+    scheduleType (scheduleType) {
368
+      var typeName = ''
348 369
       switch (scheduleType) {
349 370
         case 1:
350
-          typeName = "上午";
351
-          break;
371
+          typeName = '上午'
372
+          break
352 373
         case 2:
353
-          typeName = "下午";
354
-          break;
374
+          typeName = '下午'
375
+          break
355 376
         case 3:
356
-          typeName = "晚上";
357
-          break;
377
+          typeName = '晚上'
378
+          break
358 379
         default:
359
-          break;
380
+          break
360 381
       }
361
-      return typeName;
382
+      return typeName
362 383
     },
363
-    setAnticoagulantsConfit: function(prescription) {
384
+    setAnticoagulantsConfit: function (prescription) {
364 385
       if (
365
-        typeof this.anticoagulantsConfit[prescription.anticoagulant] ==
366
-        "undefined"
386
+        typeof this.anticoagulantsConfit[prescription.anticoagulant] ===
387
+        'undefined'
367 388
       ) {
368
-        return "";
389
+        return ''
369 390
       } else {
370 391
         if (this.anticoagulantsConfit[prescription.anticoagulant].shouji != 1) {
371
-          return this.anticoagulantsConfit[prescription.anticoagulant].name;
392
+          return this.anticoagulantsConfit[prescription.anticoagulant].name
372 393
         } else {
373 394
           return (
374 395
             this.anticoagulantsConfit[prescription.anticoagulant].name +
375
-            "/" +
396
+            '/' +
376 397
             prescription.anticoagulant_shouji +
377
-            "/" +
398
+            '/' +
378 399
             prescription.anticoagulant_weichi +
379
-            "/" +
400
+            '/' +
380 401
             prescription.anticoagulant_zongliang
381
-          );
402
+          )
382 403
         }
383 404
       }
384 405
     },
385
-    getName: function(id) {
406
+    getName: function (id) {
386 407
       if (id <= 0) {
387
-        return "";
408
+        return ''
388 409
       }
389
-      var name = "";
410
+      var name = ''
390 411
       if (
391 412
         this.adminUserOptions == null ||
392
-        typeof this.adminUserOptions.length == "undefined"
413
+        typeof this.adminUserOptions.length === 'undefined'
393 414
       ) {
394
-        return name;
415
+        return name
395 416
       }
396
-      var leng = this.adminUserOptions.length;
417
+      var leng = this.adminUserOptions.length
397 418
       if (leng == 0) {
398
-        return name;
419
+        return name
399 420
       }
400 421
       for (let index = 0; index < leng; index++) {
401 422
         if (this.adminUserOptions[index].id == id) {
402
-          name = this.adminUserOptions[index].name;
403
-          break;
423
+          name = this.adminUserOptions[index].name
424
+          break
404 425
         }
405 426
       }
406
-      return name;
427
+      return name
407 428
     },
408
-    fetchAllAdminUsers() {
429
+    fetchAllAdminUsers () {
409 430
       fetchAllAdminUsers().then(response => {
410 431
         if (response.data.state == 1) {
411
-          this.adminUserOptions = response.data.data.users;
412
-          var alen = this.adminUserOptions.length;
432
+          this.adminUserOptions = response.data.data.users
433
+          var alen = this.adminUserOptions.length
413 434
           for (let index = 0; index < alen; index++) {
414 435
             if (this.adminUserOptions[index].user_type == 2) {
415
-              this.doctorOptions.push(this.adminUserOptions[index]);
436
+              this.doctorOptions.push(this.adminUserOptions[index])
416 437
             }
417 438
           }
418 439
         }
419
-      });
440
+      })
420 441
     },
421
-    fetchAllDoctorAndNurse() {
442
+    fetchAllDoctorAndNurse () {
422 443
       fetchAllDoctorAndNurse().then(response => {
423 444
         if (response.data.state == 1) {
424
-          this.doctorOptions = response.data.data.doctors;
445
+          this.doctorOptions = response.data.data.doctors
425 446
         }
426
-      });
447
+      })
427 448
     },
428
-    itemClick: function(val) {
429
-      if (val == "0") {
430
-        this.mode_id = "0";
449
+    itemClick: function (val) {
450
+      if (val == '0') {
451
+        this.mode_id = '0'
431 452
       } else {
432
-        this.mode_id = val;
453
+        this.mode_id = val
433 454
       }
434
-      this.queryParams.mode_id = val;
455
+      this.queryParams.mode_id = val
435 456
       this.queryParams.start_time = this.parseTime(
436 457
         this.startTime / 1000,
437
-        "{y}-{m}-{d}"
438
-      );
458
+        '{y}-{m}-{d}'
459
+      )
439 460
       this.queryParams.end_time = this.parseTime(
440 461
         this.endTime / 1000,
441
-        "{y}-{m}-{d}"
442
-      );
443
-      this.queryParams.page = 1;
444
-      this.queryParams.limit = 15;
445
-      this.getRecordList(this.queryParams);
462
+        '{y}-{m}-{d}'
463
+      )
464
+      this.queryParams.page = 1
465
+      this.queryParams.limit = 15
466
+      this.getRecordList(this.queryParams)
446 467
     },
447
-    jump: function(val) {
448
-      this.$emit("record", val);
468
+    jump: function (val) {
469
+      this.$emit('record', val)
449 470
 
450 471
       this.$router.push({
451
-        path: "/details",
472
+        path: '/details',
452 473
         query: {
453 474
           patient_id: val.patient_id,
454 475
           date: val.dialysis_date
455 476
         }
456
-      });
477
+      })
457 478
     }
458 479
   },
459 480
   components: {
460 481
     Popover
461 482
   }
462
-};
483
+}
463 484
 </script>
464 485
 
465 486
 <style style="stylesheet/scss" lang="scss" scoped>
@@ -513,4 +534,3 @@ export default {
513 534
   padding: 6px 0;
514 535
 }
515 536
 </style>
516
-