Browse Source

新分支

28169 2 years ago
parent
commit
bf66c85491
1 changed files with 108 additions and 108 deletions
  1. 108 108
      src/xt_pages/dialysis/newDoctorAdvice.vue

+ 108 - 108
src/xt_pages/dialysis/newDoctorAdvice.vue View File

210
             <span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
210
             <span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
211
           </template>
211
           </template>
212
         </el-table-column>
212
         </el-table-column>
213
-      
213
+
214
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
214
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
215
           <template slot-scope="scope">
215
           <template slot-scope="scope">
216
             <span>
216
             <span>
275
               {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
275
               {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
276
             </span>
276
             </span>
277
             <span v-else>
277
             <span v-else>
278
-          
278
+
279
             </span>
279
             </span>
280
             </span>
280
             </span>
281
           </template>
281
           </template>
533
            </el-select>
533
            </el-select>
534
            <el-button size="small" icon="el-icon-printer"  @click="toPrintOne" type="primary">打印</el-button>
534
            <el-button size="small" icon="el-icon-printer"  @click="toPrintOne" type="primary">打印</el-button>
535
            <el-button size="small"  @click="toExportListOne" type="primary">导出</el-button>
535
            <el-button size="small"  @click="toExportListOne" type="primary">导出</el-button>
536
-        </div> 
536
+        </div>
537
 
537
 
538
       <el-table
538
       <el-table
539
         :data="tableList"
539
         :data="tableList"
559
              {{scope.row.specification_name}}
559
              {{scope.row.specification_name}}
560
            </template>
560
            </template>
561
         </el-table-column>
561
         </el-table-column>
562
-       
562
+
563
         <el-table-column  align="center"   label="数量">
563
         <el-table-column  align="center"   label="数量">
564
            <template slot-scope="scope">
564
            <template slot-scope="scope">
565
              <span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
565
              <span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
566
              <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
566
              <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
567
            </template>
567
            </template>
568
         </el-table-column>
568
         </el-table-column>
569
-        
570
-     
569
+
570
+
571
 
571
 
572
       </el-table>
572
       </el-table>
573
       </span>
573
       </span>
607
            <!-- <el-button size="small"  @click="toExportListOne" type="primary">导出</el-button> -->
607
            <!-- <el-button size="small"  @click="toExportListOne" type="primary">导出</el-button> -->
608
 
608
 
609
            <!-- <el-button @click="toJiao()">脚本</el-button> -->
609
            <!-- <el-button @click="toJiao()">脚本</el-button> -->
610
-        </div> 
610
+        </div>
611
 
611
 
612
       <el-table
612
       <el-table
613
         :data="tableDataList"
613
         :data="tableDataList"
614
-       
614
+
615
         border
615
         border
616
         :row-style="{ color: '#303133' }"
616
         :row-style="{ color: '#303133' }"
617
         :header-cell-style="{
617
         :header-cell-style="{
626
           width="100"
626
           width="100"
627
         >
627
         >
628
           <template slot-scope="scope" >
628
           <template slot-scope="scope" >
629
-            <span v-if="scope.row.is_total == 1">{{scope.$index+1}}</span> 
629
+            <span v-if="scope.row.is_total == 1">{{scope.$index+1}}</span>
630
             <span v-if="scope.row.is_total == 0">总计</span>
630
             <span v-if="scope.row.is_total == 0">总计</span>
631
           </template>
631
           </template>
632
 
632
 
641
             <span v-if="scope.row.is_total ==1">
641
             <span v-if="scope.row.is_total ==1">
642
               <!-- {{getZoneName(scope.row.child)}} -->
642
               <!-- {{getZoneName(scope.row.child)}} -->
643
               {{scope.row.zone_name }}
643
               {{scope.row.zone_name }}
644
-           </span> 
644
+           </span>
645
           </template>
645
           </template>
646
 
646
 
647
         </el-table-column>
647
         </el-table-column>
654
           <template slot-scope="scope">
654
           <template slot-scope="scope">
655
             <span v-if="scope.row.is_total ==1">
655
             <span v-if="scope.row.is_total ==1">
656
               {{getAdminUserName(scope.row.execution_staff)}}
656
               {{getAdminUserName(scope.row.execution_staff)}}
657
-            </span> 
657
+            </span>
658
           </template>
658
           </template>
659
 
659
 
660
         </el-table-column> -->
660
         </el-table-column> -->
672
           </template>
672
           </template>
673
 
673
 
674
         </el-table-column>
674
         </el-table-column>
675
-        
675
+
676
         <el-table-column
676
         <el-table-column
677
           align="center"
677
           align="center"
678
           prop="name"
678
           prop="name"
684
             <span v-if="scope.row.is_total ==1">
684
             <span v-if="scope.row.is_total ==1">
685
               <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
685
               <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
686
               <span v-if="item&&item.advice_name == '肝素钠注射剂'">
686
               <span v-if="item&&item.advice_name == '肝素钠注射剂'">
687
-                 {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}  
687
+                 {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}
688
               </span>
688
               </span>
689
-            </span> 
689
+            </span>
690
             <span v-if="scope.row.is_total == 0">
690
             <span v-if="scope.row.is_total == 0">
691
                  {{getAllSumCount(item.advice_name)}}
691
                  {{getAllSumCount(item.advice_name)}}
692
             </span>
692
             </span>
693
           </template>
693
           </template>
694
 
694
 
695
         </el-table-column>
695
         </el-table-column>
696
-        
697
-     
696
+
697
+
698
 
698
 
699
       </el-table>
699
       </el-table>
700
       </span>
700
       </span>
756
       },
756
       },
