XMLWAN 4 lat temu
rodzic
commit
01fa3cc204

+ 25 - 12
src/api/common/common.js Wyświetl plik

134
   })
134
   })
135
 }
135
 }
136
 
136
 
137
-export function getDialysisModeType(startime, endtime) {
137
+export function getDialysisModeType(startime, endtime,lapsetotype,sourcetype) {
138
   const params = {
138
   const params = {
139
     startime: startime,
139
     startime: startime,
140
-    endtime: endtime
140
+    endtime: endtime,
141
+    lapsetotype:lapsetotype,
142
+    sourcetype:sourcetype,
141
   }
143
   }
144
+  console.log("parasm22222",params)
142
   return request({
145
   return request({
143
     url: '/com/api/getdialysismodetype',
146
     url: '/com/api/getdialysismodetype',
144
     method: 'get',
147
     method: 'get',
146
   })
149
   })
147
 }
150
 }
148
 
151
 
149
-export function getTotalLapseCount(startime, endtime) {
152
+export function getTotalLapseCount(startime, endtime,lapsetotype,sourcetype) {
150
   const params = {
153
   const params = {
151
     startime: startime,
154
     startime: startime,
152
-    endtime: endtime
155
+    endtime: endtime,
156
+    lapsetotype:lapsetotype,
157
+    sourcetype:sourcetype,
153
   }
158
   }
154
   console.log('转归params', params)
159
   console.log('转归params', params)
155
   return request({
160
   return request({
159
   })
164
   })
160
 }
165
 }
161
 
166
 
162
-export function getTotalSexCount(startime, endtime) {
167
+export function getTotalSexCount(startime, endtime,lapsetotype,sourcetype) {
163
   const params = {
168
   const params = {
164
     startime: startime,
169
     startime: startime,
165
-    endtime: endtime
170
+    endtime: endtime,
171
+    lapsetotype:lapsetotype,
172
+    sourcetype:sourcetype,
166
   }
173
   }
167
   return request({
174
   return request({
168
     url: '/com/api/gettotalsexcount',
175
     url: '/com/api/gettotalsexcount',
171
   })
178
   })
172
 }
179
 }
173
 
180
 
174
-export function getTotalInfectiousCount(startime, endtime) {
181
+export function getTotalInfectiousCount(startime, endtime,lapsetotype,sourcetype) {
175
   const params = {
182
   const params = {
176
     startime: startime,
183
     startime: startime,
177
-    endtime: endtime
184
+    endtime: endtime,
185
+    lapsetotype:lapsetotype,
186
+    sourcetype:sourcetype,
178
   }
187
   }
179
   console.log('传染病', params)
188
   console.log('传染病', params)
180
   return request({
189
   return request({
184
   })
193
   })
185
 }
194
 }
186
 
195
 
187
-export function getTotalAgeCount(startime, endtime) {
196
+export function getTotalAgeCount(startime, endtime,lapsetotype,sourcetype) {
188
   const params = {
197
   const params = {
189
     startime: startime,
198
     startime: startime,
190
-    endtime: endtime
199
+    endtime: endtime,
200
+    lapsetotype:lapsetotype,
201
+    sourcetype:sourcetype,
191
   }
202
   }
192
   return request({
203
   return request({
193
     url: '/com/api/gettotalagecount',
204
     url: '/com/api/gettotalagecount',
196
   })
207
   })
197
 }
208
 }
198
 
209
 
