Ver código fonte

Merge branch 'wzf' of http://git.shengws.com/zhangbj/xt_pad into wzf

See999 5 anos atrás
pai
commit
27391fae8d

+ 11 - 12
src/pages/advice/DialysisAdviceTable.vue Ver arquivo

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

Diferenças do arquivo suprimidas por serem muito extensas
+ 586 - 500
src/pages/main/dialog/MonitDialog.vue


Diferenças do arquivo suprimidas por serem muito extensas
+ 439 - 462
src/pages/main/dialysis/AdviceTable.vue


+ 260 - 276
src/pages/main/dialysis/LongTable.vue Ver arquivo

30
       </div>
30
       </div>
31
     </div>-->
31
     </div>-->
32
     <div class="newTable">
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
           <template slot-scope="scope">
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
           </template>
57
           </template>
43
         </el-table-column>
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
       </el-table>
64
       </el-table>
45
     </div>
65
     </div>
46
     <van-popup
66
     <van-popup
319
 import {
339
 import {
320
   GetPatientDialysisSolutionList,
340
   GetPatientDialysisSolutionList,
321
   EditDialysisSolution
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
 export default {
351
 export default {
332
-  name: "LongTable",
333
-  data() {
352
+  name: 'LongTable',
353
+  data () {
334
     return {
354
     return {
335
       visibility: false,
355
       visibility: false,
336
       loading: false,
356
       loading: false,
351
       },
371
       },
352
       dialysisSolution: {
372
       dialysisSolution: {
353
         id: 0,
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
         displace_liqui: 0,
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
       anticoagulant: {
410
       anticoagulant: {
391
         id: 0,
411
         id: 0,
392
-        name: "",
412
+        name: '',
393
         type: 1,
413
         type: 1,
394
         shouji: 1,
414
         shouji: 1,
395
         weichi: 1,
415
         weichi: 1,
396
         zongliang: 1,
416
         zongliang: 1,
397
         gaimingcheng: -1,
417
         gaimingcheng: -1,
398
         gaijiliang: -1,
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
       propForm: {
425
       propForm: {
406
-        title: "",
426
+        title: '',
407
         list: [],
427
         list: [],
408
         optionList: [],
428
         optionList: [],
409
         isMultiple: 2,
429
         isMultiple: 2,
410
-        result: [], //选中的值
411
-        type: 1, //用来区分不同子菜单,方便对返回值进行赋值
430
+        result: [], // 选中的值
431
+        type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
412
         selectId: 0
432
         selectId: 0
413
       },
433
       },
414
       modeOption: [],
434
       modeOption: [],
415
       dialysateFormulationOptions: [],
435
       dialysateFormulationOptions: [],
416
       anticoagulantsConfit: {},
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
   methods: {
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
       EditDialysisSolution(
446
       EditDialysisSolution(
462
         this.dialysisSolution.id,
447
         this.dialysisSolution.id,
463
         this.dialysisSolution
448
         this.dialysisSolution
464
       ).then(response => {
449
       ).then(response => {
465
         if (response.data.state == 0) {
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
         } else {
453
         } else {
469
-          Toast.success("修改成功");
454
+          Toast.success('修改成功')
470
           for (const key in response.data.data.solution) {
455
           for (const key in response.data.data.solution) {
471
             this.tableDate[this.currentIndex][key] =
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
       for (var key in item) {
465
       for (var key in item) {
481
-        this.dialysisSolution[key] = item[key];
466
+        this.dialysisSolution[key] = item[key]
482
       }
467
       }
483
 
468
 
484
       this.timeValue =
469
       this.timeValue =
485
         this.dialysisSolution.dialysis_duration_hour +
470
         this.dialysisSolution.dialysis_duration_hour +
486
-        "小时" +
471
+        '小时' +
487
         this.dialysisSolution.dialysis_duration_minute +
472
         this.dialysisSolution.dialysis_duration_minute +
488
-        "分钟";
473
+        '分钟'
489
 
474
 
490
       this.time =
475
       this.time =
491
         (this.dialysisSolution.dialysis_duration_hour >= 10
476
         (this.dialysisSolution.dialysis_duration_hour >= 10
492
           ? this.dialysisSolution.dialysis_duration_hour
477
           ? this.dialysisSolution.dialysis_duration_hour
493
-          : "0" + this.dialysisSolution.dialysis_duration_hour) +
494
-        ":" +
478
+          : '0' + this.dialysisSolution.dialysis_duration_hour) +
479
+        ':' +
495
         (this.dialysisSolution.dialysis_duration_minute >= 10
480
         (this.dialysisSolution.dialysis_duration_minute >= 10
496
           ? this.dialysisSolution.dialysis_duration_minute
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
       // document.getElementById('dialogTop').scrollTop = 200;
486
       // document.getElementById('dialogTop').scrollTop = 200;
502
-      var dialogTop = document.querySelector("#dialogTop");
487
+      var dialogTop = document.querySelector('#dialogTop')
503
       if (dialogTop != null) {
488
       if (dialogTop != null) {
504
         this.$nextTick(() => {
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
       switch (val) {
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
       this.$nextTick(() => {
544
       this.$nextTick(() => {
560
         if (
545
         if (
561
           this.$refs[this.propForm.click_ref] != undefined &&
546
           this.$refs[this.propForm.click_ref] != undefined &&
562
           this.$refs[this.propForm.click_ref] != null
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
       this.$nextTick(() => {
556
       this.$nextTick(() => {
572
         if (
557
         if (
573
           this.$refs[this.propForm.click_ref] != undefined &&
558
           this.$refs[this.propForm.click_ref] != undefined &&
574
           this.$refs[this.propForm.click_ref] != null
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
       switch (val.type) {
564
       switch (val.type) {
580
         case 1:
565
         case 1:
581
-          this.dialysisSolution.mode_id = val.selectId;
566
+          this.dialysisSolution.mode_id = val.selectId
582
           this.dialysisSolution.mode_name = this.GetModeByModeId(
567
           this.dialysisSolution.mode_name = this.GetModeByModeId(
583
             this.dialysisSolution.mode_id
568
             this.dialysisSolution.mode_id
584
-          );
585
-          break;
569
+          )
570
+          break
586
 
571
 
587
         case 5:
572
         case 5:
588
-          this.dialysisSolution.anticoagulant = val.selectId;
573
+          this.dialysisSolution.anticoagulant = val.selectId
589
 
574
 
590
           if (
575
           if (
591
-            typeof this.anticoagulantsConfit[val.selectId] == "undefined" ||
576
+            typeof this.anticoagulantsConfit[val.selectId] === 'undefined' ||
592
             this.anticoagulantsConfit[val.selectId] == null
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
         case 6:
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
       if (parseInt(timeArray[0].substring(0, 1)) == 0) {
595
       if (parseInt(timeArray[0].substring(0, 1)) == 0) {
611
         this.dialysisSolution.dialysis_duration_hour = timeArray[0].charAt(
596
         this.dialysisSolution.dialysis_duration_hour = timeArray[0].charAt(
612
           timeArray[0].length - 1
597
           timeArray[0].length - 1
613
-        );
598
+        )
614
       } else {
599
       } else {
615
-        this.dialysisSolution.dialysis_duration_hour = timeArray[0];
600
+        this.dialysisSolution.dialysis_duration_hour = timeArray[0]
616
       }
601
       }
617
 
602
 
618
       if (parseInt(timeArray[1].substring(0, 1)) == 0) {
603
       if (parseInt(timeArray[1].substring(0, 1)) == 0) {
619
         this.dialysisSolution.dialysis_duration_minute = timeArray[1].charAt(
604
         this.dialysisSolution.dialysis_duration_minute = timeArray[1].charAt(
620
           timeArray[1].length - 1
605
           timeArray[1].length - 1
621
-        );
606
+        )
622
       } else {
607
       } else {
623
-        this.dialysisSolution.dialysis_duration_minute = timeArray[1];
608
+        this.dialysisSolution.dialysis_duration_minute = timeArray[1]
624
       }
609
       }
625
       this.timeValue =
610
       this.timeValue =
626
         this.dialysisSolution.dialysis_duration_hour +
611
         this.dialysisSolution.dialysis_duration_hour +
627
-        "小时" +
612
+        '小时' +
628
         this.dialysisSolution.dialysis_duration_minute +
613
         this.dialysisSolution.dialysis_duration_minute +
629
-        "分钟";
614
+        '分钟'
630
       this.dialysisSolution.dialysis_duration =
615
       this.dialysisSolution.dialysis_duration =
631
         this.dialysisSolution.dialysis_duration_hour +
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
       for (let keys in treatment_mode) {
623
       for (let keys in treatment_mode) {
639
         if (treatment_mode[keys].id == val) {
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
       if (input.setSelectionRange) {
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
       } else if (input.createTextRange) {
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
       for (let index = 0; index < dfl; index++) {
663
       for (let index = 0; index < dfl; index++) {
679
         if (this.dialysateFormulationOptions[index].id == val) {
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
       for (let keys in anticoagulant) {
674
       for (let keys in anticoagulant) {
690
         if (anticoagulant[keys].id == val) {
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
       if (id in this.adminUserOptions) {
682
       if (id in this.adminUserOptions) {
698
-        return this.adminUserOptions[id].name;
683
+        return this.adminUserOptions[id].name
699
       } else {
684
       } else {
700
-        return "未知";
685
+        return '未知'
701
       }
686
       }
702
     },
687
     },
703
-    fetchAllAdminUsers() {
688
+    fetchAllAdminUsers () {
704
       fetchAllAdminUsers().then(response => {
689
       fetchAllAdminUsers().then(response => {
705
         if (response.data.state == 1) {
690
         if (response.data.state == 1) {
706
-          var ul = response.data.data.users.length;
691
+          var ul = response.data.data.users.length
707
           for (let index = 0; index < ul; index++) {
692
           for (let index = 0; index < ul; index++) {
708
             this.adminUserOptions[response.data.data.users[index].id] =
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
       GetPatientDialysisSolutionList(this.queryParams).then(response => {
702
       GetPatientDialysisSolutionList(this.queryParams).then(response => {
718
         if (response.data.state == 1) {
703
         if (response.data.state == 1) {
719
-          var sl = response.data.data.solutions.length;
704
+          var sl = response.data.data.solutions.length
720
           if (sl == 0) {
705
           if (sl == 0) {
721
-            this.finished = true;
706
+            this.finished = true
722
           } else {
707
           } else {
723
             for (let index = 0; index < sl; index++) {
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
               solution.edate = parseTime(
711
               solution.edate = parseTime(
727
                 solution.updated_time,
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
     this.dialysateFormulationOptions = getDataConfig(
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
     if (isNaN(y) || isNaN(m) || isNaN(d)) {
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
     this.record_date =
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
   components: {
753
   components: {
769
     CheckBoxSubMenu
754
     CheckBoxSubMenu
770
   }
755
   }
771
-};
756
+}
772
 </script>
757
 </script>
773
 
758
 
774
 <style style="stylesheet/scss" lang="scss"  scoped>
759
 <style style="stylesheet/scss" lang="scss"  scoped>
850
   }
835
   }
851
 }
836
 }
852
 </style>
837
 </style>
853
-

+ 215 - 195
src/pages/main/dialysis/RecordTable.vue Ver arquivo

89
         </div>
89
         </div>
90
 
90
 
91
       </div>-->
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
       </el-table>
163
       </el-table>
108
     </van-list>
164
     </van-list>
109
 
165
 
126
 </template>
182
 </template>
127
 
183
 
128
 <script>
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
 export default {
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
     if (month < 10) {
197
     if (month < 10) {
142
-      month = "0" + month;
198
+      month = '0' + month
143
     }
199
     }
144
     if (day < 10) {
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
       id: 0,
210
       id: 0,
155
-      name: "全部"
156
-    };
211
+      name: '全部'
212
+    }
157
 
213
 
158
     // console.log(this.modeOptions);
214
     // console.log(this.modeOptions);
159
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
215
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
160
     this.queryParams.start_time = this.parseTime(
216
     this.queryParams.start_time = this.parseTime(
161
       this.startTime.getTime() / 1000,
217
       this.startTime.getTime() / 1000,
162
-      "{y}-{m}-{d}"
163
-    );
218
+      '{y}-{m}-{d}'
219
+    )
164
     this.queryParams.end_time = this.parseTime(
220
     this.queryParams.end_time = this.parseTime(
165
       new Date().getTime() / 1000,
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
     // console.log(this.queryParams);
228
     // console.log(this.queryParams);
173
 
229
 
174
     getRecordList(this.queryParams).then(response => {
230
     getRecordList(this.queryParams).then(response => {
175
       if (response.data.state == 0) {
231
       if (response.data.state == 0) {
176
-        return false;
232
+        return false
177
       } else {
233
       } else {
178
         if (response.data.data.records.length == 0) {
234
         if (response.data.data.records.length == 0) {
179
         } else {
235
         } else {
180
           for (let i = 0; i < response.data.data.records.length; i++) {
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
     return {
246
     return {
191
-      mode_id: "",
247
+      mode_id: '',
192
       loading: false,
248
       loading: false,
193
       finished: false,
249
       finished: false,
194
       startTime: new Date(),
250
       startTime: new Date(),
201
       adminUserOptions: null,
257
       adminUserOptions: null,
202
 
258
 
203
       queryParams: {
259
       queryParams: {
204
-        mode_id: "",
205
-        start_time: "",
206
-        end_time: "",
260
+        mode_id: '',
261
+        start_time: '',
262
+        end_time: '',
207
         page: 0,
263
         page: 0,
208
         patient_id: 0,
264
         patient_id: 0,
209
         limit: 15
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
   methods: {
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
         ? this.modeOptions[mode_id].name
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
         ? this.modeOptions[mode_id].name
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
       this.queryParams.start_time = this.parseTime(
295
       this.queryParams.start_time = this.parseTime(
275
         this.startTime / 1000,
296
         this.startTime / 1000,
276
-        "{y}-{m}-{d}"
277
-      );
297
+        '{y}-{m}-{d}'
298
+      )
278
       this.queryParams.end_time = this.parseTime(
299
       this.queryParams.end_time = this.parseTime(
279
         this.endTime / 1000,
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
       this.queryParams.start_time = this.parseTime(
309
       this.queryParams.start_time = this.parseTime(
289
         this.startTime / 1000,
310
         this.startTime / 1000,
290
-        "{y}-{m}-{d}"
291
-      );
311
+        '{y}-{m}-{d}'
312
+      )
292
       this.queryParams.end_time = this.parseTime(
313
       this.queryParams.end_time = this.parseTime(
293
         this.endTime / 1000,
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
       getRecordList(val).then(response => {
323
       getRecordList(val).then(response => {
303
         if (response.data.state == 0) {
324
         if (response.data.state == 0) {
304
-          return false;
325
+          return false
305
         } else {
326
         } else {
306
           if (response.data.data.records.length == 0) {
327
           if (response.data.data.records.length == 0) {
307
           } else {
328
           } else {
308
             for (let i = 0; i < response.data.data.records.length; i++) {
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
       this.queryParams.start_time = this.parseTime(
337
       this.queryParams.start_time = this.parseTime(
317
         this.startTime.getTime() / 1000,
338
         this.startTime.getTime() / 1000,
318
-        "{y}-{m}-{d}"
319
-      );
339
+        '{y}-{m}-{d}'
340
+      )
320
       this.queryParams.end_time = this.parseTime(
341
       this.queryParams.end_time = this.parseTime(
321
         this.endTime.getTime() / 1000,
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
       getRecordList(this.queryParams).then(response => {
349
       getRecordList(this.queryParams).then(response => {
329
         if (response.data.state == 0) {
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
         } else {
354
         } else {
334
           if (response.data.data.records.length == 0) {
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
           } else {
358
           } else {
338
             for (let i = 0; i < response.data.data.records.length; i++) {
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
       switch (scheduleType) {
369
       switch (scheduleType) {
349
         case 1:
370
         case 1:
350
-          typeName = "上午";
351
-          break;
371
+          typeName = '上午'
372
+          break
352
         case 2:
373
         case 2:
353
-          typeName = "下午";
354
-          break;
374
+          typeName = '下午'
375
+          break
355
         case 3:
376
         case 3:
356
-          typeName = "晚上";
357
-          break;
377
+          typeName = '晚上'
378
+          break
358
         default:
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
       if (
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
       } else {
390
       } else {
370
         if (this.anticoagulantsConfit[prescription.anticoagulant].shouji != 1) {
391
         if (this.anticoagulantsConfit[prescription.anticoagulant].shouji != 1) {
371
-          return this.anticoagulantsConfit[prescription.anticoagulant].name;
392
+          return this.anticoagulantsConfit[prescription.anticoagulant].name
372
         } else {
393
         } else {
373
           return (
394
           return (
374
             this.anticoagulantsConfit[prescription.anticoagulant].name +
395
             this.anticoagulantsConfit[prescription.anticoagulant].name +
375
-            "/" +
396
+            '/' +
376
             prescription.anticoagulant_shouji +
397
             prescription.anticoagulant_shouji +
377
-            "/" +
398
+            '/' +
378
             prescription.anticoagulant_weichi +
399
             prescription.anticoagulant_weichi +
379
-            "/" +
400
+            '/' +
380
             prescription.anticoagulant_zongliang
401
             prescription.anticoagulant_zongliang
381
-          );
402
+          )
382
         }
403
         }
383
       }
404
       }
384
     },
405
     },
385
-    getName: function(id) {
406
+    getName: function (id) {
386
       if (id <= 0) {
407
       if (id <= 0) {
387
-        return "";
408
+        return ''
388
       }
409
       }
389
-      var name = "";
410
+      var name = ''
390
       if (
411
       if (
391
         this.adminUserOptions == null ||
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
       if (leng == 0) {
418
       if (leng == 0) {
398
-        return name;
419
+        return name
399
       }
420
       }
400
       for (let index = 0; index < leng; index++) {
421
       for (let index = 0; index < leng; index++) {
401
         if (this.adminUserOptions[index].id == id) {
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
       fetchAllAdminUsers().then(response => {
430
       fetchAllAdminUsers().then(response => {
410
         if (response.data.state == 1) {
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
           for (let index = 0; index < alen; index++) {
434
           for (let index = 0; index < alen; index++) {
414
             if (this.adminUserOptions[index].user_type == 2) {
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
       fetchAllDoctorAndNurse().then(response => {
443
       fetchAllDoctorAndNurse().then(response => {
423
         if (response.data.state == 1) {
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
       } else {
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
       this.queryParams.start_time = this.parseTime(
456
       this.queryParams.start_time = this.parseTime(
436
         this.startTime / 1000,
457
         this.startTime / 1000,
437
-        "{y}-{m}-{d}"
438
-      );
458
+        '{y}-{m}-{d}'
459
+      )
439
       this.queryParams.end_time = this.parseTime(
460
       this.queryParams.end_time = this.parseTime(
440
         this.endTime / 1000,
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
       this.$router.push({
471
       this.$router.push({
451
-        path: "/details",
472
+        path: '/details',
452
         query: {
473
         query: {
453
           patient_id: val.patient_id,
474
           patient_id: val.patient_id,
454
           date: val.dialysis_date
475
           date: val.dialysis_date
455
         }
476
         }
456
-      });
477
+      })
457
     }
478
     }
458
   },
479
   },
459
   components: {
480
   components: {
460
     Popover
481
     Popover
461
   }
482
   }
462
-};
483
+}
463
 </script>
484
 </script>
464
 
485
 
465
 <style style="stylesheet/scss" lang="scss" scoped>
486
 <style style="stylesheet/scss" lang="scss" scoped>
513
   padding: 6px 0;
534
   padding: 6px 0;
514
 }
535
 }
515
 </style>
536
 </style>
516
-