757
       selecting_schs: [],
757
       selecting_schs: [],
758
       partitionArr: [],
758
       partitionArr: [],
759
-     
759
+
760
       scheduleMap:[],
760
       scheduleMap:[],
761
       show:true,
761
       show:true,
762
       showOne:false,
762
       showOne:false,
836
       });
836
       });
837
     },
837
     },
838
     clickCurrent(val) {
838
     clickCurrent(val) {
839
-      console.log(val);
839
+      //console.log(val);
840
       this.$router.push({
840
       this.$router.push({
841
         path: "/dialysis/details",
841
         path: "/dialysis/details",
842
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
842
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
910
         var resp = rs.data
910
         var resp = rs.data
911
         if (resp.state == 1) {
911
         if (resp.state == 1) {
912
             this.admin_users = resp.data.adminUser
912
             this.admin_users = resp.data.adminUser
913
-            
914
-         
913
+
914
+
915
             var config = resp.data.config
915
             var config = resp.data.config
916
             this.config = config
916
             this.config = config
917
             let project_config = resp.data.project_config
917
             let project_config = resp.data.project_config
918
-            
918
+
919
             if(project_config.is_open == 1){
919
             if(project_config.is_open == 1){
920
               this.project = resp.data.project
920
               this.project = resp.data.project
921
               console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
921
               console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
922
-             
922
+
923
               let projectArr = []
923
               let projectArr = []
924
               if(this.org_id!= 10318 && this.org_id!=10265){
924
               if(this.org_id!= 10318 && this.org_id!=10265){
925
                 this.project.map(item => {
925
                 this.project.map(item => {
933
                  resp.data.hisAdvices.map((item,index) => {
933
                  resp.data.hisAdvices.map((item,index) => {
934
                   if(projectArr[index].project && projectArr[index].project.length > 0){
934
                   if(projectArr[index].project && projectArr[index].project.length > 0){
935
                      projectArr[index].project.map(it => {
935
                      projectArr[index].project.map(it => {
936
-                     
936
+
937
                       let obj = {
937
                       let obj = {
938
                         advice_doctor: it.doctor,
938
                         advice_doctor: it.doctor,
939
                         start_time:it.start_time,
939
                         start_time:it.start_time,
965
 
965
 
966
 
966
 
967
 
967
 
968
-           
968
+
969
            if(config.is_open == 0 || config.is_open == 2){
969
            if(config.is_open == 0 || config.is_open == 2){
970
             var schedules = resp.data.scheduals
970
             var schedules = resp.data.scheduals
971
 
971
 
972
 
972
 
973
-           
973
+
974
            var newList = []
974
            var newList = []
975
            if(this.is_sort == 0){
975
            if(this.is_sort == 0){
976
               newList = schedules
976
               newList = schedules
980
                   item.is_sort = item.device_number.sort
980
                   item.is_sort = item.device_number.sort
981
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
981
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
982
               })
982
               })
983
-              
983
+
984
                newList = schedules.sort(this.compare('is_sort'))
984
                newList = schedules.sort(this.compare('is_sort'))
985
-              
986
-    
985
+
986
+
987
 
987
 
988
             }
988
             }
989
             if(this.is_sort == 2){
989
             if(this.is_sort == 2){
999
             let arr = []
999
             let arr = []
1000
             let newArr = []
1000
             let newArr = []
1001
             let newSchedules = []
1001
             let newSchedules = []
1002
-          
1002
+
1003
             newList.map(item => {
1003
             newList.map(item => {
1004
              item.doctor_advice.map(it =>{
1004
              item.doctor_advice.map(it =>{
1005
                 it.name = item.patient.name
1005
                 it.name = item.patient.name
1022
             })
1022
             })
1023
 
1023
 
1024
             console.log("schedules9999999998888888888",schedules)
1024
             console.log("schedules9999999998888888888",schedules)
1025
-           
1026
 
1025
 
1027
-          
1028
-           
1026
+
1027
+
1028
+
1029
             if(this.schedulType == 0){
1029
             if(this.schedulType == 0){
1030
                 newSchedules = arr
1030
                 newSchedules = arr
1031
             }else{
1031
             }else{
1036
                 })
1036
                 })
1037
             }
1037
             }
1038
 
1038
 
1039
-           
1039
+
1040
             if(this.partitionType == 0){
1040
             if(this.partitionType == 0){
1041
                 this.scheduleMap = newSchedules
1041
                 this.scheduleMap = newSchedules
1042
             }else {
1042
             }else {
1064
             })
1064
             })
1065
             this.indexInfoList = newArr
1065
             this.indexInfoList = newArr
1066
             console.log("this.scheduleMap", this.scheduleMap)
1066
             console.log("this.scheduleMap", this.scheduleMap)
1067
-        
1068
-           
1067
+
1068
+
1069
            }
1069
            }
1070
 
1070
 
1071
            if(config.is_open == 1){
1071
            if(config.is_open == 1){
1072
              this.show = false
1072
              this.show = false
1073
              this.showOne  = true
1073
              this.showOne  = true
1074
             var schedules =  resp.data.hisAdvices
1074
             var schedules =  resp.data.hisAdvices
1075
-           
1075
+
1076
             let arr = []
1076
             let arr = []
1077
             let newArr = []
1077
             let newArr = []
1078
             let newSchedules = []
1078
             let newSchedules = []
1085
                   item.is_sort = item.device_number.sort
1085
                   item.is_sort = item.device_number.sort
1086
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1086
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1087
               })
1087
               })
1088
-              
1088
+
1089
                newList = schedules.sort(this.compare('is_sort'))
1089
                newList = schedules.sort(this.compare('is_sort'))
1090
-              
1091
-    
1090
+
1091
+
1092
 
1092
 
1093
             }
1093
             }
1094
             if(this.is_sort == 2){
1094
             if(this.is_sort == 2){
1116
                     arr.push(it)
1116
                     arr.push(it)
1117
                 })
1117
                 })
1118
               item.is_sort = item.device_number.sort
1118
               item.is_sort = item.device_number.sort
1119
-              
1119
+
1120
               item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1120
               item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1121
             })
1121
             })
1122
             if(this.schedulType == 0){
1122
             if(this.schedulType == 0){
1141
                 })
1141
                 })
1142
                 this.scheduleMap = a
1142
                 this.scheduleMap = a
1143
             }
1143
             }
1144
- 
1144
+
1145
             this.scheduleMap.map(ele => {
1145
             this.scheduleMap.map(ele => {
1146
                 let firstIndex = this.scheduleMap.findIndex(item => {
1146
                 let firstIndex = this.scheduleMap.findIndex(item => {
1147
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
1147
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
1158
             this.indexInfoList = newArr
1158
             this.indexInfoList = newArr
1159
            }
1159
            }
1160
          }
1160
          }
1161
-         
1161
+
1162
         })
1162
         })
1163
-        
1163
+
1164
     },
1164
     },
1165
     compare:function (k) {
1165
     compare:function (k) {
1166
           return function (a, b) {
1166
           return function (a, b) {
1223
         if(name == '全部'){
1223
         if(name == '全部'){
1224
           name = ""
1224
           name = ""
1225
        }
1225
        }
1226
-      
1226
+
1227
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
1227
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
1228
         this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1228
         this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1229
        }
1229
        }
1233
        }
1233
        }
1234
 
1234
 
1235
 
1235
 
1236
-    
1236
+
1237
 
1237
 
1238
     },
1238
     },
1239
     signPrintAction:function(){
1239
     signPrintAction:function(){
1490
        this.requestSchedualDoctors(this.time)
1490
        this.requestSchedualDoctors(this.time)
1491
      },
1491
      },
1492
      toExcution(){
1492
      toExcution(){
1493
-       
1493
+
1494
        if(this.selecting_schs.length ==0){
1494
        if(this.selecting_schs.length ==0){
1495
          this.$message.error("请勾选需要执行的医嘱")
1495
          this.$message.error("请勾选需要执行的医嘱")
1496
          return false
1496
          return false
1505
      },
1505
      },
1506
 
1506
 
1507
      excutionDoctorAdvice(){
1507
      excutionDoctorAdvice(){
1508
-  
1508
+
1509
        if (this.execTime.length == 0) {
1509
        if (this.execTime.length == 0) {
1510
           this.$message.error('请选择执行时间!')
1510
           this.$message.error('请选择执行时间!')
1511
           return false
1511
           return false
1527
        }
1527
        }
1528
        console.log("params232322323wo",params)
1528
        console.log("params232322323wo",params)
1529
        this.exceLoading = true
1529
        this.exceLoading = true
1530
-    
1530
+
1531
        excutionDoctorAdvice(params).then(response=>{
1531
        excutionDoctorAdvice(params).then(response=>{
1532
           if(response.data.state == 1){
1532
           if(response.data.state == 1){
1533
            if(response.data.data.msg == 2){
1533
            if(response.data.data.msg == 2){
1546
            if(response.data.data.msg == 3){
1546
            if(response.data.data.msg == 3){
1547
              this.$message.error("执行人和核对人不能是同一个人,执行失败!")
1547
              this.$message.error("执行人和核对人不能是同一个人,执行失败!")
1548
            }
1548
            }
1549
-         
1549
+
1550
           }
1550
           }
1551
        })
1551
        })
1552
      },
1552
      },
1557
          return false
1557
          return false
1558
        }
1558
        }
1559
 
1559
 
1560
-    
1560
+
1561
        var ids=[]
1561
        var ids=[]
1562
        if(this.selecting_schs!=null && this.selecting_schs.length >0){
1562
        if(this.selecting_schs!=null && this.selecting_schs.length >0){
1563
           for(let i=0;i<this.selecting_schs.length;i++){
1563
           for(let i=0;i<this.selecting_schs.length;i++){
1580
               this.$message.success("核对成功!")
1580
               this.$message.success("核对成功!")
1581
               this.requestSchedualDoctors(this.time)
1581
               this.requestSchedualDoctors(this.time)
1582
             }
1582
             }
1583
-           
1583
+
1584
           }
1584
           }
1585
        })
1585
        })
1586
      },
1586
      },
1613
        this.requestSchedualDoctors(this.time);
1613
        this.requestSchedualDoctors(this.time);
1614
      },
1614
      },