199
-export function getTotalDialysisCount(startime, endtime) {
210
+export function getTotalDialysisCount(startime, endtime,lapsetotype,sourcetype) {
200
   const params = {
211
   const params = {
201
     startime: startime,
212
     startime: startime,
202
-    endtime: endtime
213
+    endtime: endtime,
214
+    lapsetotype:lapsetotype,
215
+    sourcetype:sourcetype,
203
   }
216
   }
204
   return request({
217
   return request({
205
     url: '/com/api/gettotaldialysiscount',
218
     url: '/com/api/gettotaldialysiscount',

+ 4 - 1
src/store/modules/globalConfig.js Wyświetl plik

1844
         id: 32,
1844
         id: 32,
1845
         name: '米'
1845
         name: '米'
1846
       },
1846
       },
1847
-
1847
+      {
1848
+        id: 33,
1849
+        name: '万份'
1850
+      },
1848
     ],
1851
     ],
1849
     body_fluid: [{
1852
     body_fluid: [{
1850
       id: 1,
1853
       id: 1,

+ 18 - 9
src/xt_pages/data/components/addDrugs.vue Wyświetl plik

51
                         <el-form-item label="药品类型 : " prop="drug_type">
51
                         <el-form-item label="药品类型 : " prop="drug_type">
52
                             <el-select v-model="form.drug_type" style="width:160px;" placeholder="请选择">
52
                             <el-select v-model="form.drug_type" style="width:160px;" placeholder="请选择">
53
                                 <el-option
53
                                 <el-option
54
-                                        v-for="item,index in getDictionaryDataConfig('system','drug_type')"
54
+                                        v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
55
                                         :key="index"
55
                                         :key="index"
56
                                         :label="item.name"
56
                                         :label="item.name"
57
                                         :value="item.id">
57
                                         :value="item.id">
156
                         </el-form-item>
156
                         </el-form-item>
157
 
157
 
158
 
158
 
159
-                        <el-form-item label="限制性用药 : " prop="lmt_used_flag">
159
+                        <el-form-item label="限制性用药 : ">
160
                             <el-select v-model="form.lmt_used_flag" style="width:160px;" placeholder="请选择">
160
                             <el-select v-model="form.lmt_used_flag" style="width:160px;" placeholder="请选择">
161
                                 <el-option
161
                                 <el-option
162
                                         v-for="item,index in lmt_used_flags"
162
                                         v-for="item,index in lmt_used_flags"
196
 
196
 
197
                             <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
197
                             <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
198
                                 <el-option
198
                                 <el-option
199
-                                        v-for="item in manufacturerList"
200
-                                        :key="item.id"
199
+                                        v-for="(item,index) in manufacturerList"
200
+                                        :key="index"
201
                                         :label="item.manufacturer_name"
201
                                         :label="item.manufacturer_name"
202
                                         :value="item.id">
202
                                         :value="item.id">
203
                                 </el-option>
203
                                 </el-option>
602
         this.form.intro = ''
602
         this.form.intro = ''
603
       },
603
       },
604
       show(id, obj) {
604
       show(id, obj) {
605
-        console.log('obj222', obj)
606
-        // this.clear()
605
+        console.log("obj3333333",obj)
606
+        this.getlist()
607
+        this.GetAllConfig()
608
+        if(obj.dealer == 0){
609
+           obj.dealer = ""
610
+        }
611
+        
607
         this.visible = true
612
         this.visible = true
608
         if (id == 0) {
613
         if (id == 0) {
609
           this.formTitle = '新增'
614
           this.formTitle = '新增'
714
 
719
 
715
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
720
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
716
         form['lmt_used_flag'] = this.form.lmt_used_flag
721
         form['lmt_used_flag'] = this.form.lmt_used_flag
717
-
722
+       
718
         return form
723
         return form
719
       },
724
       },
720
       getlist() {
725
       getlist() {
747
       }
752
       }
748
     },
753
     },
749
     created() {
754
     created() {
750
-      this.getlist()
751
-      //获取所有经销商
755
+       //获取所有经销商
752
       this.GetAllConfig()
756
       this.GetAllConfig()
757
+      this.getlist()
758
+
759
+      var drug_type =  this.getDictionaryDataConfig('system','drug_type')
760
+      console.log("药品类型333333",drug_type)
761
+     
753
     }
762
     }
754
   }
763
   }
755
 </script>
764
 </script>

+ 7 - 14
src/xt_pages/data/components/consumables.vue Wyświetl plik

66
      <div style="display:flex; align-items:center;margin-bottom:10px;">
66
      <div style="display:flex; align-items:center;margin-bottom:10px;">
67
         <el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028">批量备案</el-button>
67
         <el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028">批量备案</el-button>
68
         <el-button type="primary" size="mini" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord">批量备案</el-button>
68
         <el-button type="primary" size="mini" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord">批量备案</el-button>
69
-        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/stock_template.xlsx" :underline="false"
69
+        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/stock_template2.xlsx" :underline="false"
70
                  style="margin-left:15px">
70
                  style="margin-left:15px">
71
           <el-button
71
           <el-button
72
             class="filter-item"
72
             class="filter-item"
1199
               }
1199
               }
1200
            }
1200
            }
1201
 
1201
 
1202
-           if (results[i]['*经销商'] === undefined) {
1202
+           if (results[i]['经销商'] === undefined) {
1203
                 obj['dealer'] = ''
1203
                 obj['dealer'] = ''
1204
               } else {
1204
               } else {
1205
-             if (key == '*经销商') {
1205
+             if (key == '经销商') {
1206
                obj['dealer'] = results[i][key].replace(/\s/g,"")
1206
                obj['dealer'] = results[i][key].replace(/\s/g,"")
1207
               }
1207
               }
1208
            }
1208
            }
1341
          
1341
          
1342
 
1342
 
1343
           if(tableData[i].special_medical == "是"){
1343
           if(tableData[i].special_medical == "是"){
1344
-             tableData[i].special_medical = 1
1344
+             tableData[i].special_medical = "1"
1345
           }
1345
           }
1346
           if(tableData[i].special_medical == "否"){
1346
           if(tableData[i].special_medical == "否"){
1347
-             tableData[i].special_medical = 2
1347
+             tableData[i].special_medical = "2"
1348
           }
1348
           }
1349
        }
1349
        }
1350
         
1350
         
