28169 2 anni fa
parent
commit
6e33b61e4b
1 ha cambiato i file con 107 aggiunte e 107 eliminazioni
  1. 107 107
      src/xt_pages/dialysis/newDoctorAdvice.vue

+ 107 - 107
src/xt_pages/dialysis/newDoctorAdvice.vue Vedi 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
 
638
           width="100"
638
           width="100"
639
         >
639
         >
640
           <template slot-scope="scope" >
640
           <template slot-scope="scope" >
641
-            <span v-if="scope.row.is_total ==1">{{getZoneName(scope.row.child)}}</span> 
641
+            <span v-if="scope.row.is_total ==1">{{getZoneName(scope.row.child)}}</span>
642
           </template>
642
           </template>
643
 
643
 
644
         </el-table-column>
644
         </el-table-column>
651
           <template slot-scope="scope">
651
           <template slot-scope="scope">
652
             <span v-if="scope.row.is_total ==1">
652
             <span v-if="scope.row.is_total ==1">
653
               {{getAdminUserName(scope.row.execution_staff)}}
653
               {{getAdminUserName(scope.row.execution_staff)}}
654
-            </span> 
654
+            </span>
655
           </template>
655
           </template>
656
 
656
 
657
         </el-table-column>
657
         </el-table-column>
669
           </template>
669
           </template>
670
 
670
 
671
         </el-table-column>
671
         </el-table-column>
672
-        
672
+
673
         <el-table-column
673
         <el-table-column
674
           align="center"
674
           align="center"
675
           prop="name"
675
           prop="name"
680
           <template slot-scope="scope">
680
           <template slot-scope="scope">
681
             <span v-if="scope.row.is_total ==1">
681
             <span v-if="scope.row.is_total ==1">
682
               <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
682
               <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
683
-            </span> 
683
+            </span>
684
             <span v-if="scope.row.is_total == 0">
684
             <span v-if="scope.row.is_total == 0">
685
                  {{getAllSumCount(item.advice_name)}}
685
                  {{getAllSumCount(item.advice_name)}}
686
             </span>
686
             </span>
687
           </template>
687
           </template>
688
 
688
 
689
         </el-table-column>
689
         </el-table-column>
690
-        
691
-     
690
+
691
+
692
 
692
 
693
       </el-table>
693
       </el-table>
694
       </span>
694
       </span>
750
       },
750
       },
751
       selecting_schs: [],
751
       selecting_schs: [],
752
       partitionArr: [],
752
       partitionArr: [],
753
-     
753
+
754
       scheduleMap:[],
754
       scheduleMap:[],
755
       show:true,
755
       show:true,
756
       showOne:false,
756
       showOne:false,
829
       });
829
       });
830
     },
830
     },
