Преглед на файлове

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

陈少旭 преди 1 ден
родител
ревизия
49a92a035c

+ 31 - 12
package-lock.json Целия файл

@@ -2114,15 +2114,15 @@
2114 2114
       }
2115 2115
     },
2116 2116
     "caniuse-db": {
2117
-      "version": "1.0.30001718",
2118
-      "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001718.tgz",
2119
-      "integrity": "sha512-XJRbbI1T9yUmA3mqXSmN2Zn7LAoUSvQd//XymssqZcsBI+sR1j87ZPbPQcJsAsR/MKhpa4ZSOs0wf1DDjbUcfQ==",
2117
+      "version": "1.0.30001720",
2118
+      "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001720.tgz",
2119
+      "integrity": "sha512-mLSrTF00L/GGGpaNlm1SM/TjhI9ZMKyjDQkA7i1hNsRS6s5bvDrjwub/eVymxoO0FBazwEGsBJTiOA4LX5nZmQ==",
2120 2120
       "dev": true
2121 2121
     },
2122 2122
     "caniuse-lite": {
2123
-      "version": "1.0.30001718",
2124
-      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz",
2125
-      "integrity": "sha512-AflseV1ahcSunK53NfEs9gFWgOEmzr0f+kaMFA4xiLZlr9Hzt7HxcSpIFcnNCUkz6R6dWKa54rUz3HUmI3nVcw==",
2123
+      "version": "1.0.30001720",
2124
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001720.tgz",
2125
+      "integrity": "sha512-Ec/2yV2nNPwb4DnTANEV99ZWwm3ZWfdlfkQbWSDDt+PsXEVYwlhPH8tdMaPunYTKKmz7AnHi2oNEi1GcmKCD8g==",
2126 2126
       "dev": true
2127 2127
     },
2128 2128
     "canvg": {
@@ -3875,9 +3875,9 @@
3875 3875
       "dev": true
3876 3876
     },
3877 3877
     "electron-to-chromium": {
3878
-      "version": "1.5.159",
3879
-      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.159.tgz",
3880
-      "integrity": "sha512-CEvHptWAMV5p6GJ0Lq8aheyvVbfzVrv5mmidu1D3pidoVNkB3tTBsTMVtPJ+rzRK5oV229mCLz9Zj/hNvU8GBA==",
3878
+      "version": "1.5.161",
3879
+      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.161.tgz",
3880
+      "integrity": "sha512-hwtetwfKNZo/UlwHIVBlKZVdy7o8bIZxxKs0Mv/ROPiQQQmDgdm5a+KvKtBsxM8ZjFzTaCeLoodZ8jiBE3o9rA==",
3881 3881
       "dev": true
3882 3882
     },
3883 3883
     "elegant-spinner": {
@@ -3993,9 +3993,9 @@
3993 3993
       }
3994 3994
     },
3995 3995
     "es-abstract": {
3996
-      "version": "1.23.10",
3997
-      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.10.tgz",
3998
-      "integrity": "sha512-MtUbM072wlJNyeYAe0mhzrD+M6DIJa96CZAOBBrhDbgKnB4MApIKefcyAB1eOdYn8cUNZgvwBvEzdoAYsxgEIw==",
3996
+      "version": "1.24.0",
3997
+      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz",
3998
+      "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==",
3999 3999
       "dev": true,
4000 4000
       "requires": {
4001 4001
         "array-buffer-byte-length": "^1.0.2",
@@ -4025,7 +4025,9 @@
4025 4025
         "is-array-buffer": "^3.0.5",
4026 4026
         "is-callable": "^1.2.7",
4027 4027
         "is-data-view": "^1.0.2",
4028
+        "is-negative-zero": "^2.0.3",
4028 4029
         "is-regex": "^1.2.1",
4030
+        "is-set": "^2.0.3",
4029 4031
         "is-shared-array-buffer": "^1.0.4",
4030 4032
         "is-string": "^1.1.1",
4031 4033
         "is-typed-array": "^1.1.15",
@@ -4040,6 +4042,7 @@
4040 4042
         "safe-push-apply": "^1.0.0",
4041 4043
         "safe-regex-test": "^1.1.0",
4042 4044
         "set-proto": "^1.0.0",
4045
+        "stop-iteration-iterator": "^1.1.0",
4043 4046
         "string.prototype.trim": "^1.2.10",
4044 4047
         "string.prototype.trimend": "^1.0.9",
4045 4048
         "string.prototype.trimstart": "^1.0.8",
@@ -6674,6 +6677,12 @@
6674 6677
       "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",
6675 6678
       "dev": true
6676 6679
     },
6680
+    "is-negative-zero": {
6681
+      "version": "2.0.3",
6682
+      "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz",
6683
+      "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",
6684
+      "dev": true
6685
+    },
6677 6686
     "is-number": {
6678 6687
       "version": "3.0.0",
6679 6688
       "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
@@ -13672,6 +13681,16 @@
13672 13681
         "readable-stream": "^2.0.1"
13673 13682
       }
13674 13683
     },
