Browse Source

新分支

28169 2 years ago
parent
commit
70fa658352

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue View File

@@ -2368,7 +2368,7 @@
2368 2368
                             v-if="!record.check"
2369 2369
                           ></div>
2370 2370
                         </div> -->
2371
-                        <!-- <div class="inline_block" style="flex: 1">
2371
+                        <div class="inline_block" style="flex: 1">
2372 2372
                           下机护士:
2373 2373
                           <div
2374 2374
                             class="under_line"
@@ -2407,8 +2407,8 @@
2407 2407
                               style="height: 40px"
2408 2408
                             />
2409 2409
                           </div>
2410
-                        </div> -->
2411
-                          <div class="inline_block" style="flex: 1">
2410
+                        </div>
2411
+                          <!-- <div class="inline_block" style="flex: 1">
2412 2412
                           患者签名:
2413 2413
                           <div
2414 2414
                             class="under_line"
@@ -2424,7 +2424,7 @@
2424 2424
                               style="height: 40px"
2425 2425
                             />
2426 2426
                           </div>
2427
-                        </div>
2427
+                        </div> -->
2428 2428
                         <div class="inline_block" style="flex: 1">
2429 2429
                           治疗医生:
2430 2430
                           <div

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -148,8 +148,8 @@
148 148
           <label>目标超滤量 : </label>
149 149
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
150 150
           
151
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440  &&  this.$store.getters.xt_user.template_info.org_id != 10469"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
152
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
151
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440  &&  this.$store.getters.xt_user.template_info.org_id != 10469  &&  this.$store.getters.xt_user.template_info.org_id != 10471"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
152
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
153 153
         </li>
154 154
 
155 155
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">

+ 5 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -95,7 +95,7 @@
95 95
                     </el-col>
96 96
 
97 97
                     <el-col :span="8"
98
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469)">
98
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471)">
99 99
                         <el-form-item label="目标超滤量(ml):">
100 100
                             <el-input
101 101
                                     type="number"
@@ -108,7 +108,7 @@
108 108
 
109 109
 
110 110
                     <el-col :span="8"
111
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469">
111
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471">
112 112
                         <el-form-item label="目标超滤量(L):">
113 113
                             <el-input
114 114
                                     type="number"
@@ -285,7 +285,7 @@
285 285
                     </el-col>
286 286
 
287 287
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
288
-                        <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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440  && this.$store.getters.xt_user.template_info.org_id != 10469">
288
+                        <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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440  && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471">
289 289
                           <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">
290 290
                             <el-form-item
291 291
                                     v-if='dialysisPrescription.anticoagulant != 1 &&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'
@@ -368,7 +368,7 @@
368 368
 
369 369
 
370 370
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
371
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && 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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469">
371
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && 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 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471">
372 372
                           <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.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
373 373
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
374 374
                                           v-if="anticoagulant.weichi != -1 && 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 != 54 && this.$store.getters.xt_user.template_info.org_id != 9990">
@@ -432,7 +432,7 @@
432 432
 
433 433
 
434 434
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
435
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469">
435
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471">
436 436
                           <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.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
437 437
                             <el-form-item
438 438
                                     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.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -2594,7 +2594,7 @@
2594 2594
                                 />
2595 2595
                               </div>
2596 2596
                             </div>
2597
-                            <!-- <div class="inline_block" style="flex: 1">
2597
+                            <div class="inline_block" style="flex: 1">
2598 2598
                               下机护士:
2599 2599
                               <div
2600 2600
                                 class="under_line"
@@ -2632,8 +2632,8 @@
2632 2632
                                   v-else
2633 2633
                                 />
2634 2634
                               </div>
2635
-                            </div> -->
2636
-                            <div class="inline_block" style="flex: 1">
2635
+                            </div>
2636
+                            <!-- <div class="inline_block" style="flex: 1">
2637 2637
                               患者签名:
2638 2638
                               <div
2639 2639
                                 class="under_line"
@@ -2647,7 +2647,7 @@
2647 2647
                                   srcset=""
2648 2648
                                 />
2649 2649
                               </div>
2650
-                            </div>
2650
+                            </div> -->
2651 2651
                             <div class="inline_block" style="flex: 1">
2652 2652
                               治疗医生:
2653 2653
                               <div

+ 16 - 3
src/xt_pages/workforce/appointment.vue View File

@@ -115,8 +115,6 @@
115 115
         <el-tab-pane name="nextTwoWeek">
116 116
           <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
117 117
         </el-tab-pane>
118
-
119
-
120 118
       </el-tabs>
121 119
 
122 120
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
@@ -132,7 +130,22 @@
132 130
                       
133 131
         <div class="position">
134 132
           <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
135
-          <div></div>
133
+          <div>
134
+            <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs">
135
+          <el-tab-pane name="lastWeek">
136
+            <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
137
+          </el-tab-pane>
138
+          <el-tab-pane name="thisWeek">
139
+            <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
140
+          </el-tab-pane>
141
+          <el-tab-pane name="nextWeek">
142
+            <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
143
+          </el-tab-pane>
144
+          <el-tab-pane name="nextTwoWeek">
145
+            <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
146
+          </el-tab-pane>
147
+        </el-tabs>
148
+          </div>
136 149
         <div style="display:flex;align-items:center">
137 150
           <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
138 151
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel>

+ 194 - 194
src/xt_pages/workforce/components/editTableData.vue View File

@@ -28,7 +28,7 @@
28 28
               icon="el-icon-search"
29 29
               @click="search"
30 30
           >搜索</el-button>
31
-
31
+          
32 32
         </div>
33 33
         <div style="margin-bottom: 10px; display: flex">
34 34
           <h3 style="line-height: 45px">
@@ -69,7 +69,7 @@
69 69
             <el-table-column
70 70
                 prop="name"
71 71
                 label="患者名称"
72
-
72
+                
73 73
                 align="center"
74 74
             >
75 75
             </el-table-column>
@@ -92,7 +92,7 @@
92 92
             <el-table-column
93 93
                 prop="name"
94 94
                 label="透析模式"
95
-
95
+                
96 96
                 align="center"
97 97
             ></el-table-column>
98 98
           </el-table>
@@ -129,7 +129,7 @@
129 129
           </el-option>
130 130
         </el-select>
131 131
         <!-- 编辑排班表格 -->
132
-        <el-table
132
+        <el-table 
133 133
             :row-style="{ color: '#303133' }"
134 134
             :header-cell-style="{
135 135
             backgroundColor: 'rgb(245, 247, 250)',
@@ -196,7 +196,7 @@
196 196
                     @dragover="allowDrop"