1351
        for(let i=0;i<tableData.length;i++){
1351
        for(let i=0;i<tableData.length;i++){
1352
-          tableData[i].retail_price = parseInt(tableData[i].retail_price) 
1353
-           
1354
-          if(tableData[i].buy_price == ""){
1355
-             tableData[i].buy_price = 0
1356
-          }else{
1357
-             tableData[i].buy_price = parseInt(tableData[i].buy_price)
1358
-          }
1359
-
1352
+         
1360
           if(tableData[i].is_special_diseases == ""){
1353
           if(tableData[i].is_special_diseases == ""){
1361
              tableData[i].is_special_diseases = 0
1354
              tableData[i].is_special_diseases = 0
1362
           }else{
1355
           }else{
1375
        let params = {
1368
        let params = {
1376
           'goods':tableData 
1369
           'goods':tableData 
1377
         }
1370
         }
1378
-       console.log("params2222",params)
1371
+       console.log("params22229999999",params)
1379
        
1372
        
1380
        
1373
        
1381
         postGoodInformation(params).then(response=>{
1374
         postGoodInformation(params).then(response=>{

+ 47 - 10
src/xt_pages/data/components/drugs.vue Wyświetl plik

64
     <div style="display:flex; align-items:center;margin-bottom:10px;">
64
     <div style="display:flex; align-items:center;margin-bottom:10px;">
65
         <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
65
         <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
66
         <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
66
         <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
67
-        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/drug_template.xlsx" :underline="false"
67
+        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/drug_template2.xlsx" :underline="false"
68
                  style="margin-left:15px">
68
                  style="margin-left:15px">
69
           <el-button
69
           <el-button
70
             class="filter-item"
70
             class="filter-item"
480
         return name
480
         return name
481
       },
481
       },
482
       goodInfoDialogComfirm: function(val) {
482
       goodInfoDialogComfirm: function(val) {
483
-
483
+        
484
         //修改自备药
484
         //修改自备药
485
         var untit = ""
485
         var untit = ""
486
         var untis = getDataConfig('hemodialysis','units')
486
         var untis = getDataConfig('hemodialysis','units')
487
-        console.log("999999",untis)
487
+        
488
         for(let i=0;i<untis.length;i++){
488
         for(let i=0;i<untis.length;i++){
489
            if(val.min_unit == untis[i].id){
489
            if(val.min_unit == untis[i].id){
490
               untit = untis[i].name
490
               untit = untis[i].name
673
               if(this.formValue.hosp_appr_flag == 0){
673
               if(this.formValue.hosp_appr_flag == 0){
674
                 this.formValue.hosp_appr_flag = ""
674
                 this.formValue.hosp_appr_flag = ""
675
               }
675
               }
676
+              
676
               this.$refs.addDrugs.show(id, this.formValue)
677
               this.$refs.addDrugs.show(id, this.formValue)
677
 
678
 
678
             }
679
             }
910
             
911
             
911
           var isHasDrugName = header.includes('*药品名称')
912
           var isHasDrugName = header.includes('*药品名称')
912
          
913
          
913
-          var isHasDrugAlias = header.includes('*药品别名')
914
-          
915
           var isHasDrugSpec = header.includes('*药品规格')
914
           var isHasDrugSpec = header.includes('*药品规格')
916
         
915
         
917
           var isHasDrugType =  header.includes('*药品类型')
916
           var isHasDrugType =  header.includes('*药品类型')
936
 
935
 
937
          var isHasManufacturer = header.includes('*生产厂商')
936
          var isHasManufacturer = header.includes('*生产厂商')
938
 
937
 
938
+         var isHasDrugDose = header.includes('*剂量')
939
+           
940
+         var isDrugDoseUnit = header.includes('*剂量单位')
939
      
941
      
940
-          if (!(isHasDrugName && isHasDrugAlias && isHasDrugSpec && isHasDrugType && isHasDrugStockLimit && isHasDrugOriginPlace && isHasDrugDosageForm && isHasMaxUnit &&  isHasMinUnit && isHasUnitMatrixing &&  isHasRetailPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer)) {
942
+          if (!(isHasDrugName  && isHasDrugSpec && isHasDrugType && isHasDrugStockLimit && isHasDrugOriginPlace && isHasDrugDosageForm && isHasMaxUnit &&  isHasMinUnit && isHasUnitMatrixing &&  isHasRetailPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
941
             this.dialogVisible = true
943
             this.dialogVisible = true
942
             return
944
             return
943
           }
945
           }
960
            }
962
            }
961
 
963
 
962
 
964
 
963
-           if (results[i]['*药品别名'] === undefined) {
965
+           if (results[i]['药品别名'] === undefined) {
964
                 obj['drug_alias'] = ''
966
                 obj['drug_alias'] = ''
965
               } else {
967
               } else {
966
-           if (key == '*药品别名') {
968
+           if (key == '药品别名') {
967
                obj['drug_alias'] = results[i][key].replace(/\s/g,"")
969
                obj['drug_alias'] = results[i][key].replace(/\s/g,"")
968
               }
970
               }
969
            }
971
            }
1077
               }
1079
               }
1078
            }
1080
            }
1079
 
1081
 
1080
-            if (results[i]['*经销商'] === undefined) {
1082
+            if (results[i]['经销商'] === undefined) {
1081
                 obj['dealer'] = ''
1083
                 obj['dealer'] = ''
1082
               } else {
1084
               } else {
1083
-            if (key == '*经销商') {
1085
+            if (key == '经销商') {
1084
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1086
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1085
               }
1087
               }
1086
            }
1088
            }
1264
               }
1266
               }
1265
            }
1267
            }
1266
 
1268
 
1269
+          if (results[i]['*剂量'] === undefined) {
1270
+                obj['drug_dose'] = ''
1271
+              } else {
1272
+            if (key == '*剂量') {
1273
+                obj['drug_dose'] = results[i][key].replace(/\s/g,"")
1274
+              }
1275
+           }
1276
+
1277
+           if (results[i]['*剂量单位'] === undefined) {
1278
+                obj['drug_dose_unit'] = ''
1279
+              } else {
1280
+            if (key == '*剂量单位') {
1281
+                obj['drug_dose_unit'] = results[i][key].replace(/\s/g,"")
1282
+              }
1283
+           }
1284
+
1285
+           if (results[i]['限制性用药'] === undefined) {
1286
+                obj['lmt_used_flag'] = ''
1287
+              } else {
1288
+            if (key == '限制性用药') {
1289
+                obj['lmt_used_flag'] = results[i][key].replace(/\s/g,"")
1290
+              }
1291
+           }
1292
+
1267
 
1293
 
1268
          }
1294
          }
1269
          tableData.push(obj)
1295
          tableData.push(obj)
1316
           if(tableData[i].hosp_appr_flag == "审批不通过"){
1342
           if(tableData[i].hosp_appr_flag == "审批不通过"){
1317
               tableData[i].hosp_appr_flag = 3
1343
               tableData[i].hosp_appr_flag = 3
1318
           }
1344
           }
1345
+          if(tableData[i].lmt_used_flag == ""){
1346
+             tableData[i].lmt_used_flag = 0
1347
+          }
1348
+          
1349
+          if(tableData[i].lmt_used_flag == "否"){
1350
+              tableData[i].lmt_used_flag = 0
1351
+          }
1319
 
1352
 
1353
+            
1354
+          if(tableData[i].lmt_used_flag == "是"){
1355
+              tableData[i].lmt_used_flag = 1
1356
+          }
1320
       
1357
       
1321
         }
1358
         }
1322
        }
1359
        }

+ 6 - 6
src/xt_pages/data/components/project.vue Wyświetl plik

49
             size="small"
49
             size="small"
50
           >下载模版
50
           >下载模版
51
           </el-button>
51
           </el-button>
52
-        </el-link> -->
52
+        </el-link>
53
 
53
 
