Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

XMLWAN 4 years ago
parent
commit
845f8efaa7

+ 6 - 0
src/components/UploadExcel/index.vue View File

104
       return o
104
       return o
105
     },
105
     },
106
     get_header_row(sheet) {
106
     get_header_row(sheet) {
107
+      console.log(sheet['!ref'] )
108
+      if(sheet['!ref'] == undefined){
109
+        this.loading = false
110
+        return
111
+      }
112
+
107
       const headers = []
113
       const headers = []
108
       const range = XLSX.utils.decode_range(sheet['!ref'])
114
       const range = XLSX.utils.decode_range(sheet['!ref'])
109
       let C
115
       let C

+ 5 - 0
src/xt_pages/components/UploadExcel/index.vue View File

103
         return o
103
         return o
104
       },
104
       },
105
       get_header_row(sheet) {
105
       get_header_row(sheet) {
106
+        if(sheet['!ref'] == undefined){
107
+          this.loading = false
108
+          return
109
+        }
110
+
106
         const headers = []
111
         const headers = []
107
         const range = XLSX.utils.decode_range(sheet['!ref'])
112
         const range = XLSX.utils.decode_range(sheet['!ref'])
108
         let C
113
         let C

+ 21 - 21
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue View File

26
               </div>
26
               </div>
27
               <table class="print-table" style="margin-top: 10px;" border="1">
27
               <table class="print-table" style="margin-top: 10px;" border="1">
28
                 <tr>
28
                 <tr>
29
-                  <td style="text-align:center;">
29
+                  <td style="text-align:center;" width="140">
30
                     <span style="display:inline-block;margin-left:10px;">
30
                     <span style="display:inline-block;margin-left:10px;">
31
                       {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
31
                       {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
32
                     </span>
32
                     </span>
33
                   </td>
33
                   </td>
34
-                  <td style="text-align:center">
34
+                  <td style="text-align:center" width="140">
35
                     姓名:<span style="display:inline-block;margin-left:10px;">
35
                     姓名:<span style="display:inline-block;margin-left:10px;">
36
                        {{ record.patient.name }}
36
                        {{ record.patient.name }}
37
                     </span>
37
                     </span>
43
                     {{ record.patient.gender == 1 ? '男' : '女' }}
43
                     {{ record.patient.gender == 1 ? '男' : '女' }}
44
                     </span>
44
                     </span>
45
                   </td>
45
                   </td>
46
-                  <td style="text-align:center;">
46
+                  <td style="text-align:center;width:100px">
47
                     年龄:<span
47
                     年龄:<span
48
                       style="display:inline-block;margin-left:10px;"
48
                       style="display:inline-block;margin-left:10px;"
49
                     >
49
                     >
50
                     {{ getAge(record.patient) }}
50
                     {{ getAge(record.patient) }}
51
                     </span>
51
                     </span>
52
                   </td>
52
                   </td>
53
-                  <td style="text-align:center;">
53
+                  <td style="text-align:center;width:160px">
54
                     <check-box text="门诊" :checked="record.receive_assessment.condition == 1"></check-box>
54
                     <check-box text="门诊" :checked="record.receive_assessment.condition == 1"></check-box>
55
                    &nbsp;
55
                    &nbsp;
56
                      <check-box text="住院" :checked="record.receive_assessment.condition == 2"></check-box>
56
                      <check-box text="住院" :checked="record.receive_assessment.condition == 2"></check-box>
57
                   </td>
57
                   </td>
58
-                  <td style="text-align:center;width:160px"">
58
+                  <td style="text-align:center;width:160px">
59
                     住院号:<span style="display:inline-block;margin-left:10px;">
59
                     住院号:<span style="display:inline-block;margin-left:10px;">
60
                        {{record.receive_assessment.admission_number?record.receive_assessment.admission_number:"/"}}
60
                        {{record.receive_assessment.admission_number?record.receive_assessment.admission_number:"/"}}
61
                     </span>
61
                     </span>
132
                       }}kg</span
132
                       }}kg</span