831
     clickCurrent(val) {
831
     clickCurrent(val) {
832
-      console.log(val);
832
+     // console.log(val);
833
       this.$router.push({
833
       this.$router.push({
834
         path: "/dialysis/details",
834
         path: "/dialysis/details",
835
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
835
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
903
         var resp = rs.data
903
         var resp = rs.data
904
         if (resp.state == 1) {
904
         if (resp.state == 1) {
905
             this.admin_users = resp.data.adminUser
905
             this.admin_users = resp.data.adminUser
906
-            
907
-         
906
+
907
+
908
             var config = resp.data.config
908
             var config = resp.data.config
909
             this.config = config
909
             this.config = config
910
             let project_config = resp.data.project_config
910
             let project_config = resp.data.project_config
911
-            
911
+
912
             if(project_config.is_open == 1){
912
             if(project_config.is_open == 1){
913
               this.project = resp.data.project
913
               this.project = resp.data.project
914
               console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
914
               console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
915
-             
915
+
916
               let projectArr = []
916
               let projectArr = []
917
               if(this.org_id!= 10318 && this.org_id!=10265){
917
               if(this.org_id!= 10318 && this.org_id!=10265){
918
                 this.project.map(item => {
918
                 this.project.map(item => {
926
                  resp.data.hisAdvices.map((item,index) => {
926
                  resp.data.hisAdvices.map((item,index) => {
927
                   if(projectArr[index].project && projectArr[index].project.length > 0){
927
                   if(projectArr[index].project && projectArr[index].project.length > 0){
928
                      projectArr[index].project.map(it => {
928
                      projectArr[index].project.map(it => {
929
-                     
929
+
930
                       let obj = {
930
                       let obj = {
931
                         advice_doctor: it.doctor,
931
                         advice_doctor: it.doctor,
932
                         start_time:it.start_time,
932
                         start_time:it.start_time,
958
 
958
 
959
 
959
 
960
 
960
 
961
-           
961
+
962
            if(config.is_open == 0 || config.is_open == 2){
962
            if(config.is_open == 0 || config.is_open == 2){
963
             var schedules = resp.data.scheduals
963
             var schedules = resp.data.scheduals
964
 
964
 
965
 
965
 
966
-           
966
+
967
            var newList = []
967
            var newList = []
968
            if(this.is_sort == 0){
968
            if(this.is_sort == 0){
969
               newList = schedules
969
               newList = schedules
973
                   item.is_sort = item.device_number.sort
973
                   item.is_sort = item.device_number.sort
974
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
974
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
975
               })
975
               })
976
-              
976
+
977
                newList = schedules.sort(this.compare('is_sort'))
977
                newList = schedules.sort(this.compare('is_sort'))
978
-              
979
-    
978
+
979
+
980
 
980
 
981
             }
981
             }
982
             if(this.is_sort == 2){
982
             if(this.is_sort == 2){
992
             let arr = []
992
             let arr = []
993
             let newArr = []
993
             let newArr = []
994
             let newSchedules = []
994
             let newSchedules = []
995
-          
995
+
996
             newList.map(item => {
996
             newList.map(item => {
997
              item.doctor_advice.map(it =>{
997
              item.doctor_advice.map(it =>{
998
                 it.name = item.patient.name
998
                 it.name = item.patient.name
1015
             })
1015
             })
1016
 
1016
 
1017
             console.log("schedules9999999998888888888",schedules)
1017
             console.log("schedules9999999998888888888",schedules)
1018
-           
1019
 
1018
 
1020
-          
1021
-           
1019
+
1020
+
1021
+
1022
             if(this.schedulType == 0){
1022
             if(this.schedulType == 0){
1023
                 newSchedules = arr
1023
                 newSchedules = arr
1024
             }else{
1024
             }else{
1029
                 })
1029
                 })
1030
             }
1030
             }
1031
 
1031
 
1032
-           
1032
+
1033
             if(this.partitionType == 0){
1033
             if(this.partitionType == 0){
1034
                 this.scheduleMap = newSchedules
1034
                 this.scheduleMap = newSchedules
1035
             }else {
1035
             }else {
1057
             })
1057
             })
1058
             this.indexInfoList = newArr
1058
             this.indexInfoList = newArr
1059
             console.log("this.scheduleMap", this.scheduleMap)
1059
             console.log("this.scheduleMap", this.scheduleMap)
1060
-        
1061
-           
1060
+
1061
+
1062
            }
1062
            }
1063
 
1063
 
1064
            if(config.is_open == 1){
1064
            if(config.is_open == 1){
1065
              this.show = false
1065
              this.show = false
1066
              this.showOne  = true
1066
              this.showOne  = true
1067
             var schedules =  resp.data.hisAdvices
1067
             var schedules =  resp.data.hisAdvices
1068
-           
1068
+
1069
             let arr = []
1069
             let arr = []
1070
             let newArr = []
1070
             let newArr = []
1071
             let newSchedules = []
1071
             let newSchedules = []
1078
                   item.is_sort = item.device_number.sort
1078
                   item.is_sort = item.device_number.sort
1079
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1079
                   item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1080
               })
1080
               })
1081
-              
1081
+
1082
                newList = schedules.sort(this.compare('is_sort'))
1082
                newList = schedules.sort(this.compare('is_sort'))
1083
-              
1084
-    
1083
+
1084
+
1085
 
1085
 
1086
             }
1086
             }
1087
             if(this.is_sort == 2){
1087
             if(this.is_sort == 2){
1109
                     arr.push(it)
1109
                     arr.push(it)
1110
                 })
1110
                 })
1111
               item.is_sort = item.device_number.sort
1111
               item.is_sort = item.device_number.sort
1112
-              
1112
+
1113
               item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1113
               item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
1114
             })
1114
             })
1115
             if(this.schedulType == 0){
1115
             if(this.schedulType == 0){
1134
                 })
1134
                 })
1135
                 this.scheduleMap = a
1135
                 this.scheduleMap = a
1136
             }
1136
             }
1137
- 
1137
+
1138
             this.scheduleMap.map(ele => {
1138
             this.scheduleMap.map(ele => {
1139
                 let firstIndex = this.scheduleMap.findIndex(item => {
1139
                 let firstIndex = this.scheduleMap.findIndex(item => {
1140
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
1140
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
1151
             this.indexInfoList = newArr
1151
             this.indexInfoList = newArr
1152
            }
1152
            }
1153
          }
1153
          }
1154
-         
1154
+
1155
         })
1155
         })
1156
-        
1156
+
1157
     },
1157
     },
1158
     compare:function (k) {
1158
     compare:function (k) {
1159
           return function (a, b) {
1159
           return function (a, b) {
1216
         if(name == '全部'){
1216
         if(name == '全部'){
1217
           name = ""
1217
           name = ""
1218
        }
1218
        }
1219
-      
1219
+
1220
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
1220
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
1221
         this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1221
         this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1222
        }
1222
        }
1226
        }
1226
        }
1227
 
1227
 
1228
 
1228
 
1229
-    
1229
+
1230
 
1230
 
1231
     },
1231
     },
1232
     signPrintAction:function(){
1232
     signPrintAction:function(){
1483
        this.requestSchedualDoctors(this.time)
1483
        this.requestSchedualDoctors(this.time)
1484
      },
1484
      },
1485
      toExcution(){
1485
      toExcution(){
1486
-       
1486
+
1487
        if(this.selecting_schs.length ==0){
1487
        if(this.selecting_schs.length ==0){
1488
          this.$message.error("请勾选需要执行的医嘱")
1488
          this.$message.error("请勾选需要执行的医嘱")
1489
          return false
1489
          return false
1498
      },
1498
      },
1499
 
1499
 
1500
      excutionDoctorAdvice(){
1500
      excutionDoctorAdvice(){
1501
-  
1501
+
1502
        if (this.execTime.length == 0) {
1502
        if (this.execTime.length == 0) {
1503
           this.$message.error('请选择执行时间!')
1503
           this.$message.error('请选择执行时间!')
1504
           return false
1504
           return false
1520
        }
1520
        }
1521
        console.log("params232322323wo",params)
1521
        console.log("params232322323wo",params)
1522
        this.exceLoading = true
1522
        this.exceLoading = true
1523
-    
1523
+
1524
        excutionDoctorAdvice(params).then(response=>{
1524
        excutionDoctorAdvice(params).then(response=>{
1525
           if(response.data.state == 1){
1525
           if(response.data.state == 1){
1526
            if(response.data.data.msg == 2){
1526
            if(response.data.data.msg == 2){
1539
            if(response.data.data.msg == 3){
1539
            if(response.data.data.msg == 3){
1540
              this.$message.error("执行人和核对人不能是同一个人,执行失败!")
1540
              this.$message.error("执行人和核对人不能是同一个人,执行失败!")
1541
            }
1541
            }
1542
-         
1542
+
1543
           }
1543
           }
1544
        })
1544
        })
1545
      },
1545
      },
1550
          return false
1550
          return false
1551
        }
1551
        }
1552
 
1552
 
1553
-    
1553
+
1554
        var ids=[]
1554
        var ids=[]
1555
        if(this.selecting_schs!=null && this.selecting_schs.length >0){
1555
        if(this.selecting_schs!=null && this.selecting_schs.length >0){
1556
           for(let i=0;i<this.selecting_schs.length;i++){
1556
           for(let i=0;i<this.selecting_schs.length;i++){
1573
               this.$message.success("核对成功!")
1573
               this.$message.success("核对成功!")
1574
               this.requestSchedualDoctors(this.time)
1574
               this.requestSchedualDoctors(this.time)
1575
             }
1575
             }
1576
-           
1576
+
1577
           }
1577
           }
1578
        })
1578
        })
1579
      },
1579
      },
1606
        this.requestSchedualDoctors(this.time);
1606
        this.requestSchedualDoctors(this.time);
1607
      },
1607
      },
