Browse Source

3月27日杨青

杨青 2 years ago
parent
commit
df4238495c

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

135
           <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
135
           <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
136
           <div>
136
           <div>
137
             <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs">
137
             <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs">
138
-          <el-tab-pane name="lastWeek">
138
+          <!-- <el-tab-pane name="lastWeek">
139
             <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
139
             <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
140
-          </el-tab-pane>
140
+          </el-tab-pane> -->
141
           <el-tab-pane name="thisWeek">
141
           <el-tab-pane name="thisWeek">
142
             <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
142
             <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
143
           </el-tab-pane>
143
           </el-tab-pane>
336
 
336
 
337
           this.$refs.tableDataZero.start()
337
           this.$refs.tableDataZero.start()
338
         })
338
         })
339
-        console.log('12343545',this.$refs.tableDataZero);
339
+        // console.log('12343545',this.$refs.tableDataZero);
340
       }else{
340
       }else{
341
         this.showtable=false
341
         this.showtable=false
342
         this.showtableOne=true
342
         this.showtableOne=true

+ 26 - 35
src/xt_pages/workforce/components/editTableData.vue View File

149
           <el-table-column
149
           <el-table-column
150
               prop="area"
150
               prop="area"
151
               label="分区"
151
               label="分区"
152
-              min-width="50"
152
+              min-width="60"
153
               align="center"
153
               align="center"
154
               fixed
154
               fixed
155
           ></el-table-column>
155
           ></el-table-column>
156
           <el-table-column
156
           <el-table-column
157
               prop="cut"
157
               prop="cut"
158
               label="机号"
158
               label="机号"
159
-              min-width="40"
159
+              min-width="50"
160
               align="center"
160
               align="center"
161
               fixed
161
               fixed
162
           >
162
           >
166
               v-if="isShowOne"
166
               v-if="isShowOne"
167
               align="center"
167
               align="center"
168
           >
168
           >
169
-            <el-table-column prop="Mon_M" label="上" width="110" align="center">
169
+            <el-table-column prop="Mon_M" label="上" min-width="50" align="center">
170
               <template slot-scope="scope">
170
               <template slot-scope="scope">
171
                 <div class="del_table_btn">
171
                 <div class="del_table_btn">
172
                   <!-- 排班表取消排班按钮  v-if="showclickIcon==true&&scope.row.id==rowid"-->
172
                   <!-- 排班表取消排班按钮  v-if="showclickIcon==true&&scope.row.id==rowid"-->
210
                 </div>
210
                 </div>
211
               </template>
211
               </template>
212
             </el-table-column>
212
             </el-table-column>
213
-            <el-table-column prop="Mon_A" label="下" min-width="40" align="center">
213
+            <el-table-column prop="Mon_A" label="下" min-width="50" align="center">
214
               <template slot-scope="scope">
214
               <template slot-scope="scope">
215
                 <div class="del_table_btn">
215
                 <div class="del_table_btn">
216
                   <el-button
216
                   <el-button
256
                 </div>
256
                 </div>
257
               </template>
257
               </template>
258
             </el-table-column>
258
             </el-table-column>
259
-            <el-table-column prop="Mon_N" label="晚" min-width="40" align="center">
259
+            <el-table-column prop="Mon_N" label="晚" min-width="50" align="center">
260
               <template slot-scope="scope">
260
               <template slot-scope="scope">
261
                 <div class="del_table_btn">
261
                 <div class="del_table_btn">
262
                   <el-button
262
                   <el-button
308
               v-if="isShowTwo"
308
               v-if="isShowTwo"
309
               align="center"
309
               align="center"
310
           >
310
           >
311
-            <el-table-column prop="Tue_M" label="上" min-width="40" align="center">
311
+            <el-table-column prop="Tue_M" label="上" min-width="50" align="center">
312
               <template slot-scope="scope">
312
               <template slot-scope="scope">
313
                 <div class="del_table_btn">
313
                 <div class="del_table_btn">
314
                   <el-button
314
                   <el-button
353
                 </div>
353
                 </div>
354
               </template>
354
               </template>
355
             </el-table-column>
355
             </el-table-column>
356
-            <el-table-column prop="Tue_A" label="下" min-width="40" align="center">
356
+            <el-table-column prop="Tue_A" label="下" min-width="50" align="center">
357
               <template slot-scope="scope">
357
               <template slot-scope="scope">
358
                 <div class="del_table_btn">
358
                 <div class="del_table_btn">
359
                   <el-button
359
                   <el-button
397
                 </div>
397
                 </div>
398
               </template>
398
               </template>
399
             </el-table-column>
399
             </el-table-column>
400
-            <el-table-column prop="Tue_N" label="晚" min-width="40" align="center">
400
+            <el-table-column prop="Tue_N" label="晚" min-width="50" align="center">
401
               <template slot-scope="scope">
401
               <template slot-scope="scope">
402
                 <div class="del_table_btn">
402
                 <div class="del_table_btn">
403
                   <el-button
403
                   <el-button
448
               v-if="isShowThree"
448
               v-if="isShowThree"
449
               align="center"
449
               align="center"
450
           >
450
           >
451
-            <el-table-column prop="Wed_M" label="上" min-width="40" align="center">
451
+            <el-table-column prop="Wed_M" label="上" min-width="50" align="center">
452
               <template slot-scope="scope">
452
               <template slot-scope="scope">
453
                 <div class="del_table_btn">
453
                 <div class="del_table_btn">
454
                   <el-button
454
                   <el-button
492
                 </div>
492
                 </div>
493
               </template>
493
               </template>
494
             </el-table-column>
494
             </el-table-column>
495
-            <el-table-column prop="Wed_A" label="下" min-width="40" align="center">
495
+            <el-table-column prop="Wed_A" label="下" min-width="50" align="center">
496
               <template slot-scope="scope">
496
               <template slot-scope="scope">
497
                 <div class="del_table_btn">
497
                 <div class="del_table_btn">
498
                   <el-button
498
                   <el-button
536
                 </div>
536
                 </div>
537
               </template>
537
               </template>
538
             </el-table-column>
538
             </el-table-column>
539
-            <el-table-column prop="Wed_N" label="晚" min-width="40" align="center">
539
+            <el-table-column prop="Wed_N" label="晚" min-width="50" align="center">
540
               <template slot-scope="scope">
540
               <template slot-scope="scope">
541
                 <div class="del_table_btn">
541
                 <div class="del_table_btn">
542
                   <el-button
542
                   <el-button
586
               align="center"
586
               align="center"
587
               v-if="isShowFour"
587
               v-if="isShowFour"
588
           >
588
           >
589
-            <el-table-column prop="Thurs_M"  label="上" min-width="40" align="center"
589
+            <el-table-column prop="Thurs_M"  label="上" min-width="50" align="center"
590
             >
590
             >
591
               <template slot-scope="scope">
591
               <template slot-scope="scope">
592
                 <div class="del_table_btn">
592
                 <div class="del_table_btn">
634
             <el-table-column
634
             <el-table-column
635
                 prop="Thurs_A"
635
                 prop="Thurs_A"
636
                 label="下"
636
                 label="下"
637
-                min-width="40"
637
+                min-width="50"
638
                 align="center"
638
                 align="center"
639
             >
639
             >
640
               <template slot-scope="scope">
640
               <template slot-scope="scope">
684
             <el-table-column
684
             <el-table-column
685
                 prop="Thurs_N"
685
                 prop="Thurs_N"
686
                 label="晚"
686
                 label="晚"
687
-                min-width="40"
687
+                min-width="50"
688
                 align="center"
688
                 align="center"
689
             >
689
             >
690
               <template slot-scope="scope">
690
               <template slot-scope="scope">
733
           </el-table-column>
733
           </el-table-column>
734
           <el-table-column
734
           <el-table-column
735
               :label="'周五 (' + weekTitle[4] + ')'"
735
               :label="'周五 (' + weekTitle[4] + ')'"
736
-
737
               align="center"
736
               align="center"
738
               v-if="isShowFive"
737
               v-if="isShowFive"
739
           >
738
           >
740
-            <el-table-column prop="Fri_M" label="上" min-width="40" align="center"
739
+            <el-table-column prop="Fri_M" label="上" min-width="50" align="center"
741
 >
740
 >
742
               <template slot-scope="scope">
741
               <template slot-scope="scope">
743
                 <div class="del_table_btn">
742
                 <div class="del_table_btn">
780
                 </div>
779
                 </div>
781
               </template>
780
               </template>
782
             </el-table-column>
781
             </el-table-column>
783
-            <el-table-column prop="Fri_A" label="下" min-width="40" align="center">
782
+            <el-table-column prop="Fri_A" label="下" min-width="50" align="center">
784
               <template slot-scope="scope">
783
               <template slot-scope="scope">
785
                 <div class="del_table_btn">
784
                 <div class="del_table_btn">
786
                   <el-button
785
                   <el-button
820
                 </div>
819
                 </div>
821
               </template>
820
               </template>
822
             </el-table-column>
821
             </el-table-column>
823
-            <el-table-column prop="Fri_N" label="晚" min-width="40" align="center">
822
+            <el-table-column prop="Fri_N" label="晚" min-width="50" align="center">
824
               <template slot-scope="scope">
823
               <template slot-scope="scope">
825
                 <div class="del_table_btn">
824
                 <div class="del_table_btn">
826
                   <el-button
825
                   <el-button
871
               align="center"
870
               align="center"
872
               v-if="isShowSix"
871
               v-if="isShowSix"
873
           >
872
           >
874
-            <el-table-column prop="Sat_M" label="上" min-width="40" align="center">
873
+            <el-table-column prop="Sat_M" label="上" min-width="50" align="center">
875
               <template slot-scope="scope">
874
               <template slot-scope="scope">
876
                 <div class="del_table_btn">
875
                 <div class="del_table_btn">
877
                   <el-button
876
                   <el-button
915
                 </div>
914
                 </div>
916
               </template>
915
               </template>
917
             </el-table-column>
916
             </el-table-column>
918
-            <el-table-column prop="Sat_A" label="下" min-width="40" align="center">
917
+            <el-table-column prop="Sat_A" label="下" min-width="50" align="center">
919
               <template slot-scope="scope">
918
               <template slot-scope="scope">
920
                 <div class="del_table_btn">
919
                 <div class="del_table_btn">
921
                   <el-button
920
                   <el-button
959
                 </div>
958
                 </div>
960
               </template>
959
               </template>
961
             </el-table-column>
960
             </el-table-column>
962
-            <el-table-column prop="Sat_N" label="晚" min-width="40" align="center">
961
+            <el-table-column prop="Sat_N" label="晚" min-width="50" align="center">
963
               <template slot-scope="scope">
962
               <template slot-scope="scope">
964
                 <div class="del_table_btn">
963
                 <div class="del_table_btn">
965
                   <el-button
964
                   <el-button
1012
             <el-table-column
1011
             <el-table-column
1013
                 prop="Sun_M"
1012
                 prop="Sun_M"
1014
                 label="上"
1013
                 label="上"
1015
-                min-width="40"
1014
+                min-width="50"
1016
                 align="center"
1015
                 align="center"
1017
             >
1016
             >
1018
               <template slot-scope="scope">
1017
               <template slot-scope="scope">
1060
             <el-table-column
1059
             <el-table-column
1061
                 prop="Sun_A"
1060
                 prop="Sun_A"
1062
                 label="下"
1061
                 label="下"
1063
-                min-width="40"
1062
+                min-width="50"
1064
                 align="center"
1063
                 align="center"
1065
             >
1064
             >
1066
               <template slot-scope="scope">
1065
               <template slot-scope="scope">
1108
             <el-table-column
1107
             <el-table-column
1109
                 prop="Sun_N"
1108
                 prop="Sun_N"
1110
                 label="晚"
1109
                 label="晚"
1111
-                min-width="40"
1110
+                min-width="50"
1112
                 align="center"
1111
                 align="center"
1113
             >
1112
             >
1114
               <template slot-scope="scope">
1113
               <template slot-scope="scope">
3221
     },