197 197
                     @dragover.prevent
198 198
                 >
199
-
199
+                
200 200
                   <schedule-item
201 201
                       :schedule-detail="scope.row.Mon_M"
202 202
                       :draggable="isEditForDate('Mon_M')&& scope.row.Mon_M ? 'true' : 'false'"
@@ -212,7 +212,7 @@
212 212
                         scope.row.Mon_M,
213 213
                         scope.row
214 214
                       )"
215
-
215
+                      
216 216
                   >
217 217
                   </schedule-item>
218 218
                 </div>
@@ -309,7 +309,7 @@
309 309
           </el-table-column>
310 310
           <el-table-column
311 311
               :label="'周二 (' + weekTitle[1] + ')'"
312
-
312
+              
313 313
               v-if="isShowTwo"
314 314
               align="center"
315 315
           >
@@ -446,7 +446,7 @@
446 446
           </el-table-column>
447 447
           <el-table-column
448 448
               :label="'周三 (' + weekTitle[2] + ')'"
449
-
449
+              
450 450
               v-if="isShowThree"
451 451
               align="center"
452 452
           >
@@ -729,11 +729,11 @@
729 729
           </el-table-column>
730 730
           <el-table-column
731 731
               :label="'周五 (' + weekTitle[4] + ')'"
732
-
732
+             
733 733
               align="center"
734 734
               v-if="isShowFive"
735 735
           >
736
-            <el-table-column prop="Fri_M" label="上" min-width="40" align="center"
736
+            <el-table-column prop="Fri_M" label="上" min-width="40" align="center" 
737 737
 >
738 738
               <template slot-scope="scope">
739 739
                 <div class="del_table_btn">
@@ -754,7 +754,7 @@
754 754
                     scope.row)"
755 755
                 @dragover="allowDrop"
756 756
                   >
757
-
757
+                 
758 758
                   <schedule-item
759 759
                       :schedule-detail="scope.row.Fri_M"
760 760
                       :draggable="isEditForDate('Fri_M')&&scope.row.Fri_M ? 'true' : 'false'"
@@ -768,7 +768,7 @@
768 768
                         scope.row.Fri_M,
769 769
                         scope.row
770 770
                       )
771
-                    "
771
+                    " 
772 772
                   >
773 773
                    <!-- -->
774 774
                   </schedule-item>
@@ -786,7 +786,7 @@
786 786
                       @click.stop="deletePatientMode(scope.row.Fri_A)"
787 787
                   ></el-button>
788 788
                 </div>
789
-
789
+        
790 790
                 <div  @drop="
791 791
                   drop($event,
792 792
                     'Fri_A',
@@ -862,7 +862,7 @@
862 862
           </el-table-column>
863 863
           <el-table-column
864 864
               :label="'周六 (' + weekTitle[5] + ')'"
865
-
865
+              
866 866
               align="center"
867 867
               v-if="isShowSix"
868 868
           >
@@ -933,7 +933,7 @@
933 933
                       scope.row
934 934
                     )
935 935
                   "
936
-                    @dragover="allowDrop"
936
+                    @dragover="allowDrop" 
937 937
                 >
938 938
                   <schedule-item
939 939
                       :schedule-detail="scope.row.Sat_A"
@@ -978,7 +978,7 @@
978 978
                       scope.row
979 979
                     )
980 980
                   "
981
-                    @dragover="allowDrop"
981
+                    @dragover="allowDrop"  
982 982
                 >
983 983
                   <schedule-item
984 984
                       :schedule-detail="scope.row.Sat_N"
@@ -993,7 +993,7 @@
993 993
                         scope.row.Sat_N,
994 994
                         scope.row
995 995
                       )
996
-                    "
996
+                    " 
997 997
                   >
998 998
                   <!--  -->
999 999
                     </schedule-item>
@@ -1003,7 +1003,7 @@
1003 1003
           </el-table-column>
1004 1004
           <el-table-column
1005 1005
               :label="'周日 (' + weekTitle[6] + ')'"
1006
-
1006
+              
1007 1007
               align="center"
1008 1008
               v-if="isShowSeven"
1009 1009
           >
@@ -1038,7 +1038,7 @@
1038 1038
                   <schedule-item
1039 1039
                     :draggable="isEditForDate('Sun_M')&&scope.row.Sun_M ? 'true' : 'false'"
1040 1040
                     :schedule-detail="scope.row.Sun_M"
1041
-
1041
+                    
1042 1042
                       class="contitem"
1043 1043
                       :style="{ cursor: scope.row.Sun_M ? 'move' : 'default' }"
1044 1044
                       @mouseover.native="
@@ -1130,7 +1130,7 @@
1130 1130
                   "
1131 1131
                     @dragover="allowDrop"
1132 1132
                 >
1133
-
1133
+                  
1134 1134
                   <schedule-item
1135 1135
                       :schedule-detail="scope.row.Sun_N"
1136 1136
                       :draggable="isEditForDate('Sun_N')&&scope.row.Sun_N ? 'true' : 'false'"
@@ -1163,7 +1163,7 @@
1163 1163
         :v-model="dialog"
1164 1164
         v-loading="creating_schedule"
1165 1165
         :modal-append-to-body='false'
1166
-
1166
+        
1167 1167
     >
1168 1168
     <!-- :close-on-click-modal="false" -->
1169 1169
       <div>
@@ -1190,7 +1190,7 @@
1190 1190
                   v-model="searchKey"
1191 1191
                   placeholder="请输入搜索的内容"
1192 1192
                   style="width: 260px"
1193
-
1193
+                 
1194 1194
               ></el-input>
1195 1195
               <!--  @keyup.enter.native="SubmitSearch" -->
1196 1196
               <el-button
@@ -1973,7 +1973,7 @@ export default {
1973 1973
         ],
1974 1974
         bed_id: [{ required: true, message: "请选择透析机", trigger: "blur" }],
1975 1975
       },
1976
-
1976
+     
1977 1977
       weekday: 0,//星期几
1978 1978
 
1979 1979
       creating_schedule: false,
@@ -3234,7 +3234,7 @@ export default {
3234 3234
           this.getSchedules();
3235 3235
         }
3236 3236
       });
3237
-
3237
+      
3238 3238
     },
3239 3239
     // 交换位置
