Browse Source

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

test_user 2 years ago
parent
commit
843fb4125d

+ 5 - 7
src/xt_pages/workforce/appointment.vue View File

172
         </div>
172
         </div>
173
       </div>
173
       </div>
174
         </edit-table-data>
174
         </edit-table-data>
175
-       
175
+
176
         <HistoryWeekTable v-show="showtable" ref="tableDataZero"  :week-time="activeName" partitions-prop="partitions"
176
         <HistoryWeekTable v-show="showtable" ref="tableDataZero"  :week-time="activeName" partitions-prop="partitions"
177
                   :schedule-zone-row-prop="scheduleZoneRow"
177
                   :schedule-zone-row-prop="scheduleZoneRow"
178
-                  :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
179
-                  @event2="changeSchedule"  @event3="changeWeekDay">
178
+                  :schedule-zone-prop="scheduleZone" title="" >
180
           </HistoryWeekTable>
179
           </HistoryWeekTable>
181
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
180
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
182
         <el-form :model="form" ref="form" label-width="90px" :rules="rules">
181
         <el-form :model="form" ref="form" label-width="90px" :rules="rules">
286
         nextWeek: 0,
285
         nextWeek: 0,
287
         nextTwoWeek: 0
286
         nextTwoWeek: 0
288
       },
287
       },
289
-      
288
+
290
       tableList: [],
289
       tableList: [],
291
       weekTime: "",
290
       weekTime: "",
292
       schedule_type: 0,
291
       schedule_type: 0,
446
         this.$nextTick(() => {
445
         this.$nextTick(() => {
447
           childrenRefs.forEach(child => child.$forceUpdate())
446
           childrenRefs.forEach(child => child.$forceUpdate())
448
         })
447
         })
449
-
450
         var that = this
448
         var that = this
451
 
449
 
452
         if (partitions.length > 0) {
450
         if (partitions.length > 0) {
2365
 
2363
 
2366
       return next_monday
2364
       return next_monday
2367
     },
2365
     },