54
-        <!-- <project-excel :on-success='handleSuccessOne'></project-excel>
54
+        <project-excel :on-success='handleSuccessOne'></project-excel>
55
 
55
 
56
         <el-button
56
         <el-button
57
           style="margin-left:10px;"
57
           style="margin-left:10px;"
710
             if (results[i]['特检项目'] === undefined) {
710
             if (results[i]['特检项目'] === undefined) {
711
                 obj['specail_project'] = ''
711
                 obj['specail_project'] = ''
712
               } else {
712
               } else {
713
-          if (key == 'specail_project') {
714
-               obj['category'] = results[i][key].replace(/\s/g,"")
713
+          if (key == '特检项目') {
714
+               obj['specail_project'] = results[i][key].replace(/\s/g,"")
715
               }
715
               }
716
           }
716
           }
717
 
717
 
739
           }
739
           }
740
          }
740
          }
741
          tableData.push(obj)
741
          tableData.push(obj)
742
-         // console.log("项目列表",tableData)
743
-        
742
+         console.log("项目列表",tableData)
743
+
744
         for(let i=0;i<tableData.length;i++){
744
         for(let i=0;i<tableData.length;i++){
745
 
745
 
746
           if(tableData[i].disease_directory == ""){
746
           if(tableData[i].disease_directory == ""){

+ 114 - 46
src/xt_pages/qcd/basicInformationAnalysis.vue Wyświetl plik

63
           :picker-options="pickerOptions"
63
           :picker-options="pickerOptions"
64
         ></el-date-picker>
64
         ></el-date-picker>
65
       </div>
65
       </div>
66
+       <!-- <div class="cell clearfix">
67
+        <label class="title"><span class="name">转归情况</span> : </label>
68
+        <div class="time ">
69
+          <ul class="">
70
+            <li
71
+              :class="item.lapseto == lapsetoType ? 'active' : ''"
72
+              @click="selectLapseTo(item.lapseto)"
73
+              v-for="item in lapsetoArr"
74
+              :key="item.value"
75
+            >
76
+              {{ item.label }}
77
+            </li>
78
+          </ul>
79
+        </div>
80
+      </div> -->
81
+      <!-- <div class="cell clearfix">
82
+        <label class="title"><span class="name">病人来源</span> : </label>
83
+        <div class="time ">
84
+          <ul class="">
85
+            <li
86
+              :class="item.source == sourceType ? 'active' : ''"
87
+              @click="selectSource(item.source)"
88
+              v-for="item in sourceArr"
89
+              :key="item.value"
90
+            >
91
+              {{ item.label }}
92
+            </li>
93
+          </ul>
94
+        </div>
95
+      </div> -->
66
 
96
 
67
        <div class="cell clearfix" v-show="treatShow">
97
        <div class="cell clearfix" v-show="treatShow">
68
         <label class="title">
98
         <label class="title">
386
       dialysisAge:[],
416
       dialysisAge:[],
387
       start:0,
417
       start:0,
388
       end:0,
418
       end:0,
389
-
419
+      lapsetoType: 0,
420
+      lapsetoArr: [
421
+        { value: 0, label: '全部', source: 0, lapseto: 0 },
422
+        { value: 1, label: '转出', source: 0, lapseto: 2 },
423
+        { value: 2, label: '留治', source: 0, lapseto: 1 },
424
+        { value: 3, label: '死亡', source:0,  lapseto: 3 },
425
+      ],
426
+      sourceType: 0,
427
+      sourceArr: [
428
+       { value: 0, label: '全部', source: 0, lapseto: 0 },
429
+       { value: 3, label: '门诊', source: 1, lapseto: 1 },
430
+       { value: 4, label: '住院', source: 2, lapseto: 1 }
431
+      ],
390
       way: 0,
432
       way: 0,
391
       wayArr: [
433
       wayArr: [
392
         { value: 0, label: "统计图", state: 0 },
434
         { value: 0, label: "统计图", state: 0 },
585
         { value: 1, label: "转出", state: 1}
627
         { value: 1, label: "转出", state: 1}
586
       ],
628
       ],
587
       lapseid:0,
629
       lapseid:0,
630
+      startDate:"",
631
+      endDate:"",
588
     };
632
     };
589
 
633
 
590
 
634
 
604
         this.start_time = "";
648
         this.start_time = "";
605
       } else {
649
       } else {
606
          //统计透析总量
650
          //统计透析总量
607
-        this.getDialysisModeType(val,this.listQuery.end_time)
651
+        this.getDialysisModeType(val,this.listQuery.end_time,this.lapsetoType,this.sourceType)
608
         //统计转归状态
652
         //统计转归状态
609
-        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
653
+        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
610
         //统计男女比例
654
         //统计男女比例
611
         this.getTotalSexCount(timeStar,timeEnd)
655
         this.getTotalSexCount(timeStar,timeEnd)
612
         //统计传染病
656
         //统计传染病
613
-        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
657
+        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
614
         //统计年龄
658
         //统计年龄
615
-        this.getTotalAgeCount(timeStar,timeEnd)
659
+        this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
616
         //统计透析年龄
660
         //统计透析年龄
617
-        this.getTotalDialysisCount(timeStar,timeEnd)
661
+        this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
618
         this.start = timeStar
662
         this.start = timeStar
619
         this.end =timeEnd
663
         this.end =timeEnd
620
         this.getCountModeId()
664
         this.getCountModeId()
632
         this.listQuery.end_time = "";
676
         this.listQuery.end_time = "";
633
       } else {
677
       } else {
634
           //统计透析总量
678
           //统计透析总量
635
-        this.getDialysisModeType(this.listQuery.start_time,val)
679
+        this.getDialysisModeType(this.listQuery.start_time,val,this.lapsetoType,this.sourceType)
636
         //统计转归状态
680
         //统计转归状态
637
-        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
681
+        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
638
         //统计男女比例
682
         //统计男女比例
639
-        this.getTotalSexCount(timeStar,timeEnd)
683
+        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
640
         //统计传染病
684
         //统计传染病
641
-        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
685
+        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
642
         //统计年龄
686
         //统计年龄
643
-        this.getTotalAgeCount(timeStar,timeEnd)
687
+        this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
644
         //统计透析年龄
688
         //统计透析年龄
645
-        this.getTotalDialysisCount(timeStar,timeEnd)
689
+        this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
646
         this.start = timeStar
690
         this.start = timeStar
647
         this.end =timeEnd
691
         this.end =timeEnd
648
         this.getCountModeId()
692
         this.getCountModeId()
655
       //获取本月当前机构的透析模式
699
       //获取本月当前机构的透析模式
656
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
700
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
657
       const endDate = moment(new Date()).format('YYYY-MM-DD')
701
       const endDate = moment(new Date()).format('YYYY-MM-DD')
702
+     
658
       var now = new Date()
703
       var now = new Date()
659
       var nowMonth = now.getMonth(); //当前月
704
       var nowMonth = now.getMonth(); //当前月
660
       var nowYear = now.getFullYear(); //当前年
705
       var nowYear = now.getFullYear(); //当前年
669
       //本月
714
       //本月
670
       if(state == 0){
715
       if(state == 0){
671
        //统计透析总量
716
        //统计透析总量
672
-        this.getDialysisModeType(startDate,endDate)
717
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
673
         //统计转归状态
718
         //统计转归状态
674
-        this.getTotalLapseCount(startDate,endDate)
719
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
675
         //统计男女比例
720
         //统计男女比例
676
-        this.getTotalSexCount(timeStar,timeEnd)
721
+        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
677
         //统计传染病
722
         //统计传染病
678
-        this.getTotalInfectiousCount(startDate,endDate)
723
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
679
         //统计年龄
724
         //统计年龄
680
-        this.getTotalAgeCount(timeStar,timeEnd)
725
+        this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
681
         //统计透析年龄
726
         //统计透析年龄
682
-        this.getTotalDialysisCount(timeStar,timeEnd)
727
+        this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
683
         this.start = timeStar
728
         this.start = timeStar
684
         this.end = timeEnd
729
         this.end = timeEnd
685
         this.getCountModeId()
730
         this.getCountModeId()
690
         this.listQuery.start_time = ""
735
         this.listQuery.start_time = ""
691
         this.listQuery.end_time = ""
736
         this.listQuery.end_time = ""
692
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
737
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
693
-        // console.log("三月前",startDate)
738
+       
694
         var startunitx = Date.parse(startDate)/1000
739
         var startunitx = Date.parse(startDate)/1000
695
         // console.log("开始时间搓",startunitx)
740
         // console.log("开始时间搓",startunitx)
696
         const endDate = moment(new Date()).format('YYYY-MM-DD')
741
         const endDate = moment(new Date()).format('YYYY-MM-DD')
698
          var endunitx = Date.parse(endDate)/1000
743
          var endunitx = Date.parse(endDate)/1000
699
         // console.log("日期时间搓",endunitx)
744
         // console.log("日期时间搓",endunitx)
700
          //统计透析总量
745
          //统计透析总量
701
-        this.getDialysisModeType(startDate,endDate)
746
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
702
          //统计转归状态
747
          //统计转归状态
703
-        this.getTotalLapseCount(startDate,endDate)
748
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
704
         //统计男女比例
749
         //统计男女比例
705
-        this.getTotalSexCount(startunitx,endunitx)
750
+        this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
706
         //统计传染病
751
         //统计传染病
707
-        this.getTotalInfectiousCount(startDate,endDate)
752
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
708
         //统计年龄
753
         //统计年龄
709
-        this.getTotalAgeCount(startunitx,endunitx)
754
+        this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
710
         //统计透析年龄
755
         //统计透析年龄
711
-        this.getTotalDialysisCount(startunitx,endunitx)
756
+        this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
712
         this.start = startunitx
757
         this.start = startunitx
713
         this.end = endunitx
758
         this.end = endunitx
714
         this.getCountModeId()
759
         this.getCountModeId()
728
          var endunitx = Date.parse(endDate)/1000
773
          var endunitx = Date.parse(endDate)/1000
729
         // console.log("日期时间搓",endunitx)
774
         // console.log("日期时间搓",endunitx)
730
          //统计透析总量
775
          //统计透析总量
731
-        this.getDialysisModeType(startDate,endDate)
776
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
732
          //统计转归状态
777
          //统计转归状态
733
-        this.getTotalLapseCount(startDate,endDate)
778
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
734
         //统计男女比例
779
         //统计男女比例
735
-        this.getTotalSexCount(startunitx,endunitx)
780
+        this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
736
         //统计传染病
781
         //统计传染病
737
-        this.getTotalInfectiousCount(startDate,endDate)
782
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
738
         //统计年龄
783
         //统计年龄
739
-        this.getTotalAgeCount(startunitx,endunitx)
784
+        this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
740
         //统计透析年龄
785
         //统计透析年龄
741
-        this.getTotalDialysisCount(startunitx,endunitx)
786
+        this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
742
 
787
 
743
         this.start = startunitx
788
         this.start = startunitx
744
         this.end = endunitx
789
         this.end = endunitx
759
          var endunitx = Date.parse(endDate)/1000
804
          var endunitx = Date.parse(endDate)/1000
760
         // console.log("日期时间搓",endunitx)
805
         // console.log("日期时间搓",endunitx)
761
          //统计透析总量
806
          //统计透析总量
762
-        this.getDialysisModeType(startDate,endDate)
807
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
763
          //统计转归状态
808
          //统计转归状态
764
-        this.getTotalLapseCount(startDate,endDate)
809
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
765
         //统计男女比例
810
         //统计男女比例
766
-        this.getTotalSexCount(startunitx,endunitx)
811
+        this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
767
         //统计传染病
812
         //统计传染病
768
-        this.getTotalInfectiousCount(startDate,endDate)
813
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
769
         //统计年龄
814
         //统计年龄
770
-        this.getTotalAgeCount(startunitx,endunitx)
815
+        this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
771
         //统计透析年龄
816
         //统计透析年龄
772
-        this.getTotalDialysisCount(startunitx,endunitx)
817
+        this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
773
 
818
 
774
         this.start = startunitx
819
         this.start = startunitx
775
         this.end = endunitx
820
         this.end = endunitx
790
       this.lapseMode = state
835
       this.lapseMode = state
791
       this.getRolloutCount(this.start,this.end)
836
       this.getRolloutCount(this.start,this.end)
792
     },
837
     },
793
-    getDialysisModeType(startDate,endDate){
838
+    getDialysisModeType(startDate,endDate,lapsetoType,sourceType){
794
        this.modesData.series = []
839
        this.modesData.series = []
795
        this.modesData.xAxis = []
840
        this.modesData.xAxis = []
796
-      getDialysisModeType(startDate,endDate).then(response=>{
841
+      getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
797
          if(response.data.state == 1){
842
          if(response.data.state == 1){
798
 
843
 
799
           var modetype =  response.data.data.modetype
844
           var modetype =  response.data.data.modetype
800
           this.modetype = modetype
845
           this.modetype = modetype
801
           var total =  response.data.data.total
846
           var total =  response.data.data.total
847
+          console.log("total22222222",total)
848
+          // this.total = total[0].count
802
           this.total = total
849
           this.total = total
803
           // console.log("数据",this.modetype)
850
           // console.log("数据",this.modetype)
804
           var modedate = response.data.data.modetype
851
           var modedate = response.data.data.modetype
1167
 
1214
 
1168
          }
1215
          }
1169
       })
1216
       })
1170
-    }
1217
+    },
1218
+    selectSource(source) {
1219
+      this.sourceType = source
1220
+      this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1221
+      this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1222
+      this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1223
+      this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1224
+      this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1225
+      this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1226
+    },
1227
+    selectLapseTo(lapseto) {
1228
+      this.lapsetoType = lapseto
1229
+      this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1230
+      this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231
+      this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1232
+      this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1233
+      this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1234
+      this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1235
+    },
1171
   },
