Przeglądaj źródła

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

XMLWAN 4 lat temu
rodzic
commit
b54ef6f702

+ 2 - 2
config/dev.env.js Wyświetl plik

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  //BASE_API: '"http://localhost:9531"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Wyświetl plik

@@ -27,10 +27,10 @@ module.exports = {
27 27
     // can be overwritten by process.env.HOST
28 28
     // if you want dev by ip, please set host: '0.0.0.0'
29 29
 
30
-     host: 'xt.test.sgjyun.com',
30
+     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32 32
     // host: 'xt.test.sgjyun.com',
33
-    // host: 'localhost',
33
+    host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 5 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

@@ -713,7 +713,8 @@
713 713
 
714 714
         let params = {
715 715
           'record_date': val,
716
-          'patient_id': this.patientInfo.id
716
+          'patient_id': this.patientInfo.id,
717
+          'type': this.radio
717 718
         }
718 719
         getChargeHisPatientInfo(params).then(response => {
719 720
           if (response.data.state == 0) {
@@ -1951,7 +1952,9 @@
1951 1952
           'patient_id': id,
1952 1953
           'number': batch_number,
1953 1954
           'start_time': this.other_start_time,
1954
-          'end_time': this.other_end_time
1955
+          'end_time': this.other_end_time,
1956
+          'type': this.radio
1957
+
1955 1958
         }
1956 1959
         this.loading = true
1957 1960
 

+ 8 - 8
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
3
+        <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
4 4
         <div class="infoMain">
5 5
             <div class="infoP">医院(药店)编号:</div>
6 6
             <div class="infoP">名称:血液透析中心</div>
@@ -32,7 +32,7 @@
32 32
                         <p style="width:50%;">材料费</p>
33 33
                         <p style="width:50%;"></p>
34 34
                     </div>
35
-                    <div class="chargeUl" style="border-top:1px solid #000;"> 
35
+                    <div class="chargeUl" style="border-top:1px solid #000;">
36 36
                         <p style="width:50%;">费用合计</p>
37 37
                         <p style="width:50%;">{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:""}}</p>
38 38
                     </div>
@@ -50,7 +50,7 @@
50 50
                     </div>
51 51
                 </div>
52 52
                 <div style="width:80%;display:flex;height:300px;">
53
-                  
53
+
54 54
                     <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
55 55
                         <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">{{item.advice_name}}</p>
56 56
                     </div>
@@ -68,7 +68,7 @@
68 68
                     </div>
69 69
                 </div>
70 70
             </div>
71
-            
71
+
72 72
         </div>
73 73
         <div class="moneyBox">
74 74
             <p>实收金:{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
@@ -92,7 +92,7 @@ export default {
92 92
           prescription:[],
93 93
           patient:{},
94 94
           orgname:""
95
-      } 
95
+      }
96 96
     },
97 97
     props:{
98 98
         paramsObj:Object
@@ -142,7 +142,7 @@ export default {
142 142
             this.record_date = record_date
143 143
             var prescription_id = this.paramsObj.prescription_id
144 144
             this.prescription_id = prescription_id
145
-            
145
+
146 146
         },
147 147
         deep:true
148 148
         }
@@ -154,7 +154,7 @@ export default {
154 154
 <style lang="scss" scoped>
155 155
 .prescription-print{
156 156
     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
157
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
157
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
158 158
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
159 159
     margin-bottom: 20px;
160 160
     padding:20px 10px;
@@ -202,7 +202,7 @@ export default {
202 202
 }
203 203
 .actionBar{
204 204
     display: flex;
205
-    justify-content: space-between; 
205
+    justify-content: space-between;
206 206
     line-height: 24px;
207 207
     padding:0 10px;
208 208
 }

+ 7 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Wyświetl plik

@@ -2264,16 +2264,20 @@
2264 2264
         for (let i = 0; i < this.teamList.length; i++) {
2265 2265
           for (let a = 0; a < this.curPrescriptions.project.length; a++) {
2266 2266
             if (this.teamList[i].id == this.curPrescriptions.project[a].project_id) {
2267
-              this.$message.error('改处方存在相同的项目,无法添加相同的项目')
2267
+              this.$message.error('当前处方存在相同的药品,无法添加相同的项目')
2268 2268
               return
2269 2269
             }
2270 2270
           }
2271 2271
         }
2272 2272
 
2273
+        console.log( this.curDrugs)
2274
+        console.log( this.curPrescriptions.advices)
2275
+
2276
+
2273 2277
         for (let i = 0; i < this.curDrugs.length; i++) {
2274 2278
           for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
2275
-            if (this.curDrugs[i].id == this.curPrescriptions.advices[i].id) {
2276
-              this.$message.error('改处方存在相同的药品,无法添加相同的药品')
2279
+            if (this.curDrugs[i].id == this.curPrescriptions.advices[a].id) {
2280
+              this.$message.error('当前处方存在相同的药品,无法添加相同的药品')
2277 2281
               return
2278 2282
 
2279 2283
             }

+ 5 - 4
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Wyświetl plik

@@ -320,7 +320,7 @@
320 320
 
321 321
             this.prescriptionList = response.data.data.list.prescription
322 322
 
323
-            this.patientid = this.patientTableData[0].patient_id
323
+            // this.patientid = this.patientTableData[0].patient_id
324 324
 
325 325
           }
326 326
         })
@@ -693,7 +693,7 @@
693 693
 
694 694
             this.prescriptionList = response.data.data.list.prescription
695 695
 
696
-            this.patientid = this.patientTableData[0].patient_id
696
+            // this.patientid = this.patientTableData[0].patient_id
697 697
 
698 698
           }
699 699
         })
