XMLWAN 3 years ago
parent
commit
44c3339c8c

+ 26 - 0
src/api/schedule.js View File

8
   })
8
   })
9
 }
9
 }
10
 
10
 
11
+
12
+export function getWeekPanelsOne(t,patitionId){
13
+  
14
+  return request({
15
+    url: '/api/schedule/weekpanelone?data=' + t+"&patitionid="+patitionId,
16
+    method: 'get'
17
+  })
18
+}
19
+
11
 export function getSchedules(params) {
20
 export function getSchedules(params) {
12
   return request({
21
   return request({
13
     url: '/api/schedule/schedules',
22
     url: '/api/schedule/schedules',
16
   })
25
   })
17
 }
26
 }
18
 
27
 
28
+export function getSchedulesOne(params){
29
+  return request({
30
+    url: '/api/schedule/schedulesone',
31
+    method: 'get',
32
+    params:params,
33
+  })
34
+}
35
+
19
 export function getSchedulePatients(params) {
36
 export function getSchedulePatients(params) {
20
   return request({
37
   return request({
21
     url: '/api/schedule/patients',
38
     url: '/api/schedule/patients',
194
     method:"get",
211
     method:"get",
195
     params:params
212
     params:params
196
   })
213
   })
214
+}
215
+
216
+export function getPatientSheduleCount(params){
217
+   
218
+  return request({
219
+    url:"/api/schedule/getpatientschedulecount",
220
+    method:"get",
221
+    params:params
222
+  })
197
 }
223
 }

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

325
             </el-form-item>
325
             </el-form-item>
326
           </el-col>
326
           </el-col>
327
 
327
 
328
-          <el-col :span="8" v-if="isShows('葡萄糖')">
328
+          <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
329
             <el-form-item label="葡萄糖(mmol/L):">
329
             <el-form-item label="葡萄糖(mmol/L):">
330
               <el-input
330
               <el-input
331
                 type="number"
331
                 type="number"
332
                 v-model="dialysisPrescription.glucose"
332
                 v-model="dialysisPrescription.glucose"
333
               ></el-input>
333
               ></el-input>
334
             </el-form-item>
334
             </el-form-item>
335
-          </el-col>
335
+          </el-col> -->
336
           <el-col :span="8" v-if="isShows('透析液流量')">
336
           <el-col :span="8" v-if="isShows('透析液流量')">
337
             <el-form-item label="透析液流量(ml/min):">
337
             <el-form-item label="透析液流量(ml/min):">
338
               <el-input
338
               <el-input

+ 2 - 2
src/xt_pages/workforce/appointment.vue View File

68
     <div class="position">
68
     <div class="position">
69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70
         <div style="display:flex;align-items:center">
70
         <div style="display:flex;align-items:center">
71
-          <el-button @click="printTable">打印表格</el-button>
72
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
71
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
72
+           <el-button @click="printTable" type="primary" size="small">打印排班</el-button>
73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
74
             导出模版
74
             导出模版
75
           </el-button>
75
           </el-button>
228
     },
228
     },
229
     methods: {
229
     methods: {
230
       printTable(){
230
       printTable(){
231
-        this.$router.push({path: '/scheduleTablePrint'})
231
+        this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
232
       },
232
       },
233
       generateTxt: function(log) {
233
       generateTxt: function(log) {
234
         var content = ''
234
         var content = ''

+ 53 - 27
src/xt_pages/workforce/components/tableData.vue View File

2
   <div id="table_data">
2
   <div id="table_data">
3
     <div style="margin-bottom:-30px;margin-left:300px">
3
     <div style="margin-bottom:-30px;margin-left:300px">
4
       <span>分区:</span>
4
       <span>分区:</span>
5
-       <el-select v-model="partition_id" placeholder="请选择" @change="changePartiton">
5
+       <el-select v-model="partition_id" multiple placeholder="请选择" @change="changePartiton">
6
         <el-option
6
         <el-option
7
           v-for="item in this.zones"
7
           v-for="item in this.zones"
8
           :key="item.id"
8
           :key="item.id"
10
           :value="item.id">
10
           :value="item.id">
11
          </el-option>
11
          </el-option>
12
         </el-select>
12
         </el-select>
13
+      
13
        <!-- <span style="margin-left:100px">班次:</span>
14
        <!-- <span style="margin-left:100px">班次:</span>
14
        <el-select v-model="schedule_type" placeholder="请选择" @change="changeSchedule_type">
15
        <el-select v-model="schedule_type" placeholder="请选择" @change="changeSchedule_type">
15
         <el-option
16
         <el-option
623
   ChangeSchedule,
624
   ChangeSchedule,
624
   CreateSchedule,
625
   CreateSchedule,
625
   getSchedulePatients,
626
   getSchedulePatients,
626
-  getSchedules,
627
+  getSchedulesOne,
627
   getSearchResult,
628
   getSearchResult,
628
   getUrgentScheduleInitData,
629
   getUrgentScheduleInitData,
629
-  getWeekPanels,
630
+  getWeekPanelsOne,
630
   getAllZones,
631
   getAllZones,
631
 } from "@/api/schedule";
632
 } from "@/api/schedule";
632
 import ScheduleItem from "./ScheduleItem";
633
 import ScheduleItem from "./ScheduleItem";
760
       ],
761
       ],