1608
     handleRowClick (row) {
1608
     handleRowClick (row) {
1609
-    
1609
+
1610
     },
1610
     },
1611
     tableRowClassName({row, rowIndex}) {
1611
     tableRowClassName({row, rowIndex}) {
1612
         row.index = rowIndex
1612
         row.index = rowIndex
1613
         if(row.index = rowIndex){
1613
         if(row.index = rowIndex){
1614
          return 'success-row'
1614
          return 'success-row'
1615
         }
1615
         }
1616
-       
1616
+
1617
       },
1617
       },
1618
     handleCurrentChangeList(row){
1618
     handleCurrentChangeList(row){
1619
-     
1619
+
1620
       this.selecting_schs.push(row)
1620
       this.selecting_schs.push(row)
1621
       this.current_row= row
1621
       this.current_row= row
1622
       this.is_status = 2
1622
       this.is_status = 2
1623
-    
1623
+
1624
     },
1624
     },
1625
     excutionDoctorAdviceOne(){
1625
     excutionDoctorAdviceOne(){
1626
       if(this.current_row.execution_state == 1){
1626
       if(this.current_row.execution_state == 1){
1681
              this.druglist = druglist
1681
              this.druglist = druglist
1682
              this.startdialogVisible = true
1682
              this.startdialogVisible = true
1683
              var list = response.data.data.list
1683
              var list = response.data.data.list
1684
-          
1684
+
1685
              var config = response.data.data.config
1685
              var config = response.data.data.config
1686
-     
1686
+
1687
              console.log("dcotor---------------",this.doctorList)
1687
              console.log("dcotor---------------",this.doctorList)
1688
              if(list!=null && list.length > 0){
1688
              if(list!=null && list.length > 0){
1689
                for(let i=0;i<list.length;i++){
1689
                for(let i=0;i<list.length;i++){
1722
                     }
1722
                     }
1723
                   }
1723
                   }
1724
                 }
1724
                 }
1725
-               
1725
+
1726
                 this.tableList = []
1726
                 this.tableList = []
1727
                 for(let i=0;i<list.length;i++){
1727
                 for(let i=0;i<list.length;i++){
1728
                   for(let j=0;j<arr.length;j++){
1728
                   for(let j=0;j<arr.length;j++){
1731
                     }
1731
                     }
1732
                   }
1732
                   }
1733
                 }
1733
                 }
