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

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

@@ -5663,7 +5663,7 @@ export default {
5663 5663
       this.$emit("event1", val);
5664 5664
       this.partition_id = val;
5665 5665
       this.getWeekPanels();
5666
-      // this.getSchedules();
5666
+      this.getSchedules();
5667 5667
     },
5668 5668
     changeSchedule_type(val) {
5669 5669
       this.$emit("event2", val);
@@ -5774,9 +5774,9 @@ textarea{
5774 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 5782
 .right_contain {

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

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

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

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