1615
     handleRowClick (row) {
1615
     handleRowClick (row) {
1616
-    
1616
+
1617
     },
1617
     },
1618
     tableRowClassName({row, rowIndex}) {
1618
     tableRowClassName({row, rowIndex}) {
1619
         row.index = rowIndex
1619
         row.index = rowIndex
1620
         if(row.index = rowIndex){
1620
         if(row.index = rowIndex){
1621
          return 'success-row'
1621
          return 'success-row'
1622
         }
1622
         }
1623
-       
1623
+
1624
       },
1624
       },
1625
     handleCurrentChangeList(row){
1625
     handleCurrentChangeList(row){
1626
-     
1626
+
1627
       this.selecting_schs.push(row)
1627
       this.selecting_schs.push(row)
1628
       this.current_row= row
1628
       this.current_row= row
1629
       this.is_status = 2
1629
       this.is_status = 2
1630
-    
1630
+
1631
     },
1631
     },
1632
     excutionDoctorAdviceOne(){
1632
     excutionDoctorAdviceOne(){
1633
       if(this.current_row.execution_state == 1){
1633
       if(this.current_row.execution_state == 1){
1688
              this.druglist = druglist
1688
              this.druglist = druglist
1689
              this.startdialogVisible = true
1689
              this.startdialogVisible = true
1690
              var list = response.data.data.list
1690
              var list = response.data.data.list
1691
-          
1691
+
1692
              var config = response.data.data.config
1692
              var config = response.data.data.config
1693
-     
1693
+
1694
              console.log("dcotor---------------",this.doctorList)
1694
              console.log("dcotor---------------",this.doctorList)
1695
              if(list!=null && list.length > 0){
1695
              if(list!=null && list.length > 0){
1696
                for(let i=0;i<list.length;i++){
1696
                for(let i=0;i<list.length;i++){
1729
                     }
1729
                     }
1730
                   }
1730
                   }
1731
                 }
1731
                 }
1732
-               
1732
+
1733
                 this.tableList = []
1733
                 this.tableList = []
1734
                 for(let i=0;i<list.length;i++){
1734
                 for(let i=0;i<list.length;i++){
1735
                   for(let j=0;j<arr.length;j++){
1735
                   for(let j=0;j<arr.length;j++){
1738
                     }
1738
                     }
1739
                   }
1739
                   }
1740
                 }
1740
                 }
