浏览代码

Merge branch '2022-10-17_vue_schedule_branch' of http://git.shengws.com/csx/Vue_New into 20220812

XMLWAN 1年前
父节点
当前提交
5202fea68b

+ 8 - 0
src/api/schedule.js 查看文件

@@ -30,6 +30,14 @@ export function getSchedulesOne(params) {
30 30
   })
31 31
 }
32 32
 
33
+export function getSchedulesTwo(params) {
34
+  return request({
35
+    url: '/api/schedule/scheduletwo',
36
+    method: 'get',
37
+    params: params
38
+  })
39
+}
40
+
33 41
 export function getSchedulePatients(params) {
34 42
   return request({
35 43
     url: '/api/schedule/patients',

+ 12 - 0
src/router/modules/workforce.js 查看文件

@@ -67,6 +67,7 @@ export default {
67 67
       noCache: true
68 68
     }
69 69
   },
70
+
70 71
   {
71 72
     path: '/workforce/template',
72 73
     component: () => import('@/xt_pages/workforce/template'),
@@ -154,6 +155,17 @@ export default {
154 155
       title: 'scheduleTablePrintOne',
155 156
       noCache: true
156 157
     }
158
+  },
159
+  {
160
+    path: '/scheduleTablePrintTwo',
161
+    component: () => import('@/xt_pages/workforce/scheduleTablePrintTwo'),
162
+    name: 'scheduleTablePrintTwo',
163
+    hidden: true,
164
+    is_menu: false,
165
+    meta: {
166
+      title: 'scheduleTablePrintTwo',
167
+      noCache: true
168
+    }
157 169
   }
158 170
   ]
159 171
 }

+ 25 - 0
src/xt_pages/data/printTemplate/schedulePrint.vue 查看文件

@@ -80,6 +80,31 @@
80 80
         <el-radio v-model="radio" label="3" @change="change">模版三</el-radio
81 81
         >
82 82
         </el-col>
83
+
84
+      
85
+
86
+       <el-col
87
+        :span="6"
88
+        style="margin-left: 100px;margin-right: 100px;text-align: center"
89
+        >
90
+        <div
91
+          @click="imgClick('https://kuyi.shengws.com/tempSchedule2.jpg')"
92
+        >
93
+            <el-tooltip
94
+            class="item"
95
+            effect="dark"
96
+            content="点击查看大图"
97
+            placement="top-start"
98
+            :hide-after="2000"
99
+            >
100
+            <el-image
101
+                style="width: 200px; height: 200px"
102
+                :src="require('@/assets/home/222.jpg')"
103
+            ></el-image>
104
+            </el-tooltip>
105
+        </div>
106
+        <el-radio v-model="radio" label="4" @change="change">模版四</el-radio>
107
+        </el-col>
83 108
     </el-row>
84 109
    
85 110
       <el-image-viewer

+ 1 - 1
src/xt_pages/dialysis/allSummaryDialog_print.vue 查看文件

@@ -16,7 +16,7 @@
16 16
                     </div>
17 17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18 18
                         <p>统计时间:{{start_time}}-{{end_time}}</p>
19
-                        <p>印单日期:{{print_date}}</p>
19
+                        <p>印单日期:{{print_date}}</p>
20 20
                     </div>
21 21
                     <div class="table_panel">
22 22
                         <table class="table">

+ 1 - 1
src/xt_pages/dialysis/allSummary_print.vue 查看文件

@@ -15,7 +15,7 @@
15 15
                         <span class="main_title">汇总统计表</span>
16 16
                     </div>
17 17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18
-                        <p>印单日期:{{print_date}}</p>
18
+                        <p>印单日期:{{print_date}}</p>
19 19
                     </div>
20 20
                     <div class="table_panel">
21 21
                         <table class="table">

+ 1 - 1
src/xt_pages/dialysis/consumables_print.vue 查看文件

@@ -16,7 +16,7 @@
16 16
                     </div>
17 17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18 18
                         <p>统计时间:{{query.start_time}} - {{query.end_time}}</p>
19
-                        <p>印单日期:{{print_time}}</p>
19
+                        <p>印单日期:{{print_time}}</p>
20 20
                     </div>
21 21
                     <div class="table_panel">
22 22
                         <table class="table">

+ 1 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -290,7 +290,7 @@
290 290
           </template>
291 291
         </el-table-column>
292 292
         <el-table-column
293
-          v-if="template_id != 6 && org_id!=10223"
293
+          v-if="template_id != 6 && org_id!=10223 && org_id!=10445"
294 294
           prop="checker"
295 295
           min-width="30px"
296 296
           align="center"
@@ -300,8 +300,6 @@
300 300
             <span>
301 301
               {{getXuserName(scope.row.checker)}}
302 302
             </span>
303
-
304
-
305 303
           </template>
306 304
         </el-table-column>
307 305
       </el-table>

+ 3 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -271,7 +271,7 @@
271 271
                     </el-col>
272 272
 
273 273
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
274
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
274
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
275 275
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
276 276
                             <el-form-item
277 277
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
@@ -328,6 +328,7 @@
328 328
                             </el-form-item>
329 329
                           </div>
330 330
                         </div>
331
+
331 332
                         <div v-else>
332 333
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
333 334
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -2239,7 +2240,7 @@
2239 2240
             }