3220
     },
3222
     // 删除某一单元格内的患者透析排班
3221
     // 删除某一单元格内的患者透析排班
3223
     deletePatientMode(row) {
3222
     deletePatientMode(row) {
3224
-      var week = this.weekDay(column.property);
3225
-        if (week[0] == -1 || week[1] == -1) {
3226
-          return false;
3227
-        }
3228
-        if (this.toDay > this.weekDays[week[0] - 1]) {
3229
-          return false;
3230
-        }
3231
         if (row.schedule_id > 0) {
3223
         if (row.schedule_id > 0) {
3224
+          console.log('22222222');
3232
           this.CancelSchedule(row.schedule_id);
3225
           this.CancelSchedule(row.schedule_id);
3233
         }
3226
         }
3234
         console.log('deletePatientMode',row);
3227
         console.log('deletePatientMode',row);
3652
 
3645
 
3653
     // 单元格的 className 的回调方法
3646
     // 单元格的 className 的回调方法
3654
     cellClass({ row, column, rowIndex, columnIndex }) {
3647
     cellClass({ row, column, rowIndex, columnIndex }) {
3655
-      // console.log('cellClass戴护具',row);
3656
       // 传染病区机器橙色背景
3648
       // 传染病区机器橙色背景
3657
-      if(columnIndex==1&&row.zone_type==2){
3649
+      if(columnIndex==1&&row.zone_type!=1){
3658
         //
3650
         //
3659
         return "table-row-new-class schedule-table-row Infectious_disease";
3651
         return "table-row-new-class schedule-table-row Infectious_disease";
3660
       }
3652
       }
5659
     },
5651
     },
5660
     // 分区选择框
5652
     // 分区选择框
5661
     changePartiton(val) {
5653
     changePartiton(val) {
5662
-
5663
       this.$emit("event1", val);
5654
       this.$emit("event1", val);
5664
       this.partition_id = val;
5655
       this.partition_id = val;
5665
       this.getWeekPanels();
5656
       this.getWeekPanels();
5885
   color: red !important;
5876
   color: red !important;
5886
 }
5877
 }
5887
 .Infectious_disease{
5878
 .Infectious_disease{
5888
-  background-color: orange !important;
5879
+  background-color: red !important;
5889
   color: white;
5880
   color: white;
5890
 }
5881
 }
5891
 .del_table_btn {
5882
 .del_table_btn {

+ 19 - 42
src/xt_pages/workforce/components/historyWeekTable.vue View File

842
          }
842
          }
843
         // 第几周,星期几
843
         // 第几周,星期几
844
         getWeekPanelsOne(1,str).then(response => {
844
         getWeekPanelsOne(1,str).then(response => {
845
-          console.log('wertwetr',response.data.data);
845
+          // console.log('wertwetr',response.data.data);
846
           if (response.data.state == 0) {
846
           if (response.data.state == 0) {
847
             return false
847
             return false
848
           }
848
           }
1092
 
1092
 
1093
           this.scheduleZone.sort(this.compare('sort'))
1093
           this.scheduleZone.sort(this.compare('sort'))
1094
           this.source_scheduleZone = this.scheduleZone
1094
           this.source_scheduleZone = this.scheduleZone
1095
-          console.log("34455555566666",this.source_scheduleZone)
1095
+          // console.log("34455555566666",this.source_scheduleZone)
1096
           this.getSchedules()
1096
           this.getSchedules()
1097
         })
1097
         })
1098
      },
1098
      },