3240 3240
     changeSchTwo(){
@@ -3244,7 +3244,7 @@ export default {
3244 3244
           id_one:this.cur_drag_info.id,
3245 3245
           id_two:this.currentData.id
3246 3246
         }
3247
-
3247
+      
3248 3248
         ExchangeSch(params).then((response) => {
3249 3249
           if (response.data.state == 0) {
3250 3250
             this.$message.error(response.data.msg);
@@ -3257,7 +3257,7 @@ export default {
3257 3257
           }
3258 3258
         });
3259 3259
     },
3260
-
3260
+    
3261 3261
     // !在html里面的chedule-item里绑定的| ":draggable"可控制该表格能否拖动,根据实际情况进行修改async
3262 3262
     drop(e, day,index,name, row) {
3263 3263
       this.allowDrop(e)
@@ -3366,7 +3366,7 @@ export default {
3366 3366
               this.currentData.patient_id = this.cur_drag_info.patient_id;
3367 3367
               this.currentData.patient = this.cur_drag_info.patient_name;
3368 3368
               this.setSchedule();
3369
-            }
3369
+            }    
3370 3370
           }
3371 3371
         }
3372 3372
       }
@@ -3771,7 +3771,7 @@ export default {
3771 3771
       this.$nextTick(() => {
3772 3772
         this.$refs.table.doLayout();
3773 3773
       });
3774
-
3774
+      
3775 3775
       if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
3776 3776
 
3777 3777
         //表格某列全部数据
@@ -3832,8 +3832,8 @@ export default {
3832 3832
         var Sun_A_One = []
3833 3833
         var Sun_N_One= []
3834 3834
 
3835
-
3836
-
3835
+       
3836
+      
3837 3837
       for(let j in data){
3838 3838
         if(data[j].hasOwnProperty ('Mon_A') == true){
3839 3839
           Mon_A.push(data[j].Mon_A.mode_name)
@@ -3852,7 +3852,7 @@ export default {
3852 3852
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
3853 3853
       }
3854 3854
       var result = [];
3855
-      for (var i = 0,len = Mon_A_One.length; i < len; i+=29) {
3855
+      for (var i = 0,len = Mon_A_One.length; i < len; i+=29) { 
3856 3856
           var strObjcet = Mon_A_One.slice(i, i+29);
3857 3857
           var str = strObjcet.toString();
3858 3858
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -3878,14 +3878,14 @@ export default {
3878 3878
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
3879 3879
       }
3880 3880
       var result = [];
3881
-      for (var i = 0,len = Mon_M_One.length; i < len; i+=29) {
3881
+      for (var i = 0,len = Mon_M_One.length; i < len; i+=29) { 
3882 3882
           var strObjcet = Mon_M_One.slice(i, i+29);
3883 3883
           var str = strObjcet.toString();
3884 3884
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3885 3885
           result.push(str);
3886 3886
       }
3887 3887
       sums[2]="总人数:"+ sums[2] +"\n"+result
3888
-
3888
+      
3889 3889
       for(let j in data){
3890 3890
         if(data[j].hasOwnProperty ('Mon_N') == true){
3891 3891
           Mon_N.push(data[j].Mon_N.mode_name)
@@ -3904,7 +3904,7 @@ export default {
3904 3904
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
3905 3905
       }
3906 3906
       var result = [];
3907
-      for (var i = 0,len = Mon_N_One.length; i < len; i+=29) {
3907
+      for (var i = 0,len = Mon_N_One.length; i < len; i+=29) { 
3908 3908
           var strObjcet = Mon_N_One.slice(i, i+29);
3909 3909
           var str = strObjcet.toString();
3910 3910
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -3930,7 +3930,7 @@ export default {
3930 3930
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
3931 3931
       }
3932 3932
       var result = [];
3933
-      for (var i = 0,len = Tue_M_One.length; i < len; i+=29) {
3933
+      for (var i = 0,len = Tue_M_One.length; i < len; i+=29) { 
3934 3934
           var strObjcet = Tue_M_One.slice(i, i+29);
3935 3935
           var str = strObjcet.toString();
3936 3936
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -3956,14 +3956,14 @@ export default {
3956 3956
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
3957 3957
       }
3958 3958
       var result = [];
3959
-      for (var i = 0,len = Tue_A_One.length; i < len; i+=29) {
3959
+      for (var i = 0,len = Tue_A_One.length; i < len; i+=29) { 
3960 3960
           var strObjcet = Tue_A_One.slice(i, i+29);
3961 3961
           var str = strObjcet.toString();
3962 3962
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3963 3963
           result.push(str);
3964 3964
       }
3965 3965
       sums[6]="总人数:"+ sums[6] +"\n"+result
3966
-
3966
+      
3967 3967
       for(let j in data){
3968 3968
         if(data[j].hasOwnProperty ('Tue_N') == true){
3969 3969
           Tue_N.push(data[j].Tue_N.mode_name)
@@ -3982,7 +3982,7 @@ export default {
3982 3982
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
3983 3983
       }
3984 3984
       var result = [];
3985
-      for (var i = 0,len = Tue_N_One.length; i < len; i+=29) {
3985
+      for (var i = 0,len = Tue_N_One.length; i < len; i+=29) { 
3986 3986
           var strObjcet = Tue_N_One.slice(i, i+29);
3987 3987
           var str = strObjcet.toString();
3988 3988
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4008,7 +4008,7 @@ export default {
4008 4008
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
4009 4009
       }
4010 4010
       var result = [];
4011
-      for (var i = 0,len = Wed_M_One.length; i < len; i+=29) {
4011
+      for (var i = 0,len = Wed_M_One.length; i < len; i+=29) { 
4012 4012
           var strObjcet = Wed_M_One.slice(i, i+29);
4013 4013
           var str = strObjcet.toString();
4014 4014
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4034,14 +4034,14 @@ export default {
4034 4034
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
4035 4035
       }
4036 4036
       var result = [];
4037
-      for (var i = 0,len = Wed_A_One.length; i < len; i+=29) {
4037
+      for (var i = 0,len = Wed_A_One.length; i < len; i+=29) { 
4038 4038
           var strObjcet = Wed_A_One.slice(i, i+29);
4039 4039
           var str = strObjcet.toString();
4040 4040
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4041 4041
           result.push(str);
4042 4042
       }
4043 4043
       sums[9]="总人数:"+ sums[9]  +"\n"+result
4044
-
4044
+      
4045 4045
       for(let j in data){
4046 4046
         if(data[j].hasOwnProperty ('Wed_N') == true){
4047 4047
           Wed_N.push(data[j].Wed_N.mode_name)
@@ -4057,11 +4057,11 @@ export default {
4057 4057
         }
4058 4058
       }
4059 4059
       for(let x in countNum){
4060
-
4060
+        
4061 4061
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
4062 4062
       }
4063 4063
       var result = [];
4064
-      for (var i = 0,len = Wed_N_One.length; i < len; i+=29) {
4064
+      for (var i = 0,len = Wed_N_One.length; i < len; i+=29) { 
4065 4065
           var strObjcet = Wed_N_One.slice(i, i+29);
4066 4066
           var str = strObjcet.toString();
4067 4067
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4087,7 +4087,7 @@ export default {
4087 4087
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
4088 4088
       }
4089 4089
       var result = [];
4090
-      for (var i = 0,len = Thurs_M_One.length; i < len; i+=29) {
4090
+      for (var i = 0,len = Thurs_M_One.length; i < len; i+=29) { 
4091 4091
           var strObjcet = Thurs_M_One.slice(i, i+29);
4092 4092
           var str = strObjcet.toString();
4093 4093
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4113,14 +4113,14 @@ export default {
4113 4113
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
4114 4114
       }
4115 4115
       var result = [];
4116
-      for (var i = 0,len = Thurs_A_One.length; i < len; i+=29) {
4116
+      for (var i = 0,len = Thurs_A_One.length; i < len; i+=29) { 
4117 4117
           var strObjcet = Thurs_A_One.slice(i, i+29);
4118 4118
           var str = strObjcet.toString();
4119 4119
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4120 4120
           result.push(str);
4121 4121
       }
4122 4122
       sums[12]="总人数:"+ sums[12] +"\n"+result
4123
-
4123
+      
4124 4124
       for(let j in data){
4125 4125
         if(data[j].hasOwnProperty ('Thurs_N') == true){
4126 4126
           Thurs_N.push(data[j].Thurs_N.mode_name)
@@ -4136,11 +4136,11 @@ export default {
4136 4136
         }
4137 4137
       }
4138 4138
       for(let x in countNum){
4139
-
4139
+        
4140 4140
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
4141 4141
       }
4142 4142
       var result = [];
4143
-      for (var i = 0,len = Thurs_N_One.length; i < len; i+=29) {
4143
+      for (var i = 0,len = Thurs_N_One.length; i < len; i+=29) { 
4144 4144
           var strObjcet = Thurs_N_One.slice(i, i+29);
4145 4145
           var str = strObjcet.toString();
4146 4146
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4166,7 +4166,7 @@ export default {
4166 4166
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
4167 4167
       }
4168 4168
       var result = [];
4169
-      for (var i = 0,len = Fri_M_One.length; i < len; i+=29) {
4169
+      for (var i = 0,len = Fri_M_One.length; i < len; i+=29) { 
4170 4170
           var strObjcet = Fri_M_One.slice(i, i+29);
4171 4171
           var str = strObjcet.toString();
4172 4172
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4189,18 +4189,18 @@ export default {
4189 4189
         }
4190 4190
       }
4191 4191
       for(let x in countNum){
4192
-
4192
+        
4193 4193
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
4194 4194
       }
4195 4195
       var result = [];
4196
-      for (var i = 0,len = Fri_A_One.length; i < len; i+=29) {
4196
+      for (var i = 0,len = Fri_A_One.length; i < len; i+=29) { 
4197 4197
           var strObjcet = Fri_A_One.slice(i, i+29);
4198 4198
           var str = strObjcet.toString();
4199 4199
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4200 4200
           result.push(str);
4201 4201
       }
4202 4202
       sums[15]="总人数:"+ sums[15] +"\n"+result
4203
-
4203
+      
4204 4204
       for(let j in data){
4205 4205
         if(data[j].hasOwnProperty ('Fri_N') == true){
4206 4206
           Fri_N.push(data[j].Fri_N.mode_name)
@@ -4216,11 +4216,11 @@ export default {
4216 4216
         }
4217 4217
       }
4218 4218
       for(let x in countNum){
4219
-
4219
+       
4220 4220
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
4221 4221
       }
4222 4222
       var result = [];
4223
-      for (var i = 0,len = Fri_N_One.length; i < len; i+=29) {
4223
+      for (var i = 0,len = Fri_N_One.length; i < len; i+=29) { 
4224 4224
           var strObjcet = Fri_N_One.slice(i, i+29);
4225 4225
           var str = strObjcet.toString();
4226 4226
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4246,7 +4246,7 @@ export default {
4246 4246
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
4247 4247
       }
4248 4248
       var result = [];
4249
-      for (var i = 0,len = Sat_M_One.length; i < len; i+=29) {
4249
+      for (var i = 0,len = Sat_M_One.length; i < len; i+=29) { 
4250 4250
           var strObjcet = Sat_M_One.slice(i, i+29);
4251 4251
           var str = strObjcet.toString();
4252 4252
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4269,18 +4269,18 @@ export default {
4269 4269
         }
4270 4270
       }
4271 4271
       for(let x in countNum){
4272
-
4272
+       
4273 4273
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
4274 4274
       }
4275 4275
       var result = [];
4276
-      for (var i = 0,len = Sat_A_One.length; i < len; i+=29) {
4276
+      for (var i = 0,len = Sat_A_One.length; i < len; i+=29) { 
4277 4277
           var strObjcet = Sat_A_One.slice(i, i+29);
4278 4278
           var str = strObjcet.toString();
4279 4279
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4280 4280
           result.push(str);
4281 4281
       }
4282 4282
       sums[18]="总人数:"+ sums[18] +"\n"+result
4283
-
4283
+      
4284 4284
       for(let j in data){
4285 4285
         if(data[j].hasOwnProperty ('Sat_N') == true){
4286 4286
           Sat_N.push(data[j].Sat_N.mode_name)
@@ -4299,7 +4299,7 @@ export default {
4299 4299
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
4300 4300
       }
4301 4301
       var result = [];
4302
-      for (var i = 0,len = Sat_N_One.length; i < len; i+=29) {
4302
+      for (var i = 0,len = Sat_N_One.length; i < len; i+=29) { 
4303 4303
           var strObjcet = Sat_N_One.slice(i, i+29);
4304 4304
           var str = strObjcet.toString();
4305 4305
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4325,7 +4325,7 @@ export default {
4325 4325
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
4326 4326
       }
4327 4327
       var result = [];
4328
-      for (var i = 0,len = Sun_M_One.length; i < len; i+=29) {
4328
+      for (var i = 0,len = Sun_M_One.length; i < len; i+=29) { 
4329 4329
           var strObjcet = Sun_M_One.slice(i, i+29);
4330 4330
           var str = strObjcet.toString();
4331 4331
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4348,18 +4348,18 @@ export default {
4348 4348
         }
4349 4349
       }
4350 4350
       for(let x in countNum){
4351
-
4351
+       
4352 4352
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
4353 4353
       }
4354 4354
       var result = [];
4355
-      for (var i = 0,len = Sun_A_One.length; i < len; i+=29) {
4355
+      for (var i = 0,len = Sun_A_One.length; i < len; i+=29) { 
4356 4356
           var strObjcet = Sun_A_One.slice(i, i+29);
4357 4357
           var str = strObjcet.toString();
4358 4358
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4359 4359
           result.push(str);
4360 4360
       }
4361 4361
       sums[21]="总人数:"+ sums[21] +"\n"+result
4362
-
4362
+      
4363 4363
       for(let j in data){
4364 4364
         if(data[j].hasOwnProperty ('Sun_N') == true){
4365 4365
           Sun_N.push(data[j].Sun_N.mode_name)
@@ -4375,11 +4375,11 @@ export default {
4375 4375
         }
4376 4376
       }
4377 4377
       for(let x in countNum){
4378
-
4378
+        
4379 4379
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
4380 4380
       }
4381 4381
       var result = [];
4382
-      for (var i = 0,len = Sun_N_One.length; i < len; i+=29) {
4382
+      for (var i = 0,len = Sun_N_One.length; i < len; i+=29) { 
4383 4383
           var strObjcet = Sun_N_One.slice(i, i+29);
4384 4384
           var str = strObjcet.toString();
4385 4385
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
@@ -4666,98 +4666,97 @@ export default {
4666 4666
         }
4667 4667
       });
4668 4668
     },
4669
-
4670
-    changeScheduleActon(formName) {
4671
-      this.changing_bed = true;
4672
-      ChangeSchedule(this.currentData.id, this.changeSchedule)
4673
-          .then((response) => {
4674
-            if (response.data.state == 0) {
4675
-              this.$message.error(response.data.msg);
4676
-            } else {
4677
-              this.$message({
4678
-                type: "success",
4679
-                message: "修改成功!",
4680
-              });
4681
-              var that = this;
4682
-              var schedule = response.data.data.schedule;
4683
-
4684
-              this.scheduleZone.forEach(function (zone, index) {
4685
-                if (
4686
-                    zone.zone_id == schedule.partition_id &&
4687
-                    zone.jihao_id == schedule.bed_id
4688
-                ) {
4689
-                  var weekPath = that.weekPath(
4690
-                      schedule.schedule_week,
4691
-                      schedule.schedule_type
4692
-                  );
4693
-                  if (weekPath.length == 2) {
4694
-                    var weekPathKey = weekPath[0] + "_" + weekPath[1];
4695
-                    that.scheduleZone[index][weekPathKey] = {
4696
-                      schedule_id: schedule.id,
4697
-                      mode_id: schedule.mode_id,
4698
-                      patient_id: schedule.patient_id,
4699
-                      patient: that.currentData.patient,
4700
-                      patient_contagions: that.currentData.contagions,
4701
-                      dialysis_machine_name: schedule.dialysis_machine_name,
4702
-
4703
-                      mode_name:
4704
-                          typeof that.modeOptions[schedule.mode_id] === "undefined"
4705
-                              ? ""
4706
-                              : that.modeOptions[schedule.mode_id].name,
4707
-                    };
4708
-
4709
-                    that.scheduleZone[index].total += 1;
4710
-                  }
4711
-                }
4712
-                if (
4713
-                    zone.zone_id == that.currentData.partition_id &&
4714
-                    zone.jihao_id == that.currentData.bed_id
4715
-                ) {
4716
-                  var weekPath = that.weekPath(
4717
-                      that.currentData.schedule_week,
4718
-                      that.currentData.schedule_type
4719
-                  );
4720
-                  if (weekPath.length == 2) {
4721
-                    var weekPathKey = weekPath[0] + "_" + weekPath[1];
4722
-                    that.scheduleZone[index][weekPathKey] = {
4723
-                      schedule_id: 0,
4724
-                      mode_id: 0,
4725
-                      patient_id: 0,
4726
-                      patient: "",
4727
-                      dialysis_machine_name: "",
4728
-
4729
-                      mode_name: "",
4730
-                      patient_contagions: [],
4731
-                    };
4732
-
4733
-                    that.scheduleZone[index].total -= 1;
4734
-                  }
4735
-                }
4736
-              });
4737
-              this.$refs[formName].resetFields();
4738
-              this.jhDialogVisible = false;
4739
-            }
4740
-            this.changing_bed = false;
4741
-          })
4742
-          .catch((err) => {
4743
-            this.$message.error(err);
4744
-            this.changing_bed = false;
4745
-          });
4746
-    },
4669
+  //  调整机号
4670
+    // changeScheduleActon(formName) {
4671
+    //   this.changing_bed = true;
4672
+    //   ChangeSchedule(this.currentData.id, this.changeSchedule)
4673
+    //       .then((response) => {
4674
+    //         if (response.data.state == 0) {
4675
+    //           this.$message.error(response.data.msg);
4676
+    //         } else {
4677
+    //           this.$message({
4678
+    //             type: "success",
4679
+    //             message: "修改成功!",
4680
+    //           });
4681
+    //           var that = this;
4682
+    //           var schedule = response.data.data.schedule;
4683
+
4684
+    //           this.scheduleZone.forEach(function (zone, index) {
4685
+    //             if (
4686
+    //                 zone.zone_id == schedule.partition_id &&
4687
+    //                 zone.jihao_id == schedule.bed_id
4688
+    //             ) {
4689
+    //               var weekPath = that.weekPath(
4690
+    //                   schedule.schedule_week,
4691
+    //                   schedule.schedule_type
4692
+    //               );
4693
+    //               if (weekPath.length == 2) {
4694
+    //                 var weekPathKey = weekPath[0] + "_" + weekPath[1];
4695
+    //                 that.scheduleZone[index][weekPathKey] = {
4696
+    //                   schedule_id: schedule.id,
4697
+    //                   mode_id: schedule.mode_id,
4698
+    //                   patient_id: schedule.patient_id,
4699
+    //                   patient: that.currentData.patient,
4700
+    //                   patient_contagions: that.currentData.contagions,
4701
+    //                   dialysis_machine_name: schedule.dialysis_machine_name,
4702
+
4703
+    //                   mode_name:
4704
+    //                       typeof that.modeOptions[schedule.mode_id] === "undefined"
4705
+    //                           ? ""
4706
+    //                           : that.modeOptions[schedule.mode_id].name,
4707
+    //                 };
4708
+
4709
+    //                 that.scheduleZone[index].total += 1;
4710
+    //               }
4711
+    //             }
4712
+    //             if (
4713
+    //                 zone.zone_id == that.currentData.partition_id &&
4714
+    //                 zone.jihao_id == that.currentData.bed_id
4715
+    //             ) {
4716
+    //               var weekPath = that.weekPath(
4717
+    //                   that.currentData.schedule_week,
4718
+    //                   that.currentData.schedule_type
4719
+    //               );
4720
+    //               if (weekPath.length == 2) {
4721
+    //                 var weekPathKey = weekPath[0] + "_" + weekPath[1];
4722
+    //                 that.scheduleZone[index][weekPathKey] = {
4723
+    //                   schedule_id: 0,
4724
+    //                   mode_id: 0,
4725
+    //                   patient_id: 0,
4726
+    //                   patient: "",
4727
+    //                   dialysis_machine_name: "",
4728
+
4729
+    //                   mode_name: "",
4730
+    //                   patient_contagions: [],
4731
+    //                 };
4732
+
4733
+    //                 that.scheduleZone[index].total -= 1;
4734
+    //               }
4735
+    //             }
4736
+    //           });
4737
+    //           this.$refs[formName].resetFields();
4738
+    //           this.jhDialogVisible = false;
4739
+    //         }
4740
+    //         this.changing_bed = false;
4741
+    //       })
4742
+    //       .catch((err) => {
4743
+    //         this.$message.error(err);
4744
+    //         this.changing_bed = false;
4745
+    //       });
4746
+    // },
4747 4747
     // 排班成功接口
4748
-   async CreateSchedule(id, data) {
4748
+   
4749
+    async CreateSchedule(id, data) {
4749 4750
       this.creating_schedule = true;
4750 4751
       let response =await CreateSchedule(id, data)
4751
-
4752
+     
4752 4753
       if (response.data.state == 0) {
4753
-        this.creating_schedule = false;
4754
-        
4755 4754
         this.$message.error(response.data.msg);
4756 4755
       } else {
4757
-              this.creating_schedule = false;
4758
-              this.dialogTableVisible=false
4759 4756
         var that = this;
4760 4757
         var schedule = response.data.data.schedule;
4758
+        this.creating_schedule=false;
4759
+        this.dialogTableVisible=false
4761 4760
         this.scheduleZone.forEach(function (zone, index) {
4762 4761
           if (
4763 4762
             zone.zone_id == schedule.partition_id &&
@@ -4793,7 +4792,7 @@ export default {
4793 4792
 
4794 4793
     // 单击选中患者
4795 4794
     clickThis(row, column, cell, event) {
4796
-
4795
+      
4797 4796
         console.log('this.currentData的数据',this.currentData);
4798 4797
 
4799 4798
         if (row[column.property].schedule_id > 0) {
@@ -4828,6 +4827,7 @@ export default {
4828 4827
     },
4829 4828
     // 双击有内容的单元格
4830 4829
     dblclickThis(row, column, cell, event){
4830
+      this.msDialogVisible=true
4831 4831
       var week = this.weekDay(column.property);
4832 4832
       if (week[0] == -1 || week[1] == -1) {
4833 4833
         return false;
@@ -4851,48 +4851,48 @@ export default {
4851 4851
         this.currentData.patient = row[column.property].patient;
4852 4852
         this.currentData.contagions = row[column.property].patient_contagions;
4853 4853
         this.tiaoZhengType = 1;
4854
-       this.msDialogVisible=true
4854
+       
4855 4855
       }
4856 4856
     },
4857 4857
 
4858
-    submitTiaoZJH(formName) {
4859
-      this.$refs[formName].validate((valid) => {
4860
-        if (valid) {
4861
-          var weekPath = this.weekPath(
4862
-              this.changeSchedule.schedule_week,
4863
-              this.changeSchedule.schedule_type
4864
-          );
4865
-          if (weekPath.length != 2) {
4866
-            this.$message.error("数据异常");
4867
-            return false;
4868
-          }
4869
-
4870
-          this.changeSchedule.bed_id = this.device_id;
4871
-          for (let i = 0; i < this.origin_device_numbers.length; i++) {
4872
-            if (this.origin_device_numbers[i].id == this.device_id) {
4873
-              this.changeSchedule.partition_id =
4874
-                  this.origin_device_numbers[i].zone_id;
4875
-            }
4876
-          }
4877
-
4878
-          this.changeSchedule.change_action = "change_device";
4879
-          this.changeScheduleActon(formName);
4880
-
4881
-          this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
4882
-          var weekPathKey = weekPath[0] + '_' + weekPath[1]
4883
-          for (var index in this.scheduleZone) {
4884
-            if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
4885
-              if (this.scheduleZone[index][weekPathKey].mode_id > 0) {
4886
-                this.$message.error('选中的区域已经存在排班,不能再排班!')
4887
-                return false
4888
-              }
4889
-              break
4890
-            }
4891
-          }
4892
-        }
4893
-      })
4894
-    },
4895
-
4858
+    // submitTiaoZJH(formName) {
4859
+    //   this.$refs[formName].validate((valid) => {
4860
+    //     if (valid) {
4861
+    //       var weekPath = this.weekPath(
4862
+    //           this.changeSchedule.schedule_week,
4863
+    //           this.changeSchedule.schedule_type
4864
+    //       );
4865
+    //       if (weekPath.length != 2) {
4866
+    //         this.$message.error("数据异常");
4867
+    //         return false;
4868
+    //       }
4869
+
4870
+    //       this.changeSchedule.bed_id = this.device_id;
4871
+    //       for (let i = 0; i < this.origin_device_numbers.length; i++) {
4872
+    //         if (this.origin_device_numbers[i].id == this.device_id) {
4873
+    //           this.changeSchedule.partition_id =
4874
+    //               this.origin_device_numbers[i].zone_id;
4875
+    //         }
4876
+    //       }
4877
+
4878
+    //       this.changeSchedule.change_action = "change_device";
4879
+    //       this.changeScheduleActon(formName);
4880
+
4881
+    //       this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
4882
+    //       var weekPathKey = weekPath[0] + '_' + weekPath[1]
4883
+    //       for (var index in this.scheduleZone) {
4884
+    //         if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
4885
+    //           if (this.scheduleZone[index][weekPathKey].mode_id > 0) {
4886
+    //             this.$message.error('选中的区域已经存在排班,不能再排班!')
4887
+    //             return false
4888
+    //           }
4889
+    //           break
4890
+    //         }
4891
+    //       }
4892
+    //     }
4893
+    //   })
4894
+    // },
4895
+    
4896 4896
     //  双击弹窗确认按钮
4897 4897
     submitMode(formName) {
4898 4898
       this.changing_mode = true;
@@ -4938,7 +4938,7 @@ export default {
4938 4938
             this.$message.error(err);
4939 4939
             this.changing_mode = false;
4940 4940
           });
4941
-
4941
+      
4942 4942
     },
4943 4943
 
4944 4944
     // submitTiaoZMS(formName) {
@@ -5252,7 +5252,7 @@ export default {
5252 5252
             .then(() => {
5253 5253
               this.CreateSchedule(this.currentData.patient_id, this.currentData);
5254 5254
             })
5255
-            .catch(() => { });
5255
+            .catch(() => {});
5256 5256
       } else {
5257 5257
         this.CreateSchedule(this.currentData.patient_id, this.currentData);
5258 5258
       }
@@ -5510,7 +5510,7 @@ export default {
5510 5510
       } else {
5511 5511
         return "table-row-new-class schedule-table-row infectious";
5512 5512
       };
5513
-      //
5513
+      // 
5514 5514
     },
5515 5515
     // 分区接口
5516 5516
     getAllZones() {
@@ -5568,7 +5568,7 @@ export default {
5568 5568
     };
5569 5569
   },
5570 5570
   created() {
5571
-
5571
+   
5572 5572
     var date = new Date();
5573 5573
     this.time = date;
5574 5574
     var year = date.getFullYear();
@@ -5669,7 +5669,7 @@ export default {
5669 5669
 .schedule-table-row td .cell {
5670 5670
   font-size: 12px;
5671 5671
   white-space: normal !important;
5672
-
5672
+  
5673 5673
 }
5674 5674
 
5675 5675
 // 动态样式

+ 158 - 52
src/xt_pages/workforce/components/tableData.vue View File

@@ -79,7 +79,7 @@
79 79
       </div>
80 80
     </div>
81 81
 
82
-    <!-- <el-dialog :visible.sync="searchTableVisible" width="80%">
82
+    <el-dialog :visible.sync="searchTableVisible" width="80%">
83 83
       <el-table
84 84
         :data="schedulePatients"
85 85
         :header-cell-style="{
@@ -121,34 +121,6 @@
121 121
           </template>
122 122
         </el-table-column>
123 123
         <el-table-column label="操作" align="center" width="300">
124
-
125
-           <template slot-scope="scope">
126
-            <span v-if="now_time>scope.row.schedule_date">
127
-              <el-button
128
-                size="mini"
129
-                type="primary"
130
-                :disable="true"
131
-              >
132
-                取消排班
133
-              </el-button>
134
-              <el-button
135
-                size="mini"
136
-                type="primary"
137
-                :disable="true"
138
-              >
139
-                调整机号
140
-              </el-button>
141
-              <el-button
142
-                size="mini"
143
-                type="primary"
144
-              :disable="true"
145
-              >
146
-                调整模式
147
-              </el-button>
148
-           </span>
149
-          </template>
150
-
151
-
152 124
           <template slot-scope="scope">
153 125
             <span v-if="now_time <=scope.row.schedule_date">
154 126
               <el-button
@@ -177,7 +149,7 @@
177 149
           </template>
178 150
         </el-table-column>
179 151
       </el-table>
180
-    </el-dialog> -->
152
+    </el-dialog>
181 153
     <!-- v-fit-columns -->
182 154
     <div class="center-tab">
183 155
       <el-table
@@ -440,6 +412,131 @@
440 412
         </el-table-column>
441 413
       </el-table>
442 414
     </div>
415
+
416
+    <!-- 调整模式 -->
417
+    <el-dialog
418
+        title="调整模式"
419
+        :visible.sync="msDialogVisible"
420
+        width="500px"
421
+        v-loading="changing_mode"
422
+        :modal-append-to-body='false'
423
+        :close-on-click-modal="false"
424
+    >
425
+      <div>
426
+        <el-form
427
+            :model="changeSchedule"
428
+            ref="changeSchedule"
429
+            :rules="changeRules"
430
+        >
431
+          <el-form-item label="" prop="mode_id">
432
+            <el-select
433
+                v-model="changeSchedule.mode_id"
434
+                placeholder="请选择"
435
+                style="width: 100%"
436
+            >
437
+            
438
+              <el-option
439
+                  :disabled="item.id == currentData.mode_id"
440
+                  v-for="item in modeOptions"
441
+                  :key="item.id"
442
+                  :label="item.name"
443
+                  :value="item.id"
444
+              >
445
+              </el-option>
446
+            </el-select>
447
+          </el-form-item>
448
+        </el-form>
449
+      </div>
450
+      <span slot="footer" class="dialog-footer">
451
+        <el-button @click="msDialogVisible = false">取 消</el-button>
452
+        <el-button
453
+            :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
454
+            type="primary"
455
+            @click="submitMode('changeSchedule')"
456
+        >保 存</el-button
457
+        >
458
+      </span>
459
+    </el-dialog>
460
+
461
+     <!--调整机号  -->
462
+     <el-dialog
463
+        title="调整机号"
464
+        :visible.sync="jhDialogVisible"
465
+        width="500px"
466
+        v-loading="changing_bed"
467
+        :modal-append-to-body='false'
468
+        :close-on-click-modal="false"
469
+    >
470
+      <div>
471
+        <el-form
472
+            :model="changeSchedule"
473
+            ref="changeSchedule"
474
+            :rules="changeRules"
475
+            label-width="90px"
476
+
477
+        >
478
+          <el-form-item label="排班日期: ">
479
+            <el-input v-model="currentData.schedule_date" disabled></el-input>
480
+          </el-form-item>
481
+          <el-form-item label="班次: " prop="schedule_type">
482
+            <el-select
483
+                v-model="changeSchedule.schedule_type"
484
+                placeholder="请选择"
485
+                style="width: 100%"
486
+                @change="changeScheduleType"
487
+            >
488
+              <el-option
489
+                  v-for="item in scheduleType"
490
+                  :key="item.id"
491
+                  :label="item.name"
492
+                  :value="item.id"
493
+              >
494
+              </el-option>
495
+            </el-select>
496
+          </el-form-item>
497
+          <el-form-item label="病房: " prop="partition_id">
498
+            <el-select
499
+                v-model="zone_name"
500
+                placeholder="请选择"
501
+                style="width: 100%"
502
+                @change="changePartition"
503
+            >
504
+              <el-option
505
+                  v-for="(item, index) in zone_names"
506
+                  :key="index"
507
+                  :label="item"
508
+                  :value="item"
509
+              >
510
+              </el-option>
511
+            </el-select>
512
+          </el-form-item>
513
+          <el-form-item label="透析机: " prop="bed_id">
514
+            <el-select
515
+                v-model="device_id"
516
+                placeholder="请选择"
517
+                style="width: 100%"
518
+            >
519
+              <el-option
520
+                  v-for="item in current_devices"
521
+                  :key="item.id"
522
+                  :label="item.number"
523
+                  :value="item.id"
524
+              >
525
+              </el-option>
526
+            </el-select>
527
+          </el-form-item>
528
+        </el-form>
529
+      </div>
530
+      <span slot="footer" class="dialog-footer">
531
+        <el-button @click="jhDialogVisible = false">取 消</el-button>
532
+        <el-button
533
+            :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
534
+            type="primary"
535
+            @click="submitTiaoZJH('changeSchedule')"
536
+        >保 存</el-button>
537
+        <!--  -->
538
+      </span>
539
+    </el-dialog>
443 540
     <!-- <el-dialog
444 541
       title="排班"
445 542
       :visible.sync="dialogTableVisible"
@@ -2178,6 +2275,7 @@ export default {
2178 2275
         }
2179 2276
       });
2180 2277
     },
2278
+    // 搜索弹窗操作取消排班
2181 2279
     CancelSchedule(id) {
2182 2280
       this.$confirm("确定要取消当前排班?", "提示", {
2183 2281
         confirmButtonText: "确定",
@@ -2226,6 +2324,7 @@ export default {
2226 2324
         })
2227 2325
         .catch(() => {});
2228 2326
     },
2327
+    // 搜索修改机号成功
2229 2328
     changeScheduleActon(formName) {
2230 2329
       this.changing_bed = true;
2231 2330
       ChangeSchedule(this.currentData.id, this.changeSchedule)
@@ -2407,6 +2506,7 @@ export default {
2407 2506
         this.dialogTableVisible = true;
2408 2507
       }
2409 2508
     },
2509
+    // 调整机号的确认按钮
2410 2510
     submitTiaoZJH(formName) {
2411 2511
       this.$refs[formName].validate(valid => {
2412 2512
         if (valid) {
@@ -2431,17 +2531,17 @@ export default {
2431 2531
           this.changeSchedule.change_action = "change_device";
2432 2532
           this.changeScheduleActon(formName);
2433 2533
 
2434
-          // this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
2435
-          // var weekPathKey = weekPath[0] + '_' + weekPath[1]
2436
-          // for (var index in this.scheduleZone) {
2437
-          //   if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
2438
-          //     if (this.scheduleZone[index][weekPathKey].mode_id > 0) {
2439
-          //       this.$message.error('选中的区域已经存在排班,不能再排班!')
2440
-          //       return false
2441
-          //     }
2442
-          //     break
2443
-          //   }
2444
-          // }
2534
+          this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
2535
+          var weekPathKey = weekPath[0] + '_' + weekPath[1]
2536
+          for (var index in this.scheduleZone) {
2537
+            if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
2538
+              if (this.scheduleZone[index][weekPathKey].mode_id > 0) {
2539
+                this.$message.error('选中的区域已经存在排班,不能再排班!')
2540
+                return false
2541
+              }
2542
+              break
2543
+            }
2544
+          }
2445 2545
 
2446 2546
           // 可能
2447 2547
           // 患者有传染病,与选择的机器类型(传染病)不匹配
@@ -2458,7 +2558,8 @@ export default {
2458 2558
           //   if (!cflag) {
2459 2559
           //     this.$confirm('此患者有传染病,与此透析机不匹配,确定在此排班吗?', '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
2460 2560
           //       .then(() => {
2461
-          //
2561
+          //         this.changeSchedule.change_action = 'change_device'
2562
+          //       this.changeScheduleActon(formName)
2462 2563
           //       }).catch(() => {
2463 2564
           //       })
2464 2565
           //   } else {
@@ -2477,8 +2578,9 @@ export default {
2477 2578
           //   this.changeScheduleActon(formName)
2478 2579
           // }
2479 2580
         }
2480
-      });
2581
+      })
2481 2582
     },
2583
+     //  搜索弹窗操作调整模式确认按钮
2482 2584
     submitMode(formName) {
2483 2585
       this.changing_mode = true;
2484 2586
       this.changeSchedule.change_action = "change_mode";
@@ -2664,15 +2766,15 @@ export default {
2664 2766
       //   });
2665 2767
     },
2666 2768
     submitTiaoX() {
2667
-      // if (this.tiaoZhengType==1) {
2668
-      //     this.$confirm('确定要取消当前排班?', '提示', {
2669
-      //       confirmButtonText: '确定',
2670
-      //       cancelButtonText: '取消',
2671
-      //       type: 'warning'
2672
-      //     }).then(() => {
2673
-      //        this.CancelSchedule(this.currentData.id);
2674
-      //     }).catch(() => {});
2675
-      // }
2769
+      if (this.tiaoZhengType==1) {
2770
+          this.$confirm('确定要取消当前排班?', '提示', {
2771
+            confirmButtonText: '确定',
2772
+            cancelButtonText: '取消',
2773
+            type: 'warning'
2774
+          }).then(() => {
2775
+             this.CancelSchedule(this.currentData.id);
2776
+          }).catch(() => {});
2777
+      }
2676 2778
 
2677 2779
       switch (this.tiaoZhengType) {
2678 2780
         case 1:
@@ -2981,7 +3083,9 @@ export default {
2981 3083
       }
2982 3084
       return [w, n];
2983 3085
     },
3086
+    // 搜索
2984 3087
     search: function() {
3088
+
2985 3089
       let week_type = 0
2986 3090
       var weeklist = moment().format('E');//计算今天是这周第几天
2987 3091
       var first_monday = moment().subtract(weeklist-1, 'days').format('YYYY-MM-DD');//周一日期
@@ -3008,6 +3112,7 @@ export default {
3008 3112
         }
3009 3113
       });
3010 3114
     },
3115
+    // 搜索弹窗调整机号按钮
3011 3116
     changeMachineNumber: function(index, row) {
3012 3117
       this.currentData.schedule_type = row.schedule_type;
3013 3118
       this.currentData.bed_id = row.bed_id;
@@ -3130,6 +3235,7 @@ export default {
3130 3235
 
3131 3236
       return type_name;
3132 3237
     },
3238
+    // 搜索弹窗调整模式按钮
3133 3239
     changeMode: function(index, row) {
3134 3240
       this.changeSchedule = {
3135 3241
         mode_id: "",