133
                     >
133
                     >
134
                   </td>
134
                   </td>
135
-                  <td style="text-align:left;" colspan="2">
135
+                  <td style="text-align:left;" width="160">
136
                     <span style="display:inline-block;margin-left:15px;"
136
                     <span style="display:inline-block;margin-left:15px;"
137
                       >电导率:{{record.prescription.conductivity?record.prescription.conductivity:"0"}}(mS/cm)</span
137
                       >电导率:{{record.prescription.conductivity?record.prescription.conductivity:"0"}}(mS/cm)</span
138
                     >
138
                     >
223
                       {{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:"0"}}
223
                       {{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:"0"}}
224
                       </span>&nbsp;L
224
                       </span>&nbsp;L
225
                   </td>
225
                   </td>
226
-                   <td style="text-align:left;" colspan="3">
226
+                   <td style="text-align:left;" colspan="2">
227
                     <span style="display:inline-block;margin-left:15px;"
227
                     <span style="display:inline-block;margin-left:15px;"
228
                       >透析时间:
228
                       >透析时间:
229
                      {{
229
                      {{
234
                          record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_minute
234
                          record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_minute
235
                          ? record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_minute
235
                          ? record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_minute
236
                          : "0"
236
                          : "0"
237
-                          }}分钟</span
238
-                      </span>&nbsp;L
237
+                          }}分钟</span>
238
+                      &nbsp;L
239
                   </td>
239
                   </td>
240
                    <td style="text-align:left;" >
240
                    <td style="text-align:left;" >
241
                     <span style="display:inline-block;margin-left:15px;"
241
                     <span style="display:inline-block;margin-left:15px;"
247
                         }}
247
                         }}
248
                       </span>&nbsp;L
248
                       </span>&nbsp;L
249
                   </td>
249
                   </td>
250
-                   <td style="text-align:left;" colspan="1">
250
+                   <td style="text-align:left;" colspan="2">
251
                     <span style="display:inline-block;margin-left:15px;"
251
                     <span style="display:inline-block;margin-left:15px;"
252
                       >置换方式:
252
                       >置换方式:
253
                        <label-box
253
                        <label-box
301
                           /></span>
301
                           /></span>
302
                   </td>
302
                   </td>
303
                   <td style="text-align:left;">
303
                   <td style="text-align:left;">
304
-                    <span style="display:inline-block;margin-left:15px;"
304
+                    <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
305
                       >上机护士:
305
                       >上机护士:
306
                        <span
306
                        <span
307
                             v-if="
307
                             v-if="
330
                       </span>
330
                       </span>
331
                   </td>
331
                   </td>
332
                    <td style="text-align:left;" colspan="3">
332
                    <td style="text-align:left;" colspan="3">
333
-                    <span style="display:inline-block;margin-left:15px;"
333
+                    <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
334
                       >抗凝剂执行护士:
334
                       >抗凝剂执行护士:
335
                        <span
335
                        <span
336
                             v-if="
336
                             v-if="
891
          <td> {{ monitor.symptom }} &nbsp;{{ monitor.result }}</td>
891
          <td> {{ monitor.symptom }} &nbsp;{{ monitor.result }}</td>
892
          <td colspan="2">
892
          <td colspan="2">
893
            <span v-show="showOne">{{getName(monitor.monitoring_nurse)}}</span>
893
            <span v-show="showOne">{{getName(monitor.monitoring_nurse)}}</span>
894
-           <span v-show="showTwo"><img :src="getName(monitor.monitoring_nurse)" style="height:30px"></span>
894
+           <span v-show="showTwo" style="display:flex;align-items:center;height:36px;"><img :src="getName(monitor.monitoring_nurse)" style="height:30px;margin:0 auto;"></span>
895
          </td>
895
          </td>
896
         </tr>
896
         </tr>
897
          <tr>
897
          <tr>
1106
                                 getAdminUser(advice[0], "advice_doctor")
1106
                                 getAdminUser(advice[0], "advice_doctor")