2240 2241
            }else if(this.$store.getters.xt_user.org.id == 9671 ||this.$store.getters.xt_user.org.id == 10340){
2241 2242
               if (schedual.schedule_type == 1) {
2242
-              this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
2243
+              this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
2243 2244
             } else if (schedual.schedule_type == 2) {
2244 2245
               this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2245 2246
             } else if (schedual.schedule_type == 3) {

+ 1 - 1
src/xt_pages/dialysis/dialysisDrugs_print.vue 查看文件

@@ -16,7 +16,7 @@
16 16
                     </div>
17 17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18 18
                         <p>统计时间:{{start_time}}-{{end_time}}</p>
19
-                        <p>印单日期:{{print_time}}</p>
19
+                        <p>印单日期:{{print_time}}</p>
20 20
                     </div>
21 21
                     <div class="table_panel">
22 22
                         <table class="table">

+ 1 - 1
src/xt_pages/dialysis/dialysisParameters_print.vue 查看文件

@@ -15,7 +15,7 @@
15 15
                         <span class="main_title">透析参数打印单</span>
16 16
                     </div>
17 17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18
-                        <p>印单日期:{{nowDate}}</p>
18
+                        <p>印单日期:{{nowDate}}</p>
19 19
                     </div>
20 20
                     <div class="table_panel">
21 21
                       <table class="table">

+ 14 - 6
src/xt_pages/hospitalStation/components/chargeDialog.vue 查看文件

@@ -9,7 +9,7 @@
9 9
       </el-form-item>
10 10
 
11 11
       <el-form-item
12
-        
12
+
13 13
         label="总计:"
14 14
         prop="name"
15 15
         :validate-event="is_Name"
@@ -39,7 +39,7 @@
39 39
       </el-form-item>
40 40
 
41 41
       <el-form-item
42
-       
42
+
43 43
         label="自费:"
44 44
         prop="age"
45 45
         :validate-event="is_Name"
@@ -55,7 +55,7 @@
55 55
       </el-form-item>
56 56
 
57 57
       <el-form-item
58
-       
58
+
59 59
         label="个账支出:"
60 60
         prop="age"
61 61
         :validate-event="is_Name"
@@ -88,7 +88,7 @@
88 88
     <el-form-item label="支付方式:" style="width:100%;">
89 89
          <el-radio-group v-model="form.pay_way">
90 90
           <el-radio :label="item.value" :value="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
91
-           <el-button type="primary" v-if="form.pay_way == 4" @click="reading()">读卡</el-button>
91
+           <el-button type="primary" v-if="form.pay_way == 4 || form.pay_way == 6" @click="reading()">读卡</el-button>
92 92
 
93 93
          </el-radio-group>
94 94
       </el-form-item>
@@ -229,6 +229,8 @@
229 229
           // {value: 3, label: '微信'},
230 230
           // {value: 4, label: '支付宝'},
231 231
           { value: 4, label: '医保卡' },
232
+          { value: 6, label: '电子凭证' },
233
+
232 234
 
233 235
         ],
234 236
         total: "",
@@ -276,11 +278,17 @@
276 278
       methods: {
277 279
         reading() {
278 280
           var that = this
281
+
282
+          let id_card_type = 1
283
+          if (this.form.pay_way == 6){
284
+            id_card_type = 4
285
+          }
279 286
           let params = {
280
-            'id_card_type': 1,
287
+            'id_card_type': id_card_type,
281 288
             'admin_user_id': this.$store.getters.xt_user.user.id,
282 289
             'certificates':1,
283 290
           }
291
+          
284 292
           axios.get('http://127.0.0.1:9532/zh/api/readcard', {
285 293
             params: params
286 294
           })
@@ -489,6 +497,6 @@ border: 1px solid #66b1ff;
489 497
   .el-input__inner{
490 498
     font-weight: bolder;
491 499
   }
492
-  
500
+
493 501
 }
494 502
 </style>

+ 55 - 52
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

@@ -2556,62 +2556,65 @@ export default {
2556 2556
                   }
2557 2557
 
2558 2558
 
2559
-              // var project_arr = []
2560
-              // //耗材
2561
-              // for(let i=0;i<this.prescriptions.length;i++){
2562
-              //   if(this.prescriptions[i].id == 0){
2563
-              //     for(let j=0;j<this.prescriptions[i].project.length;j++){
2564
-              //        if(this.prescriptions[i].project[j].type == 3){
2565
-              //          project_arr.push(this.prescriptions[i].project[j])
2566
-              //        }
2567
-                    
2568
-              //     }
2569
-              //   }
2570
-              // }
2559
+              if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 9679){
2560
+                  var project_arr = []
2561
+                    //耗材
2562
+                    for(let i=0;i<this.prescriptions.length;i++){
2563
+                      if(this.prescriptions[i].id == 0){
2564
+                        for(let j=0;j<this.prescriptions[i].project.length;j++){
2565
+                          if(this.prescriptions[i].project[j].type == 3){
2566
+                            project_arr.push(this.prescriptions[i].project[j])
2567
+                          }
2568
+                          
2569
+                        }
2570
+                      }
2571
+                    }
2571 2572
 
2572
-              // if(project_arr.length > 0){
2573
-              //     let objInfo = {};
2574
-              //     project_arr.forEach((item, index) => {
2575
-              //     let { project_id } = item.project_id;
2576
-              //     if (!objInfo[project_id]) {
2577
-              //         objInfo[project_id] = {
2578
-              //           project_id:item.project_id,
2579
-              //           child: [],
2580
-              //           sum_count:item.good_info.sum_count,
2581
-              //           out_count:0,
2582
-              //           str:item.good_info.good_name +" "+ item.good_info.specification_name,
2583
-              //           is_user:item.good_info.is_user,
2584
-              //         };
2585
-              //       }
2586
-              //     });
2587
-              //     let newProjectArr = Object.values(objInfo);
2573
+                    if(project_arr.length > 0){
2574
+                        let objInfo = {};
2575
+                        project_arr.forEach((item, index) => {
2576
+                        let { project_id } = item.project_id;
2577
+                        if (!objInfo[project_id]) {
2578
+                            objInfo[project_id] = {
2579
+                              project_id:item.project_id,
2580
+                              child: [],
2581
+                              sum_count:item.good_info.sum_count,
2582
+                              out_count:0,
2583
+                              str:item.good_info.good_name +" "+ item.good_info.specification_name,
2584
+                              is_user:item.good_info.is_user,
2585
+                            };
2586
+                          }
2587
+                        });
2588
+                        let newProjectArr = Object.values(objInfo);
2588 2589
 
2589 2590
 
2590
-              //     for(let i=0;i<project_arr.length;i++){
2591
-              //       for(let j=0;j<newProjectArr.length;j++){
2592
-              //         if(project_arr[i].project_id == newProjectArr[j].project_id){
2593
-              //           newProjectArr[j].child.push(project_arr[i])
2594
-              //         }
2595
-              //       }
2596
-              //     }
2597
-                 
2598
-                  
2599
-              //     for(let i=0;i<newProjectArr.length;i++){
2600
-              //       for(let j=0;j<newProjectArr[i].child.length;j++){
2601
-              //          newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2602
-              //       }
2603
-              //     }
2604
-              //     console.log("河滨232332newArr",newProjectArr)
2605
-              //     for(let i=0;i<newProjectArr.length;i++){
2606
-              //        if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2607
-              //             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2608
-              //             isLoading = false
2609
-              //             this.$emit('editKeepLoad', false)
2610
-              //             return 
2611
-              //        } 
2612
-              //     }
2591
+                        for(let i=0;i<project_arr.length;i++){
2592
+                          for(let j=0;j<newProjectArr.length;j++){
2593
+                            if(project_arr[i].project_id == newProjectArr[j].project_id){
2594
+                              newProjectArr[j].child.push(project_arr[i])
2595
+                            }
2596
+                          }
2597
+                        }
2598
+                      
2599
+                        
2600
+                        for(let i=0;i<newProjectArr.length;i++){
2601
+                          for(let j=0;j<newProjectArr[i].child.length;j++){
2602
+                            newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2603
+                          }
2604
+                        }
2605
+                        console.log("河滨232332newArr",newProjectArr)
2606
+                        for(let i=0;i<newProjectArr.length;i++){
2607
+                          if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2608
+                                this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2609
+                                isLoading = false
2610
+                                this.$emit('editKeepLoad', false)
2611
+                                return 
2612
+                          } 
2613
+                        }
2613 2614
 
2614
-              //    }  
2615
+                      }  
2616
+                    }
2617
+           
2615 2618
                 }