13684
+    "stop-iteration-iterator": {
13685
+      "version": "1.1.0",
13686
+      "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",
13687
+      "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==",
13688
+      "dev": true,
13689
+      "requires": {
13690
+        "es-errors": "^1.3.0",
13691
+        "internal-slot": "^1.1.0"
13692
+      }
13693
+    },
13675 13694
     "stream-browserify": {
13676 13695
       "version": "2.0.2",
13677 13696
       "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz",

+ 10 - 0
src/api/dialysis.js Целия файл

@@ -590,4 +590,14 @@ export function getPatientDialysisSolutionByPatientId(params){
590 590
     method:"Get",
591 591
     params:params,
592 592
   })
593
+}
594
+
595
+
596
+export function getBedNumberList(params){
597
+  console.log("099999999999999990",params)
598
+  return request({
599
+    url:"/api/schedule/getbednumberlist",
600
+    method:"Get",
601
+    params:params,
602
+  })
593 603
 }

+ 29 - 25
src/xt_pages/Pharmacy/DrugDispensing.vue Целия файл

@@ -965,33 +965,37 @@ export default {
965 965
           return;
966 966
         }
967 967
         if (index === 7) {
968
-          // 单位裁切
969
-          data.forEach((el, index) => {
970
-            dose_unit.push(this.getDose_unit(el.total));
971
-          });
972 968
 
973
-          dose_unit = this.unique_unit(dose_unit);
974
-          console.log(dose_unit,'dose_unit')
975
-          // // 数据合计
976
-          data.forEach((el, index) => {
977
-            if (this.getDose_unit(el.total) === dose_unit[0]) {
978
-              unit_1.push(parseInt(el.total));
979
-            }
980
-            if (this.getDose_unit(el.total) === dose_unit[1]) {
981
-              unit_2.push(parseInt(el.total));
969
+          if(data!=unll && data.length>0){
970
+            // 单位裁切
971
+            data.forEach((el, index) => {
972
+                    dose_unit.push(this.getDose_unit(el.total));
973
+                  });
974
+
975
+                  dose_unit = this.unique_unit(dose_unit);
976
+                  console.log(dose_unit,'dose_unit')
977
+                  // // 数据合计
978
+                  data.forEach((el, index) => {
979
+                    if (this.getDose_unit(el.total) === dose_unit[0]) {
980
+                      unit_1.push(parseInt(el.total));
981
+                    }
982
+                    if (this.getDose_unit(el.total) === dose_unit[1]) {
983
+                      unit_2.push(parseInt(el.total));
984
+                    }
985
+                  });
986
+                  unit_1 = eval(unit_1.join("+"));
987
+                  unit_2 = eval(unit_2.join("+"));
988
+
989
+                  if (dose_unit[0] == undefined) {
990
+                    sums[index] = "";
991
+                  } else if (dose_unit[1] == undefined || unit_2 == undefined) {
992
+                    sums[index] = `${unit_1}${dose_unit[0]}`;
993
+                  } else {
994
+                    sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
995
+                  }
996
+                  return;
982 997
             }
983
-          });
984
-          unit_1 = eval(unit_1.join("+"));
985
-          unit_2 = eval(unit_2.join("+"));
986
-
987
-          if (dose_unit[0] == undefined) {
988
-            sums[index] = "";
989
-          } else if (dose_unit[1] == undefined || unit_2 == undefined) {
990
-            sums[index] = `${unit_1}${dose_unit[0]}`;
991
-          } else {
992
-            sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
993
-          }
994
-          return;
998
+            
995 999
         }
996 1000
       });
997 1001
 

+ 8 - 0
src/xt_pages/dialysis/PatientBox.vue Целия файл

@@ -120,6 +120,14 @@
120 120
             </span>
121 121
           </span>
122 122
         </p>
