Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 years ago
parent
commit
8a3ed53f8f

+ 2 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

1022
               return false
1022
               return false
1023
             } else {
1023
             } else {
1024
               // this.getPatientList()
1024
               // this.getPatientList()
1025
-              this.changeRadio(1)
1025
+              this.changeRadioAndPatient(1)
1026
               this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1026
               this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1027
               this.$refs.register.hide()
1027
               this.$refs.register.hide()
1028
               this.loadingone = false
1028
               this.loadingone = false
1054
                   })
1054
                   })
1055
 
1055
 
1056
                 } else {
1056
                 } else {
1057
-                  that.changeRadio(1)
1057
+                  that.changeRadioAndPatient(1)
1058
                   that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1058
                   that.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1059
                   that.$refs.register.hide()
1059
                   that.$refs.register.hide()
1060
                   that.loadingone = false
1060
                   that.loadingone = false

+ 272 - 177
src/xt_pages/workforce/components/tableWeeks.vue View File

88
                 </ul>
88
                 </ul>
89
             </div>
89
             </div>
90
         </div>
90
         </div>
91
-        <el-table
92
-                :row-style="{ color: '#303133' }"
93
-                :data="summarySchData"
94
-                border
95
-                :header-cell-style="{
96
-        backgroundColor: 'rgb(245, 247, 250)',
97
-        color: '#606266'
98
-      }"
99
-                style="width: 100%"
100
-        >
101
-
102
-            <el-table-column label="分区" min-width="70" align="center">
103
-                <template slot-scope="scope">
104
-                    {{ scope.row.zone.name }}
105
-                </template>
106
-            </el-table-column>
107
-
108
-            <el-table-column label="透析模式" min-width="100" align="center">
109
-                <template slot-scope="scope">
110
-                    {{getModeDesc(scope.row.list)}}
111
-                </template>
112
-            </el-table-column>
113
-
114
-            <el-table-column label="透析液" min-width="100" align="center">
115
-                <template slot-scope="scope">
116
-                    {{getDialysisLiquidDesc(scope.row.list)}}
117
-                </template>
118
-            </el-table-column>
119
-
120
-            <el-table-column label="透析管路" min-width="100" align="center">
121
-                <template slot-scope="scope">
122
-                    {{getDialysisPipeDesc(scope.row.list)}}
123
-                </template>
124
-            </el-table-column>
125
-
126
-            <el-table-column label="穿刺针" min-width="100" align="center">
127
-                <template slot-scope="scope">
128
-                    {{getPunctureNeedleDesc(scope.row.list)}}
129
-                </template>
130
-            </el-table-column>
131
-
132
-
133
-            <el-table-column label="抗凝剂" min-width="100" align="center">
134
-                <template slot-scope="scope">
135
-                    {{getAnticoagulantDesc(scope.row.list)}}
136
-                </template>
137
-            </el-table-column>
138
-
139
-
140
-            <el-table-column label="促红素" min-width="100" align="center">
141
-                <template slot-scope="scope">
142
-                    {{getEPODesc(scope.row.list)}}
143
-                </template>
144
-            </el-table-column>
145
-
146
-
147
-        </el-table>
91
+        <!--<el-table-->
92
+                <!--:row-style="{ color: '#303133' }"-->
93
+                <!--:data="summarySchData"-->
94
+                <!--border-->
95
+                <!--:header-cell-style="{-->
96
+        <!--backgroundColor: 'rgb(245, 247, 250)',-->
97
+        <!--color: '#606266'-->
98
+      <!--}"-->
99
+                <!--style="width: 100%"-->
100
+        <!--&gt;-->
101
+
102
+            <!--<el-table-column label="分区" min-width="70" align="center">-->
103
+                <!--<template slot-scope="scope">-->
104
+                    <!--{{ scope.row.zone.name }}-->
105
+                <!--</template>-->
106
+            <!--</el-table-column>-->
107
+
108
+            <!--<el-table-column label="透析模式" min-width="100" align="center">-->
109
+                <!--<template slot-scope="scope">-->
110
+                    <!--{{getModeDesc(scope.row.list)}}-->
111
+                <!--</template>-->
112
+            <!--</el-table-column>-->
113
+            <!--<el-table-column label="透析液" min-width="100" align="center">-->
114
+                <!--<template slot-scope="scope">-->
115
+                    <!--{{getDialysisLiquidDesc(scope.row.list)}}-->
116
+                <!--</template>-->
117
+            <!--</el-table-column>-->
118
+
119
+            <!--<el-table-column label="透析管路" min-width="100" align="center">-->
120
+                <!--<template slot-scope="scope">-->
121
+                    <!--{{getDialysisPipeDesc(scope.row.list)}}-->
122
+                <!--</template>-->
123
+            <!--</el-table-column>-->
124
+
125
+            <!--<el-table-column label="穿刺针" min-width="100" align="center">-->
126
+                <!--<template slot-scope="scope">-->
127
+                    <!--{{getPunctureNeedleDesc(scope.row.list)}}-->
128
+                <!--</template>-->
129
+            <!--</el-table-column>-->
130
+
131
+
132
+            <!--<el-table-column label="抗凝剂" min-width="100" align="center">-->
133
+                <!--<template slot-scope="scope">-->
134
+                    <!--{{getAnticoagulantDesc(scope.row.list)}}-->
135
+                <!--</template>-->
136
+            <!--</el-table-column>-->
137
+
138
+
139
+            <!--<el-table-column label="促红素" min-width="100" align="center">-->
140
+                <!--<template slot-scope="scope">-->
141
+                    <!--{{getEPODesc(scope.row.list)}}-->
142
+                <!--</template>-->
143
+            <!--</el-table-column>-->
144
+
145
+
146
+        <!--</el-table>-->
148
 