1236
   },
1172
   created() {
1237
   created() {
1173
         //获取本月当前机构的透析模式
1238
         //获取本月当前机构的透析模式
1182
       //本月的结束时间
1247
       //本月的结束时间
1183
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
1248
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
1184
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
1249
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
1250
+
1251
+      this.startDate = startDate
1252
+      this.endDate = endDate
1185
       //统计透析总量
1253
       //统计透析总量
1186
-      this.getDialysisModeType(startDate,endDate)
1254
+      this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
1187
       //统计转归状态
1255
       //统计转归状态
1188
-      this.getTotalLapseCount(startDate,endDate)
1256
+      this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
1189
       //统计男女比例
1257
       //统计男女比例
1190
-      this.getTotalSexCount(timeStar,timeEnd)
1258
+      this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1191
       //统计传染病
1259
       //统计传染病
1192
-      this.getTotalInfectiousCount(startDate,endDate)
1260
+      this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
1193
       //统计年龄
1261
       //统计年龄
1194
-      this.getTotalAgeCount(timeStar,timeEnd)
1262
+      this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1195
       //统计透析年龄
1263
       //统计透析年龄
1196
-      this.getTotalDialysisCount(timeStar,timeEnd)
1264
+      this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1197
 
1265
 
1198
       //获取当前选中时间所有的透析模式
1266
       //获取当前选中时间所有的透析模式
1199
       this.getTreatModeList(timeStar,timeEnd)
1267
       this.getTreatModeList(timeStar,timeEnd)

+ 189 - 70
src/xt_pages/workforce/appointment.vue Wyświetl plik

529
           }
529
           }