1741
-               
1741
+
1742
               }
1742
               }
1743
              }
1743
              }
1744
-                       
1744
+
1745
            var his_doctor_advice = []
1745
            var his_doctor_advice = []
1746
 
1746
 
1747
            for(let i=0;i<list.length;i++){
1747
            for(let i=0;i<list.length;i++){
1750
              }
1750
              }
1751
            }
1751
            }
1752
            console.log("his_doctor_advice",his_doctor_advice)
1752
            console.log("his_doctor_advice",his_doctor_advice)
1753
-          
1753
+
1754
             var newHisArr = []
1754
             var newHisArr = []
1755
-            for(let i=0;i<his_doctor_advice.length;i++){    
1755
+            for(let i=0;i<his_doctor_advice.length;i++){
1756
                his_doctor_advice[i].count_one = 0
1756
                his_doctor_advice[i].count_one = 0
1757
                if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
1757
                if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
1758
                   his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
1758
                   his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
1768
               }
1768
               }
1769
             }
1769
             }
1770
             console.log("下盘子3223323223",newHisArr)
1770
             console.log("下盘子3223323223",newHisArr)
1771
-            
1771
+
1772
              if(config.is_open == 1){
1772
              if(config.is_open == 1){
1773
                if(newHisArr!=null && newHisArr.length > 0){
1773
                if(newHisArr!=null && newHisArr.length > 0){
1774
                   let dataInfoOne = {}
1774
                   let dataInfoOne = {}
1808
              }
1808
              }
1809
           }
1809
           }