2616 2619
                 createHisPrescription(data, params).then(response => {
2617 2620
                   if (response.data.state == 1) {

+ 57 - 54
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -2561,63 +2561,66 @@
2561 2561
                     }
2562 2562
                   }
2563 2563
                 }
2564
+               
2565
+               if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 9679){
2566
+                  var project_arr = []
2567
+                  //耗材
2568
+                  for(let i=0;i<this.prescriptions.length;i++){
2569
+                    if(this.prescriptions[i].id == 0){
2570
+                      for(let j=0;j<this.prescriptions[i].project.length;j++){
2571
+                        if(this.prescriptions[i].project[j].type ==3){
2572
+                          project_arr.push(this.prescriptions[i].project[j])
2573
+                        }
2574
+                        
2575
+                      }
2576
+                    }
2577
+                  }
2564 2578
 
2565
-              // var project_arr = []
2566
-              // //耗材
2567
-              // for(let i=0;i<this.prescriptions.length;i++){
2568
-              //   if(this.prescriptions[i].id == 0){
2569
-              //     for(let j=0;j<this.prescriptions[i].project.length;j++){
2570
-              //        if(this.prescriptions[i].project[j].type ==3){
2571
-              //          project_arr.push(this.prescriptions[i].project[j])
2572
-              //        }
2573
-                     
2574
-              //     }
2575
-              //   }
2576
-              // }
2577
-
2578
-              // if(project_arr.length > 0){
2579
-              //     let objInfo = {};
2580
-              //     project_arr.forEach((item, index) => {
2581
-              //     let { project_id } = item.project_id;
2582
-              //     if (!objInfo[project_id]) {
2583
-              //         objInfo[project_id] = {
2584
-              //           project_id:item.project_id,
2585
-              //           child: [],
2586
-              //           sum_count:item.good_info.sum_count,
2587
-              //           out_count:0,
2588
-              //           str:item.good_info.good_name +" "+ item.good_info.specification_name,
2589
-              //           is_user:item.good_info.is_user,
2590
-              //         };
2591
-              //       }
2592
-              //     });
2593
-              //     let newProjectArr = Object.values(objInfo);
2579
+                  if(project_arr.length > 0){
2580
+                      let objInfo = {};
2581
+                      project_arr.forEach((item, index) => {
2582
+                      let { project_id } = item.project_id;
2583
+                      if (!objInfo[project_id]) {
2584
+                          objInfo[project_id] = {
2585
+                            project_id:item.project_id,
2586
+                            child: [],
2587
+                            sum_count:item.good_info.sum_count,
2588
+                            out_count:0,
2589
+                            str:item.good_info.good_name +" "+ item.good_info.specification_name,
2590
+                            is_user:item.good_info.is_user,
2591
+                          };
2592
+                        }
2593
+                      });
2594
+                      let newProjectArr = Object.values(objInfo);
2594 2595
 
2595 2596
 
2596
-              //     for(let i=0;i<project_arr.length;i++){
2597
-              //       for(let j=0;j<newProjectArr.length;j++){
2598
-              //         if(project_arr[i].project_id == newProjectArr[j].project_id){
2599
-              //           newProjectArr[j].child.push(project_arr[i])
2600
-              //         }
2601
-              //       }
2602
-              //     }
2603
-                 
2604
-                  
2605
-              //     for(let i=0;i<newProjectArr.length;i++){
2606
-              //       for(let j=0;j<newProjectArr[i].child.length;j++){
2607
-              //          newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2608
-              //       }
2609
-              //     }
2610
-              //     console.log("河滨232332newArr",newProjectArr)
2611
-              //     for(let i=0;i<newProjectArr.length;i++){
2612
-              //        if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2613
-              //             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2614
-              //             isLoading = false
2615
-              //             this.$emit('editKeepLoad', false)
2616
-              //             return 
2617
-              //        } 
2618
-              //     }
2619
-                  
2620
-              //   }
2597
+                      for(let i=0;i<project_arr.length;i++){
2598
+                        for(let j=0;j<newProjectArr.length;j++){
2599
+                          if(project_arr[i].project_id == newProjectArr[j].project_id){
2600
+                            newProjectArr[j].child.push(project_arr[i])
2601
+                          }
2602
+                        }
2603
+                      }
2604
+                    
2605
+                      
2606
+                      for(let i=0;i<newProjectArr.length;i++){
2607
+                        for(let j=0;j<newProjectArr[i].child.length;j++){
2608
+                          newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2609
+                        }
2610
+                      }
2611
+                      console.log("河滨232332newArr",newProjectArr)
2612
+                      for(let i=0;i<newProjectArr.length;i++){
2613
+                        if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2614
+                              this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2615
+                              isLoading = false
2616
+                              this.$emit('editKeepLoad', false)
2617
+                              return 
2618
+                        } 
2619
+                      }
2620
+                      
2621
+                    }
2622
+               }
2623
+           
2621 2624
                 createHisPrescription(data, params).then(response => {
2622 2625
                   if (response.data.state == 1) {
2623 2626
                     this.$emit('change', this.patientInfo.id)

+ 15 - 3
src/xt_pages/outpatientRecord/outpatientRecord.vue 查看文件

@@ -47,12 +47,17 @@
47 47
                 </el-table-column>
48 48
                 <el-table-column align="center" prop="name" label="地址">
49 49
                     <template slot-scope="scope">
50
-                        {{scope.row.home_address}}
50
+                        {{scope.row.homel__address}}
51 51
                     </template>
52 52
                 </el-table-column>
53
+              <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构编码">
54
+                <template slot-scope="scope">
55
+                  <el-input v-model="hospital_code"></el-input>
56
+                </template>
57
+              </el-table-column>
53 58
                 <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构">
54 59
                     <template slot-scope="scope">
55
-                        {{$store.getters.xt_user.org.org_name}}
60
+                       <el-input v-model="hospital_name"></el-input>
56 61
                     </template>
57 62
                 </el-table-column>
58 63
                 <el-table-column align="center" prop="name" label="医生">
@@ -225,6 +230,8 @@
225 230
         start_date:'',
226 231
         end_date:"",
227 232
         check_date:"",
233
+        hospital_code:"",
234
+        hospital_name:"",
228 235
         datas: [
229 236
           {
230 237
             id: 0,
@@ -558,6 +565,9 @@
558 565
           return
559 566
         }
560 567
 
568
+
569
+
570
+
561 571
         let params = {
562 572
           record_type: 0,
563 573
           patient_id: this.currentObject.id,
@@ -569,7 +579,9 @@
569 579
           sick_id: this.currentObject.record.sick_type,
570 580
           doctor_id: this.currentObject.record.doctor_id,
571 581
           department_id:this.currentObject.record.department_id,
572
-          admin_user_id: this.$store.getters.xt_user.user.id
582
+          admin_user_id: this.$store.getters.xt_user.user.id,
583
+          hospital_name:this.hospital_name,
584
+          hospital_code: this.hospital_code,
573 585
         };
574 586
 
575 587
         var that = this;

+ 1 - 1
src/xt_pages/stock/detail/print.vue 查看文件

@@ -186,7 +186,7 @@
186 186
       },
187 187
       getDateTwo(){
188 188
         var ptime = Math.round(new Date().getTime() / 1000)
189
-        return "印单日期:"+uParseTime(ptime, '{y}-{m}-{d}')
189
+        return "印单日期:"+uParseTime(ptime, '{y}-{m}-{d}')
190 190
       },
191 191
       getTime(value, temp) {
192 192
         if (value == 0) {

+ 18 - 2
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue 查看文件

@@ -214,7 +214,7 @@
214 214
                     @change="changeUnit(scope.row,scope.$index)"
215 215
                   >
216 216
                     <el-option
217
-                      v-for="(option, index) in unitList"
217
+                      v-for="(option, index) in scope.row.unitList"
218 218
                       :key="index"
219 219
                       :label="option.name"
220 220
                       :value="option.name"
@@ -913,6 +913,13 @@ export default {
913 913
                 }
914 914
                 list[i].last_price = list[i].price
915 915
                 list[i].warehousing_count = list[i].warehousing_count.toString()
916
+                list[i].unitList = []
917
+                var obj = {id:1,name:""}
918
+                obj.name = list[i].drug.max_unit
919
+                var objOne = {id:2,name:""}
920
+                objOne.name = list[i].drug.min_unit
921
+                list[i].unitList.push(obj)
922
+                list[i].unitList.push(objOne)
916 923
               }
917 924
               this.recordInfo.recordData = []
918 925
               this.recordInfo.recordData = list
@@ -1036,7 +1043,15 @@ export default {
1036 1043
           } else {
1037 1044
             this.recordInfo.recordData[i].dealer = val.dealer;
1038 1045
           }
1046
+          this.recordInfo.recordData[i].unitList = []
1047
+          var obj = {id:1,name:""}
1048
+          var objOne= {id:2,name:""}
1049
+          obj.name = val.max_unit
1050
+          objOne.name = val.min_unit
1051
+          this.recordInfo.recordData[i].unitList.push(obj)
1052
+          this.recordInfo.recordData[i].unitList.push(objOne)
1039 1053
         }
1054
+
1040 1055
       }
1041 1056
     },
1042 1057
     toCheck(){
@@ -1147,7 +1162,8 @@ export default {
1147 1162
     this.GetConfigInfo();
1148 1163
     this.propForm.goodUnit = this.$store.getters.good_unit;
1149 1164
 
1150
-    this.unitList = getDataConfig("hemodialysis", "units");
1165
+    // this.unitList = getDataConfig("hemodialysis", "units");
1166
+    // console.log("hhahdhhafd",this.unitList)
1151 1167
   },
1152 1168
 };
1153 1169
 </script>

+ 29 - 2
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue 查看文件

@@ -198,7 +198,7 @@
198 198
                    <!-- {{scope.row.max_unit}} -->
199 199
                    <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px"  :disabled="disabled">
200 200
                     <el-option
201
-                      v-for="(option, index) in unitList"
201
+                      v-for="(option, index) in scope.row.unitList"
202 202
                       :key="index"
203 203
                       :label="option.name"
204 204
                       :value="option.name"
@@ -762,6 +762,14 @@ export default {
762 762
                 }
763 763
                 list[i].last_price = list[i].price
764 764
                 list[i].warehousing_count = list[i].warehousing_count.toString()
765
+                list[i].unitList = []
766
+                var obj = {id:1,name:""}
767
+                obj.name = list[i].drug.max_unit
768
+                var objOne = {id:2,name:""}
769
+                objOne.name = list[i].drug.min_unit
770
+                list[i].unitList.push(obj)
771
+                list[i].unitList.push(objOne)
772
+
765 773
               }