1099
 
1099
 
1100
     cellClass({ row, column, rowIndex, columnIndex }) {
1100
     cellClass({ row, column, rowIndex, columnIndex }) {
1101
 
1101
 
1102
-      if(columnIndex==1&&row.zone_type==2){
1102
+      if(columnIndex==1&&row.zone_type!=1){
1103
         // console.log(columnIndex,row.zone_type);
1103
         // console.log(columnIndex,row.zone_type);
1104
         return "table-row-new-class schedule-table-row Infectious_disease";
1104
         return "table-row-new-class schedule-table-row Infectious_disease";
1105
       }
1105
       }
2807
 
2807
 
2808
       // this.getSchedules()
2808
       // this.getSchedules()
2809
       // this.getWeekPanels()
2809
       // this.getWeekPanels()
2810
-
2811
-     
2812
     },
2810
     },
2813
     changeSchedule_type(val) {
2811
     changeSchedule_type(val) {
2814
       this.$emit('event2', val)
2812
       this.$emit('event2', val)
2838
 
2836
 
2839
       this.newDay.push(this.start_time)
2837
       this.newDay.push(this.start_time)
2840
       this.newDay.push(this.end_time)
2838
       this.newDay.push(this.end_time)
2841
-
2842
-      console.log('44444',this.start_time)
2843
-      console.log('555555',this.end_time )
2844
-      console.log('666666',this.newDay);
2845
-      this.getSchedules()
2839
+      
2840
+      // this.$nextTick(() => {
2841
+        this.getSchedules()
2842
+        // this.source_scheduleZone=[]
2843
+      // })
2844
+      
2846
     },
2845
     },