@@ -931,6 +931,7 @@
931 931
             isShowDailog = true
932 932
           }
933 933
         }
934
+
934 935
         if (isShowDailog) {
935 936
           this.patientTableData.map((item, index) => {
936 937
             if (item.patient_id == this.oldCurrentRow.patient_id) {
@@ -1310,7 +1311,7 @@
1310 1311
           this.$refs.prescriptions.open(1, this.saveLoading)
1311 1312
         } else if (index == 2) {
1312 1313
 
1313
-          this.getPrescriptionList(this.patientid)
1314
+          this.getPrescriptionList(this.patientInfo.id)
1314 1315
           // this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id)
1315 1316
         } else if (index == 3) {
1316 1317
           this.$refs.prescriptions.open(3)
@@ -1318,7 +1319,7 @@
1318 1319
           this.$refs.prescriptions.open(4)
1319 1320
         } else if (index == 6) {
1320 1321
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
1321
-          this.getPrescriptionList(this.patientid)
1322
+          this.getPrescriptionList(this.patientInfo.id)
1322 1323
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
1323 1324
 
1324 1325
         }

+ 7 - 7
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Wyświetl plik

@@ -14,7 +14,7 @@
14 14
         </div>
15 15
 
16 16
         <div class="printTitle">{{orgname}}</div>
17
-        <div class="printTitle">血液透析中心处方、治疗单</div>
17
+        <div class="printTitle">处方、治疗单</div>
18 18
 
19 19
         <div class="infoTitle">
20 20
             <div>门诊编号:</div>
@@ -151,7 +151,7 @@
151 151
                     <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
152 152
                     <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
153 153
                 </div>
154
-                
154
+
155 155
                 <div class="prescriptionBox">
156 156
                     <table style="width:100%;text-align:center;line-height:25px;">
157 157
                         <tr>
@@ -237,7 +237,7 @@ export default {
237 237
         prescriptionInfo:[],
238 238
         projectList:[],
239 239
         prescriptions:[],
240
-        settlement: 
240
+        settlement:
241 241
          [
242 242
           {value: 1,label: '医保'},
243 243
           {value: 2,label: '自费'},
@@ -305,7 +305,7 @@ export default {
305 305
             this.prescriptions = advicePrint
306 306
             var projectlist =  response.data.data.projectlist
307 307
             console.log("所有项目列表",projectlist)
308
-            this.projectList = projectlist       
308
+            this.projectList = projectlist
309 309
             this.hisPatient = response.data.data.hisPatient
310 310
 
311 311
           }
@@ -349,7 +349,7 @@ export default {
349 349
             }
350 350
               addtotal =  Math.floor(addtotal * 100) / 100
351 351
         }
352
-       
352
+
353 353
        }
354 354
 
355 355
       for (let i = 0; i < this.prescriptions.length; i++) {
@@ -359,7 +359,7 @@ export default {
359 359
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
360 360
               }
361 361
             }
362
-          
362
+
363 363
             if (this.prescriptions[i].additionalcharge != null) {
364 364
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
365 365
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
@@ -396,7 +396,7 @@ export default {
396 396
 <style lang="scss" scoped>
397 397
 .prescription-print{
398 398
     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
399
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
399
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
400 400
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
401 401
     margin-bottom: 20px;
402 402
     padding:20px 10px;

+ 1 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue Wyświetl plik

@@ -102,7 +102,7 @@
102 102
                 </el-table-column>
103 103
                 <el-table-column align="center" prop="name" label="操作" width="180">
104 104
                     <template slot-scope="scope">
105
-                      <el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>
105
+                      <!--<el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>-->
106 106
                       <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button>
107 107
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>
108 108
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>

+ 83 - 73
src/xt_pages/workforce/appointment.vue Wyświetl plik

@@ -415,7 +415,7 @@
415 415
                   total: 0
416 416
                 }
417 417
                 that.scheduleZone.push(thisPa)
418
-                
418
+
419 419
               })
420 420
             })
421 421
           }