1734
-               
1734
+
1735
               }
1735
               }
1736
              }
1736
              }
1737
-                       
1737
+
1738
            var his_doctor_advice = []
1738
            var his_doctor_advice = []
1739
 
1739
 
1740
            for(let i=0;i<list.length;i++){
1740
            for(let i=0;i<list.length;i++){
1743
              }
1743
              }
1744
            }
1744
            }
1745
            console.log("his_doctor_advice",his_doctor_advice)
1745
            console.log("his_doctor_advice",his_doctor_advice)
1746
-          
1746
+
1747
             var newHisArr = []
1747
             var newHisArr = []
1748
-            for(let i=0;i<his_doctor_advice.length;i++){    
1748
+            for(let i=0;i<his_doctor_advice.length;i++){
1749
                his_doctor_advice[i].count_one = 0
1749
                his_doctor_advice[i].count_one = 0
1750
                if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
1750
                if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
1751
                   his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
1751
                   his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
1761
               }
1761
               }
1762
             }
1762
             }
1763
             console.log("下盘子3223323223",newHisArr)
1763
             console.log("下盘子3223323223",newHisArr)
1764
-            
1764
+
1765
              if(config.is_open == 1){
1765
              if(config.is_open == 1){
1766
                if(newHisArr!=null && newHisArr.length > 0){
1766
                if(newHisArr!=null && newHisArr.length > 0){
1767
                   let dataInfoOne = {}
1767
                   let dataInfoOne = {}
1801
              }
1801
              }
1802
           }
1802
           }
1803
         })
1803
         })
1804
-        
1804
+
1805
       },
1805
       },