1810
         })
1810
         })
1811
-        
1811
+
1812
       },
1812
       },
1813
       toStaticOne() {
1813
       toStaticOne() {
1814
          this.tableList = []
1814
          this.tableList = []
1817
             partion_type:this.partion_type,
1817
             partion_type:this.partion_type,
1818
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1818
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1819
           }
1819
           }
1820
-       
1820
+
1821
         getDialysisAdviceToday(params).then(response=>{
1821
         getDialysisAdviceToday(params).then(response=>{
1822
           if(response.data.state == 1){
1822
           if(response.data.state == 1){
1823
              var doctorList = []
1823
              var doctorList = []
1825
              this.druglist = druglist
1825
              this.druglist = druglist
1826
              this.startdialogVisibleOne = true
1826
              this.startdialogVisibleOne = true
1827
              var list = response.data.data.list
1827
              var list = response.data.data.list
1828
-          
1828
+
1829
              var config = response.data.data.config
1829
              var config = response.data.data.config
1830
              this.adminUserList = response.data.data.doctorList
1830
              this.adminUserList = response.data.data.doctorList
1831
-             
1831
+
1832
              if(list!=null && list.length > 0){
1832
              if(list!=null && list.length > 0){
1833
                for(let i=0;i<list.length;i++){
1833
                for(let i=0;i<list.length;i++){
1834
                 for(let j=0;j<list[i].xt_doctor_advice.length;j++){
1834
                 for(let j=0;j<list[i].xt_doctor_advice.length;j++){
1839
                 }
1839
                 }
1840
                }
1840
                }
1841
              }
1841
              }
1842
-          
1842
+
1843
              if(config.is_open!=1){
1843
              if(config.is_open!=1){
1844
-              
1844
+
1845
 
1845
 
1846
               if(doctorList!=null && doctorList.length > 0){
1846
               if(doctorList!=null && doctorList.length > 0){
1847
 
1847
 
1871
                 this.tabHead = arr
1871
                 this.tabHead = arr
1872
                 console.log("tabHead",this.tabHead)
1872
                 console.log("tabHead",this.tabHead)
1873
               }
1873
               }
1874
-              
1874
+
1875
               this.doctorMap = []
1875
               this.doctorMap = []
1876
               if(doctorList!=null && doctorList.length > 0){
1876
               if(doctorList!=null && doctorList.length > 0){
1877
                 let dataInfoOne = {}
1877
                 let dataInfoOne = {}
1878
                   doctorList.forEach((item, index) => {
1878
                   doctorList.forEach((item, index) => {
1879
                     if(item.advice_name == "肝素钠注射剂"){
1879
                     if(item.advice_name == "肝素钠注射剂"){
1880
                       this.doctorMap.push(item)
1880
                       this.doctorMap.push(item)
1881
-                    } 
1881
+                    }
1882
                   let { zone_name } = item
1882
                   let { zone_name } = item
1883
                   if (!dataInfoOne[zone_name])  {
1883
                   if (!dataInfoOne[zone_name])  {
1884
                     dataInfoOne[zone_name] = {
1884
                     dataInfoOne[zone_name] = {
1913
                 console.log("999999999999999999-------",this.tableDataList)
1913
                 console.log("999999999999999999-------",this.tableDataList)
1914
               }
1914
               }
1915
 
1915
 
1916
-              
1917
-             
1916
+
1917
+
1918
              }
1918
              }
1919
-                       
1920
-    
1919
+
1920
+
1921
           }
1921
           }
1922
         })
1922
         })
1923
-        
1923
+
1924
       },
1924
       },
1925
       getDrugAdviceCount(advice_name,zone_name){
1925
       getDrugAdviceCount(advice_name,zone_name){
1926
         var str = ""
1926
         var str = ""
2003
         }
2003
         }
2004
       }
2004
       }
2005
       return max_str + min_str;
2005
       return max_str + min_str;
2006
-        
2006
+
2007
       },
2007
       },
2008
       toPrintOne(){
2008
       toPrintOne(){
2009
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
2009
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
2014
         this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2014
         this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2015
       },
2015
       },
2016
       toExportListOne(){
2016
       toExportListOne(){
2017
-        import('@/vendor/Export2Excel').then(excel => { 
2018
-         
2017
+        import('@/vendor/Export2Excel').then(excel => {
2018
+
2019
           if(this.tableList!=null && this.tableList.length > 0){
2019
           if(this.tableList!=null && this.tableList.length > 0){
2020
             for(let i=0;i<this.tableList.length;i++){
2020
             for(let i=0;i<this.tableList.length;i++){
2021
               this.tableList[i].index = i+1
2021
               this.tableList[i].index = i+1
2025
               if(this.config.is_open!=1){
2025
               if(this.config.is_open!=1){
2026
                 this.tableList[i].total_count = this.getCount(this.tableList[i].child)
2026
                 this.tableList[i].total_count = this.getCount(this.tableList[i].child)
2027
               }
2027
               }
2028
-             
2028
+
2029
             }
2029
             }
2030
           }
2030
           }
2031
           const tHeader = ['序号','药品名称','规格','数量']
2031
           const tHeader = ['序号','药品名称','规格','数量']
2038
             filename: '药品统计'
2038
             filename: '药品统计'
2039
           })
2039
           })
2040
             this.downloadLoading = false
2040
             this.downloadLoading = false
2041
-          })  
2041
+          })
2042
       },