2847
     // 选择周次
2846
     // 选择周次
2848
     start(){
2847
     start(){
2855
     // 本周日的日期
2854
     // 本周日的日期
2856
       date.setDate(date.getDate() + 6);
2855
       date.setDate(date.getDate() + 6);
2857
       thisweek.end_day = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
2856
       thisweek.end_day = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
2858
-      console.log('asdfgdsafg',thisweek.start_day,thisweek.end_day);
2857
+      // console.log('asdfgdsafg',thisweek.start_day,thisweek.end_day);
2859
 
2858
 
2860
       var date = new Date();
2859
       var date = new Date();
2861
       // 上上周一的日期
2860
       // 上上周一的日期
2862
       date.setDate(date.getDate()-14 - date.getDay() + 1);
2861
       date.setDate(date.getDate()-14 - date.getDay() + 1);
2863
       var month=(date.getMonth() + 1)<10 ? "0"+(date.getMonth()+1):(date.getMonth()+1)
2862
       var month=(date.getMonth() + 1)<10 ? "0"+(date.getMonth()+1):(date.getMonth()+1)
2864
       var day=(date.getDate())<10 ? "0"+(date.getDate()):(date.getDate())
2863
       var day=(date.getDate())<10 ? "0"+(date.getDate()):(date.getDate())
2865
-      console.log('wqertwetwe',month);
2866
       this.start_time = date.getFullYear() + "-" + month + "-" + day + " 00:00:00";
2864
       this.start_time = date.getFullYear() + "-" + month + "-" + day + " 00:00:00";
2867
 
2865
 
2868
       // 上上周日的日期
2866
       // 上上周日的日期
2870
       var month=(date.getMonth() + 1)<10 ? "0"+(date.getMonth()+1):(date.getMonth()+1)
2868
       var month=(date.getMonth() + 1)<10 ? "0"+(date.getMonth()+1):(date.getMonth()+1)
2871
       var day=(date.getDate())<10 ? "0"+(date.getDate()):(date.getDate())
2869
       var day=(date.getDate())<10 ? "0"+(date.getDate()):(date.getDate())
2872
       this.end_time = date.getFullYear() + "-" + month + "-" + day + ' 23:59:59';
2870
       this.end_time = date.getFullYear() + "-" + month + "-" + day + ' 23:59:59';
2873
-      console.log('1234566',this.lastweek.start_day,this.lastweek.end_day) ;
2874
-      this.getAllZones()
2875
-      // this.getSchedules()
2871
+      // console.log('1234566',this.lastweek.start_day,this.lastweek.end_day) ;
2872
+      // this.getAllZones()
2873
+      this.getSchedules()
2876
     },
2874
     },