@@ -458,10 +458,10 @@
458 458
 
459 459
             i++
460 460
           }
461
-         
461
+
462 462
           const data = this.formatJson(filterVal, list)
463 463
           // console.log("data",data)
464
-        
464
+
465 465
           const filename = '排班模版'
466 466
           excel.export_json_to_excel({
467 467
             multiHeader,
@@ -474,7 +474,7 @@
474 474
         })
475 475
       },
476 476
       export_fileTwo:function(){
477
-        
477
+
478 478
         import('@/vendor/Export2Excel').then(excel => {
479 479
           const filterVal = [
480 480
             '区号',
@@ -483,11 +483,11 @@
483 483
           const multiHeader = [['区号', '机号', '周一'+"("+this.days[0]+")" , '', '', '周二'+"("+this.days[1]+")", '', '', '周三'+"("+this.days[2]+")" , '', '', '周四'+"("+this.days[3]+")" , '', '', '周五'+"("+this.days[4]+")" , '', '', '周六'+"("+this.days[5]+")" , '', '', '周日'+"("+this.days[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
484 484
           const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
485 485
           const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
486
-      
486
+
487 487
           var data = []
488 488
          this.tableList.map(item=>{
489 489
            data.push(Object.values(item))
490
-           
490
+
491 491
          })
492 492
 
493 493
           const filename = '排班模版'
@@ -498,13 +498,13 @@
498 498
             data,
499 499
             filename
500 500
           })
501
-          
501
+
502 502
         })
503 503
       },
504 504
       formatJson(filterVal, jsonData) {
505 505
        return jsonData.map(v => filterVal.map(j => v[j]))
506 506
       },
507
-  
507
+
508 508
       //  formatJson(filterVal, jsonData) {
509 509
       //    console.log("jsonData",jsonData)
510 510
       //   return jsonData.map(v =>
@@ -550,7 +550,7 @@
550 550
         return isShow
551 551
       },
552 552
        handleSuccess({ results, header }) {
553
-     
553
+
554 554
         let headers = []
555 555
         for (let key in results[0]) {
556 556
           headers.push(key)
@@ -775,33 +775,30 @@
775 775
             isHas_56 && isHas_57 && isHas_58 && isHas_59 && isHas_60 &&
776 776
             isHas_61 && isHas_62 && isHas_63 && isHas_64 && isHas_65)) {
777 777
 
778
-           
778
+           console.log("sssssss")
779 779
 
780 780
             this.dialogVisible = true
781 781
             return
782 782
           }
783 783
         } else {
784
-          
784
+
785
+          console.log("ssssssszzzzzzz")
785 786
 
786 787
           this.dialogVisible = true
787 788
           return
788 789
         }
789
-
790 790
         let is_system_zone = true