766 774
               this.recordInfo.recordData = []
767 775
               this.recordInfo.recordData = list
@@ -826,6 +834,15 @@ export default {
826 834
            if(response.data.data.info[i].dealer == 0){
827 835
                response.data.data.info[i].dealer = ""
828 836
             }
837
+           
838
+            response.data.data.info[i].unitList = []
839
+            var obj = {id:1,name:""}
840
+            var objOne = {id:2,name:""}
841
+            obj.name = response.data.data.info[i].drug.max_unit
842
+            objOne.name = response.data.data.info[i].drug.min_unit
843
+            response.data.data.info[i].unitList.push(obj)
844
+            response.data.data.info[i].unitList.push(objOne)
845
+            
829 846
 
830 847
             this.recordInfo.recordData.push(response.data.data.info[i]);
831 848
 
@@ -840,6 +857,8 @@ export default {
840 857
                  response.data.data.info[i].dealer = dealerList[z].dealer_name
841 858
                }
842 859
             }
860
+
861
+          
843 862
           }
844 863
           this.warehouse = response.data.data.warehousing;
845 864
           this.storehouse_id = response.data.data.warehousing.storehouse_id
@@ -927,6 +946,14 @@ export default {
927 946
                this.recordInfo.recordData[i].dealer =  val.dealer
928 947
              }