2877
     getSchedules(){
2875
     getSchedules(){
2878
-
2879
       var partionStr = this.partition_id
2876
       var partionStr = this.partition_id
2880
       var arr = this.zoneIdList.join(',')
2877
       var arr = this.zoneIdList.join(',')
2881
       var str = ""
2878
       var str = ""
2889
         is_before:1,
2886
         is_before:1,
2890
         start_time: this.start_time  ,
2887
         start_time: this.start_time  ,
2891
         end_time:this.end_time  ,
2888
         end_time:this.end_time  ,
2892
-        // start_time: this.lastweek.start_day + " 00:00:00",
2893
-        // end_time: this.lastweek.end_day + ' 23:59:59',
2894
         weekTime: this.theType,
2889
         weekTime: this.theType,
2895
         patitionid: str,
2890
         patitionid: str,
2896
         schedule_type: this.schedule_type,
2891
         schedule_type: this.schedule_type,
2897
       }
2892
       }
2898
-     console.log("str--------",str)
2893
+    //  console.log("str--------",str)
2899
       getSchedulesOne(params).then(response => {
2894
       getSchedulesOne(params).then(response => {
2900
-        console.log('getSchedulesOne',response.data.data);
2895
+        // console.log('getSchedulesOne',response.data.data);
2901
         if (response.data.state == 1) {
2896
         if (response.data.state == 1) {
2902
           this.weekTitle = response.data.data.weekTitle;
2897
           this.weekTitle = response.data.data.weekTitle;
2903
           this.weekTitle = []
2898
           this.weekTitle = []
2904
 
2899
 
2905
-
2906
-
2907
-
2908
           var first = this.getTimestamp(this.start_time)
2900
           var first = this.getTimestamp(this.start_time)
2909
           var first_day =  this.getTime(first, "{y}-{m}-{d}")
2901
           var first_day =  this.getTime(first, "{y}-{m}-{d}")
2910
           this.weekTitle.push(first_day)
2902
           this.weekTitle.push(first_day)
2911
 
2903
 
2912
-
2913
           var second = this.getTimestamp(this.start_time) + 86400
2904
           var second = this.getTimestamp(this.start_time) + 86400
2914
           var soncond_day =  this.getTime(second, "{y}-{m}-{d}")
2905
           var soncond_day =  this.getTime(second, "{y}-{m}-{d}")
2915
            this.weekTitle.push(soncond_day)
2906
            this.weekTitle.push(soncond_day)
2918
           var three_day =  this.getTime(three, "{y}-{m}-{d}")
2909
           var three_day =  this.getTime(three, "{y}-{m}-{d}")
2919
           this.weekTitle.push(three_day)
2910
           this.weekTitle.push(three_day)
2920
 
2911
 
2921
-
2922
           var four = this.getTimestamp(this.start_time) + 259200
2912
           var four = this.getTimestamp(this.start_time) + 259200
2923
           var four_day =  this.getTime(four, "{y}-{m}-{d}")
2913
           var four_day =  this.getTime(four, "{y}-{m}-{d}")
2924
-
2925
            this.weekTitle.push(four_day)
2914
            this.weekTitle.push(four_day)
2926
 
2915
 
2927
           var five = this.getTimestamp(this.start_time) + 345600
2916
           var five = this.getTimestamp(this.start_time) + 345600
2928
           var five_day =  this.getTime(five, "{y}-{m}-{d}")
2917
           var five_day =  this.getTime(five, "{y}-{m}-{d}")
2929
-
2930
           this.weekTitle.push(five_day)
2918
           this.weekTitle.push(five_day)
2931
 
2919
 
2932
           var six = this.getTimestamp(this.start_time) + 432000
2920
           var six = this.getTimestamp(this.start_time) + 432000
2933
           var six_day =  this.getTime(six, "{y}-{m}-{d}")
2921
           var six_day =  this.getTime(six, "{y}-{m}-{d}")
2934
-
2935
           this.weekTitle.push(six_day)
2922
           this.weekTitle.push(six_day)
2936
 
2923
 
2937
-
2938
           var seven = this.getTimestamp(this.start_time) + 518400
2924
           var seven = this.getTimestamp(this.start_time) + 518400
2939
           var seven_day =  this.getTime(seven, "{y}-{m}-{d}")
2925
           var seven_day =  this.getTime(seven, "{y}-{m}-{d}")
2940
-
2941
           this.weekTitle.push(seven_day)
2926
           this.weekTitle.push(seven_day)
2942
 
2927
 
2943
-
2944
-
2945
-
2946
-          console.log("this.weekTitle",this.weekTitle)
2947
-
2948
-
2928
+          // console.log("this.weekTitle",this.weekTitle)
2949
 
2929
 
2950
           this.weekDays = response.data.data.days;
2930
           this.weekDays = response.data.data.days;
2951
 
2931
 
2956
 
2936
 
2957
           var that = this;
2937
           var that = this;
2958
 
2938
 
2959
-       
2960
-
2961
-
2962
          this.scheduleZone.forEach(function (zone, index) {
2939
          this.scheduleZone.forEach(function (zone, index) {
2963
 
2940
 
2964
             that.scheduleZone[index].Mon_M = {
2941
             that.scheduleZone[index].Mon_M = {
3188
           });
3165
           });
3189
 
3166
 
3190
           this.source_scheduleZone = this.scheduleZone
3167
           this.source_scheduleZone = this.scheduleZone
3191
-          console.log("历史aaaa", this.scheduleZone)
3168
+          // console.log("历史aaaa", this.scheduleZone)
3192
         } else {
3169
         } else {
3193
           this.$message.error("网络错误");
3170
           this.$message.error("网络错误");
3194
           return false;
3171
           return false;
3197
     },
3174
     },
3198
     getTimestamp(time) {
3175
     getTimestamp(time) {
3199
       //把时间日期转成时间戳
3176
       //把时间日期转成时间戳
3200
-      console.log("日期", new Date(time));
3177
+      // console.log("日期", new Date(time));
3201
       return new Date(time).getTime() / 1000;
3178
       return new Date(time).getTime() / 1000;
3202
     },
3179
     },
3203
 
3180
 
3336
     color: #fff;
3313
     color: #fff;
3337
   }
3314
   }
3338
   .Infectious_disease{
3315
   .Infectious_disease{
3339
-    background-color: #f78930 !important;
3316
+    background-color: red !important;
3340
     color: white;
3317
     color: white;
3341
   }
3318
   }
3342
 }
3319
 }

+ 7 - 56
src/xt_pages/workforce/components/tableData.vue View File

528
                 v-model="device_id"
528
                 v-model="device_id"
529
                 placeholder="请选择"
529
                 placeholder="请选择"
530
                 style="width: 100%"
530
                 style="width: 100%"
531
+               
531
             >
532
             >
533
+            <!--  @change="changeScheduledialyzer" -->
532
               <el-option
534
               <el-option
533
                   v-for="item in current_devices"
535
                   v-for="item in current_devices"
534
                   :key="item.id"
536
                   :key="item.id"
1247
 
1249
 
1248
     cellClass({ row, column, rowIndex, columnIndex }) {
1250
     cellClass({ row, column, rowIndex, columnIndex }) {
1249
 
1251
 
1250
-      if(columnIndex==1&&row.zone_type==2){
1251
-        // console.log(columnIndex,row.zone_type);
1252
+      if(columnIndex==1&&row.zone_type!=1){
1252
         return "table-row-new-class schedule-table-row Infectious_disease";
1253
         return "table-row-new-class schedule-table-row Infectious_disease";
1253
       }
1254
       }
1254
 
1255
 
2662
         }
2663
         }
2663
       });