2042
       },
2043
       formatJson(filterVal, jsonData) {
2043
       formatJson(filterVal, jsonData) {
2044
         return jsonData.map(v => filterVal.map(j => v[j]));
2044
         return jsonData.map(v => filterVal.map(j => v[j]));
2074
             }
2074
             }
2075
         })
2075
         })
2076
           let newArr = Object.values(dataInfo)
2076
           let newArr = Object.values(dataInfo)
2077
-        
2077
+
2078
           if(newArr!=null && newArr.length >0){
2078
           if(newArr!=null && newArr.length >0){
2079
             let dataInfo = {}
2079
             let dataInfo = {}
2080
             newArr.forEach((item, index) => {
2080
             newArr.forEach((item, index) => {
2088
               }
2088
               }
2089
            })
2089
            })
2090
            let hisNewArr = Object.values(dataInfo)
2090
            let hisNewArr = Object.values(dataInfo)
2091
-          
2091
+
2092
            if(hisNewArr!=null && hisNewArr.length >0){
2092
            if(hisNewArr!=null && hisNewArr.length >0){
2093
              for(let i=0;i<hisNewArr.length;i++){
2093
              for(let i=0;i<hisNewArr.length;i++){
2094
                for(let j=0;j<newArr.length;j++){
2094
                for(let j=0;j<newArr.length;j++){
2098
                }
2098
                }
2099
              }
2099
              }
2100
            }
2100
            }