791 791
         let is_device_number = true
792 792
         let zones = []
793 793
         let deviceNumber = []
794
-
795 794
         for (let i = 0; i < results.length; i++) {
796
-          if (results[i + 1]) {
795
+          if (results[i + 1] && results[i + 1]['区号'] != undefined) {
797 796
             zones.push(results[i + 1]['区号'])
798 797
           }
799
-          if (results[i + 1]) {
798
+          if (results[i + 1] && results[i + 1]['机号'] != undefined) {
800 799
             deviceNumber.push(results[i + 1]['机号'])
801 800
           }
802
-
803 801
         }
804
-
805 802
         const obj = {}
806 803
         zones = zones.reduce((cur, next) => {
807 804
           obj[next] ? '' : obj[next] = true && cur.push(next)
@@ -831,15 +828,17 @@
831 828
           }
832 829
         }
833 830
 
831
+         console.log(zones)
834 832
         for (let i = 0; i < zones.length; i++) {
833
+          console.log(zones[i])
834
+          console.log("err"+total_zones.includes(zones[i]))
835
+
835 836
           if (!total_zones.includes(zones[i])) {
836 837
             is_system_zone = false
837 838
           }
838 839
         }
839
-        
840
+
840 841
         console.log("totalzones",total_zones)
841
-        
842
-        
843 842
         console.log("number:")
844 843
         console.log("total",total_device_number)
845 844
         console.log("23121212:")
@@ -863,20 +862,20 @@
863 862
 
864 863
         let datas = []
865 864
         let failed_datas = []
866
-       
867 865
 
868
-       
866
+
867
+
869 868
 
870 869
         console.log("结果22222222222",results)
871 870
 
872 871
         for (let i = 0; i < results.length; i++) {
873
-          
872
+
874 873
           for (let key in results[i + 1]) {
875 874
             let tempObjTwo = { partition_name: '', device_number_name: '' }
876 875
 
877 876
             if (key != '区号' && key != '机号' && results[i+1][key]!="") {
878 877
               let obj = {}
879
-             
878
+
880 879
               obj['name'] = results[i + 1][key].replace(/\s/g, '')
881 880
               console.log("88888888",obj['name'])
882 881
               if (tempObj[key] == '上午') {
@@ -897,8 +896,8 @@
897 896
 
898 897
               console.log("objtwo000000000000000000000",tempObjTwo)
899 898
             }
900
-            
901
-           
899
+
900
+
902 901
             tempObjTwo['partition_name'] = results[i + 1]['区号']
903 902
             tempObjTwo['device_number_name'] = results[i + 1]['机号']
904 903
             tempObjTwo['index'] = i + 3
@@ -931,26 +930,35 @@
931 930
           }
932 931
 
933 932
           if (datas[i].device_number_name == undefined) {
933
+            console.log("err1"+datas[i].device_number_name)
934
+
934 935
             is_device_number = false
935 936
 
936 937
           }
937 938
 
938 939
           if (datas[i].partition_name == undefined) {
939
-            
940
+            console.log("err2"+datas[i].partition_name)
941
+
940 942
             is_system_zone = false
941 943
           }
942 944
 
943 945
           if (datas[i].schedule_date === '0') {
946
+            console.log("err23"+datas[i].schedule_date)
947
+
944 948
             is_system_zone = false
945 949
 
946 950
           }
947 951
 
948 952
           if (datas[i].schedule_week === '0') {
953
+            console.log("err234"+datas[i].schedule_week)
954
+
949 955
             is_system_zone = false
950 956
 
951 957
           }
952 958
 
953 959
           if (datas[i].schedule_type === 0) {
960
+            console.log("err2345"+datas[i].schedule_type)
961
+
954 962
             is_system_zone = false
955 963
 
956 964
           }
@@ -980,7 +988,7 @@
980 988
           obj[key] = value
981 989
           tempObjArr.push(obj)
982 990
         }
983
-        
991
+
984 992
         for (let i = 0; i < tempObjArr.length; i++) {
985 993
           for (let key in tempObjArr[i]) {
986 994
             let arr = tempObjArr[i][key]
@@ -989,7 +997,7 @@
989 997
               obj[next] ? '' : obj[next] = true && cur.push(next)
990 998
               return cur
991 999
             }, []) // 设置cur默认类型为数组,并且初始值为空的数组
992
-            
1000
+
993 1001
             console.log("长度11111111111",tempObjArr[i][key].length)
994 1002
             console.log("长度22222222222",arr.length)
995 1003
             if (tempObjArr[i][key].length > arr.length) {    //比对原数组和去重后的原数组总数,不同的话则存在重复元素
@@ -1004,10 +1012,12 @@
1004 1012
 
1005 1013
 
1006 1014
         if (headers.length > 65 || !is_system_zone || !is_device_number) {
1015
+          console.log("ssssssszzzzzzzqqqqqqqq")
1016
+
1007 1017
           this.dialogVisible = true
1008 1018
           return
1009 1019
         } else {
1010
-          
1020
+
1011 1021
           if (is_exist_repeat) {
1012 1022
             this.isExistRepeatVisible = true
1013 1023
             return
@@ -1276,7 +1286,7 @@
1276 1286
 
1277 1287
         }
1278 1288
 
1279
-      }, 
1289
+      },
1280 1290
       getRow(key) {
1281 1291
         switch (key) {
1282 1292
           case '周一'+"("+this.days[0]+")" : //本周一
@@ -1913,15 +1923,15 @@
1913 1923
         let next_sunday = moment().add((7 - weekOfDay) + 7 * i, 'days').format('YYYY-MM-DD');//周日日期
1914 1924
         return next_sunday
1915 1925
        },
1916
-       
1926
+
1917 1927
       getNextWeekOne(i) {
1918 1928
         let weekOfDay = parseInt(moment().format('E'));//计算今天是这周第几天
1919 1929
         let next_monday = moment().add((7 - weekOfDay) + 7 * (i - 1) + 1, 'days').format('YYYY-MM-DD');//周一日期
1920
-        
1930
+
1921 1931
         return next_monday
1922 1932
        },
1923
-       
1924
-       
1933
+
1934
+
1925 1935
        getThreeWeekList(){
1926 1936
           var params ={
1927 1937
               start_time:this.start_time,
@@ -1934,11 +1944,11 @@
1934 1944
            if(response.data.state == 1){
1935 1945
              var partitions =  response.data.data.partitions
1936 1946
              console.log("数据22222",this.partitions)
1937
-             
1947
+
1938 1948
              const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
1939 1949
               var list = []
1940 1950
               let i = 0
1941
-              
1951
+
1942 1952
               for (let key  in partitions) {
1943 1953
                 var tempValue
1944 1954
                 var jihaos = partitions[key].jihaos
@@ -1955,11 +1965,11 @@
1955 1965
                 console.log("jihaos",jihaos)
1956 1966
                 for (let b = 0; b < jihaos.length; b++) {
1957 1967
                  var obj = {}
1958
-               
1968
+
1959 1969
                   obj['区号'] = partitions[key].name
1960 1970
                   obj['机号'] = jihaos[b].number.toString()
1961 1971
 
1962
-                
1972
+
1963 1973
                   obj['上午'] = ''
1964 1974
                   obj['下午'] = ''
1965 1975
                   obj['晚上'] = ''
@@ -1979,8 +1989,8 @@
1979 1989
                   obj['上午4'] = ''
1980 1990
                   obj['下午4'] = ''
1981 1991
                   obj['晚上4'] = ''
1982
-                 
1983
-                
1992
+
1993
+
1984 1994
                   obj['上午5'] = ''
1985 1995
                   obj['下午5'] = ''
1986 1996
                   obj['晚上5'] = ''
@@ -2008,8 +2018,8 @@
2008 2018
                   obj['上午11'] = ''
2009 2019
                   obj['下午11'] = ''
2010 2020
                   obj['晚上11'] = ''
2011
-                 
2012
-                
2021
+
2022
+
2013 2023
                   obj['上午12'] = ''
2014 2024
                   obj['下午12'] = ''
2015 2025
                   obj['晚上12'] = ''
@@ -2043,26 +2053,26 @@
2043 2053
                   obj['上午19'] = ''
2044 2054
                   obj['下午19'] = ''
2045 2055
                   obj['晚上19'] = ''
2046
-                 
2047
-                
2056
+
2057
+
2048 2058
                   obj['上午20'] = ''
2049 2059
                   obj['下午20'] = ''
2050 2060
                   obj['晚上20'] = ''
2051 2061
 
2052 2062
                   list.push(obj)
2053
-                
2063
+
2054 2064
                 }
2055 2065
                 i++
2056 2066
               }
2057
-             
2058
-             
2067
+
2068
+
2059 2069
                const start_time = moment().weekday(1).format('YYYY-MM-DD'); //本周一
2060 2070
                var start = this.getTimestamp(start_time)
2061 2071
                console.log("start",start)
2062 2072
               const end_time = moment().weekday(7).format('YYYY-MM-DD');
2063 2073
               var end = this.getTimestamp(end_time)
2064 2074
 
2065
-              
2075
+
2066 2076
               console.log("end",end)
2067 2077
               var scheduleList = response.data.data.list
2068 2078
               console.log("排班列表22222",scheduleList)
@@ -2096,11 +2106,11 @@
2096 2106
                  }
2097 2107
               }
2098 2108
               }
2099
-            
2109
+
2100 2110
             if(this.export_type == 1){
2101 2111
                 week = scheduleList
2102 2112
              }
2103
-           
2113
+
2104 2114
              if(week.length > 0){
2105 2115
               for(let i=0;i<list.length;i++){
2106 2116
                for(let j=0;j<week.length;j++){
@@ -2117,7 +2127,7 @@
2117 2127
                     if( week[j].schedule_week == 1 && week[j].schedule_type == 3){
2118 2128
                         list[i].晚上 = week[j].name
2119 2129
                     }
2120
-                    
2130
+
2121 2131
                    //周二上午
2122 2132
                     if( week[j].schedule_week == 2 && week[j].schedule_type == 1){
2123 2133
                         list[i].上午1 = week[j].name
@@ -2175,7 +2185,7 @@
2175 2185
                    if( week[j].schedule_week ==6 && week[j].schedule_type == 2){
2176 2186
                         list[i].下午5 = week[j].name
2177 2187
                     }
2178
-                   //周六晚上 
2188
+                   //周六晚上
2179 2189
                    if( week[j].schedule_week == 6 && week[j].schedule_type == 3){
2180 2190
                         list[i].晚上5 = week[j].name
2181 2191
                     }
@@ -2192,18 +2202,18 @@
2192 2202
                         list[i].晚上6 = week[j].name
2193 2203
                     }
2194 2204
                   }
2195
-                
2205
+
2196 2206
                }
2197 2207
              }
2198 2208
              }
2199
-             
2209
+
2200 2210
              console.log("list5555555555",list)
2201
-             
2211
+
2202 2212
              if(nextWeek.length > 0 ){
2203 2213
                for(let i=0;i<list.length;i++){
2204 2214
                 for(let j=0;j<nextWeek.length;j++){
2205 2215
                  if(list[i].机号 == nextWeek[j].number ){
2206
-                  //周一   
2216
+                  //周一
2207 2217
                    if( nextWeek[j].schedule_week ==1&& nextWeek[j].schedule_type == 1){
2208 2218
                         list[i].上午7 = nextWeek[j].name
2209 2219
                     }
@@ -2215,9 +2225,9 @@
2215 2225
                    if( nextWeek[j].schedule_week == 1 && nextWeek[j].schedule_type == 3){
2216 2226
                         list[i].晚上7 = nextWeek[j].name
2217 2227
                     }
2218
-                  
2219 2228
 
2220
-                   //周二上午  
2229
+
2230
+                   //周二上午
2221 2231
                    if( nextWeek[j].schedule_week ==2&& nextWeek[j].schedule_type == 1){
2222 2232
                         list[i].上午8 = nextWeek[j].name
2223 2233
                     }
@@ -2230,7 +2240,7 @@
2230 2240
                         list[i].晚上8  = nextWeek[j].name
2231 2241
                     }
2232 2242
 
2233
-                  //周三上午  
2243
+                  //周三上午
2234 2244
                    if( nextWeek[j].schedule_week ==3&& nextWeek[j].schedule_type == 1){
2235 2245
                         list[i].上午9 = nextWeek[j].name
2236 2246
                     }
@@ -2243,7 +2253,7 @@
2243 2253
                         list[i].晚上9  = nextWeek[j].name
2244 2254
                     }
2245 2255
 
2246
-                   //周四上午  
2256
+                   //周四上午
2247 2257
                    if( nextWeek[j].schedule_week ==4&& nextWeek[j].schedule_type == 1){
2248 2258
                         list[i].上午10 = nextWeek[j].name
2249 2259
                     }
@@ -2255,8 +2265,8 @@
2255 2265
                    if( nextWeek[j].schedule_week == 4 && nextWeek[j].schedule_type == 3){
2256 2266
                         list[i].晚上10  = nextWeek[j].name
2257 2267
                     }
2258
-                    
2259
-                    //周五上午  
2268
+
2269
+                    //周五上午
2260 2270
                    if( nextWeek[j].schedule_week ==5&& nextWeek[j].schedule_type == 1){
2261 2271
                         list[i].上午11 = nextWeek[j].name
2262 2272
                     }
@@ -2269,7 +2279,7 @@
2269 2279
                         list[i].晚上11  = nextWeek[j].name
2270 2280
                     }
2271 2281
 
2272
-                  //周六上午  
2282
+                  //周六上午
2273 2283
                    if( nextWeek[j].schedule_week ==6&& nextWeek[j].schedule_type == 1){
2274 2284
                         list[i].上午12 = nextWeek[j].name
2275 2285
                     }
@@ -2282,7 +2292,7 @@
2282 2292
                         list[i].晚上12  = nextWeek[j].name
2283 2293
                     }
2284 2294
 
2285
-                  //周日上午  
2295
+                  //周日上午
2286 2296
                    if( nextWeek[j].schedule_week ==6&& nextWeek[j].schedule_type == 1){
2287 2297
                         list[i].上午13 = nextWeek[j].name
2288 2298
                     }
@@ -2299,14 +2309,14 @@
2299 2309
                }
2300 2310
               }
2301 2311
              }