123
+        <p>
124
+          <span v-if="$store.getters.xt_user.org.id==10777 || $store.getters.xt_user.org.id==0">
125
+              处方脱水量:
126
+            <span v-if=" schedule.prescription && schedule.prescription.prescription_water > 0">
127
+               <span> {{schedule.prescription? schedule.prescription.prescription_water: ""}}L</span>
128
+            </span>
129
+          </span>
130
+        </p>
123 131
         <p>
124 132
            <span  v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
125 133
              抗凝剂:

+ 5 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_eightysix.vue Целия файл

@@ -638,12 +638,13 @@
638 638
                         <div class="inline_block" style=" flex: 2">
639 639
                           血管通路:
640 640
                           <div class="under_line" style="width: 70%; text-align: center" >
641
+
641 642
                             {{
642
-                              record.assessment_before_dislysis &&
643
-                              record.assessment_before_dislysis.blood_access_part_id
644
-                                ? record.assessment_before_dislysis.blood_access_part_id : ''
643
+                              record.prescription &&
644
+                              record.prescription.blood_access_part_id
645
+                                ? record.prescription.blood_access_part_id : ''
645 646
                             }}
646
-                            {{QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id) }}
647
+                            {{QueryPartById(record.prescription.blood_access) }}
647 648
                           </div>
648 649
                         </div>             
649 650
                         <div class="inline_block" style=" flex: 1">

+ 40 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Целия файл

@@ -87,7 +87,7 @@
87 87
 
88 88
           <el-col :span="8">
89 89
             <el-form-item label="透析机型号" :prop="isName('透析机型号')"
90
-              :rules="isCheckmust('透析机型号')" v-if="isShow('透析机型号')">
90
+              :rules="isCheckmust('透析机型号')">
91 91
               <el-select v-model="assessmentBeforeDislysis.machine_type">
92 92
                 <el-option :key="0" label="请选择" :value="0"></el-option>
93 93
 
@@ -861,7 +861,7 @@
861 861
   import axios from 'axios'
862 862
   import multiSelectBox from './MultiSelectBox'
863 863
   import { getDataConfig } from '@/utils/data'
864
-  import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation } from '@/api/dialysis'
864
+  import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation,getBedNumberList } from '@/api/dialysis'
865 865
   import store from '@/store'
866 866
   import { uParseTime } from '@/utils/tools'
867 867
   import { parseTime } from '@/utils'
@@ -1137,8 +1137,46 @@
1137 1137
         }
1138 1138
         return false
1139 1139
       },
1140
+      getBedNumberList(){
1141
+          var patient_id = ""
1142
+         if(this.patient.id != undefined && this.patient.id >0){
1143
+            patient_id =  parseInt(this.$route.query.patient_id) 
1144
+          }
1145
+          if(this.patient.id == 'undefined' || this.patient.id ==0){
1146
+          
1147
+             patient_id = parseInt(this.$route.query.patient_id) 
1148
+          }
1149
+          if(this.$route.query.patient_id == undefined || this.$route.query.patient_id == 0 ){
1150
+             
1151
+              patient_id = this.patient.id
1152
+          }
1153
+
1154
+          var params = {
1155
+            patient_id:patient_id,
1156
+            record_date:this.record_date,
1157
+          }
1158
+          console.log("params----",params)
1159
+          getBedNumberList(params).then(response=>{
1160
+             if(response.data.state == 1){
1161
+               var number = response.data.data.number
1162
+               if(number!=undefined){
1163
+                if(this.assessmentBeforeDislysis.machine_type == ""){
1164
+                  this.assessmentBeforeDislysis.machine_type = number.number_type
1165
+                }
1166
+                 
1167
+               }
1168
+             }
1169
+          })
1170
+       
1171
+      },
1140 1172
 
1141 1173
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation,lastAssessment,record_date) {
1174
+          
1175
+       
1176
+
1177
+        if(this.$store.getters.xt_user.template_info.org_id == 10777 || this.$store.getters.xt_user.template_info.org_id == 0){
1178
+           this.getBedNumberList()
1179
+        }
1142 1180
 
1143 1181
         let filedList = store.getters.xt_user.fileds;
1144 1182
 

+ 41 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

@@ -3017,6 +3017,14 @@ mu
3017 3017
             } else if (schedual.schedule_type == 3) {
3018 3018
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
3019 3019
             }