2664
       });
2664
     },
2665
     },
2665
-
2666
+    // 调整机号/选择分区
2666
     changePartition(value) {
2667
     changePartition(value) {
2667
       let params = {
2668
       let params = {
2668
         zone_id: value,
2669
         zone_id: value,
2672
       };
2673
       };
2673
       //进行网络请求,获取空排班机位
2674
       //进行网络请求,获取空排班机位
2674
       getSmartDevices(params).then((response) => {
2675
       getSmartDevices(params).then((response) => {
2676
+        console.log('getSmartDevices',response.data.data);
2675
         if (response.data.state == 0) {
2677
         if (response.data.state == 0) {
2676
           return false;
2678
           return false;
2677
         } else {
2679
         } else {
2684
         }
2686
         }
2685
       });
2687
       });
2686
     },
2688
     },
2689
+    // 调整机号/选择班次
2687
     changeScheduleType(schedule_type) {
2690
     changeScheduleType(schedule_type) {
2688
       this.currentData.schedule_type = schedule_type
2691
       this.currentData.schedule_type = schedule_type
2689
       let params = {
2692
       let params = {
2705
 
2708
 
2706
         }
2709
         }
2707
       });
2710
       });
2708
-      // const params = {
2709
-      //   type: schedule_type,
2710
-      //   date: this.currentData.schedule_date
2711
-      // };
2712
-      // getUrgentScheduleInitData(params)
2713
-      //   .then(rs => {
2714
-      //     if (rs.data.state == 1) {
2715
-      //       this.origin_schedules = rs.data.data.schedules;
2716
-      //       this.origin_device_numbers = rs.data.data.device_numbers;
2717
-      //
2718
-      //       var zone_device_map = {};
2719
-      //       for (
2720
-      //         let index = 0;
2721
-      //         index < this.origin_device_numbers.length;
2722
-      //         index++
2723
-      //       ) {
2724
-      //         const device_number = this.origin_device_numbers[index];
2725
-      //         if (
2726
-      //           zone_device_map[device_number.zone_name] == null ||
2727
-      //           zone_device_map[device_number.zone_name] == undefined
2728
-      //         ) {
2729
-      //           zone_device_map[device_number.zone_name] = [];
2730
-      //         }
2731
-      //         zone_device_map[device_number.zone_name].push(device_number);
2732
-      //       }
2733
-      //       this.zone_device_map = zone_device_map;
2734
-      //
2735
-      //       this.zone_names = Object.keys(this.zone_device_map);
2736
-      //       // console.log('8989898989898989',this.zone_names)
2737
-      //
2738
-      //       // console.log(this.current_devices);
2739
-      //
2740
-      //       if (this.zone_names.length > 0) {
2741
-      //         this.zone_name = this.zone_names[0];
2742
-      //         this.current_devices = this.zone_device_map[this.zone_name];
2743
-      //         this.device_id = this.current_devices[0].id;
2744
-      //       }
2745
-      //
2746
-      //
2747
-      //       this.zone_device_options = [
2748
-      //         { values: this.zone_names },
2749
-      //         // { values: this.getDeviceNumberNames(this.current_devices) },
2750
-      //         { values: this.current_devices }
2751
-      //       ];
2752
-      //
2753
-      //     } else {
2754
-      //     }
2755
-      //   })
2756
-      //   .catch(err => {
2757
-      //     this.loading = false;
2758
-      //   });
2759
     },