1806
       toStaticOne() {
1806
       toStaticOne() {
1807
          this.tableList = []
1807
          this.tableList = []
1810
             partion_type:this.partion_type,
1810
             partion_type:this.partion_type,
1811
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1811
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1812
           }
1812
           }
1813
-       
1813
+
1814
         getDialysisAdviceToday(params).then(response=>{
1814
         getDialysisAdviceToday(params).then(response=>{
1815
           if(response.data.state == 1){
1815
           if(response.data.state == 1){
1816
              var doctorList = []
1816
              var doctorList = []
1818
              this.druglist = druglist
1818
              this.druglist = druglist
1819
              this.startdialogVisibleOne = true
1819
              this.startdialogVisibleOne = true
1820
              var list = response.data.data.list
1820
              var list = response.data.data.list
1821
-          
1821
+
1822
              var config = response.data.data.config
1822
              var config = response.data.data.config
1823
              this.adminUserList = response.data.data.doctorList
1823
              this.adminUserList = response.data.data.doctorList
1824
-             
1824
+
1825
              if(list!=null && list.length > 0){
1825
              if(list!=null && list.length > 0){
1826
                for(let i=0;i<list.length;i++){
1826
                for(let i=0;i<list.length;i++){
1827
                 for(let j=0;j<list[i].xt_doctor_advice.length;j++){
1827
                 for(let j=0;j<list[i].xt_doctor_advice.length;j++){
1832
                 }
1832
                 }
1833
                }
1833
                }
1834
              }
1834
              }
1835
-          
1835
+
1836
              if(config.is_open!=1){
1836
              if(config.is_open!=1){
1837
-              
1837
+
1838
 
1838
 
1839
               if(doctorList!=null && doctorList.length > 0){
1839
               if(doctorList!=null && doctorList.length > 0){
1840
 
1840
 
1866
               }
1866
               }
1867
 
1867
 
1868
               if(doctorList!=null && doctorList.length > 0){
1868
               if(doctorList!=null && doctorList.length > 0){
1869
-                
1869
+
1870
                 let dataInfoOne = {}
1870
                 let dataInfoOne = {}
1871
                   doctorList.forEach((item, index) => {
1871
                   doctorList.forEach((item, index) => {
1872
                   let { execution_staff } = item
1872
                   let { execution_staff } = item
1903
                 console.log("999999999999999999-------",this.tableDataList)
1903
                 console.log("999999999999999999-------",this.tableDataList)
1904
               }
1904
               }
1905
 
1905
 
1906
-              
1907
-             
1906
+
1907
+
1908
              }
1908
              }
1909
-                       
1910
-    
1909
+
1910
+
1911
           }
1911
           }
1912
         })
1912
         })
1913
-        
1913
+
1914
       },
1914
       },
1915
-    
1915
+
1916
      getSpecification(id){
1916
      getSpecification(id){
1917
         var specification_name = ""
1917
         var specification_name = ""
1918
         for(let i=0;i<this.druglist.length;i++){
1918
         for(let i=0;i<this.druglist.length;i++){
1958
         }
1958
         }
1959
       }
1959
       }
1960
       return max_str + min_str;
1960
       return max_str + min_str;
1961
-        
1961
+
1962
       },
1962
       },
1963
       toPrintOne(){
1963
       toPrintOne(){
1964
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
1964
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
1969
         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})
1969
         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})
1970
       },
1970
       },
1971
       toExportListOne(){
1971
       toExportListOne(){
1972
-        import('@/vendor/Export2Excel').then(excel => { 
1973
-         
1972
+        import('@/vendor/Export2Excel').then(excel => {
1973
+
1974
           if(this.tableList!=null && this.tableList.length > 0){
1974
           if(this.tableList!=null && this.tableList.length > 0){
1975
             for(let i=0;i<this.tableList.length;i++){
1975
             for(let i=0;i<this.tableList.length;i++){
1976
               this.tableList[i].index = i+1
1976
               this.tableList[i].index = i+1
1980
               if(this.config.is_open!=1){
1980
               if(this.config.is_open!=1){
1981
                 this.tableList[i].total_count = this.getCount(this.tableList[i].child)
1981
                 this.tableList[i].total_count = this.getCount(this.tableList[i].child)
1982
               }
1982
               }
1983
-             
1983
+
1984
             }
1984
             }
1985
           }
1985
           }
1986
           const tHeader = ['序号','药品名称','规格','数量']
1986
           const tHeader = ['序号','药品名称','规格','数量']
1993
             filename: '药品统计'
1993
             filename: '药品统计'
1994
           })
1994
           })
1995
             this.downloadLoading = false
1995
             this.downloadLoading = false
1996
-          })  
1996
+          })
1997
       },