3020
+           }else if(this.$store.getters.xt_user.org.id == 10777){
3021
+              if (schedual.schedule_type == 1) {
3022
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
3023
+            } else if (schedual.schedule_type == 2) {
3024
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:30'
3025
+            } else if (schedual.schedule_type == 3) {
3026
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
3027
+            }
3020 3028
            }else if(this.$store.getters.xt_user.org.id == 10440){
3021 3029
               if (schedual.schedule_type == 1) {
3022 3030
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
@@ -5311,6 +5319,10 @@ mu
5311 5319
          if(response.data.state == 1){
5312 5320
           var patientBefor = response.data.data.patientBefor
5313 5321
           var prescription = response.data.data.prescription
5322
+          var access  = response.data.data.access
5323
+          console.log("accesss====",access)
5324
+
5325
+
5314 5326
           if(patientBefor!=undefined){
5315 5327
 
5316 5328
             if(this.$store.getters.xt_user.template_info.org_id == 10727  ||this.$store.getters.xt_user.template_info.org_id == 10740 ||this.$store.getters.xt_user.template_info.org_id == 10742||this.$store.getters.xt_user.template_info.org_id == 10745||this.$store.getters.xt_user.template_info.org_id == 10751||this.$store.getters.xt_user.template_info.org_id == 10697||this.$store.getters.xt_user.template_info.org_id == 10757||this.$store.getters.xt_user.template_info.org_id == 10768){
@@ -5354,9 +5366,38 @@ mu
5354 5366
             this.dialysisPrescription.prescription_water = prescription.prescription_water
5355 5367
           }
5356 5368
 
5369
+
5370
+         
5371
+          if(this.$store.getters.xt_user.template_info.org_id == 10777 || this.$store.getters.xt_user.template_info.org_id == 10164){
5372
+             
5373
+            if (access!=undefined) {
5374
+             var blood_access =  this.getBloodAceess(access.blood_access_part_opera_id)
5375
+             if(this.dialysisPrescription.blood_access == ""){
5376
+              this.dialysisPrescription.blood_access = blood_access
5377
+             }
5378
+             if(this.dialysisPrescription.blood_access_part_id == "" ){
5379
+               this.dialysisPrescription.blood_access_part_id = access.blood_access_part_id
5380
+             }
5381
+            
5382
+  
5383
+            }
5384
+          }
5385
+
5386
+        
5387
+          
5357 5388
          }
5358 5389
       })
5359 5390
     },
5391
+    getBloodAceess(name){
5392
+      console.log("blood_access_option",this.blood_access_option)
5393
+      var id =0 
5394
+      for(let i=0;i<this.blood_access_option.length;i++){
5395
+         if(name === this.blood_access_option[i].name){
5396
+            id = this.blood_access_option[i].id
5397
+         }
5398
+      }
5399
+      return id
5400
+    },
5360 5401
     getPatientDialysisSolution(){
5361 5402
         var params = {
5362 5403
           patient_id:patient_id,

+ 21 - 3
src/xt_pages/dialysis/template/DialysisPrintOrdereightsix.vue Целия файл

@@ -592,8 +592,11 @@
592 592
                       <div class="inline_block" style="flex: 2">
593 593
                         血管通路:
594 594
                         <div class="under_line" style="width: 60%; text-align: center">
595
-                          {{ predialysis.blood_access_part_id }}
596
-                          {{ predialysis.blood_access_part_opera_name }}
595
+                          <!-- {{ predialysis.blood_access_part_id }}
596
+                          {{ predialysis.blood_access_part_opera_name }} -->
597
+                           {{ prescription.blood_access_part_id }}
598
+                           {{getBloodAceess(prescription.blood_access)}}
599
+                          
597 600
                         </div>
598 601
                       </div>
599 602
                       <div class="inline_block" style="flex: 1">
@@ -1932,6 +1935,7 @@
1932 1935
         },
1933 1936
         org_id: 0,
1934 1937
         projectsOne: [],
1938
+        blood_access_option:[],
1935 1939
       };
1936 1940
     },
1937 1941
     methods: {
@@ -3102,7 +3106,17 @@
3102 3106
         }else{
3103 3107
           this.$message.success('核对完成')
3104 3108
         }
3105
-      }
3109
+      },
3110
+      getBloodAceess(id){
3111
+        console.log("blood_access_option",this.blood_access_option)
3112
+        var name = ""
3113
+        for(let i=0;i<this.blood_access_option.length;i++){
3114
+          if(id === this.blood_access_option[i].id){
3115
+              name = this.blood_access_option[i].name
3116
+          }
3117
+        }
3118
+        return  name
3119
+     },
3106 3120
     },