761
       partition_id:0,
762
       partition_id:0,
762
       schedule_type:"",
763
       schedule_type:"",
763
-      zones:[{id:0,name:"全部"}],
764
+      zones:[],
764
       theType:"",
765
       theType:"",
765
       scheduleZone:[],
766
       scheduleZone:[],
766
       theWeek: {
767
       theWeek: {
769
         nextWeek: 0,
770
         nextWeek: 0,
770
         nextTwoWeek: 0
771
         nextTwoWeek: 0
771
       },
772
       },
773
+      zoneIdList:[],
774
+      strArr:""
772
     };
775
     };
773
   },
776
   },
774
 
777
 
797
   },
800
   },
798
   methods: {
801
   methods: {
799
        getWeekPanels() {
802
        getWeekPanels() {
800
-        this.scheduleZone=[]
801
-        getWeekPanels(1,this.partition_id).then(response => {
803
+         this.scheduleZone=[]
804
+         var partionStr = this.partition_id
805
+         var arr = this.zoneIdList.join(',')
806
+         
807
+         var str = ""
808
+         if(partionStr == 0){
809
+            str = arr
810
+         }
811
+         if(partionStr != 0){
812
+            str = partionStr.join(',')
813
+         }
814
+       
815
+      
816
+        getWeekPanelsOne(1,str).then(response => {
802
           if (response.data.state == 0) {
817
           if (response.data.state == 0) {
803
             return false
818
             return false
804
           }
819
           }
805
           var partitions = response.data.data.partitions
820
           var partitions = response.data.data.partitions
806
-          console.log("分区",partitions)
807
-          console.log("scheduleZoneRow",this.scheduleZoneRow)
821
+        
808
           this.theWeek.thisWeek = response.data.data.theWeek
822
           this.theWeek.thisWeek = response.data.data.theWeek
809
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
823
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
810
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
824
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
818
               that.scheduleZoneRow.push(partition.jihaos.length)
832
               that.scheduleZoneRow.push(partition.jihaos.length)
819
 
833
 
820
               that.partitions[partition.id] = partition
834
               that.partitions[partition.id] = partition
821
-              
822
-              console.log("partition",partition)
823
-
824
-             
835
+                
825
               partition.jihaos.forEach(function(jihao) {
836
               partition.jihaos.forEach(function(jihao) {
826
                 var thisPa = {
837
                 var thisPa = {
827
                   area: partition.name,
838
                   area: partition.name,
978
                   },
989
                   },
979
                   total: 0
990
                   total: 0
980
                 }
991
                 }
981
-                // tha.scheduleZone = []
992
+               
982
                 that.scheduleZone.push(thisPa)
993
                 that.scheduleZone.push(thisPa)
994
+               
983
               })
995
               })
984
             })
996
             })
985
-            console.log("分区列表22222222222222",this.scheduleZone)
986
           }
997
           }
998
+            console.log("34455555566666",this.scheduleZone)
987
         })
999
         })
988
      },
1000
      },
989
     cellClass({ row, column, rowIndex, columnIndex }) {
1001
     cellClass({ row, column, rowIndex, columnIndex }) {
1058
       return sums;
1070
       return sums;
1059
     },
1071
     },
1060
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1072
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1073
+    
1061
       var that = this;
1074
       var that = this;
1062
       var rowNum = 0;
1075
       var rowNum = 0;
1063
       rowNumber = 0;