1997
       },
1998
       formatJson(filterVal, jsonData) {
1998
       formatJson(filterVal, jsonData) {
1999
         return jsonData.map(v => filterVal.map(j => v[j]));
1999
         return jsonData.map(v => filterVal.map(j => v[j]));
2029
             }
2029
             }
2030
         })
2030
         })
2031
           let newArr = Object.values(dataInfo)
2031
           let newArr = Object.values(dataInfo)
2032
-        
2032
+
2033
           if(newArr!=null && newArr.length >0){
2033
           if(newArr!=null && newArr.length >0){
2034
             let dataInfo = {}
2034
             let dataInfo = {}
2035
             newArr.forEach((item, index) => {
2035
             newArr.forEach((item, index) => {
2043
               }
2043
               }
2044
            })
2044
            })
2045
            let hisNewArr = Object.values(dataInfo)
2045
            let hisNewArr = Object.values(dataInfo)
2046
-          
2046
+
2047
            if(hisNewArr!=null && hisNewArr.length >0){
2047
            if(hisNewArr!=null && hisNewArr.length >0){
2048
              for(let i=0;i<hisNewArr.length;i++){
2048
              for(let i=0;i<hisNewArr.length;i++){
2049
                for(let j=0;j<newArr.length;j++){
2049
                for(let j=0;j<newArr.length;j++){
2053
                }
2053
                }
2054
              }
2054
              }
2055
            }
2055
            }
2056
-         
2057
-           
2056
+
2057
+
2058
            var str = ""
2058
            var str = ""
2059
            for(let i=0;i<hisNewArr.length;i++){
2059
            for(let i=0;i<hisNewArr.length;i++){
2060
              if(hisNewArr[i].mode_id == 1){
2060
              if(hisNewArr[i].mode_id == 1){
2141
              if(hisNewArr[i].mode_id == 32){
2141
              if(hisNewArr[i].mode_id == 32){
2142
                 hisNewArr[i].mode_id = "HDP"
2142
                 hisNewArr[i].mode_id = "HDP"
2143
              }
2143
              }
2144
-             str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n" 
2144
+             str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
2145
            }
2145
            }
2146
-          
2146
+
2147
            return str
2147
            return str
2148
          }
2148
          }
2149
 
2149
 
2151
         }
2151
         }
2152
       },
2152
       },