3107 3121
     watch: {
3108 3122
       "patientInfo.gender": function () {
@@ -3135,6 +3149,10 @@
3135 3149
   
3136 3150
     },
3137 3151
     created() {
3152
+      this.blood_access_option = getDataConfig(
3153
+          'hemodialysis',
3154
+          'vascular_access_desc'
3155
+      )
3138 3156
       console.log('dddddd',this.$parent.childResponse);
3139 3157
       this.way_arr = getDataConfig("hemodialysis", "way");
3140 3158
       this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");

+ 4 - 0
src/xt_pages/management/components/ManageForm.vue Целия файл

@@ -657,6 +657,10 @@ export default {
657 657
         this.form.revers_mode = 0;
658 658
       }
659 659
 
660
+      if(this.form.zone_id == ""){
661
+         this.form.zone_id = 0
662
+      }
663
+
660 664
       this.$refs[formName].validate(valid => {
661 665
         if (valid) {
662 666
           SaveManageInfo(this.form).then(response => {

+ 20 - 0
src/xt_pages/user/vascularAccess.vue Целия файл

@@ -32,6 +32,13 @@
32 32
             <span>{{scope.row.other_vascular}}</span>
33 33
          </template>
34 34
       </el-table-column>
35
+      
36
+      <el-table-column prop="date" label="启用状态" width="120" align="center">
37
+          <template slot-scope="scope">
38
+             {{ getUserStatus(scope.row.user_status)}}
39
+          </template>
40
+      </el-table-column>
41
+      
35 42
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36 43
           <template slot-scope="scope">
37 44
             <span>{{ getTime(scope.row.first_start_time)}}</span>
@@ -570,6 +577,19 @@
570 577
       }
571 578
     },
572 579
     methods: {
580
+      getUserStatus(val){
581
+        var name = ""
582
+        if(val == 1){
583
+           name ="启用"
584
+        }
585
+        if(val == 2){
586
+           name ="停用"
587
+        }
588
+        if(val == 3){
589
+           name ="备用"
590
+        }
591
+        return name
592
+      },
573 593
       clickuseradvicecell(row, column, cell, event) {
574 594
       },
575 595
       onTranPatient: function(tranPatient) {

+ 33 - 15
src/xt_pages/workforce/appointment.vue Целия файл

@@ -842,6 +842,7 @@ export default {
842 842
       // }
843 843
 
844 844
       if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
845
+
845 846
         this.export_file_step_twos()
846 847
       }else{
847 848
         this.export_file_step_two()
@@ -851,7 +852,7 @@ export default {
851 852
       // this.export_file_step_twos()
852 853
     },
853 854
     export_file_step_two: function(){
854
-
855
+    
855 856
       this.downloadLoading = true
856 857
       import('@/vendor/Export2Excel').then(excel => {
857 858
         const filterVal = [
@@ -970,6 +971,8 @@ export default {
970 971
 
971 972
     },
972 973
     export_file_step_twos: function(){
974
+
975
+      console.log("this.export_type00000000000000",this.tableList)
973 976
       this.downloadLoading = true
974 977
       import('@/vendor/Export2Excel').then(excel => {
975 978
         const filterVal = [
@@ -1017,6 +1020,9 @@ export default {
1017 1020
             }
1018 1021
             i++
1019 1022
           }
1023
+          console.log("lsit--------------------",list)
1024
+          console.log("表格-------------------",this.tableList)
1025
+
1020 1026
           if(this.week_date!= '' || this.schedule_type!=0){
1021 1027
             if(this.week_date=='周一' &&this.schedule_type==0 ){
1022 1028
               multiHeader=[['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '']]
@@ -1156,22 +1162,25 @@ export default {
1156 1162
               header = ['', '', '晚上']
1157 1163
               merges = ['A1:A2', 'B1:B2', 'C1']
1158 1164
             }
1159
-          }
1160
-          else{
1165
+          }else{
1161 1166
             multiHeader = [['区号', '机号', '周一' + "(" + this.days[0] + ")", '', '', '周二' + "(" + this.days[1] + ")", '', '', '周三' + "(" + this.days[2] + ")", '', '', '周四' + "(" + this.days[3] + ")", '', '', '周五' + "(" + this.days[4] + ")", '', '', '周六' + "(" + this.days[5] + ")", '', '', '周日' + "(" + this.days[6] + ")", '', '' ]]
1162 1167
             header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
1163 1168
             merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1']
1164 1169
           }
1165 1170
 
1166
-          var data = []
1171
+          
1167 1172
 
1173
+          var data = []
1174
+          console.log("this.tableList=--------------------",this.tableList)
1168 1175
           this.tableList.map(item => {
1169 1176
             data.push(Object.values(item))
1170 1177
           })
1171 1178
 
1172 1179
           const filename = '排班模版'
1173 1180
 
1174
-          console.log('333333333',data),
1181
+          console.log('333333333',data)
1182
+
1183
+          // return false
1175 1184
           excel.export_json_to_excel3({
1176 1185
 
1177 1186
             multiHeader,
@@ -3933,7 +3942,7 @@ export default {
3933 3942
         partition_id: this.partition_id,
3934 3943
         schedule_type: this.schedule_type
3935 3944
       }
3936
-      // console.log("params32323232323223", params)
3945
+      console.log("日本params32323232323223", params)
3937 3946
       getThreeWeekList(params).then(response => {
3938 3947
         if (response.data.state == 1) {
3939 3948
           var partitions = response.data.data.partitions
@@ -4239,11 +4248,16 @@ export default {
4239 4248
 
4240 4249
           var lastend = this.getTimestamp(last_end) - 28800
4241 4250
           console.log("week",this.export_type)
4251
+          console.log("activeName",this.activeName)
4242 4252
           if (this.export_type == 0) {
4243 4253
             for (let i = 0; i < scheduleList.length; i++) {
4254
+              
4244 4255
               if(this.activeName=='thisWeek'){
4245 4256
                 if (scheduleList[i].schedule_date >= start && scheduleList[i].schedule_date <= end) {
4246 4257
                  var weekday= this.changeWeekType(scheduleList[i].schedule_week)
4258
+                 console.log("---------------",this.schedule_type)
4259
+                 console.log("partition_id------",this.partition_id)
4260
+                 console.log("week_date----",this.week_date)
4247 4261
                  if(this.schedule_type!=0 || this.partition_id != 0 || this.week_date !=''){
4248 4262
                     if(this.schedule_type==scheduleList[i].schedule_type &&
4249 4263
                       this.partition_id==scheduleList[i].partition_id &&weekday==this.week_date){
@@ -4288,6 +4302,7 @@ export default {
4288 4302
                       week.push(scheduleList[i])
4289 4303
                     }
4290 4304
                   }else{
4305
+                    console.log("999999999999999999999999",week)
4291 4306
                     week.push(scheduleList[i])
4292 4307
                   }
4293 4308
                 }
@@ -4305,17 +4320,20 @@ export default {
4305 4320
                 }
4306 4321
               }
4307 4322
             }
4323
+
4324
+            // week.push(scheduleList[i])
4308 4325
           }
4309 4326
 
4310 4327
           if (this.export_type == 1) {
4311 4328
             week = scheduleList
4312 4329
           }
4313
-          console.log("list")
4314
-          console.log(list)
4315
-          console.log("week")
4316
-          console.log(week)
4317
-          console.log(week2)
4318
-
4330
+          // console.log("list")
4331
+          // console.log(list)
4332
+          // console.log("week")
4333
+          // console.log(week)
4334
+          // console.log(week2)
4335
+           
4336
+          console.log("weiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",week)
4319 4337
           if (week.length > 0) {
4320 4338
             // console.log('qqqqqqqqq',list);
4321 4339
             // console.log('wwwwwwwww',week);
@@ -4808,7 +4826,7 @@ export default {
4808 4826
               }
4809 4827
             }
4810 4828
           }
4811
-          console.log('xxxxxx',list);
4829
+          console.log('德国=================================xxxxxx',list);
4812 4830
           this.tableList = list
4813 4831
           this.start_time = ""
4814 4832
           this.end_time = ""
@@ -4817,10 +4835,10 @@ export default {
4817 4835
     },
4818 4836
 
4819 4837
     changePartition(val) {
4820
-      console.log('666666',val);
4838
+      console.log('中国----------------------------666666',val ==0);
4821 4839
       this.partition_id = val
4822 4840
       if(val==0){
4823
-        // console.log('llllll');
4841
+         console.log('llllll');
4824 4842
           this.getThreeWeekList()
4825 4843
       }else{
4826 4844
         // console.log('oooooo');

+ 2 - 0
src/xt_pages/workforce/components/tableData.vue Целия файл

@@ -3212,6 +3212,8 @@ export default {
3212 3212
 
3213 3213
           });
3214 3214
 
3215
+          console.log("source_scheduleZone---------------",this.source_scheduleZone)
3216
+
3215 3217
           this.source_scheduleZone = this.scheduleZone
3216 3218
 
3217 3219
         } else {