530
           
530
           
531
           if(this.export_type == 1){
531
           if(this.export_type == 1){
532
-            console.log("333333",this.newDay)
533
-             const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[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]+")", '', '']]
534
-             const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
532
+
533
+            console.log("44444444",this.tableList)
534
+            //  const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[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]+")", '', '']]
535
+            //  const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
536
+            //  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']
537
+            const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '']]
538
+             const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
535
              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']
539
              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']
536
-            var list = []
540
+           var list = []
537
             let i = 0
541
             let i = 0
538
             for (let key  in this.partitions) {
542
             for (let key  in this.partitions) {
539
               var tempValue
543
               var tempValue
659
         return isShow
663
         return isShow
660
       },
664
       },
661
        handleSuccess({ results, header }) {
665
        handleSuccess({ results, header }) {
662
-       
666
+        
663
         let headers = []
667
         let headers = []
664
         for (let key in results[0]) {
668
         for (let key in results[0]) {
665
           headers.push(key)
669
           headers.push(key)
666
         }
670
         }
667
-        if (results.length > 0) {
671
+        if (results.length > 20) {
668
           var isHas_1 = headers.includes('区号')
672
           var isHas_1 = headers.includes('区号')
669
           console.log("1"+isHas_1)
673
           console.log("1"+isHas_1)
670
           var isHas_2 = headers.includes('机号')
674
           var isHas_2 = headers.includes('机号')
889
             this.dialogVisible = true
893
             this.dialogVisible = true
890
             return
894
             return
891
           }
895
           }
892
-        } else {
896
+        }else if(results.length == 20){
897
+            var isHas_1 = headers.includes('区号')
898
+          console.log("1"+isHas_1)
899
+          var isHas_2 = headers.includes('机号')
900
+          console.log("2"+isHas_2)
901
+
902
+
903
+          var isHas_3 = headers.includes('周一'+"("+this.days[0]+")")
904
+          console.log("3"+isHas_3)
905
+
906
+
907
+          var isHas_4 = headers.includes('')
908
+          console.log("4"+isHas_4)
909
+
910
+
911
+          var isHas_5 = headers.includes('_1')
912
+          console.log("5"+isHas_5)
913
+
914
+          var isHas_6 = headers.includes('周二'+"("+this.days[1]+")")
915
+          console.log("6"+isHas_6)
916
+
917
+          var isHas_7 = headers.includes('_2')
918
+          console.log("7"+isHas_7)
919
+
920
+          var isHas_8 = headers.includes('_3')
921
+          console.log("8"+isHas_8)
922
+
923
+          var isHas_9 = headers.includes('周三'+"("+this.days[2]+")")
924
+          console.log("9"+isHas_9)
925
+
926
+          var isHas_10 = headers.includes('_4')
927
+          console.log("10"+isHas_10)
928
+
929
+          var isHas_11 = headers.includes('_5')
930
+          console.log("11"+isHas_11)
931
+
932
+          var isHas_12 = headers.includes('周四'+"("+this.days[3]+")")
933
+          console.log("12"+isHas_12)
934
+
935
+          var isHas_13 = headers.includes('_6')
936
+          console.log("13"+isHas_13)
937
+
938
+          var isHas_14 = headers.includes('_7')
939
+          console.log("14"+isHas_14)
940
+
941
+          var isHas_15 = headers.includes('周五'+"("+this.days[4]+")")
942
+          console.log("15"+isHas_15)
943
+
944
+          var isHas_16 = headers.includes('_8')
945
+          console.log("16"+isHas_16)
946
+
947
+
948
+          var isHas_17 = headers.includes('_9')
949
+          console.log("17"+isHas_17)
950
+
951
+
952
+          var isHas_18 = headers.includes('周六'+"("+this.days[5]+")")
953
+          console.log("18"+isHas_18)
954
+
955
+
956
+          var isHas_19 = headers.includes('_10')
957
+          console.log("19"+isHas_19)
893
 
958
 
894
 
959
 
960
+          var isHas_20 = headers.includes('_11')
961
+          console.log("20"+isHas_20)
962
+
963
+
964
+          var isHas_21 = headers.includes('周日'+"("+this.days[6]+")")
965
+          console.log("21"+isHas_21)
966
+
967
+          var isHas_22 = headers.includes('_12')
968
+          console.log("22"+isHas_22)
969
+
970
+          var isHas_23 = headers.includes('_13')
971
+          console.log("23"+isHas_23)
972
+         
973
+         if (!(isHas_1 && isHas_2 && isHas_3 && isHas_4 && isHas_5 &&
974
+            isHas_6 && isHas_7 && isHas_8 && isHas_9 && isHas_10 &&
975
+            isHas_11 && isHas_12 && isHas_13 && isHas_14 && isHas_15 &&
976
+            isHas_16 && isHas_17 && isHas_18 && isHas_19 && isHas_20 &&
977
+            isHas_21)) {
978
+            this.dialogVisible = true
979
+            return
980
+          }
981
+
982
+        } else {
895
 
983
 
896
           this.dialogVisible = true
984
           this.dialogVisible = true
897
           return
985
           return
2071
                 
2159
                 
2072
                   obj['区号'] = partitions[key].name
2160
                   obj['区号'] = partitions[key].name
2073
                   obj['机号'] = jihaos[b].number.toString()
2161
                   obj['机号'] = jihaos[b].number.toString()
2162
+                
2163
+                if(this.export_type == 0){
2164
+                    obj['shangwu'] = ''
2165
+                    obj['xiawu'] = ''
2166
+                    obj['wanshang'] = ''
2074
 
2167
 
2168
+                    obj['shangwu1'] = ''
2169
+                    obj['xiawu1'] = ''
2170
+                    obj['wanshang1'] = ''
2075
 
2171
 
2076
-                  obj['shangwu'] = ''
2077
-                  obj['xiawu'] = ''
2078
-                  obj['wanshang'] = ''
2172
+                    obj['shangwu2'] = ''
2173
+                    obj['xiawu2'] = ''
2174
+                    obj['wanshang2'] = ''
2079
 
2175
 
2080
-                  obj['shangwu1'] = ''
2081
-                  obj['xiawu1'] = ''
2082
-                  obj['wanshang1'] = ''
2176
+                    obj['shangwu3'] = ''
2177
+                    obj['xiawu3'] = ''
2178
+                    obj['wanshang3'] = ''
2083
 
2179
 
2084
-                  obj['shangwu2'] = ''
2085
-                  obj['xiawu2'] = ''
2086
-                  obj['wanshang2'] = ''
2180
+                    obj['shangwu4'] = ''
2181
+                    obj['xiawu4'] = ''
2182
+                    obj['wanshang4'] = ''
2087
 
2183
 
2088
-                  obj['shangwu3'] = ''
2089
-                  obj['xiawu3'] = ''
2090
-                  obj['wanshang3'] = ''
2091
 
2184
 
2092
-                  obj['shangwu4'] = ''
2093
-                  obj['xiawu4'] = ''
2094
-                  obj['wanshang4'] = ''
2185
+                    obj['shangwu5'] = ''
2186
+                    obj['xiawu5'] = ''
2187
+                    obj['wanshang5'] = ''
2095
 
2188
 
2189
+                    obj['shangwu6'] = ''
2190
+                    obj['xiawu6'] = ''
2191
+                    obj['wanshang6'] = ''
2096
 
2192
 
2097
-                  obj['shangwu5'] = ''
2098
-                  obj['xiawu5'] = ''
2099
-                  obj['wanshang5'] = ''
2193
+                    obj['shangwu7'] = ''
2194
+                    obj['xiawu7'] = ''
2195
+                    obj['wanshang7'] = ''
2100
 
2196
 
2101
-                  obj['shangwu6'] = ''
2102
-                  obj['xiawu6'] = ''
2103
-                  obj['wanshang6'] = ''
2197
+                    obj['shangwu8'] = ''
2198
+                    obj['xiawu8'] = ''
2199
+                    obj['wanshang8'] = ''
2104
 
2200
 
2105
-                  obj['shangwu7'] = ''
2106
-                  obj['xiawu7'] = ''
2107
-                  obj['wanshang7'] = ''
2201
+                    obj['shangwu9'] = ''
2202
+                    obj['xiawu9'] = ''
2203
+                    obj['wanshang9'] = ''
2108
 
2204
 
2109
-                  obj['shangwu8'] = ''
2110
-                  obj['xiawu8'] = ''
2111
-                  obj['wanshang8'] = ''
2205
+                    obj['shangwu10'] = ''
2206
+                    obj['xiawu10'] = ''
2207
+                    obj['wanshang10'] = ''
2112
 
2208
 
2113
-                  obj['shangwu9'] = ''
2114
-                  obj['xiawu9'] = ''
2115
-                  obj['wanshang9'] = ''
2209
+                    obj['shangwu11'] = ''
2210
+                    obj['xiawu11'] = ''
2211
+                    obj['wanshang11'] = ''
2116
 
2212
 
2117
-                  obj['shangwu10'] = ''
2118
-                  obj['xiawu10'] = ''
2119
-                  obj['wanshang10'] = ''
2120
 
2213
 
2121
-                  obj['shangwu11'] = ''
2122
-                  obj['xiawu11'] = ''
2123
-                  obj['wanshang11'] = ''
2214
+                    obj['shangwu12'] = ''
2215
+                    obj['xiawu12'] = ''
2216
+                    obj['wanshang12'] = ''
2124
 
2217
 
2218
+                    obj['shangwu13'] = ''
2219
+                    obj['xiawu13'] = ''
2220
+                    obj['wanshang13'] = ''
2125
 
2221
 
2126
-                  obj['shangwu12'] = ''
2127
-                  obj['xiawu12'] = ''
2128
-                  obj['wanshang12'] = ''
2129
 
2222
 
2130
-                  obj['shangwu13'] = ''
2131
-                  obj['xiawu13'] = ''
2132
-                  obj['wanshang13'] = ''
2223
+                    obj['shangwu14'] = ''
2224
+                    obj['xiawu14'] = ''
2225
+                    obj['wanshang14'] = ''
2133
 
2226
 
2134
 
2227
 
2135
-                  obj['shangwu14'] = ''
2136
-                  obj['xiawu14'] = ''
2137
-                  obj['wanshang14'] = ''
2228
+                    obj['shangwu15'] = ''
2229
+                    obj['xiawu15'] = ''
2230
+                    obj['wanshang15'] = ''
2138
 
2231
 
2232
+                    obj['shangwu16'] = ''
2233
+                    obj['xiawu16'] = ''
2234
+                    obj['wanshang16'] = ''
2139
 
2235
 
2140
-                  obj['shangwu15'] = ''
2141
-                  obj['xiawu15'] = ''
2142
-                  obj['wanshang15'] = ''
2236
+                    obj['shangwu17'] = ''
2237
+                    obj['xiawu17'] = ''
2238
+                    obj['wanshang17'] = ''
2143
 
2239
 
2144
-                  obj['shangwu16'] = ''
2145
-                  obj['xiawu16'] = ''
2146
-                  obj['wanshang16'] = ''
2240
+                    obj['shangwu18'] = ''
2241
+                    obj['xiawu18'] = ''
2242
+                    obj['wanshang18'] = ''
2147
 
2243
 
2148
-                  obj['shangwu17'] = ''
2149
-                  obj['xiawu17'] = ''
2150
-                  obj['wanshang17'] = ''
2244
+                    obj['shangwu19'] = ''
2245
+                    obj['xiawu19'] = ''
2246
+                    obj['wanshang19'] = ''
2151
 
2247
 
2152
-                  obj['shangwu18'] = ''
2153
-                  obj['xiawu18'] = ''
2154
-                  obj['wanshang18'] = ''
2155
 
2248
 
2156
-                  obj['shangwu19'] = ''
2157
-                  obj['xiawu19'] = ''
2158
-                  obj['wanshang19'] = ''
2249
+                    obj['shangwu20'] = ''
2250
+                    obj['xiawu20'] = ''
2251
+                    obj['wanshang20'] = ''
2252
+                }
2253
+                
2254
+                 if(this.export_type == 1){
2255
+                    obj['shangwu'] = ''
2256
+                    obj['xiawu'] = ''
2257
+                    obj['wanshang'] = ''
2159
 
2258
 
2259
+                    obj['shangwu1'] = ''
2260
+                    obj['xiawu1'] = ''
2261
+                    obj['wanshang1'] = ''
2160
 
2262
 
2161
-                  obj['shangwu20'] = ''
2162
-                  obj['xiawu20'] = ''
2163
-                  obj['wanshang20'] = ''
2263
+                    obj['shangwu2'] = ''
2264
+                    obj['xiawu2'] = ''
2265
+                    obj['wanshang2'] = ''
2164
 
2266
 
2267
+                    obj['shangwu3'] = ''
2268
+                    obj['xiawu3'] = ''
2269
+                    obj['wanshang3'] = ''
2270
+
2271
+                    obj['shangwu4'] = ''
2272
+                    obj['xiawu4'] = ''
2273
+                    obj['wanshang4'] = ''
2274
+
2275
+
2276
+                    obj['shangwu5'] = ''
2277
+                    obj['xiawu5'] = ''
2278
+                    obj['wanshang5'] = ''
2279
+
2280
+                    obj['shangwu6'] = ''
2281
+                    obj['xiawu6'] = ''
2282
+                    obj['wanshang6'] = ''
2283
+                 }
2165
                   list.push(obj)
2284
                   list.push(obj)
2166
 
2285
 
2167
                 }
2286
                 }