2153
       getDrugCount(val,advice_name){
2153
       getDrugCount(val,advice_name){
2154
-        
2154
+
2155
         if(val!=null){
2155
         if(val!=null){
2156
           for(let i=0;i<val.length;i++){
2156
           for(let i=0;i<val.length;i++){
2157
            val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
2157
            val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
2158
           }
2158
           }
2159
         }
2159
         }
2160
-       
2160
+
2161
         if(val!=null && val.length >0){
2161
         if(val!=null && val.length >0){
2162
             let dataInfo = {}
2162
             let dataInfo = {}
2163
             val.forEach((item, index) => {
2163
             val.forEach((item, index) => {
2164
-            
2164
+
2165
             let { advice_name } = item
2165
             let { advice_name } = item
2166
             if (!dataInfo[advice_name])  {
2166
             if (!dataInfo[advice_name])  {
2167
               dataInfo[advice_name] = {
2167
               dataInfo[advice_name] = {
2171
               }
2171
               }
2172
             }
2172
             }
2173
           })
2173
           })
2174
-       
2175
-          let newArr = Object.values(dataInfo) 
2176
-         
2177
-         
2174
+
2175
+          let newArr = Object.values(dataInfo)
2176
+
2177
+
2178
           if(newArr!=null && newArr.length >0){
2178
           if(newArr!=null && newArr.length >0){
2179
             for(let i=0;i<newArr.length;i++){
2179
             for(let i=0;i<newArr.length;i++){
2180
               for(let j=0;j<val.length;j++){
2180
               for(let j=0;j<val.length;j++){
2184
               }
2184
               }
2185
             }
2185
             }
2186
           }
2186
           }
2187
-          
2187
+
2188
           var total = 0
2188
           var total = 0
2189
           var newHisArr =[]
2189
           var newHisArr =[]
2190
           if(newArr!=null && newArr.length >0){
2190
           if(newArr!=null && newArr.length >0){
2196
           }
2196
           }
2197
 
2197
 
2198
           if(newHisArr!=null && newHisArr.length>0){
2198
           if(newHisArr!=null && newHisArr.length>0){
2199
-            
2199
+
2200
             for(let i=0;i<newHisArr.length;i++){
2200
             for(let i=0;i<newHisArr.length;i++){
2201
               for(let j=0;j<newHisArr[i].child.length;j++){
2201
               for(let j=0;j<newHisArr[i].child.length;j++){
2202
                 total += parseInt(newHisArr[i].child[j].prescribing_number)
2202
                 total += parseInt(newHisArr[i].child[j].prescribing_number)
2203
               }
2203
               }
2204
             }
2204
             }
2205
           }
2205
           }
2206
-           
2206
+
2207
           return total
2207
           return total
2208
         }
2208
         }
2209
 
2209
 
2244
           if(index > 2){
2244
           if(index > 2){
2245
             const values = data.map(item => item[column.property]);
2245
             const values = data.map(item => item[column.property]);
2246
             console.log("data0----------------",data)
2246
             console.log("data0----------------",data)
2247
-           
2247
+
2248
           }
2248
           }
2249
-          
2249
+
2250
         });
2250
         });
2251
 
2251
 
2252
         return sums;
2252
         return sums;
2253
       },
2253
       },
2254
 
2254
 
2255
       getAllSumCount(advice_name){
2255
       getAllSumCount(advice_name){
2256
-       
2256
+
2257
         var hisNewArr =[]
2257
         var hisNewArr =[]
2258
         if(this.tabHead.length!=null && this.tabHead.length >0){
2258
         if(this.tabHead.length!=null && this.tabHead.length >0){
2259
           for(let i=0;i<this.tabHead.length;i++){
2259
           for(let i=0;i<this.tabHead.length;i++){
2262
             }
2262
             }
2263
           }
2263
           }
2264
         }
2264
         }
2265
-        
2265
+
2266
         var total = 0
2266
         var total = 0
2267
         if(hisNewArr!=null && hisNewArr.length > 0){
2267
         if(hisNewArr!=null && hisNewArr.length > 0){
2268
           for(let i=0;i<hisNewArr.length;i++){
2268
           for(let i=0;i<hisNewArr.length;i++){
2296
               arr.push(schedule[i])
2296
               arr.push(schedule[i])
2297
             }
2297
             }
2298
           }
2298
           }
2299
-        
2300
 
2299
 
2301
-          import('@/vendor/Export2Excel').then(excel => { 
2302
-         
2300
+
2301
+          import('@/vendor/Export2Excel').then(excel => {
2302
+
2303
          if(arr!=null && arr.length > 0){
2303
          if(arr!=null && arr.length > 0){
2304
            for(let i=0;i<arr.length;i++){
2304
            for(let i=0;i<arr.length;i++){
2305
              arr[i].patient_name = arr[i].patient.name
2305
              arr[i].patient_name = arr[i].patient.name
2318
            data,
2318
            data,
2319
            filename: '监测数据统计'
2319
            filename: '监测数据统计'
2320
           })
2320
           })
2321
-         })  
2322
-        } 
2321
+         })
2322
+        }
2323
       })
2323
       })
2324
     }
2324
     }
2325
-    
2325
+
2326
   },
2326
   },
2327
   components: {
2327
   components: {
2328
     BreadCrumb
2328
     BreadCrumb
2400
     }
2400
     }
2401
   }
2401
   }
2402
 
2402
 
2403
-  
2403
+
2404
   .el-table td .cell{
2404
   .el-table td .cell{
2405
     white-space: pre-wrap;
2405
     white-space: pre-wrap;
2406
   }
2406
   }