2368
-    // 
2366
+    //
2369
     getThreeWeekList() {
2367
     getThreeWeekList() {
2370
       var params = {
2368
       var params = {
2371
         start_time: this.start_time,
2369
         start_time: this.start_time,
3070
     },
3068
     },
3071
     getlist() {
3069
     getlist() {
3072
       getScheduleTemplate().then(response => {
3070
       getScheduleTemplate().then(response => {
3073
-        
3071
+
3074
         if (response.data.state == 1) {
3072
         if (response.data.state == 1) {
3075
           var template = response.data.data.template
3073
           var template = response.data.data.template
3076
           console.log('12243254',response.data.data);
3074
           console.log('12243254',response.data.data);

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

5663
       this.$emit("event1", val);
5663
       this.$emit("event1", val);
5664
       this.partition_id = val;
5664
       this.partition_id = val;
5665
       this.getWeekPanels();
5665
       this.getWeekPanels();
5666
-      // this.getSchedules();
5666
+      this.getSchedules();
5667
     },
5667
     },
5668
     changeSchedule_type(val) {
5668
     changeSchedule_type(val) {
5669
       this.$emit("event2", val);
5669
       this.$emit("event2", val);
5774
     padding: 0 0px ;
5774
     padding: 0 0px ;
5775
 
5775
 
5776
 }
5776
 }
5777
-//  .el-table td .cell:hover {
5778
-//   background: #22eeddc4 !important;
5779
-// }
5777
+.el-table {
5778
+    font-size: 12px !important;
5779
+}
5780
 
5780
 
5781
 }
5781
 }
5782
 .right_contain {
5782
 .right_contain {

+ 9 - 11
src/xt_pages/workforce/components/historyWeekTable.vue View File

1
 <template>
1
 <template>
2
-  <div id="table_data"> 
2
+  <div id="table_data">
3
      <div class="cell clearfix" >
3
      <div class="cell clearfix" >
4
       <span>选择周次:</span>
4
       <span>选择周次:</span>
5
       <el-date-picker
5
       <el-date-picker
96
         :data="scheduleZone"
96
         :data="scheduleZone"
97
         :span-method="objectSpanMethod"
97
         :span-method="objectSpanMethod"
98
         @cell-click="clickThis"
98
         @cell-click="clickThis"
99
-        
99
+
100
         :summary-method="getSummaries"
100
         :summary-method="getSummaries"
101
         show-summary
101
         show-summary
102
         :row-class-name="tableRowClassName"
102
         :row-class-name="tableRowClassName"
701
         this.isShowXiaWu = true
701
         this.isShowXiaWu = true
702
         this.isShowWanShang = true
702
         this.isShowWanShang = true
703
       }
703
       }
704
-      
705
-
706
 
704
 
707
     },
705
     },
708
      week_type:function () {
706
      week_type:function () {
814
 
812
 
815
   },
813
   },
816
   methods: {
814
   methods: {
817
-   
815
+
818
     getData(){
816
     getData(){
819
       return this.scheduleZone
817
       return this.scheduleZone
820
     },
818
     },
1791
       sums[22]="总人数:"+ sums[22] +"\n"+result
1789
       sums[22]="总人数:"+ sums[22] +"\n"+result
1792
 
1790
 
1793
       return sums;
1791
       return sums;
1794
-      
1792
+
1795
     },
1793
     },
1796
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1794
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1797
 
1795
 
1838
       this.$refs.singleTable.setCurrentRow(row);
1836
       this.$refs.singleTable.setCurrentRow(row);
1839
       this.currentData.patient_id = 0;
1837
       this.currentData.patient_id = 0;
1840
     },
1838
     },
1841
-    
1839
+
1842
     getSchedulePatients() {
1840
     getSchedulePatients() {
1843
       getSchedulePatients(this.patientQuery).then(response => {
1841
       getSchedulePatients(this.patientQuery).then(response => {
1844
         if (response.data.state == 1) {
1842
         if (response.data.state == 1) {
2801
       this.$emit('event1', val)
2799
       this.$emit('event1', val)
2802
       this.partition_id = val
2800
       this.partition_id = val
2803
       this.getWeekPanels()
2801
       this.getWeekPanels()
2804
-      
2802
+
2805
       this.getgetSchedules()
2803
       this.getgetSchedules()
2806
     },
2804
     },
2807
     changeSchedule_type(val) {
2805
     changeSchedule_type(val) {
2808
       this.$emit('event2', val)
2806
       this.$emit('event2', val)
2809
       this.schedule_type = val
2807
       this.schedule_type = val
2810
-     
2808
+
2811
       this.getgetSchedules()
2809
       this.getgetSchedules()
2812
     },
2810
     },
2813
     changeWeekDay(val) {
2811
     changeWeekDay(val) {
2854
         patitionid: str,
2852
         patitionid: str,
2855
         schedule_type: this.schedule_type,
2853
         schedule_type: this.schedule_type,
2856
       }
2854
       }
2857
-      
2855
+
2858
       getSchedulesOne(params).then(response => {
2856
       getSchedulesOne(params).then(response => {
2859
         if (response.data.state == 1) {
2857
         if (response.data.state == 1) {
2860
           this.weekTitle = response.data.data.weekTitle;
2858
           this.weekTitle = response.data.data.weekTitle;
3125
       })();
3123
       })();
3126
     };
3124
     };
3127
   },
3125
   },
3128
-  
3126
+
3129
 };
3127
 };
3130
 </script>
3128
 </script>
3131
 
3129
 

+ 14 - 11
src/xt_pages/workforce/components/tableData.vue View File

878
     },
878
     },
879
     weekTime: function() {
879
     weekTime: function() {
880
       // 
880
       // 
881
-      // if(this.weekTime != 'historyWeek'){
881
+      if(this.weekTime != 'historyWeek'){
882
         console.log('12343455',this.weekTime);
882
         console.log('12343455',this.weekTime);
883
         var theType = this.weekType(this.weekTime);
883
         var theType = this.weekType(this.weekTime);
884
         this.theType = theType
884
         this.theType = theType
885
         this.getSchedules();
885
         this.getSchedules();
886
-      // }
886
+      }
887
       
887
       
888
     },
888
     },
889
     scheduleZoneRow: function() {
889
     scheduleZoneRow: function() {
992
           if (response.data.state == 0) {
992
           if (response.data.state == 0) {
993
             return false
993
             return false
994
           }
994
           }
995
+          console.log("触发232332323232",response.data.data)
995
           var partitions = response.data.data.partitions
996
           var partitions = response.data.data.partitions
996
           console.log("partitions",partitions)
997
           console.log("partitions",partitions)
997
           this.theWeek.thisWeek = response.data.data.theWeek
998
           this.theWeek.thisWeek = response.data.data.theWeek
998
-
999
+          // this.theWeek.historyWeek=this.theWeek.thisWeek - 2
999
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1000
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1000
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1001
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1001
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
1002
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
2018
           this.schedulesGroup = schedulesGroup
2019
           this.schedulesGroup = schedulesGroup
2019
 
2020
 
2020
           var that = this;
2021
           var that = this;
2021
-
2022
+          
2022
           this.scheduleZone.forEach(function (zone, index) {
2023
           this.scheduleZone.forEach(function (zone, index) {
2023
 
2024
 
2024
             that.scheduleZone[index].Mon_M = {
2025
             that.scheduleZone[index].Mon_M = {
2214
 
2215
 
2215
 
2216
 
2216
             that.scheduleZone[index].total = 0;
2217
             that.scheduleZone[index].total = 0;
2217
-
2218
+            
2218
             if (response.data.data.schdules.length > 0) {
2219
             if (response.data.data.schdules.length > 0) {
2219
               theSchedules.forEach(function (schedule, sindex) {
2220
               theSchedules.forEach(function (schedule, sindex) {
2220
 
2221
 
2249
           });
2250
           });
2250
 
2251
 
2251
           this.source_scheduleZone = this.scheduleZone
2252
           this.source_scheduleZone = this.scheduleZone
2252
-          console.log("------------aaaa", this.scheduleZone)
2253
+         
2253
         } else {
2254
         } else {
2254
           this.$message.error("网络错误");
2255
           this.$message.error("网络错误");
2255
           return false;
2256
           return false;
2967
     weekType(weekTime) {
2968
     weekType(weekTime) {
2968
       var theType = 2;
2969
       var theType = 2;
2969
       switch (weekTime) {
2970
       switch (weekTime) {
2970
-        case "historyWeek":
2971
-          theType = 0;
2972
-          break;
2971
+        // case "historyWeek":
2972
+        //   theType = 0;
2973
+        //   break;
2973
         case "lastWeek":
2974
         case "lastWeek":
2974
           theType = 1;
2975
           theType = 1;
2975
           break;
2976
           break;
3345
 .schedule-table-row td:hover {
3346
 .schedule-table-row td:hover {
3346
   background: rgb(88, 162, 236) !important;
3347
   background: rgb(88, 162, 236) !important;
3347
 }
3348
 }
3348
-
3349
+.el-table {
3350
+    font-size: 12px !important;
3351
+}
3349
 .schedule-table-row td .cell {
3352
 .schedule-table-row td .cell {
3350
-  font-size: 12px;
3353
+  font-size: 10px;
3351
   white-space:normal  !important;
3354
   white-space:normal  !important;
3352
   // normal
3355
   // normal
3353
 }
3356
 }