Browse Source

5月25日杨青

杨青 1 year ago
parent
commit
106df46144

+ 1 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

@@ -434,6 +434,7 @@ export default {
434 434
       infoDialogVisible:false,
435 435
       selected_date:"",
436 436
       remark:"",
437
+      arr:[],
437 438
     };
438 439
   },
439 440
   methods: {

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

@@ -173,7 +173,7 @@
173 173
       </div>
174 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 177
                   :schedule-zone-row-prop="scheduleZoneRow"
178 178
                   :schedule-zone-prop="scheduleZone" title="" >
179 179
           </HistoryWeekTable>
@@ -333,7 +333,6 @@ export default {
333 333
         this.showtable=true
334 334
         this.showtableOne=false
335 335
         this.$nextTick(() => {
336
-
337 336
           this.$refs.tableDataZero.start()
338 337
         })
339 338
         // console.log('12343545',this.$refs.tableDataZero);
@@ -891,7 +890,9 @@ export default {
891 890
 
892 891
     printScheduleAction: function () {
893 892
       var date = new Date().getTime()
894
-      if (this.activeName == 'lastWeek') {
893
+      if(this.activeName == 'historyWeek'){
894
+        date = date - 14 * 24 * 60 * 60 * 1000
895
+      }else if (this.activeName == 'lastWeek') {
895 896
         date = date - 7 * 24 * 60 * 60 * 1000
896 897
       } else if (this.activeName == 'nextWeek') {
897 898
         date = date + 7 * 24 * 60 * 60 * 1000

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

@@ -791,7 +791,7 @@ export default {
791 791
     this.now_time = date.getTime()/1000
792 792
     this.getAllZones()
793 793
 
794
-    this.changeScheduleType(1)
794
+    // this.changeScheduleType(1)
795 795
     rowNumber = 0;
796 796
     this.modeOptions = this.$store.getters.treatment_mode;
797 797
 

+ 10 - 2
src/xt_pages/workforce/scheduleTablePrint.vue View File

@@ -198,6 +198,7 @@ export default {
198 198
             scheduleZoneRow: [],
199 199
             partitions: {},
200 200
             theWeek: {
201
+              historyWeek: 0,
201 202
               lastWeek: 0,
202 203
               thisWeek: 0,
203 204
               nextWeek: 0,
@@ -217,7 +218,7 @@ export default {
217 218
         this.partition_id = this.$route.query.partition_id
218 219
         var newList = []
219 220
         var arr =  this.$route.query.week_date
220
-
221
+        console.log('1234325431',this.$route.query);
221 222
         if(arr!=""){
222 223
           var newArr = arr.split(",")
223 224
 
@@ -294,6 +295,7 @@ export default {
294 295
                 }
295 296
                 var partitions = response.data.data.partitions
296 297
                 console.log("分区",partitions)
298
+                this.theWeek.historyWeek = this.theWeek.thisWeek - 2 
297 299
                 this.theWeek.thisWeek = response.data.data.theWeek
298 300
                 this.theWeek.lastWeek = this.theWeek.thisWeek - 1
299 301
                 this.theWeek.nextWeek = this.theWeek.thisWeek + 1
@@ -473,6 +475,9 @@ export default {
473 475
         },
474 476
         getSchedules() {
475 477
             var theType = 2;
478
+            if(this.$route.query.weekTime == "historyWeek"){
479
+                theType =0
480
+            }
476 481
             if(this.$route.query.weekTime == "lastWeek"){
477 482
                theType = 1
478 483
             }
@@ -863,6 +868,9 @@ export default {
863 868
         },
864 869
         getPatientSheduleCount(){
865 870
             var theType = 2;
871
+            if(this.$route.query.weekTime == "historyWeek"){
872
+                theType =0
873
+            }
866 874
             if(this.$route.query.weekTime == "lastWeek"){
867 875
                theType = 1
868 876
             }
@@ -894,7 +902,7 @@ export default {
894 902
                if(response.data.state == 1){
895 903
                   var list = response.data.data.list
896 904
                   console.log("list22222",list)
897
-
905
+                    console.log('asdfgfffffff',response.data.data);
898 906
                   this.scheduleCountList = list
899 907
                   var total = response.data.data.total
900 908
                   console.log("totalw222",total)