1107
                               }}</span
1107
                               }}</span
1108
                             >
1108
                             >
1109
+                            <span v-else style="display:flex;align-items:center;height:36px;">
1109
                             <img
1110
                             <img
1110
                               class="es-img"
1111
                               class="es-img"
1111
                               :src="
1112
                               :src="
1113
                               "
1114
                               "
1114
                               alt=""
1115
                               alt=""
1115
                               srcset=""
1116
                               srcset=""
1116
-                              v-else
1117
-                              style="height: 20px;"
1118
-                            /></td>
1117
+                              style="height: 30px;margin:0 auto"
1118
+                            /></span></td>
1119
           <td style="text-align:left;padding-left:20px"> <span v-if="advice[0].parent_id > 0">└</span>
1119
           <td style="text-align:left;padding-left:20px"> <span v-if="advice[0].parent_id > 0">└</span>
1120
                        <span>{{ advice[0].advice_name }}</span>
1120
                        <span>{{ advice[0].advice_name }}</span>
1121
                         <span
1121
                         <span
1143
                                 getAdminUser(advice[0], "execution_staff")
1143
                                 getAdminUser(advice[0], "execution_staff")
1144
                               }}</span
1144
                               }}</span
1145
                             >
1145
                             >
1146
+                            <span v-else style="display:flex;align-items:center;height:36px;">
1146
                             <img
1147
                             <img
1147
                               class="es-img"
1148
                               class="es-img"
1148
                               :src="
1149
                               :src="
1150
                               "
1151
                               "
1151
                               alt=""
1152
                               alt=""
1152
                               srcset=""
1153
                               srcset=""
1153
-                              v-else
1154
-                              style="height: 20px;"
1155
-                            />
1154
+                              style="height: 30px;margin:0 auto"
1155
+                            /></span>
1156
                    </td>
1156
                    </td>
1157
           <td>{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</td>
1157
           <td>{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</td>
1158
           <td>
1158
           <td>
1160
                v-if="setAdminUserES(advice[0], 'checker') == ''"
1160
                v-if="setAdminUserES(advice[0], 'checker') == ''"
1161
               >{{ getAdminUser(advice[0], "checker") }}</span
1161
               >{{ getAdminUser(advice[0], "checker") }}</span
1162
               >
1162
               >
1163
+              <span v-else style="display:flex;align-items:center;height:36px;">
1163
                <img
1164
                <img
1164
                  class="es-img"
1165
                  class="es-img"
1165
                  :src="setAdminUserES(advice[0], 'checker')"
1166
                  :src="setAdminUserES(advice[0], 'checker')"
1166
                  alt=""
1167
                  alt=""
1167
                  srcset=""
1168
                  srcset=""
1168
-                 v-else
1169
-                 style="height: 20px;"
1169
+                 style="height: 30px;"
1170
                /></span>
1170
                /></span>
1171
           </td>
1171
           </td>
1172
         </tr>
1172
         </tr>

+ 18 - 14
src/xt_pages/user/patients.vue View File

700
 
700
 
701
       },
701
       },
702
       handleSuccess({ results, header }) {
702
       handleSuccess({ results, header }) {
703
-        console.log(header)
704
-        console.log(results)
705
-
706
-        var isHasName = header.includes('*姓名')
707
-        var isHasGender = header.includes('*性别')
708
-        var isHasPhone = header.includes('*手机号')
709
-        var isHasIdCard = header.includes('*身份证号')
710
-        var isHasDate = header.includes('*首次肾脏治疗时间')
711
-        var isHasSource = header.includes('*患者来源')
712
-        var isHasLapseto = header.includes('*治疗状态')
713
-        var isHasInfectious = header.includes('*传染病')
714
-        var isHasDiagnose = header.includes('诊断')
715
-        if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose)) {
703
+
704
+
705
+        if (header != undefined && header.length > 0) {
706
+          var isHasName = header.includes('*姓名')
707
+          var isHasGender = header.includes('*性别')
708
+          var isHasPhone = header.includes('*手机号')
709
+          var isHasIdCard = header.includes('*身份证号')
710
+          var isHasDate = header.includes('*首次肾脏治疗时间')
711
+          var isHasSource = header.includes('*患者来源')
712
+          var isHasLapseto = header.includes('*治疗状态')
713
+          var isHasInfectious = header.includes('*传染病')
714
+          var isHasDiagnose = header.includes('诊断')
715
+          if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose)) {
716
+            this.dialogVisible = true
717
+            return
718
+          }
719
+        }else{
716
           this.dialogVisible = true
720
           this.dialogVisible = true
717
           return
721
           return
718
         }