2101
-         
2102
-           
2101
+
2102
+
2103
            var str = ""
2103
            var str = ""
2104
            for(let i=0;i<hisNewArr.length;i++){
2104
            for(let i=0;i<hisNewArr.length;i++){
2105
              if(hisNewArr[i].mode_id == 1){
2105
              if(hisNewArr[i].mode_id == 1){
2186
              if(hisNewArr[i].mode_id == 32){
2186
              if(hisNewArr[i].mode_id == 32){
2187
                 hisNewArr[i].mode_id = "HDP"
2187
                 hisNewArr[i].mode_id = "HDP"
2188
              }
2188
              }
2189
-             str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n" 
2189
+             str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
2190
            }
2190
            }
2191
-          
2191
+
2192
            return str
2192
            return str
2193
          }
2193
          }
2194
 
2194
 
2196
         }
2196
         }
2197
       },
2197
       },
2198
       getDrugCount(val,advice_name){
2198
       getDrugCount(val,advice_name){
2199
-        
2199
+
2200
         if(val!=null){
2200
         if(val!=null){
2201
           for(let i=0;i<val.length;i++){
2201
           for(let i=0;i<val.length;i++){
2202
            val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
2202
            val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
2203
           }
2203
           }
2204
         }
2204
         }
2205
-       
2205
+
2206
         if(val!=null && val.length >0){
2206
         if(val!=null && val.length >0){
2207
             let dataInfo = {}
2207
             let dataInfo = {}
2208
             val.forEach((item, index) => {
2208
             val.forEach((item, index) => {
2209
-            
2209
+
2210
             let { advice_name } = item
2210
             let { advice_name } = item
2211
             if (!dataInfo[advice_name])  {
2211
             if (!dataInfo[advice_name])  {
2212
               dataInfo[advice_name] = {
2212
               dataInfo[advice_name] = {
2216
               }
2216
               }
2217
             }
2217
             }
2218
           })
2218
           })
2219
-       
2220
-          let newArr = Object.values(dataInfo) 
2221
-         
2222
-         
2219
+
2220
+          let newArr = Object.values(dataInfo)
2221
+
2222
+
2223
           if(newArr!=null && newArr.length >0){
2223
           if(newArr!=null && newArr.length >0){
2224
             for(let i=0;i<newArr.length;i++){
2224
             for(let i=0;i<newArr.length;i++){
2225
               for(let j=0;j<val.length;j++){
2225
               for(let j=0;j<val.length;j++){
2229
               }
2229
               }
2230
             }
2230
             }
2231
           }
2231
           }
2232
-          
2232
+
2233
           var total = 0
2233
           var total = 0
2234
           var newHisArr =[]
2234
           var newHisArr =[]
2235
           if(newArr!=null && newArr.length >0){
2235
           if(newArr!=null && newArr.length >0){
2241
           }
2241
           }
2242
 
2242
 
2243
           if(newHisArr!=null && newHisArr.length>0){
2243
           if(newHisArr!=null && newHisArr.length>0){
2244
-            
2244
+
2245
             for(let i=0;i<newHisArr.length;i++){
2245
             for(let i=0;i<newHisArr.length;i++){
2246
               for(let j=0;j<newHisArr[i].child.length;j++){
2246
               for(let j=0;j<newHisArr[i].child.length;j++){
2247
                 total += parseInt(newHisArr[i].child[j].prescribing_number)
2247
                 total += parseInt(newHisArr[i].child[j].prescribing_number)
2248
               }
2248
               }
2249
             }
2249
             }
2250
           }
2250
           }
2251
-           
2251
+
2252
           return total
2252
           return total
2253
         }
2253
         }
2254
 
2254
 
2289
           if(index > 2){
2289
           if(index > 2){
2290
             const values = data.map(item => item[column.property]);
2290
             const values = data.map(item => item[column.property]);
2291
             console.log("data0----------------",data)
2291
             console.log("data0----------------",data)
2292
-           
2292
+
2293
           }
2293
           }
2294
-          
2294
+
2295
         });