147
 
149
         <el-table
148
         <el-table
150
                 :row-style="{ color: '#303133' }"
149
                 :row-style="{ color: '#303133' }"
208
              <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
207
              <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
209
                 <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
208
                 <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
210
           </span>
209
           </span>
211
-             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.length>0 ">{{getDialysisDialyszerPerfusion(scope.row.patient_id)}}</span>
210
+             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 ">{{getDialysisDialyszerPerfusion(scope.row.patient_id)}}</span>
212
           </span>
211
           </span>
213
                     <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span>
212
                     <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span>
214
                     {{scope.row.prescription.dialysis_dialyszers}}
213
                     {{scope.row.prescription.dialysis_dialyszers}}
441
     },
440
     },
442
 
441
 
443
     methods: {
442
     methods: {
444
-      getModeName(mode_id){
445
-        return this.$store.getters.treatment_mode[mode_id] != undefined ? this.$store.getters.treatment_mode[mode_id].name: ""
443
+      getModeName(mode_id) {
444
+        return this.$store.getters.treatment_mode[mode_id] != undefined ? this.$store.getters.treatment_mode[mode_id].name : ''
445
+
446
+      }, getDialysisLiquidName(id) {
447
+        // return this.$store.getters.dialysate_formulation[mode_id] != undefined ? this.$store.getters.treatment_mode[mode_id].name: ""
448
+        for (let i = 0; i < this.$store.getters.dialysate_formulation.length; i++) {
449
+          if (id == this.$store.getters.dialysate_formulation[i].id && (this.$store.getters.dialysate_formulation[i].id == 2 || this.$store.getters.dialysate_formulation[i].id == 3)) {
450
+            return this.$store.getters.dialysate_formulation[i].name
451
+          }
452
+        }
453
+
454
+        return ''
446
 
455
 
447
       },
456
       },
448
-      getModeDesc(list){
457
+      getModeDesc(list) {
449
         let modes = []
458
         let modes = []
450
         for (let b = 0; b < list.length; b++) {
459
         for (let b = 0; b < list.length; b++) {
451
           let obj = {
460
           let obj = {
452
             mode_id: list[b].mode_id,
461
             mode_id: list[b].mode_id,
453
-            mode_name:this.getModeName(list[b].mode_id),
454
-            count:0,
462
+            mode_name: this.getModeName(list[b].mode_id),
463
+            count: 0
455
 
464
 
456
           }
465
           }
457
           modes.push(obj)
466
           modes.push(obj)
458
         }
467
         }
459
         modes = this.uniqueMode(modes)
468
         modes = this.uniqueMode(modes)
460
 
469
 
461
-        for(let i = 0; i < list.length; i++){
470
+        for (let i = 0; i < list.length; i++) {
462
           switch (list[i].mode_id) {
471
           switch (list[i].mode_id) {
463
             case 1:
472
             case 1:
464
-              for(let b = 0; b < modes.length; b++){
465
-                if(modes[b].mode_id == list[i].mode_id){
473
+              for (let b = 0; b < modes.length; b++) {
474
+                if (modes[b].mode_id == list[i].mode_id) {
466
                   modes[b].count = modes[b].count + 1
475
                   modes[b].count = modes[b].count + 1
467
                 }
476
                 }
468
               }
477
               }
469
               break
478
               break
470
             case 2:
479
             case 2:
471
-              for(let b = 0; b < modes.length; b++){
472
-                if(modes[b].mode_id == list[i].mode_id){
480
+              for (let b = 0; b < modes.length; b++) {
481
+                if (modes[b].mode_id == list[i].mode_id) {
473
                   modes[b].count = modes[b].count + 1
482
                   modes[b].count = modes[b].count + 1
474
                 }
483
                 }
475
               }
484
               }
476
               break
485
               break
477
             case 3:
486
             case 3:
478
-              for(let b = 0; b < modes.length; b++){
479
-                if(modes[b].mode_id == list[i].mode_id){
487
+              for (let b = 0; b < modes.length; b++) {
488
+                if (modes[b].mode_id == list[i].mode_id) {
480
                   modes[b].count = modes[b].count + 1
489
                   modes[b].count = modes[b].count + 1
481
                 }
490
                 }
482
               }
491
               }
483
               break
492
               break
484
             case 4:
493
             case 4:
485
-              for(let b = 0; b < modes.length; b++){
486
-                if(modes[b].mode_id == list[i].mode_id){
494
+              for (let b = 0; b < modes.length; b++) {
495
+                if (modes[b].mode_id == list[i].mode_id) {
487
                   modes[b].count = modes[b].count + 1
496
                   modes[b].count = modes[b].count + 1
488
                 }
497
                 }
489
               }
498
               }
490
               break
499
               break
491
             case 5:
500
             case 5:
492
-              for(let b = 0; b < modes.length; b++){
493
-                if(modes[b].mode_id == list[i].mode_id){
501
+              for (let b = 0; b < modes.length; b++) {
502
+                if (modes[b].mode_id == list[i].mode_id) {
494
                   modes[b].count = modes[b].count + 1
503
                   modes[b].count = modes[b].count + 1
495
                 }
504
                 }
496
               }
505
               }
497
               break
506
               break
498
             case 6:
507
             case 6:
499
-              for(let b = 0; b < modes.length; b++){
500
-                if(modes[b].mode_id == list[i].mode_id){
508
+              for (let b = 0; b < modes.length; b++) {
509
+                if (modes[b].mode_id == list[i].mode_id) {
501
                   modes[b].count = modes[b].count + 1
510
                   modes[b].count = modes[b].count + 1
502
                 }
511
                 }
503
               }
512
               }
504
               break
513
               break
505
             case 7:
514
             case 7:
506
-              for(let b = 0; b < modes.length; b++){
507
-                if(modes[b].mode_id == list[i].mode_id){
515
+              for (let b = 0; b < modes.length; b++) {
516
+                if (modes[b].mode_id == list[i].mode_id) {
508
                   modes[b].count = modes[b].count + 1
517
                   modes[b].count = modes[b].count + 1
509
                 }
518
                 }
510
               }
519
               }
511
               break
520
               break
512
             case 8:
521
             case 8:
513
-              for(let b = 0; b < modes.length; b++){
514
-                if(modes[b].mode_id == list[i].mode_id){
522
+              for (let b = 0; b < modes.length; b++) {
523
+                if (modes[b].mode_id == list[i].mode_id) {
515
                   modes[b].count = modes[b].count + 1
524
                   modes[b].count = modes[b].count + 1
516
                 }
525
                 }
517
               }
526
               }
518
               break
527
               break
519
             case 9:
528
             case 9:
520
-              for(let b = 0; b < modes.length; b++){
521
-                if(modes[b].mode_id == list[i].mode_id){
529
+              for (let b = 0; b < modes.length; b++) {
530
+                if (modes[b].mode_id == list[i].mode_id) {
522
                   modes[b].count = modes[b].count + 1
531
                   modes[b].count = modes[b].count + 1
523
                 }
532
                 }
524
               }
533
               }
525
               break
534
               break
526
             case 10:
535
             case 10:
527
-              for(let b = 0; b < modes.length; b++){
528
-                if(modes[b].mode_id == list[i].mode_id){
536
+              for (let b = 0; b < modes.length; b++) {
537
+                if (modes[b].mode_id == list[i].mode_id) {
529
                   modes[b].count = modes[b].count + 1
538
                   modes[b].count = modes[b].count + 1
530
                 }
539
                 }
531
               }
540
               }
532
               break
541
               break
533
             case 11:
542
             case 11:
534
-              for(let b = 0; b < modes.length; b++){
535
-                if(modes[b].mode_id == list[i].mode_id){
543
+              for (let b = 0; b < modes.length; b++) {
544
+                if (modes[b].mode_id == list[i].mode_id) {
536
                   modes[b].count = modes[b].count + 1
545
                   modes[b].count = modes[b].count + 1
537
                 }
546
                 }
538
               }
547
               }
539
               break
548
               break
540
             case 12:
549
             case 12:
541
-              for(let b = 0; b < modes.length; b++){
542
-                if(modes[b].mode_id == list[i].mode_id){
550
+              for (let b = 0; b < modes.length; b++) {
551
+                if (modes[b].mode_id == list[i].mode_id) {
543
                   modes[b].count = modes[b].count + 1
552
                   modes[b].count = modes[b].count + 1
544
                 }
553
                 }
545
               }
554
               }
546
               break
555
               break
547
             case 13:
556
             case 13:
548
-              for(let b = 0; b < modes.length; b++){
549
-                if(modes[b].mode_id == list[i].mode_id){
557
+              for (let b = 0; b < modes.length; b++) {
558
+                if (modes[b].mode_id == list[i].mode_id) {
550
                   modes[b].count = modes[b].count + 1
559
                   modes[b].count = modes[b].count + 1
551
                 }
560
                 }
552
               }
561
               }
553
               break
562
               break
554
             case 14:
563
             case 14:
555
-              for(let b = 0; b < modes.length; b++){
556
-                if(modes[b].mode_id == list[i].mode_id){
564
+              for (let b = 0; b < modes.length; b++) {
565
+                if (modes[b].mode_id == list[i].mode_id) {
557
                   modes[b].count = modes[b].count + 1
566
                   modes[b].count = modes[b].count + 1
558
                 }
567
                 }
559
               }
568
               }
560
               break
569
               break
561
             case 19:
570
             case 19:
562
-              for(let b = 0; b < modes.length; b++){
563
-                if(modes[b].mode_id == list[i].mode_id){
571
+              for (let b = 0; b < modes.length; b++) {
572
+                if (modes[b].mode_id == list[i].mode_id) {
564
                   modes[b].count = modes[b].count + 1
573
                   modes[b].count = modes[b].count + 1
565
                 }
574
                 }
566
               }
575
               }
567
               break
576
               break
568
             case 20:
577
             case 20:
569
-              for(let b = 0; b < modes.length; b++){
570
-                if(modes[b].mode_id == list[i].mode_id){
578
+              for (let b = 0; b < modes.length; b++) {
579
+                if (modes[b].mode_id == list[i].mode_id) {
571
                   modes[b].count = modes[b].count + 1
580
                   modes[b].count = modes[b].count + 1
572
                 }
581
                 }
573
               }
582
               }
574
               break
583
               break
575
             case 21:
584
             case 21:
576
-              for(let b = 0; b < modes.length; b++){
577
-                if(modes[b].mode_id == list[i].mode_id){
585
+              for (let b = 0; b < modes.length; b++) {
586
+                if (modes[b].mode_id == list[i].mode_id) {
578
                   modes[b].count = modes[b].count + 1
587
                   modes[b].count = modes[b].count + 1
579
                 }
588
                 }
580
               }
589
               }
581
               break
590
               break
582
             case 22:
591
             case 22:
583
-              for(let b = 0; b < modes.length; b++){
584
-                if(modes[b].mode_id == list[i].mode_id){
592
+              for (let b = 0; b < modes.length; b++) {
593
+                if (modes[b].mode_id == list[i].mode_id) {
585
                   modes[b].count = modes[b].count + 1
594
                   modes[b].count = modes[b].count + 1
586
                 }
595
                 }
587
               }
596
               }
588
               break
597
               break
589
             case 23:
598
             case 23:
590
-              for(let b = 0; b < modes.length; b++){
591
-                if(modes[b].mode_id == list[i].mode_id){
599
+              for (let b = 0; b < modes.length; b++) {
600
+                if (modes[b].mode_id == list[i].mode_id) {
592
                   modes[b].count = modes[b].count + 1
601
                   modes[b].count = modes[b].count + 1
593
                 }
602
                 }
594
               }
603
               }
596
           }
605
           }
597
         }
606
         }
598
 
607
 
599
-        let desc = ""
600
-        for(let i = 0; i < modes.length;i++){
601
-          if(desc.length == 0){
602
-            desc = modes[i].mode_name +": " + modes[i].count + "次"
608
+        let desc = ''
609
+        for (let i = 0; i < modes.length; i++) {
610
+          if (desc.length == 0) {
611
+            desc = modes[i].mode_name + ': ' + modes[i].count + '次'
603
 
612
 
604
-          }else{
613
+          } else {
605
 
614
 
606
-            desc = desc + "\n" + modes[i].mode_name +": " + modes[i].count + "次"
615
+            desc = desc + ' \n\r ' + modes[i].mode_name + ': ' + modes[i].count + '次'
607
 
616
 
608
           }
617
           }
609
 
618
 
610
         }
619
         }
611
-        return  desc
620
+        return desc
621
+
622
+      },
623
+      getDialysisLiquidDesc(list) {
624
+        let modes = []
625
+        for (let b = 0; b < list.length; b++) {
626
+          if (list[b].dialysissolution.dialysate_formulation == 2 || list[b].dialysissolution.dialysate_formulation == 3) {
627
+            let obj = {
628
+              id: list[b].dialysissolution.dialysate_formulation,
629
+              name: this.getDialysisLiquidName(list[b].dialysissolution.dialysate_formulation),
630
+              count: 0
631
+
632
+            }
633
+            modes.push(obj)
634
+          }
635
+        }
636
+        modes = this.uniqueDialysisFormulation(modes)
637
+        for (let i = 0; i < list.length; i++) {
638
+          switch (list[i].dialysissolution.dialysate_formulation) {
639
+            case 2:
640
+              for (let b = 0; b < modes.length; b++) {
641
+                if (modes[b].id == list[i].dialysissolution.dialysate_formulation) {
642
+                  modes[b].count = modes[b].count + 1
643
+                }
644
+              }
645
+              break
646
+            case 3:
647
+              for (let b = 0; b < modes.length; b++) {
648
+                if (modes[b].id == list[i].dialysissolution.dialysate_formulation) {
649
+                  modes[b].count = modes[b].count + 1
650
+                }
651
+              }
652
+              break
653
+          }
654
+        }
612
 
655
 
613
-      }, getDialysisLiquidDesc(list){
656
+        let desc = ''
657
+        for (let i = 0; i < modes.length; i++) {
658
+          if (desc.length == 0) {
659
+            desc = modes[i].name + ': ' + modes[i].count + '次'
614
 
660
 
661
+          } else {
662
+
663
+            desc = desc + ' \n\r ' + modes[i].name + ': ' + modes[i].count + '次'
615
 
664
 
665
+          }
616
 
666
 
667
+        }
668
+        return desc
617
 
669
 
618
-      }, getDialysisPipeDesc(list){
619
-        let  dialysisPipe = []
670
+      },
671
+      getDialysisPipeDesc(list) {
672
+
673
+        let dialysisPipe = []
620
         for (let b = 0; b < list.length; b++) {
674
         for (let b = 0; b < list.length; b++) {
621
-         let  hemodialysis_pipelines_arr  = list[b].dialysissolution.hemodialysis_pipelines.split(",")
622
-         for(let c = 0; c < hemodialysis_pipelines_arr.length; c++){
623
-           let obj = {
624
-             name: hemodialysis_pipelines_arr[c],
625
-             count:0,
626
-           }
627
-           dialysisPipe.push(obj)
628
-         }
675
+          var hemodialysis_pipelines_arr = []
676
+
677
+          if (list[b].dialysissolution.hemodialysis_pipelines.length > 0) {
678
+            hemodialysis_pipelines_arr = list[b].dialysissolution.hemodialysis_pipelines.split(',')
679
+          } else {
680
+            hemodialysis_pipelines_arr = []
681
+          }
682
+
683
+          for (let c = 0; c < hemodialysis_pipelines_arr.length; c++) {
684
+            let obj = {
685
+              name: hemodialysis_pipelines_arr[c],
686
+              count: 0
687
+            }
688
+            dialysisPipe.push(obj)
689
+          }
629
         }
690
         }
691
+        console.log(dialysisPipe)
630
         dialysisPipe = this.uniqueDialysisPipe(dialysisPipe)
692
         dialysisPipe = this.uniqueDialysisPipe(dialysisPipe)
693
+        console.log(dialysisPipe)
631
 
694
 
632
-        let desc = ""
633
-        for(let b= 0; b < dialysisPipe.length; b++){
634
-          for(let i = 0; i < list.length; i++){
635
-            let  hemodialysis_pipelines_arr  = list[i].dialysissolution.hemodialysis_pipelines.split(",")
636
-            for(let c = 0; c < hemodialysis_pipelines_arr.length; c++){
637
-              if(dialysisPipe[b].name == hemodialysis_pipelines_arr[c] ){
638
-                if(desc.length == 0){
639
-                  desc = dialysisPipe[b].name +": " + list[i].dialysissolution.hemodialysis_pipelines_count + "次"
640
-                }else{
641
-                  desc = desc + "\n" + dialysisPipe[b].name +": " + list[i].dialysissolution.hemodialysis_pipelines_count + "次"
642
-                }
695
+        let desc = ''
696
+        for (let b = 0; b < dialysisPipe.length; b++) {
697
+          for (let i = 0; i < list.length; i++) {
643
 
698
 
699
+            let hemodialysis_pipelines_arr = list[i].dialysissolution.hemodialysis_pipelines.split(',')
700
+            console.log(hemodialysis_pipelines_arr)
701
+            for (let c = 0; c < hemodialysis_pipelines_arr.length; c++) {
702
+              if (dialysisPipe[b].name == hemodialysis_pipelines_arr[c]) {
703
+                dialysisPipe[b].count = dialysisPipe[b].count + list[i].dialysissolution.hemodialysis_pipelines_count
644
               }
704
               }
645
             }
705
             }
646
           }
706
           }
647
         }
707
         }
648
-        return  desc
649
-      }, getPunctureNeedleDesc(list){
650
 
708
 
651
-        let  punctureNeedle = []
709
+        for (let b = 0; b < dialysisPipe.length; b++) {
710
+          if (desc.length == 0) {
711
+            desc = dialysisPipe[b].name + ': ' + dialysisPipe[b].count + '次'
712
+          } else {
713
+            desc = desc + ' \n\r ' + dialysisPipe[b].name + ': ' + dialysisPipe[b].count + '次'
714
+          }
715
+        }
716
+
717
+        return desc
718
+      },
719
+      getPunctureNeedleDesc(list) {
720
+
721
+        let punctureNeedle = []
652
         for (let b = 0; b < list.length; b++) {
722
         for (let b = 0; b < list.length; b++) {
653
-          let  puncture_needle_arr  = list[b].dialysissolution.puncture_needle.split(",")
654
-          for(let c = 0; c < puncture_needle_arr.length; c++){
723
+          var puncture_needle_arr = []
724
+
725
+          if (list[b].dialysissolution.puncture_needle.length > 0) {
726
+            puncture_needle_arr = list[b].dialysissolution.puncture_needle.split(',')
727
+          } else {
728
+            puncture_needle_arr = []
729
+          }
730
+
731
+          for (let c = 0; c < puncture_needle_arr.length; c++) {
655
             let obj = {
732
             let obj = {
656
               name: puncture_needle_arr[c],
733
               name: puncture_needle_arr[c],
657
-              count:0,
734
+              count: 0
658
             }
735
             }
659
             punctureNeedle.push(obj)
736
             punctureNeedle.push(obj)
660
           }
737
           }
661
         }
738
         }
662
         punctureNeedle = this.uniqueDialysisPipe(punctureNeedle)
739
         punctureNeedle = this.uniqueDialysisPipe(punctureNeedle)
663
 
740
 
664
-        let desc = ""
665
-        for(let b= 0; b < punctureNeedle.length; b++){
666
-          for(let i = 0; i < list.length; i++){
667
-            let  puncture_needle_arr  = list[i].dialysissolution.puncture_needle.split(",")
668
-            for(let c = 0; c < puncture_needle_arr.length; c++){
669
-              if(punctureNeedle[b].name == puncture_needle_arr[c] ){
670
-                if(desc.length == 0){
671
-                  desc = punctureNeedle[b].name +": " + list[i].dialysissolution.puncture_needle_count + "次"
672
-                }else{
673
-                  desc = desc + "\n" + punctureNeedle[b].name +": " + list[i].dialysissolution.puncture_needle_count + "次"
674
-                }
741
+        let desc = ''
742
+        for (let b = 0; b < punctureNeedle.length; b++) {
743
+          for (let i = 0; i < list.length; i++) {
744
+            let puncture_needle_arr = list[i].dialysissolution.puncture_needle.split(',')
745
+            for (let c = 0; c < puncture_needle_arr.length; c++) {
746
+              if (punctureNeedle[b].name == puncture_needle_arr[c]) {
747
+                punctureNeedle[b].count = punctureNeedle[b].count + list[i].dialysissolution.puncture_needle_count
675
 
748
 
676
               }
749
               }
677
             }
750
             }
678
           }
751
           }
679
         }
752
         }
680
-        return  desc
681
-      }, getAnticoagulantDesc(list){
682
 
753
 
754
+        for (let b = 0; b < punctureNeedle.length; b++) {
755
+          if (desc.length == 0) {
756
+            desc = punctureNeedle[b].name + ': ' + punctureNeedle[b].count + '次'
757
+          } else {
758
+            desc = desc + ' \n\r ' + punctureNeedle[b].name + ': ' + punctureNeedle[b].count + '次'
759
+          }
760
+        }
683
 
761
 
762
+        return desc
763
+      },
764
+      getAnticoagulantDesc(list) {
684
 
765
 
685
-      }, getEPODesc(list){
686
-        let  EPO = []
766
+      },
767
+      getEPODesc(list) {
768
+        let EPO = []
687
         for (let b = 0; b < list.length; b++) {
769
         for (let b = 0; b < list.length; b++) {
688
-          let  epo_arr  = list[b].dialysissolution.epo.split(",")
689
-          for(let c = 0; c < epo_arr.length; c++){
770
+          var epo_arr = []
771
+          if (list[b].dialysissolution.epo.length > 0) {
772
+            epo_arr = list[b].dialysissolution.epo.split(',')
773
+          } else {
774
+            epo_arr = []
775
+          }
776
+
777
+          for (let c = 0; c < epo_arr.length; c++) {
690
             let obj = {
778
             let obj = {
691
               name: epo_arr[c],
779
               name: epo_arr[c],
692
-              count:0,
780
+              count: 0
693
             }
781
             }
694
             EPO.push(obj)
782
             EPO.push(obj)
695
           }
783
           }
696
         }
784
         }
697
         EPO = this.uniqueDialysisPipe(EPO)
785
         EPO = this.uniqueDialysisPipe(EPO)
698
 
786
 
699
-        let desc = ""
700
-        for(let b= 0; b < EPO.length; b++){
701
-          for(let i = 0; i < list.length; i++){
702
-            let  epo_arr  = list[i].dialysissolution.epo.split(",")
703
-            for(let c = 0; c < epo_arr.length; c++){
704
-              if(EPO[b].name == epo_arr[c] ){
705
-                if(desc.length == 0){
706
-                  desc = EPO[b].name +": " + list[i].dialysissolution.epo_count + "次"
707
-                }else{
708
-                  desc = desc + "\n" + EPO[b].name +": " + list[i].dialysissolution.epo_count + "次"
709
-                }
787
+        let desc = ''
788
+        for (let b = 0; b < EPO.length; b++) {
789
+          for (let i = 0; i < list.length; i++) {
790
+            let epo_arr = list[i].dialysissolution.epo.split(',')
791
+            for (let c = 0; c < epo_arr.length; c++) {
792
+              if (EPO[b].name == epo_arr[c]) {
793
+                EPO[b].count = EPO[b].count + list[i].dialysissolution.epo_count
710
 
794
 
711
               }
795
               }
712
             }
796
             }
713
           }
797
           }
714
         }
798
         }
715
-        return  desc
799
+        for (let b = 0; b < EPO.length; b++) {
800
+          if (desc.length == 0) {
801
+            desc = EPO[b].name + ': ' + EPO[b].count + '次'
802
+          } else {
803
+            desc = desc + ' \n\r ' + EPO[b].name + ': ' + EPO[b].count + '次'
804
+          }
805
+        }
806
+
807
+        return desc
716
 
808
 
717
       },
809
       },
718
       printAction() {
810
       printAction() {
762
       }, uniqueMode(arr) {
854
       }, uniqueMode(arr) {
763
         const res = new Map()
855
         const res = new Map()
764
         return arr.filter((arr) => !res.has(arr.mode_id) && res.set(arr.mode_id, 1))
856
         return arr.filter((arr) => !res.has(arr.mode_id) && res.set(arr.mode_id, 1))
765
-      },uniqueDialysisPipe(arr) {
857
+      }, uniqueDialysisPipe(arr) {
766
         const res = new Map()
858
         const res = new Map()
767
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
859
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
860
+      }, uniqueDialysisFormulation(arr) {
861
+        const res = new Map()
862
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
768
       },
863
       },
769
 
864
 
770
       getScheduleList() {
865
       getScheduleList() {
1278
         var name = ''
1373
         var name = ''
1279
         for (let i = 0; i < this.scheduleData.length; i++) {
1374
         for (let i = 0; i < this.scheduleData.length; i++) {
1280
           if (patient_id == this.scheduleData[i].patient_id) {
1375
           if (patient_id == this.scheduleData[i].patient_id) {
1281
-            var arrLength = this.scheduleData[i].dialysissolution.length
1282
-            if (arrLength > 0) {
1283
-              name = this.scheduleData[i].dialysissolution[arrLength - 1].dialysis_dialyszers
1284
-            }
1376
+            // var arrLength = this.scheduleData[i].dialysissolution.length
1377
+            // if (arrLength > 0) {
1378
+            name = this.scheduleData[i].dialysissolution.dialysis_dialyszers
1379
+            // }
1285
           }
1380
           }
1286
         }
1381
         }
1287
         return name
1382
         return name
1290
         var name = ''
1385
         var name = ''
1291
         for (let i = 0; i < this.scheduleData.length; i++) {
1386
         for (let i = 0; i < this.scheduleData.length; i++) {
1292
           if (patient_id == this.scheduleData[i].patient_id) {
1387
           if (patient_id == this.scheduleData[i].patient_id) {
1293
-            var arrLength = this.scheduleData[i].dialysissolution.length
1294
-            console.log('病人ID', patient_id, '数组', this.scheduleData[i].dialysissolution)
1295
-            if (arrLength > 0) {
1296
-              name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
1297
-            }
1388
+            // var arrLength = this.scheduleData[i].dialysissolution
1389
+            // console.log('病人ID', patient_id, '数组', this.scheduleData[i].dialysissolution)
1390
+            // if (arrLength > 0) {
1391
+            name = this.scheduleData[i].dialysissolution.dialyzer_perfusion_apparatus
1392
+            // }
1298
           }
1393
           }
1299
         }
1394
         }
1300
         console.log('name', name)
1395
         console.log('name', name)