929 948
 
949
+            this.recordInfo.recordData[i].unitList = []
950
+            var obj = {id:1,name:""}
951
+            var objOne= {id:2,name:""}
952
+            obj.name = val.max_unit
953
+            objOne.name = val.min_unit
954
+            this.recordInfo.recordData[i].unitList.push(obj)
955
+            this.recordInfo.recordData[i].unitList.push(objOne)
956
+
930 957
            }
931 958
         }
932 959
       },
@@ -992,7 +1019,7 @@ export default {
992 1019
     const order_id = this.$route.query.id;
993 1020
     this.GetOrderDetail(order_id);
994 1021
     this.is_check = parseInt(this.$route.query.is_check)
995
-    this.unitList =  getDataConfig('hemodialysis','units')
1022
+    // this.unitList =  getDataConfig('hemodialysis','units')
996 1023
     if( parseInt(this.$route.query.supply_warehouse_id)>0){
997 1024
       this.disabled = true
998 1025
     }

+ 24 - 12
src/xt_pages/workforce/appointment.vue 查看文件

@@ -126,13 +126,13 @@
126 126
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
127 127
                   :schedule-zone-row-prop="scheduleZoneRow"
128 128
                   :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
129
-                  @event2="changeSchedule" v-if="!is_edit">
129
+                  @event2="changeSchedule" v-if="!is_edit" @event3="changeWeekDay">
130 130
       </table-data>
131 131
 
132 132
       <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
133 133
                        :schedule-zone-row-prop="scheduleZoneRow"
134 134
                        :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
135
-                       @event2="changeSchedule" v-if="is_edit"></edit-table-data>
135
+                       @event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay"></edit-table-data>
136 136
 
137 137
 
138 138
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
@@ -266,7 +266,8 @@ export default {
266 266
       nowYear: new Date().getFullYear(),
267 267
       schedule_week: 0,
268 268
       newDay: [],
269
-      templateObj: {}
269
+      templateObj: {},
270
+      week_date:""
270 271
     }
271 272
   },