1076
       rowNumber = 0;
1102
       this.currentData.patient_id = 0;
1115
       this.currentData.patient_id = 0;
1103
     },
1116
     },
1104
     getSchedules() {
1117
     getSchedules() {
1118
+         var partionStr = this.partition_id
1119
+         var arr = this.zoneIdList.join(',')
1120
+         var str = ""
1121
+         if(partionStr == 0){
1122
+            str = arr
1123
+         }
1124
+         if(partionStr != 0){
1125
+            str = partionStr.join(',')
1126
+         }
1105
         const params = {
1127
         const params = {
1106
           weekTime:this.theType,
1128
           weekTime:this.theType,
1107
-          partition_id:this.partition_id,
1129
+          patitionid:str,
1108
           schedule_type:this.schedule_type,
1130
           schedule_type:this.schedule_type,
1109
         }
1131
         }
1110
-
1111
-      getSchedules(params).then(response => {
1132
+     
1133
+      getSchedulesOne(params).then(response => {
1112
         if (response.data.state == 1) {
1134
         if (response.data.state == 1) {
1113
           this.weekTitle = response.data.data.weekTitle;
1135
           this.weekTitle = response.data.data.weekTitle;
1114
           this.weekDays = response.data.data.days;
1136
           this.weekDays = response.data.data.days;
1115
           this.toDay = response.data.data.today;
1137
           this.toDay = response.data.data.today;
1116
           var theSchedules = response.data.data.schdules;
1138
           var theSchedules = response.data.data.schdules;
1117
           
1139
           
1118
-          // console.log("分区2222222222",this.scheduleZone)
1119
-          
1120
-        
1121
           var that = this;
1140
           var that = this;
1122
-          console.log('that.scheduleZonethat.scheduleZone',that.scheduleZone)
1141
+          
1123
           this.scheduleZone.forEach(function(zone, index) {
1142
           this.scheduleZone.forEach(function(zone, index) {
1124
            
1143
            
1125
             that.scheduleZone[index].Mon_M = {
1144
             that.scheduleZone[index].Mon_M = {
1254
               theSchedules.forEach(function(schedule, sindex) {
1273
               theSchedules.forEach(function(schedule, sindex) {
1255
 
1274
 
1256
                 if (zone.jihao_id == schedule.bed_id) {
1275
                 if (zone.jihao_id == schedule.bed_id) {
1257
-                  // if(zone.zone_id == schedule.partition_id && zone.jihao_id == schedule.bed_id) {
1276
+                
1258
                   var weekPath = that.weekPath(
1277
                   var weekPath = that.weekPath(
1259
                     schedule.schedule_week,
1278
                     schedule.schedule_week,
1260
                     schedule.schedule_type
1279
                     schedule.schedule_type
2192
       getAllZones().then(response=>{
2211
       getAllZones().then(response=>{
2193
          if(response.data.state == 1){
2212
          if(response.data.state == 1){
2194
            var zones = response.data.data.zones
2213
            var zones = response.data.data.zones
2195
-           this.zones.push(...zones)
2196
-           
2214
+           for(let i=0;i<zones.length;i++){
2215
+              this.zoneIdList.push(zones[i].id)
2216
+           }
2217
+          this.zones.push(...zones)
2218
+          var strArr =  this.zoneIdList.join(",")
2219
+         
2220
+          this.strArr = strArr
2221
+          this.getWeekPanels()
2197
          }
2222
          }
2198
       })
2223
       })
2199
     },
2224
     },
2216
   mounted() {
2241
   mounted() {
2217
   
2242
   
2218
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
2243
     this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
2219
-    console.log(this.tableContainHeight);
2244
+   
2220
     // var theType = this.weekType(this.weekTime);
2245
     // var theType = this.weekType(this.weekTime);
2221
     // this.getSchedules(theType);
2246
     // this.getSchedules(theType);
2222
     const that = this;
2247
     const that = this;
2235
   //    this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
2260
   //    this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
2236
   // },
2261
   // },
2237
   created() {
2262
   created() {
2238
-    this.getWeekPanels()
2263
+    this.getAllZones()
2264
+ 
2239
     this.changeScheduleType(1)
2265
     this.changeScheduleType(1)
2240
     rowNumber = 0;
2266
     rowNumber = 0;
2241
     this.modeOptions = this.$store.getters.treatment_mode;
2267
     this.modeOptions = this.$store.getters.treatment_mode;
2260
     if (this.weekday == 0) {
2286
     if (this.weekday == 0) {
2261
       this.weekday = 7;
2287
       this.weekday = 7;
2262
     }
2288
     }
2263
-    this.getAllZones()
2289
+   
2264
   }
2290
   }
2265
 };
2291
 };
2266
 </script>
2292
 </script>

+ 256 - 22
src/xt_pages/workforce/scheduleTablePrint.vue View File

12
                 <td colspan="3">周五({{ weekTitle[4] }})</td>
12
                 <td colspan="3">周五({{ weekTitle[4] }})</td>
13
                 <td colspan="3">周六({{ weekTitle[5] }})</td>
13
                 <td colspan="3">周六({{ weekTitle[5] }})</td>
14
                 <td colspan="3">周日({{ weekTitle[6] }})</td>
14
                 <td colspan="3">周日({{ weekTitle[6] }})</td>
15
+                <td colspan="3">总数</td>
15
             </tr>
16
             </tr>
16
             <tr>
17
             <tr>
17
                 <td>上午</td>
18
                 <td>上午</td>
165
                         <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</div>
166
                         <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }}</div>
166
                     </span>
167
                     </span>
167
                 </td>
168
                 </td>
169
+                <td>{{item.total}}</td>
168
             </tr>
170
             </tr>
169
         </table>
171
         </table>
170
     </div>
172
     </div>
173
 
175
 
174
 
176
 
175
 <script>
177
 <script>
176
-import {getSchedules,getWeekPanels} from "@/api/schedule";
178
+import {getSchedulesOne,getWeekPanelsOne,getPatientSheduleCount,getAllZones} from "@/api/schedule";
177
 import print from 'print-js'
179
 import print from 'print-js'
178
 export default {
180
 export default {
179
     props:{
181
     props:{
191
             weekTitle:[],
193
             weekTitle:[],
192
             scheduleZoneRow: [],
194
             scheduleZoneRow: [],
193
             partitions: {},
195
             partitions: {},
196
+            theWeek: {
197
+              lastWeek: 0,
198
+              thisWeek: 0,
199
+              nextWeek: 0,
200
+              nextTwoWeek: 0
201
+           },
202
+           scheduleCountList:[],
203
+           total:0,
204
+           zones:[],
205
+           zoneIdList:[],
206
+           strArr:""
194
         }
207
         }
195
     },
208
     },
196
     created(){
209
     created(){
210
+        this.getAllZones()
197
         this.modeOptions = this.$store.getters.treatment_mode;
211
         this.modeOptions = this.$store.getters.treatment_mode;
198
-        this.getWeekPanels()
212
+        this.partition_id = this.$route.query.partition_id
213
+       
199
         
214
         
200
     },
215
     },
201
     methods:{
216
     methods:{
217
+         getAllZones(){
218
+           getAllZones().then(response=>{
219
+             if(response.data.state == 1){
220
+                var zones = response.data.data.zones
221
+               for(let i=0;i<zones.length;i++){
222
+                    this.zoneIdList.push(zones[i].id)
223
+                }
224
+                this.zones.push(...zones)
225
+                var strArr =  this.zoneIdList.join(",")
226
+                
227
+                this.strArr = strArr
228
+                this.getWeekPanels()
229
+                //统计患者排班数量
230
+                this.getPatientSheduleCount()
231
+            }
232
+          })
233
+        },
202
         getWeekPanels() {
234
         getWeekPanels() {
203
-            // this.scheduleZoneRow = []
204
-            // this.scheduleZone = []
205
-            getWeekPanels(1,this.partition_id).then(response => {
235
+             this.scheduleZone = []
236
+              var partionStr = this.partition_id
237
+              var arr = this.zoneIdList.join(',')
238
+               var str = ""
239
+                if(partionStr == 0){
240
+                    str = arr
241
+                }
242
+                if(partionStr != 0){
243
+                    str = partionStr
244
+                }
245
+            getWeekPanelsOne(1,str).then(response => {
206
                 if (response.data.state == 0) {
246
                 if (response.data.state == 0) {
207
                     return false
247
                     return false
208
                 }
248
                 }
209
                 var partitions = response.data.data.partitions
249
                 var partitions = response.data.data.partitions
210
                 console.log("分区",partitions)
250
                 console.log("分区",partitions)
211
-                // this.theWeek.thisWeek = response.data.data.theWeek
212
-                // this.theWeek.lastWeek = this.theWeek.thisWeek - 1
213
-                // this.theWeek.nextWeek = this.theWeek.thisWeek + 1
214
-                // this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
215
-                // 在控制变量改变的时候进行 强制渲染更新
216
-                // let childrenRefs = this.$refs.elTabs.$children
217
-                // this.$nextTick(() => {
218
-                //     childrenRefs.forEach(child => child.$forceUpdate())
219
-                // })
220
-
251
+                this.theWeek.thisWeek = response.data.data.theWeek
252
+                this.theWeek.lastWeek = this.theWeek.thisWeek - 1
253
+                this.theWeek.nextWeek = this.theWeek.thisWeek + 1
254
+                this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
221
                 var that = this
255
                 var that = this
222
                 if (partitions.length > 0) {
256
                 if (partitions.length > 0) {
223
                     partitions.forEach(function(partition) {
257
                     partitions.forEach(function(partition) {
391
             })
425
             })
392
         },
426
         },
393
         getSchedules() {
427
         getSchedules() {
428
+            var theType = 2;
429
+            if(this.$route.query.weekTime == "lastWeek"){
430
+               theType = 1
431
+            }
432
+           if(this.$route.query.weekTime == "thisWeek"){
433
+               theType = 2
434
+            }
435
+            if(this.$route.query.weekTime == "nextWeek"){
436
+               theType = 3
437
+            }
438
+           if(this.$route.query.weekTime == "nextTwoWeek"){
439
+               theType = 4
440
+            }
441
+            var partionStr = this.partition_id
442
+            var arr = this.zoneIdList.join(',')
443
+            var str = ""
444
+            if(partionStr == 0){
445
+                str = arr
446
+            }
447
+            if(partionStr != 0){
448
+                str = partionStr
449
+            }
394
             const params = {
450
             const params = {
395
-                weekTime:this.theType,
396
-                partition_id:this.partition_id,
451
+                weekTime:theType,
452
+                patitionid:str,
397
                 schedule_type:this.schedule_type,
453
                 schedule_type:this.schedule_type,
398
             }
454
             }
399
-            getSchedules(params).then(response => {
455
+            getSchedulesOne(params).then(response => {
400
                 if (response.data.state == 1) {
456
                 if (response.data.state == 1) {
401
                     this.weekTitle = response.data.data.weekTitle;
457
                     this.weekTitle = response.data.data.weekTitle;
402
                     this.weekDays = response.data.data.days;
458
                     this.weekDays = response.data.data.days;
403
                     this.toDay = response.data.data.today;
459
                     this.toDay = response.data.data.today;
404
                     var theSchedules = response.data.data.schdules;
460
                     var theSchedules = response.data.data.schdules;
405
-                    
406
-                    
407
-                    
408
                     var that = this;
461
                     var that = this;
409
                     that.scheduleZone.forEach(function(zone, index) {
462
                     that.scheduleZone.forEach(function(zone, index) {
410
                         
463
                         
570
                                 
623
                                 
571
                             });
624
                             });
572
                         }
625
                         }
573
-                        console.log('that.scheduleZone',that.scheduleZone)
626
+                       
574
                     });
627
                     });
628
+                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1"},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"jihao_id":"","total":"","zone_id":"","zone_type":""}]
629
+                     
630
+                     
631
+                     for(let i=0;i<newArr.length;i++){
632
+                       for(let j=0;j<this.scheduleCountList.length;j++){
633
+                            newArr[i].cut = this.total
634
+                         //礼拜一上午
635
+                          if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 1){
636
+                            
637
+                              newArr[i].Mon_M.patient = this.scheduleCountList[j].Count
638
+                          } 
639
+                        //礼拜一下午
640
+                         if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 2){
641
+                           
642
+                              newArr[i].Mon_A.patient = this.scheduleCountList[j].Count
643
+                          } 
644
+
645
+                         //礼拜一晚上
646
+                         if(this.scheduleCountList[j].schedule_week == 1 && this.scheduleCountList[j].schedule_type == 3){
647
+                            
648
+                              newArr[i].Mon_N.patient = this.scheduleCountList[j].Count
649
+                          } 
650
+                         
651
+                        //礼拜二上午
652
+                         if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 1){
653
+                            
654
+                              newArr[i].Tue_M.patient = this.scheduleCountList[j].Count
655
+                          } 
656
+                         //礼拜二下午
657
+                         if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 2){
658
+                            
659
+                              newArr[i].Tue_A.patient = this.scheduleCountList[j].Count
660
+                          } 
661
+                        
662
+                         //礼拜二晚上
663
+                         if(this.scheduleCountList[j].schedule_week == 2 && this.scheduleCountList[j].schedule_type == 3){
664
+                            
665
+                              newArr[i].Tue_N.patient = this.scheduleCountList[j].Count
666
+                          } 
667
+
668
+                         //礼拜三上午
669
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
670
+                            
671
+                              newArr[i].Wed_M.patient = this.scheduleCountList[j].Count
672
+                          } 
673
+
674
+                         //礼拜三下午
675
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
676
+                            
677
+                              newArr[i].Wed_A.patient = this.scheduleCountList[j].Count
678
+                          }
679
+
680
+                         //礼拜三晚上
681
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
682
+                            
683
+                              newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
684
+                          }
685
+
686
+
687
+
688
+                        //礼拜四上午
689
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
690
+                            
691
+                              newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
692
+                          } 
693
+
694
+                         //礼拜四下午
695
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
696
+                            
697
+                              newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
698
+                          }
699
+
700
+                         //礼拜四晚上
701
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
702
+                            
703
+                              newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
704
+                          }
705
+
706
+
707
+                        //礼拜五上午
708
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
709
+                            
710
+                              newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
711
+                          } 
712
+
713
+                         //礼拜五下午
714
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
715
+                            
716
+                              newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
717
+                          }
718
+
719
+                         //礼拜五晚上
720
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
721
+                            
722
+                              newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
723
+                          }
724
+
725
+
726
+                        //礼拜六上午
727
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
728
+                            
729
+                              newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
730
+                          } 
731
+
732
+                         //礼拜六下午
733
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
734
+                            
735
+                              newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
736
+                          }
737
+
738
+                         //礼拜六晚上
739
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
740
+                            
741
+                              newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
742
+                          }
743
+                         
744
+
745
+                          //礼拜日上午
746
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
747
+                            
748
+                              newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
749
+                          } 
750
+
751
+                         //礼拜日下午
752
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
753
+                            
754
+                              newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
755
+                          }
756
+
757
+                         //礼拜日晚上
758
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
759
+                            
760
+                              newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
761
+                          }
762
+
763
+
764
+                       }
765
+                     }
766
+                    console.log("newArr222222222",newArr)
767
+                    that.scheduleZone.push(...newArr)
768
+                    console.log('总数据77777777777',that.scheduleZone)
575
                     
769
                     
576
                 } else {
770
                 } else {
577
                     this.$message.error("网络错误");
771
                     this.$message.error("网络错误");
609
             scanStyles: false
803
             scanStyles: false
610
             })
804
             })
611
         },
805
         },
806
+        getPatientSheduleCount(){
807
+            var theType = 2;
808
+            if(this.$route.query.weekTime == "lastWeek"){
809
+               theType = 1
810
+            }
811
+           if(this.$route.query.weekTime == "thisWeek"){
812
+               theType = 2
813
+            }
814
+            if(this.$route.query.weekTime == "nextWeek"){
815
+               theType = 3
816
+            }
817
+           if(this.$route.query.weekTime == "nextTwoWeek"){
818
+               theType = 4
819
+            }
820
+           var partionStr = this.partition_id
821
+            var arr = this.zoneIdList.join(',')
822
+            var str = ""
823
+            if(partionStr == 0){
824
+                str = arr
825
+            }
826
+            if(partionStr != 0){
827
+                str = partionStr.join(',')
828
+            }
829
+            var params = {
830
+             weekTime:theType,
831
+             partition_id:str,
832
+
833
+            }
834
+           getPatientSheduleCount(params).then(response=>{
835
+               if(response.data.state == 1){
836
+                  var list = response.data.data.list
837
+                  console.log("list22222",list)
838
+                  
839
+                  this.scheduleCountList = list
840
+                  var total = response.data.data.total
841
+                  console.log("totalw222",total)
842
+                  this.total = total
843
+               }
844
+           }) 
845
+        }
612
     }
846
     }
613
 }
847
 }
614
 </script>
848
 </script>