2711
     },
2760
     submitTiaoX() {
2712
     submitTiaoX() {
2761
       if (this.tiaoZhengType == 1) {
2713
       if (this.tiaoZhengType == 1) {
2831
                   }
2783
                   }
2832
                   this.zone_device_options = [
2784
                   this.zone_device_options = [
2833
                     { values: this.zone_names },
2785
                     { values: this.zone_names },
2834
-                    // { values: this.getDeviceNumberNames(this.current_devices) },
2835
                     { values: this.current_devices }
2786
                     { values: this.current_devices }
2836
                   ];
2787
                   ];
2837
 
2788
 
3404
     color: #fff;
3355
     color: #fff;
3405
   }
3356
   }
3406
   .Infectious_disease{
3357
   .Infectious_disease{
3407
-    background-color: #f78930 !important;
3358
+    background-color: red !important;
3408
     color: white;
3359
     color: white;
3409
   }
3360
   }
3410
 }
3361
 }

+ 2 - 2
src/xt_pages/workforce/components/template_table.vue View File

4487
     // 右侧表格的列回调
4487
     // 右侧表格的列回调
4488
     cellClass({row,column, rowIndex, columnIndex}){
4488
     cellClass({row,column, rowIndex, columnIndex}){
4489
       // console.log('cellClass数据',row);
4489
       // console.log('cellClass数据',row);
4490
-      if(columnIndex==1&&row.zone.type==2){
4490
+      if(columnIndex==1&&row.zone.type!=1){
4491
         //
4491
         //
4492
         return "table-row-new-class schedule-table-row Infectious_disease";
4492
         return "table-row-new-class schedule-table-row Infectious_disease";
4493
       }
4493
       }
4574
     padding: 0 0px !important;
4574
     padding: 0 0px !important;
4575
   }
4575
   }
4576
   .Infectious_disease{
4576
   .Infectious_disease{
4577
-  background-color: orange !important;
4577
+  background-color: red !important;
4578
   color: white;
4578
   color: white;
4579
 }
4579
 }
4580
   .el-table--medium td, .el-table--medium th {
4580
   .el-table--medium td, .el-table--medium th {