2302
-              
2312
+
2303 2313
              console.log("lastWeek",lastWeek)
2304 2314
 
2305
-             if(lastWeek.length > 0 ){ 
2315
+             if(lastWeek.length > 0 ){
2306 2316
                for(let i=0;i<list.length;i++){
2307 2317
                  for(let j=0;j<lastWeek.length;j++){
2308
-                   if(list[i].机号 == lastWeek[j].number ){ 
2309
-                     //周一   
2318
+                   if(list[i].机号 == lastWeek[j].number ){
2319
+                     //周一
2310 2320
                     if( lastWeek[j].schedule_week ==1&& lastWeek[j].schedule_type == 1){
2311 2321
                           list[i].上午14 = lastWeek[j].name
2312 2322
                       }
@@ -2345,7 +2355,7 @@
2345 2355
                           list[i].晚上16 = lastWeek[j].name
2346 2356
                      }
2347 2357
 
2348
-                    
2358
+
2349 2359
                      //周四
2350 2360
                     if( lastWeek[j].schedule_week ==4&& lastWeek[j].schedule_type == 1){
2351 2361
                           list[i].上午17 = lastWeek[j].name
@@ -2397,11 +2407,11 @@
2397 2407
                     if( lastWeek[j].schedule_week == 7 && lastWeek[j].schedule_type == 3){
2398 2408
                           list[i].晚上20 = lastWeek[j].name
2399 2409
                      }
2400
-                   }  
2410
+                   }
2401 2411
 
2402 2412
                   }
2403 2413
                 }
2404
-             } 
2414
+             }
2405 2415
              this.tableList = list
2406 2416
            }
2407 2417
          })
@@ -2437,7 +2447,7 @@
2437 2447
       getTime(val) {
2438 2448
         return uParseTime(val, '{y}-{m}-{d}')
2439 2449
       },
2440
-       
2450
+
2441 2451
 
2442 2452
     },
2443 2453
     created() {