2295
         });
2296
 
2296
 
2297
         return sums;
2297
         return sums;
2298
       },
2298
       },
2299
 
2299
 
2300
       getAllSumCount(advice_name){
2300
       getAllSumCount(advice_name){
2301
-       
2301
+
2302
         var hisNewArr =[]
2302
         var hisNewArr =[]
2303
         if(this.tabHead.length!=null && this.tabHead.length >0){
2303
         if(this.tabHead.length!=null && this.tabHead.length >0){
2304
           for(let i=0;i<this.tabHead.length;i++){
2304
           for(let i=0;i<this.tabHead.length;i++){
2307
             }
2307
             }
2308
           }
2308
           }
2309
         }
2309
         }
2310
-        
2310
+
2311
         var total = 0
2311
         var total = 0
2312
         if(hisNewArr!=null && hisNewArr.length > 0){
2312
         if(hisNewArr!=null && hisNewArr.length > 0){
2313
           for(let i=0;i<hisNewArr.length;i++){
2313
           for(let i=0;i<hisNewArr.length;i++){
2342
         //       arr.push(schedule[i])
2342
         //       arr.push(schedule[i])
2343
         //     }
2343
         //     }
2344
         //   }
2344
         //   }
2345
-        
2346
 
2345
 
2347
-        //   import('@/vendor/Export2Excel').then(excel => { 
2348
-         
2346
+
2347
+        //   import('@/vendor/Export2Excel').then(excel => {
2348
+
2349
         //  if(arr!=null && arr.length > 0){
2349
         //  if(arr!=null && arr.length > 0){
2350
         //    for(let i=0;i<arr.length;i++){
2350
         //    for(let i=0;i<arr.length;i++){
2351
         //      arr[i].patient_name = arr[i].patient.name
2351
         //      arr[i].patient_name = arr[i].patient.name
2364
         //    data,
2364
         //    data,
2365
         //    filename: '监测数据统计'
2365
         //    filename: '监测数据统计'
2366
         //   })
2366
         //   })
2367
-        //  })  
2368
-        } 
2367
+        //  })
2368
+        }
2369
       })
2369
       })
2370
     }
2370
     }
2371
-    
2371
+
2372
   },
2372
   },
2373
   components: {
2373
   components: {
2374
     BreadCrumb
2374
     BreadCrumb
2446
     }
2446
     }
2447
   }
2447
   }
2448
 
2448
 
2449
-  
2449
+
2450
   .el-table td .cell{
2450
   .el-table td .cell{
2451
     white-space: pre-wrap;
2451
     white-space: pre-wrap;
2452
   }
2452
   }