722
         }
719
         this.export_date = []
723
         this.export_date = []
720
-        for (let i = 0; i < results.length; i++) {
724
+        for (let i = 1; i < results.length; i++) {
721
           let obj = {}
725
           let obj = {}
722
           for (var key in results[i]) {
726
           for (var key in results[i]) {
723
             if (results[i]['*姓名'] === undefined) {
727
             if (results[i]['*姓名'] === undefined) {

+ 142 - 0
src/xt_pages/workforce/appointment.vue View File

477
         return isShow
477
         return isShow
478
       }, handleSuccess({ results, header }) {
478
       }, handleSuccess({ results, header }) {
479
 
479
 
480
+
481
+
482
+        if(results.length > 0) {
483
+          let headers = []
484
+          for (let key in results[0]) {
485
+            headers.push(key)
486
+          }
487
+
488
+          var isHas_1 = headers.includes('区号')
489
+          console.log(isHas_1)
490
+          var isHas_2 = headers.includes('机号')
491
+          console.log(isHas_2)
492
+
493
+          var isHas_3 = headers.includes('周一')
494
+          console.log(isHas_3)
495
+
496
+          var isHas_4 = headers.includes('')
497
+          console.log(isHas_4)
498
+
499
+          var isHas_5 = headers.includes('_1')
500
+          console.log(isHas_5)
501
+
502
+          var isHas_6 = headers.includes('周二')
503
+          console.log(isHas_6)
504
+
505
+          var isHas_7 = headers.includes('_2')
506
+          console.log(isHas_7)
507
+
508
+          var isHas_8 = headers.includes('_3')
509
+          console.log(isHas_8)
510
+
511
+          var isHas_9 = headers.includes('周三')
512
+          console.log(isHas_9)
513
+
514
+          var isHas_10 = headers.includes('_4')
515
+          console.log(isHas_1)
516
+
517
+          var isHas_11 = headers.includes('_5')
518
+          console.log(isHas_1)
519
+
520
+          var isHas_12 = headers.includes('周四')
521
+          console.log(isHas_1)
522
+
523
+          var isHas_13 = headers.includes('_6')
524
+          console.log(isHas_1)
525
+
526
+          var isHas_14 = headers.includes('_7')
527
+          console.log(isHas_1)
528
+
529
+          var isHas_15 = headers.includes('周五')
530
+          console.log(isHas_1)
531
+
532
+          var isHas_16 = headers.includes('_8')
533
+          console.log(isHas_1)
534
+
535
+          var isHas_17 = headers.includes('_9')
536
+          console.log(isHas_1)
537
+
538
+          var isHas_18 = headers.includes('周六')
539
+          console.log(isHas_1)
540
+
541
+          var isHas_19 = headers.includes('_10')
542
+          console.log(isHas_1)
543
+
544
+          var isHas_20 = headers.includes('_11')
545
+          console.log(isHas_1)
546
+
547
+          var isHas_21 = headers.includes('周日')
548
+          console.log(isHas_1)
549
+
550
+          var isHas_22 = headers.includes('_12')
551
+          console.log(isHas_1)
552
+
553
+          var isHas_23 = headers.includes('_13')
554
+          console.log(isHas_1)
555
+
556
+          var isHas_24 = headers.includes('周一_1')
557
+          var isHas_25 = headers.includes('_14')
558
+          var isHas_26 = headers.includes('_15')
559
+          var isHas_27 = headers.includes('周二_1')
560
+          var isHas_28 = headers.includes('_16')
561
+          var isHas_29 = headers.includes('_17')
562
+          var isHas_30 = headers.includes('周三_1')
563
+          var isHas_31 = headers.includes('_18')
564
+          var isHas_32 = headers.includes('_19')
565
+          var isHas_33 = headers.includes('周四_1')
566
+          var isHas_34 = headers.includes('_20')
567
+          var isHas_35 = headers.includes('_21')
568
+          var isHas_36 = headers.includes('周五_1')
569
+          var isHas_37 = headers.includes('_22')
570
+          var isHas_38 = headers.includes('_23')
571
+          var isHas_39 = headers.includes('周六_1')
572
+          var isHas_40 = headers.includes('_24')
573
+          var isHas_41 = headers.includes('_25')
574
+          var isHas_42 = headers.includes('周日_1')
575
+          var isHas_43 = headers.includes('_26')
576
+          var isHas_44 = headers.includes('_27')
577
+          var isHas_45 = headers.includes('周一_2')
578
+          var isHas_46 = headers.includes('_28')
579
+          var isHas_47 = headers.includes('_29')
580
+          var isHas_48 = headers.includes('周二_2')
581
+          var isHas_49 = headers.includes('_30')
582
+          var isHas_50 = headers.includes('_31')
583
+          var isHas_51 = headers.includes('周三_2')
584
+          var isHas_52 = headers.includes('_32')
585
+          var isHas_53 = headers.includes('_33')
586
+          var isHas_54 = headers.includes('周四_2')
587
+          var isHas_55 = headers.includes('_34')
588
+          var isHas_56 = headers.includes('_35')
589
+          var isHas_57 = headers.includes('周五_2')
590
+          var isHas_58 = headers.includes('_36')
591
+          var isHas_59 = headers.includes('_37')
592
+          var isHas_60 = headers.includes('周六_2')
593
+          var isHas_61 = headers.includes('_38')
594
+          var isHas_62 = headers.includes('_39')
595
+          var isHas_63 = headers.includes('周日_2')
596
+          var isHas_64 = headers.includes('_40')
597
+          var isHas_65 = headers.includes('_41')
598
+
599
+          if (!(isHas_1 && isHas_2 && isHas_3 && isHas_4 && isHas_5 &&
600
+            isHas_6 && isHas_7 && isHas_8 && isHas_9 && isHas_10 &&
601
+            isHas_11 && isHas_12 && isHas_13 && isHas_14 && isHas_15 &&
602
+            isHas_16 && isHas_17 && isHas_18 && isHas_19 && isHas_20 &&
603
+            isHas_21 && isHas_22 && isHas_23 && isHas_24 && isHas_25 &&
604
+            isHas_26 && isHas_27 && isHas_28 && isHas_29 && isHas_30 &&
605
+            isHas_31 && isHas_32 && isHas_33 && isHas_34 && isHas_35 &&
606
+            isHas_36 && isHas_37 && isHas_38 && isHas_39 && isHas_40 &&
607
+            isHas_41 && isHas_42 && isHas_43 && isHas_44 && isHas_45 &&
608
+            isHas_46 && isHas_47 && isHas_48 && isHas_49 && isHas_50 &&
609
+            isHas_51 && isHas_52 && isHas_53 && isHas_54 && isHas_55 &&
610
+            isHas_56 && isHas_57 && isHas_58 && isHas_59 && isHas_60 &&
611
+            isHas_61 && isHas_62 && isHas_63 && isHas_64 && isHas_65)) {
612
+            this.dialogVisible = true
613
+            return
614
+          }
615
+        }else{
616
+          this.dialogVisible = true
617
+          return
618
+        }
619
+
620
+
621
+
480
         let is_system_zone = true
622
         let is_system_zone = true
481
         let is_device_number = true
623
         let is_device_number = true
482
         let zones = []
624
         let zones = []

+ 31 - 0
src/xt_pages/workforce/components/scheduleTemplateUploadExcel/index.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
+    <el-dialog
4
+      title="提示"
5
+      :visible.sync="dialogVisible"
6
+      width="40%"
7
+    >
8
+      <span>您提交的文档不是系统标准导入模板,请检查您的文档或重新下载文档</span>
9
+      <span slot="footer" class="dialog-footer">
10
+    <el-button @click="dialogVisible = false">取 消</el-button>
11
+    <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
12
+  </span>
13
+    </el-dialog>
14
+
3
     <el-dialog
15
     <el-dialog
4
       :visible.sync="msgTipVisible"
16
       :visible.sync="msgTipVisible"
5
       width="40%"
17
       width="40%"
29
       return {
41
       return {
30
         loading: false,
42
         loading: false,
31
         msgTipVisible:false,
43
         msgTipVisible:false,
44
+        dialogVisible:false,
32
         excelData: {
45
         excelData: {
33
           header: null,
46
           header: null,
34
           results: null
47
           results: null
104
           const reader = new FileReader()
117
           const reader = new FileReader()
105
           reader.onload = e => {
118
           reader.onload = e => {
106
             const data = e.target.result
119
             const data = e.target.result
120
+            console.log(data)
121
+
107
             const fixedData = this.fixdata(data)
122
             const fixedData = this.fixdata(data)
123
+            console.log(fixedData)
124
+
108
             const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
125
             const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
126
+            console.log(workbook)
127
+
109
             const firstSheetName = workbook.SheetNames[0]
128
             const firstSheetName = workbook.SheetNames[0]
129
+            console.log(firstSheetName)
130
+
110
             const worksheet = workbook.Sheets[firstSheetName]
131
             const worksheet = workbook.Sheets[firstSheetName]
132
+            console.log(worksheet)
133
+
134
+
135
+
111
             const header = this.get_header_row(worksheet)
136
             const header = this.get_header_row(worksheet)
112
             const results = XLSX.utils.sheet_to_json(worksheet)
137
             const results = XLSX.utils.sheet_to_json(worksheet)
113
             this.generateDate({ header, results })
138
             this.generateDate({ header, results })
126
         return o
151
         return o
127
       },
152
       },
128
       get_header_row(sheet) {
153
       get_header_row(sheet) {
154
+        if(sheet['!ref'] == undefined){
155
+          this.loading = false
156
+          return
157
+        }
158
+
159
+
129
         const headers = []
160
         const headers = []
130
         const range = XLSX.utils.decode_range(sheet['!ref'])
161
         const range = XLSX.utils.decode_range(sheet['!ref'])
131
         let C
162
         let C

+ 6 - 0
src/xt_pages/workforce/components/scheduleUploadExcel/index.vue View File

126
         return o
126
         return o
127
       },
127
       },
128
       get_header_row(sheet) {
128
       get_header_row(sheet) {
129
+
130
+        if(sheet['!ref'] == undefined){
131
+          this.loading = false
132
+          return
133
+        }
134
+
129
         const headers = []
135
         const headers = []
130
         const range = XLSX.utils.decode_range(sheet['!ref'])
136
         const range = XLSX.utils.decode_range(sheet['!ref'])
131
         let C
137
         let C

+ 214 - 0
src/xt_pages/workforce/template.vue View File

281
       },
281
       },
282
       handleSuccess({ results, header }) {
282
       handleSuccess({ results, header }) {
283
 
283
 
284
+        console.log(this.template_mode.mode)
285
+        if (this.template_mode.mode == 1) {
286
+          if(results.length > 0) {
287
+            let headers = []
288
+            for (let key in results[0]) {
289
+              headers.push(key)
290
+            }
291
+            var isHas_1 = headers.includes('区号')
292
+            console.log(isHas_1)
293
+            var isHas_2 = headers.includes('机号')
294
+            console.log(isHas_2)
295
+
296
+            var isHas_3 = headers.includes('周一')
297
+            console.log(isHas_3)
298
+
299
+            var isHas_4 = headers.includes('')
300
+            console.log(isHas_4)
301
+
302
+            var isHas_5 = headers.includes('_1')
303
+            console.log(isHas_5)
304
+
305
+            var isHas_6 = headers.includes('周二')
306
+            console.log(isHas_6)
307
+
308
+            var isHas_7 = headers.includes('_2')
309
+            console.log(isHas_7)
310
+
311
+            var isHas_8 = headers.includes('_3')
312
+            console.log(isHas_8)
313
+
314
+            var isHas_9 = headers.includes('周三')
315
+            console.log(isHas_9)
316
+
317
+            var isHas_10 = headers.includes('_4')
318
+            console.log(isHas_1)
319
+
320
+            var isHas_11 = headers.includes('_5')
321
+            console.log(isHas_1)
322
+
323
+            var isHas_12 = headers.includes('周四')
324
+            console.log(isHas_1)
325
+
326
+            var isHas_13 = headers.includes('_6')
327
+            console.log(isHas_1)
328
+
329
+            var isHas_14 = headers.includes('_7')
330
+            console.log(isHas_1)
331
+
332
+            var isHas_15 = headers.includes('周五')
333
+            console.log(isHas_1)
334
+
335
+            var isHas_16 = headers.includes('_8')
336
+            console.log(isHas_1)
337
+
338
+            var isHas_17 = headers.includes('_9')
339
+            console.log(isHas_1)
340
+
341
+            var isHas_18 = headers.includes('周六')
342
+            console.log(isHas_1)
343
+
344
+            var isHas_19 = headers.includes('_10')
345
+            console.log(isHas_1)
346
+
347
+            var isHas_20 = headers.includes('_11')
348
+            console.log(isHas_1)
349
+
350
+            var isHas_21 = headers.includes('周日')
351
+            console.log(isHas_1)
352
+
353
+            var isHas_22 = headers.includes('_12')
354
+            console.log(isHas_1)
355
+
356
+            var isHas_23 = headers.includes('_13')
357
+            console.log(isHas_1)
358
+
359
+            if (!(isHas_1 && isHas_2 && isHas_3 && isHas_4 && isHas_5 &&
360
+              isHas_6 && isHas_7 && isHas_8 && isHas_9 && isHas_10 &&
361
+              isHas_11 && isHas_12 && isHas_13 && isHas_14 && isHas_15 &&
362
+              isHas_16 && isHas_17 && isHas_18 && isHas_19 && isHas_20 &&
363
+              isHas_21 && isHas_22 && isHas_23 )) {
364
+
365
+              this.dialogVisible = true
366
+              return
367
+            }
368
+          }else{
369
+            this.dialogVisible = true
370
+            return
371
+          }
372
+
373
+        }else if(this.template_mode.mode == 2){
374
+
375
+          if(results.length > 0) {
376
+            let headers = []
377
+            for (let key in results[0]) {
378
+              headers.push(key)
379
+            }
380
+
381
+            var isHas_1 = headers.includes('区号')
382
+            console.log(isHas_1)
383
+            var isHas_2 = headers.includes('机号')
384
+            console.log(isHas_2)
385
+
386
+            var isHas_3 = headers.includes('周一')
387
+            console.log(isHas_3)
388
+
389
+            var isHas_4 = headers.includes('')
390
+            console.log(isHas_4)
391
+
392
+            var isHas_5 = headers.includes('_1')
393
+            console.log(isHas_5)
394
+
395
+            var isHas_6 = headers.includes('周二')
396
+            console.log(isHas_6)
397
+
398
+            var isHas_7 = headers.includes('_2')
399
+            console.log(isHas_7)
400
+
401
+            var isHas_8 = headers.includes('_3')
402
+            console.log(isHas_8)
403
+
404
+            var isHas_9 = headers.includes('周三')
405
+            console.log(isHas_9)
406
+
407
+            var isHas_10 = headers.includes('_4')
408
+            console.log(isHas_1)
409
+
410
+            var isHas_11 = headers.includes('_5')
411
+            console.log(isHas_1)
412
+
413
+            var isHas_12 = headers.includes('周四')
414
+            console.log(isHas_1)
415
+
416
+            var isHas_13 = headers.includes('_6')
417
+            console.log(isHas_1)
418
+
419
+            var isHas_14 = headers.includes('_7')
420
+            console.log(isHas_1)
421
+
422
+            var isHas_15 = headers.includes('周五')
423
+            console.log(isHas_1)
424
+
425
+            var isHas_16 = headers.includes('_8')
426
+            console.log(isHas_1)
427
+
428
+            var isHas_17 = headers.includes('_9')
429
+            console.log(isHas_1)
430
+
431
+            var isHas_18 = headers.includes('周六')
432
+            console.log(isHas_1)
433
+
434
+            var isHas_19 = headers.includes('_10')
435
+            console.log(isHas_1)
436
+
437
+            var isHas_20 = headers.includes('_11')
438
+            console.log(isHas_1)
439
+
440
+            var isHas_21 = headers.includes('周日')
441
+            console.log(isHas_1)
442
+
443
+            var isHas_22 = headers.includes('_12')
444
+            console.log(isHas_1)
445
+
446
+            var isHas_23 = headers.includes('_13')
447
+            console.log(isHas_1)
448
+
449
+            var isHas_24 = headers.includes('周一_1')
450
+            var isHas_25 = headers.includes('_14')
451
+            var isHas_26 = headers.includes('_15')
452
+            var isHas_27 = headers.includes('周二_1')
453
+            var isHas_28 = headers.includes('_16')
454
+            var isHas_29 = headers.includes('_17')
455
+            var isHas_30 = headers.includes('周三_1')
456
+            var isHas_31 = headers.includes('_18')
457
+            var isHas_32 = headers.includes('_19')
458
+            var isHas_33 = headers.includes('周四_1')
459
+            var isHas_34 = headers.includes('_20')
460
+            var isHas_35 = headers.includes('_21')
461
+            var isHas_36 = headers.includes('周五_1')
462
+            var isHas_37 = headers.includes('_22')
463
+            var isHas_38 = headers.includes('_23')
464
+            var isHas_39 = headers.includes('周六_1')
465
+            var isHas_40 = headers.includes('_24')
466
+            var isHas_41 = headers.includes('_25')
467
+            var isHas_42 = headers.includes('周日_1')
468
+            var isHas_43 = headers.includes('_26')
469
+            var isHas_44 = headers.includes('_27')
470
+
471
+            if (!(isHas_1 && isHas_2 && isHas_3 && isHas_4 && isHas_5 &&
472
+              isHas_6 && isHas_7 && isHas_8 && isHas_9 && isHas_10 &&
473
+              isHas_11 && isHas_12 && isHas_13 && isHas_14 && isHas_15 &&
474
+              isHas_16 && isHas_17 && isHas_18 && isHas_19 && isHas_20 &&
475
+              isHas_21 && isHas_22 && isHas_23 && isHas_24 && isHas_25 &&
476
+              isHas_26 && isHas_27 && isHas_28 && isHas_29 && isHas_30 &&
477
+              isHas_31 && isHas_32 && isHas_33 && isHas_34 && isHas_35 &&
478
+              isHas_36 && isHas_37 && isHas_38 && isHas_39 && isHas_40 &&
479
+              isHas_41 && isHas_42 && isHas_43 && isHas_44)){
480
+              this.dialogVisible = true
481
+              return
482
+            }
483
+          }else{
484
+            this.dialogVisible = true
485
+            return
486
+          }
487
+
488
+        } else {
489
+          this.dialogVisible = true
490
+          return
491
+        }
492
+
493
+
494
+
495
+
496
+
497
+
284
         let is_system_zone = true
498
         let is_system_zone = true
285
         let is_device_number = true
499
         let is_device_number = true
286
         let zones = []
500
         let zones = []