272 273
   components: {
@@ -278,12 +279,12 @@ export default {
278 279
   },
279 280
   methods: {
280 281
     dragstart(event, item) {
281
-      console.log('start的索引',item.moveIndex)
282
+      // console.log('start的索引',item.moveIndex)
282 283
       // 开始移动的时候将移动的索引值+图片的url存储下来
283 284
 
284 285
     },
285 286
     dragend(event,item) {
286
-      console.log('dragend',item)
287
+      // console.log('dragend',item)
287 288
 
288 289
     },
289 290
     getAllZones(){
@@ -639,13 +640,13 @@ export default {
639 640
           })
640 641
 
641 642
         }
642
-        console.log("111111111")
643
-        console.log(that.scheduleZone)
643
+        // console.log("111111111")
644
+        // console.log(that.scheduleZone)
644 645
       })
645 646
     },changeSch(val){
646
-      console.log(this.partitions)
647
-      console.log(this.scheduleZoneRow)
648
-      console.log(this.scheduleZone)
647
+      // console.log(this.partitions)
648
+      // console.log(this.scheduleZoneRow)
649
+      // console.log(this.scheduleZone)
649 650
 
650 651
 
651 652
 
@@ -839,10 +840,14 @@ export default {
839 840
         this.$router.push({path: '/workforce/schedule/print', query: {date: date}})
840 841
       }
841 842
       if (this.templateObj.template_id == 2) {
842
-        this.$router.push({path: '/scheduleTablePrint?partition_id=' + this.partition_id + "&weekTime=" + this.activeName})
843
+        this.$router.push({path: '/scheduleTablePrint?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date})
843 844
       }
844 845
       if (this.templateObj.template_id == 3) {
845
-        this.$router.push({path: '/scheduleTablePrintOne?partition_id=' + this.partition_id + "&weekTime=" + this.activeName})
846
+        this.$router.push({path: '/scheduleTablePrintOne?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date})
847
+      }
848
+
849
+      if(this.templateObj.template_id == 4){
850
+        this.$router.push({path: '/scheduleTablePrintTwo?partition_id=' + this.partition_id + "&weekTime=" + this.activeName+"&week_date="+this.week_date})
846 851
       }
847 852
 
848 853
     },
@@ -2814,6 +2819,13 @@ export default {
2814 2819
       this.getWeekPanels()
2815 2820
     },
2816 2821
 
2822
+    changeWeekDay(val){
2823
+      console.log("Val2332322323wo",val)
2824
+      var str = val.join(",")
2825
+      console.log("stor233233223",str)
2826
+      this.week_date = str
2827
+    },
2828
+
2817 2829
     changeWeek(val) {
2818 2830
 
2819 2831
       this.start_time = ""

+ 4 - 0
src/xt_pages/workforce/components/editTableData.vue 查看文件

@@ -100,6 +100,7 @@
100 100
         <span>日期:</span>
101 101
         <el-select v-model="week_type" style="margin-bottom: 15px;" placeholder="请选择" multiple>
102 102
           <el-option
103
+              @change="changeWeekDay"
103 104
               v-for="(item, index) in week_zhongwens"
104 105
               :key="index"
105 106
               :label="item"
@@ -4863,6 +4864,9 @@ export default {
4863 4864
       this.schedule_type = val;
4864 4865
       this.getSchedules();
4865 4866
     },
4867
+    changeWeekDay(val){
4868
+     this.$emit("event3", val);
4869
+    }
4866 4870
   },
4867 4871
   components: {
4868 4872
     ScheduleItem,

+ 4 - 0
src/xt_pages/workforce/components/tableData.vue 查看文件

@@ -24,6 +24,7 @@
24 24
             v-model="week_type"
25 25
             placeholder="请选择"
26 26
             multiple
27
+           @change="changeWeekDay"
27 28
         >
28 29
           <el-option
29 30
               v-for="(item,index) in weeks"
@@ -2570,6 +2571,9 @@ export default {
2570 2571
      this.schedule_type = val
2571 2572
      this.getSchedules()
2572 2573
     },
2574
+    changeWeekDay(val){
2575
+      this.$emit('event3', val)
2576
+    }
2573 2577
   },
2574 2578
   components: {
2575 2579
     ScheduleItem

+ 68 - 5
src/xt_pages/workforce/scheduleTablePrint.vue 查看文件

@@ -177,7 +177,7 @@
177 177
 
178 178
 
179 179
 <script>
180
-import {getSchedulesOne,getWeekPanelsOne,getPatientSheduleCount,getAllZones} from "@/api/schedule";
180
+import {getSchedulesTwo,getWeekPanelsOne,getPatientSheduleCount,getAllZones} from "@/api/schedule";
181 181
 import print from 'print-js'
182 182
 export default {
183 183
     props:{
@@ -205,13 +205,55 @@ export default {
205 205
            total:0,
206 206
            zones:[],
207 207
            zoneIdList:[],
208
-           strArr:""
208
+           strArr:"",
209
+           week_date:"",
209 210
         }
210 211
     },
211 212
     created(){
212 213
         this.getAllZones()
213 214
         this.modeOptions = this.$store.getters.treatment_mode;
214 215
         this.partition_id = this.$route.query.partition_id   
216
+        var newList = []
217
+        var arr =  this.$route.query.week_date
218
+      
219
+        if(arr!=""){
220
+          var newArr = arr.split(",")
221
+         
222
+          if(newArr!=null&&newArr.length > 0){
223
+             for(let i=0;i<newArr.length;i++){
224
+               if(newArr[i] == "周一"){
225
+                  newList.push(1)
226
+               }
227
+              if(newArr[i] == "周二"){
228
+                  newList.push(2)
229
+               }
230
+              if(newArr[i] == "周三"){
231
+                  newList.push(3)
232
+               }
233
+               if(newArr[i] == "周四"){
234
+                  newList.push(4)
235
+               }
236
+               if(newArr[i] == "周五"){
237
+                  newList.push(5)
238
+               }
239
+              if(newArr[i] == "周六"){
240
+                  newList.push(6)
241
+               }
242
+               if(newArr[i] == "周日"){
243
+                  newList.push(7)
244
+               }
245
+             }
246
+
247
+            this.week_date = newList.join(",")
248
+          }
249
+        
250
+        }else{
251
+             newList = [1,2,3,4,5,6,7]
252
+            
253
+            this.week_date = newList.join(",")
254
+            
255
+        }
256
+        
215 257
     },
216 258
     methods:{
217 259
          getAllZones(){
@@ -242,6 +284,8 @@ export default {
242 284
                 if(partionStr != 0){
243 285
                     str = partionStr
244 286
                 }
287
+
288
+            
245 289
             getWeekPanelsOne(1,str).then(response => {
246 290
                 if (response.data.state == 0) {
247 291
                     return false
@@ -267,6 +311,7 @@ export default {
267 311
                             zone_type: partition.type,
268 312
                             cut: jihao.number,
269 313
                             jihao_id: jihao.id,
314
+                            sort:jihao.sort,
270 315
                             Mon_M: {
271 316
                                 schedule_id: 0,
272 317
                                 mode_id: 0,
@@ -447,12 +492,15 @@ export default {
447 492
             if(partionStr != 0){
448 493
                 str = partionStr
449 494
             }
495
+            console.log("week_day=",this.week_date)
450 496
             const params = {
451 497
                 weekTime:theType,
452 498
                 patitionid:str,
453 499
                 schedule_type:this.schedule_type,
500
+                week_date:this.week_date,
454 501
             }
455
-            getSchedulesOne(params).then(response => {
502
+            console.log("param23232323wo",params)
503
+            getSchedulesTwo(params).then(response => {
456 504
                 if (response.data.state == 1) {
457 505
                     this.weekTitle = response.data.data.weekTitle;
458 506
                     this.weekDays = response.data.data.days;
@@ -625,7 +673,7 @@ export default {
625 673
                         }
626 674
                        
627 675
                     });
628
-                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1"},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"jihao_id":"","total":"","zone_id":"","zone_type":""}]
676
+                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1"},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1"},"jihao_id":"","total":"","zone_id":"","zone_type":"","sort":""}]
629 677
                      
630 678
                      
631 679
                      for(let i=0;i<newArr.length;i++){
@@ -764,7 +812,15 @@ export default {
764 812
                        }
765 813
                      }
766 814
                     console.log("newArr222222222",newArr)
815
+                    
767 816
                     that.scheduleZone.push(...newArr)
817
+                   
818
+                    for(let i=0;i<that.scheduleZone.length;i++){
819
+                      if(that.scheduleZone[i].area == "总数"){
820
+                         that.scheduleZone[i].sort = 999999
821
+                      }
822
+                    }
823
+                    that.scheduleZone.sort(this.compare('sort'))
768 824
                     console.log('总数据77777777777',that.scheduleZone)
769 825
                     
770 826
                 } else {
@@ -843,7 +899,14 @@ export default {
843 899
                   this.total = total
844 900
                }
845 901
            }) 
846
-        }
902
+        },
903
+        compare (property) {
904
+            return function (a, b) {
905
+                var value1 = a[property]
906
+                var value2 = b[property]
907
+                return value1 - value2
908
+            }
909
+        },
847 910
     }
848 911
 }
849 912
 </script>

+ 61 - 5
src/xt_pages/workforce/scheduleTablePrintOne.vue 查看文件

@@ -200,7 +200,7 @@
200 200
 
201 201
 
202 202
 <script>
203
-import {getSchedulesOne,getWeekPanelsOne,getPatientSheduleCount,getAllZones,getSolutionSchedule} from "@/api/schedule";
203
+import {getSchedulesTwo,getWeekPanelsOne,getPatientSheduleCount,getAllZones,getSolutionSchedule} from "@/api/schedule";
204 204
 import print from 'print-js'
205 205
 export default {
206 206
     props:{
@@ -229,13 +229,54 @@ export default {
229 229
            zones:[],
230 230
            zoneIdList:[],
231 231
            strArr:"",
232
-           solutionList:[]
232
+           solutionList:[],
233
+           week_date:"",
233 234
         }
234 235
     },
235 236
     created(){
236 237
         this.getAllZones()
237 238
         this.modeOptions = this.$store.getters.treatment_mode;
238 239
         this.partition_id = this.$route.query.partition_id
240
+        var newList = []
241
+        var arr =  this.$route.query.week_date
242
+      
243
+        if(arr!=""){
244
+          var newArr = arr.split(",")
245
+         
246
+          if(newArr!=null&&newArr.length > 0){
247
+             for(let i=0;i<newArr.length;i++){
248
+               if(newArr[i] == "周一"){
249
+                  newList.push(1)
250
+               }
251
+              if(newArr[i] == "周二"){
252
+                  newList.push(2)
253
+               }
254
+              if(newArr[i] == "周三"){
255
+                  newList.push(3)
256
+               }
257
+               if(newArr[i] == "周四"){
258
+                  newList.push(4)
259
+               }
260
+               if(newArr[i] == "周五"){
261
+                  newList.push(5)
262
+               }
263
+              if(newArr[i] == "周六"){
264
+                  newList.push(6)
265
+               }
266
+               if(newArr[i] == "周日"){
267
+                  newList.push(7)
268
+               }
269
+             }
270
+
271
+            this.week_date = newList.join(",")
272
+          }
273
+        
274
+        }else{
275
+             newList = [1,2,3,4,5,6,7]
276
+            
277
+            this.week_date = newList.join(",")
278
+            
279
+        }
239 280
         // this.getSolutionSchedule()
240 281
     },
241 282
     methods:{
@@ -549,10 +590,12 @@ export default {
549 590
                 weekTime:theType,
550 591
                 patitionid:str,
551 592
                 schedule_type:this.schedule_type,
593
+                week_date:this.week_date,
552 594
             }
553
-            getSchedulesOne(params).then(response => {
595
+            getSchedulesTwo(params).then(response => {
554 596
                 if (response.data.state == 1) {
555 597
                     this.weekTitle = response.data.data.weekTitle;
598
+                   
556 599
                     this.weekDays = response.data.data.days;
557 600
                     this.toDay = response.data.data.today;
558 601
                     var theSchedules = response.data.data.schdules;
@@ -784,7 +827,7 @@ export default {
784 827
                         }
785 828
 
786 829
                     });
787
-                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1",type:0},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"jihao_id":"","total":"","zone_id":"","zone_type":""}]
830
+                    var newArr= [{"area":"总数","cut":0,"Fri_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Fri_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_A":{mode_id:0,mode_name:"",patient:"",patient_id:"1",type:0},"Mon_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Mon_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sat_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Sun_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Thurs_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Tue_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_A":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_M":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"Wed_N":{mode_id:0,mode_name:"",patient:"0",patient_id:"1",type:0},"jihao_id":"","total":"","zone_id":"","zone_type":"",sort:""}]
788 831
 
789 832
 
790 833
                      for(let i=0;i<newArr.length;i++){
@@ -924,6 +967,12 @@ export default {
924 967
                      }
925 968
                     console.log("newArr222222222",newArr)
926 969
                     that.scheduleZone.push(...newArr)
970
+                    for(let i=0;i<that.scheduleZone.length;i++){
971
+                      if(that.scheduleZone[i].area == "总数"){
972
+                         that.scheduleZone[i].sort = 999999
973
+                      }
974
+                    }
975
+                    that.scheduleZone.sort(this.compare('sort'))
927 976
                     console.log('总数据77777777777',that.scheduleZone)
928 977
                 } else {
929 978
                     this.$message.error("网络错误");
@@ -1133,7 +1182,14 @@ export default {
1133 1182
           }else{
1134 1183
             return diazers
1135 1184
           }
1136
-        }
1185
+        },
1186
+        compare (property) {
1187
+            return function (a, b) {
1188
+                var value1 = a[property]
1189
+                var value2 = b[property]
1190
+                return value1 - value2
1191
+            }
1192
+        },
1137 1193
     }
1138 1194
 }
1139 1195
 </script>

文件差异内容过多而无法显示
+ 1224 - 0
src/xt_pages/workforce/scheduleTablePrintTwo.vue