28169 2 lat temu
rodzic
commit
70fa658352

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue Wyświetl plik

2368
                             v-if="!record.check"
2368
                             v-if="!record.check"
2369
                           ></div>
2369
                           ></div>
2370
                         </div> -->
2370
                         </div> -->
2371
-                        <!-- <div class="inline_block" style="flex: 1">
2371
+                        <div class="inline_block" style="flex: 1">
2372
                           下机护士:
2372
                           下机护士:
2373
                           <div
2373
                           <div
2374
                             class="under_line"
2374
                             class="under_line"
2407
                               style="height: 40px"
2407
                               style="height: 40px"
2408
                             />
2408
                             />
2409
                           </div>
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
                           <div
2413
                           <div
2414
                             class="under_line"
2414
                             class="under_line"
2424
                               style="height: 40px"
2424
                               style="height: 40px"
2425
                             />
2425
                             />
2426
                           </div>
2426
                           </div>
2427
-                        </div>
2427
+                        </div> -->
2428
                         <div class="inline_block" style="flex: 1">
2428
                         <div class="inline_block" style="flex: 1">
2429
                           治疗医生:
2429
                           治疗医生:
2430
                           <div
2430
                           <div

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Wyświetl plik

148
           <label>目标超滤量 : </label>
148
           <label>目标超滤量 : </label>
149
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
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
         </li>
153
         </li>
154
 
154
 
155
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
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 Wyświetl plik

95
                     </el-col>
95
                     </el-col>
96
 
96
 
97
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(ml):">
99
                         <el-form-item label="目标超滤量(ml):">
100
                             <el-input
100
                             <el-input
101
                                     type="number"
101
                                     type="number"
108
 
108
 
109
 
109
 
110
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(L):">
112
                         <el-form-item label="目标超滤量(L):">
113
                             <el-input
113
                             <el-input
114
                                     type="number"
114
                                     type="number"
285
                     </el-col>
285
                     </el-col>
286
 
286
 
287
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
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
                           <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">
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
                             <el-form-item
290
                             <el-form-item
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'
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
 
368
 
369
 
369
 
370
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
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
                           <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 ">
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
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
373
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
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">
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
 
432
 
433
 
433
 
434
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
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
                           <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">
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
                             <el-form-item
437
                             <el-form-item
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'
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 Wyświetl plik

2594
                                 />
2594
                                 />
2595
                               </div>
2595
                               </div>
2596
                             </div>
2596
                             </div>
2597
-                            <!-- <div class="inline_block" style="flex: 1">
2597
+                            <div class="inline_block" style="flex: 1">
2598
                               下机护士:
2598
                               下机护士:
2599
                               <div
2599
                               <div
2600
                                 class="under_line"
2600
                                 class="under_line"
2632
                                   v-else
2632
                                   v-else
2633
                                 />
2633
                                 />
2634
                               </div>
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
                               <div
2638
                               <div
2639
                                 class="under_line"
2639
                                 class="under_line"
2647
                                   srcset=""
2647
                                   srcset=""
2648
                                 />
2648
                                 />
2649
                               </div>
2649
                               </div>
2650
-                            </div>
2650
+                            </div> -->
2651
                             <div class="inline_block" style="flex: 1">
2651
                             <div class="inline_block" style="flex: 1">
2652
                               治疗医生:
2652
                               治疗医生:
2653
                               <div
2653
                               <div

+ 16 - 3
src/xt_pages/workforce/appointment.vue Wyświetl plik

115
         <el-tab-pane name="nextTwoWeek">
115
         <el-tab-pane name="nextTwoWeek">
116
           <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
116
           <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
117
         </el-tab-pane>
117
         </el-tab-pane>
118
-
119
-
120
       </el-tabs>
118
       </el-tabs>
121
 
119
 
122
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
120
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
132
                       
130
                       
133
         <div class="position">
131
         <div class="position">
134
           <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
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
         <div style="display:flex;align-items:center">
149
         <div style="display:flex;align-items:center">
137
           <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
150
           <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
138
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel>
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 Wyświetl plik

28
               icon="el-icon-search"
28
               icon="el-icon-search"
29
               @click="search"
29
               @click="search"
30
           >搜索</el-button>
30
           >搜索</el-button>
31
-
31
+          
32
         </div>
32
         </div>
33
         <div style="margin-bottom: 10px; display: flex">
33
         <div style="margin-bottom: 10px; display: flex">
34
           <h3 style="line-height: 45px">
34
           <h3 style="line-height: 45px">
69
             <el-table-column
69
             <el-table-column
70
                 prop="name"
70
                 prop="name"
71
                 label="患者名称"
71
                 label="患者名称"
72
-
72
+                
73
                 align="center"
73
                 align="center"
74
             >
74
             >
75
             </el-table-column>
75
             </el-table-column>
92
             <el-table-column
92
             <el-table-column
93
                 prop="name"
93
                 prop="name"
94
                 label="透析模式"
94
                 label="透析模式"
95
-
95
+                
96
                 align="center"
96
                 align="center"
97
             ></el-table-column>
97
             ></el-table-column>
98
           </el-table>
98
           </el-table>
129
           </el-option>
129
           </el-option>
130
         </el-select>
130
         </el-select>
131
         <!-- 编辑排班表格 -->
131
         <!-- 编辑排班表格 -->
132
-        <el-table
132
+        <el-table 
133
             :row-style="{ color: '#303133' }"
133
             :row-style="{ color: '#303133' }"
134
             :header-cell-style="{
134
             :header-cell-style="{
135
             backgroundColor: 'rgb(245, 247, 250)',
135
             backgroundColor: 'rgb(245, 247, 250)',
196
                     @dragover="allowDrop"
196
                     @dragover="allowDrop"
197
                     @dragover.prevent
197
                     @dragover.prevent
198
                 >
198
                 >
199
-
199
+                
200
                   <schedule-item
200
                   <schedule-item
201
                       :schedule-detail="scope.row.Mon_M"
201
                       :schedule-detail="scope.row.Mon_M"
202
                       :draggable="isEditForDate('Mon_M')&& scope.row.Mon_M ? 'true' : 'false'"
202
                       :draggable="isEditForDate('Mon_M')&& scope.row.Mon_M ? 'true' : 'false'"
212
                         scope.row.Mon_M,
212
                         scope.row.Mon_M,
213
                         scope.row
213
                         scope.row
214
                       )"
214
                       )"
215
-
215
+                      
216
                   >
216
                   >
217
                   </schedule-item>
217
                   </schedule-item>
218
                 </div>
218
                 </div>
309
           </el-table-column>
309
           </el-table-column>
310
           <el-table-column
310
           <el-table-column
311
               :label="'周二 (' + weekTitle[1] + ')'"
311
               :label="'周二 (' + weekTitle[1] + ')'"
312
-
312
+              
313
               v-if="isShowTwo"
313
               v-if="isShowTwo"
314
               align="center"
314
               align="center"
315
           >
315
           >
446
           </el-table-column>
446
           </el-table-column>
447
           <el-table-column
447
           <el-table-column
448
               :label="'周三 (' + weekTitle[2] + ')'"
448
               :label="'周三 (' + weekTitle[2] + ')'"
449
-
449
+              
450
               v-if="isShowThree"
450
               v-if="isShowThree"
451
               align="center"
451
               align="center"
452
           >
452
           >
729
           </el-table-column>
729
           </el-table-column>
730
           <el-table-column
730
           <el-table-column
731
               :label="'周五 (' + weekTitle[4] + ')'"
731
               :label="'周五 (' + weekTitle[4] + ')'"
732
-
732
+             
733
               align="center"
733
               align="center"
734
               v-if="isShowFive"
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
               <template slot-scope="scope">
738
               <template slot-scope="scope">
739
                 <div class="del_table_btn">
739
                 <div class="del_table_btn">
754
                     scope.row)"
754
                     scope.row)"
755
                 @dragover="allowDrop"
755
                 @dragover="allowDrop"
756
                   >
756
                   >
757
-
757
+                 
758
                   <schedule-item
758
                   <schedule-item
759
                       :schedule-detail="scope.row.Fri_M"
759
                       :schedule-detail="scope.row.Fri_M"
760
                       :draggable="isEditForDate('Fri_M')&&scope.row.Fri_M ? 'true' : 'false'"
760
                       :draggable="isEditForDate('Fri_M')&&scope.row.Fri_M ? 'true' : 'false'"
768
                         scope.row.Fri_M,
768
                         scope.row.Fri_M,
769
                         scope.row
769
                         scope.row
770
                       )
770
                       )
771
-                    "
771
+                    " 
772
                   >
772
                   >
773
                    <!-- -->
773
                    <!-- -->
774
                   </schedule-item>
774
                   </schedule-item>
786
                       @click.stop="deletePatientMode(scope.row.Fri_A)"
786
                       @click.stop="deletePatientMode(scope.row.Fri_A)"
787
                   ></el-button>
787
                   ></el-button>
788
                 </div>
788
                 </div>
789
-
789
+        
790
                 <div  @drop="
790
                 <div  @drop="
791
                   drop($event,
791
                   drop($event,
792
                     'Fri_A',
792
                     'Fri_A',
862
           </el-table-column>
862
           </el-table-column>
863
           <el-table-column
863
           <el-table-column
864
               :label="'周六 (' + weekTitle[5] + ')'"
864
               :label="'周六 (' + weekTitle[5] + ')'"
865
-
865
+              
866
               align="center"
866
               align="center"
867
               v-if="isShowSix"
867
               v-if="isShowSix"
868
           >
868
           >
933
                       scope.row
933
                       scope.row
934
                     )
934
                     )
935
                   "
935
                   "
936
-                    @dragover="allowDrop"
936
+                    @dragover="allowDrop" 
937
                 >
937
                 >
938
                   <schedule-item
938
                   <schedule-item
939
                       :schedule-detail="scope.row.Sat_A"
939
                       :schedule-detail="scope.row.Sat_A"
978
                       scope.row
978
                       scope.row
979
                     )
979
                     )
980
                   "
980
                   "
981
-                    @dragover="allowDrop"
981
+                    @dragover="allowDrop"  
982
                 >
982
                 >
983
                   <schedule-item
983
                   <schedule-item
984
                       :schedule-detail="scope.row.Sat_N"
984
                       :schedule-detail="scope.row.Sat_N"
993
                         scope.row.Sat_N,
993
                         scope.row.Sat_N,
994
                         scope.row
994
                         scope.row
995
                       )
995
                       )
996
-                    "
996
+                    " 
997
                   >
997
                   >
998
                   <!--  -->
998
                   <!--  -->
999
                     </schedule-item>
999
                     </schedule-item>
1003
           </el-table-column>
1003
           </el-table-column>
1004
           <el-table-column
1004
           <el-table-column
1005
               :label="'周日 (' + weekTitle[6] + ')'"
1005
               :label="'周日 (' + weekTitle[6] + ')'"
1006
-
1006
+              
1007
               align="center"
1007
               align="center"
1008
               v-if="isShowSeven"
1008
               v-if="isShowSeven"
1009
           >
1009
           >
1038
                   <schedule-item
1038
                   <schedule-item
1039
                     :draggable="isEditForDate('Sun_M')&&scope.row.Sun_M ? 'true' : 'false'"
1039
                     :draggable="isEditForDate('Sun_M')&&scope.row.Sun_M ? 'true' : 'false'"
1040
                     :schedule-detail="scope.row.Sun_M"
1040
                     :schedule-detail="scope.row.Sun_M"
1041
-
1041
+                    
1042
                       class="contitem"
1042
                       class="contitem"
1043
                       :style="{ cursor: scope.row.Sun_M ? 'move' : 'default' }"
1043
                       :style="{ cursor: scope.row.Sun_M ? 'move' : 'default' }"
1044
                       @mouseover.native="
1044
                       @mouseover.native="
1130
                   "
1130
                   "
1131
                     @dragover="allowDrop"
1131
                     @dragover="allowDrop"
1132
                 >
1132
                 >
1133
-
1133
+                  
1134
                   <schedule-item
1134
                   <schedule-item
1135
                       :schedule-detail="scope.row.Sun_N"
1135
                       :schedule-detail="scope.row.Sun_N"
1136
                       :draggable="isEditForDate('Sun_N')&&scope.row.Sun_N ? 'true' : 'false'"
1136
                       :draggable="isEditForDate('Sun_N')&&scope.row.Sun_N ? 'true' : 'false'"
1163
         :v-model="dialog"
1163
         :v-model="dialog"
1164
         v-loading="creating_schedule"
1164
         v-loading="creating_schedule"
1165
         :modal-append-to-body='false'
1165
         :modal-append-to-body='false'
1166
-
1166
+        
1167
     >
1167
     >
1168
     <!-- :close-on-click-modal="false" -->
1168
     <!-- :close-on-click-modal="false" -->
1169
       <div>
1169
       <div>
1190
                   v-model="searchKey"
1190
                   v-model="searchKey"
1191
                   placeholder="请输入搜索的内容"
1191
                   placeholder="请输入搜索的内容"
1192
                   style="width: 260px"
1192
                   style="width: 260px"
1193
-
1193
+                 
1194
               ></el-input>
1194
               ></el-input>
1195
               <!--  @keyup.enter.native="SubmitSearch" -->
1195
               <!--  @keyup.enter.native="SubmitSearch" -->
1196
               <el-button
1196
               <el-button
1973
         ],
1973
         ],
1974
         bed_id: [{ required: true, message: "请选择透析机", trigger: "blur" }],
1974
         bed_id: [{ required: true, message: "请选择透析机", trigger: "blur" }],
1975
       },
1975
       },
1976
-
1976
+     
1977
       weekday: 0,//星期几
1977
       weekday: 0,//星期几
1978
 
1978
 
1979
       creating_schedule: false,
1979
       creating_schedule: false,
3234
           this.getSchedules();
3234
           this.getSchedules();
3235
         }
3235
         }
3236
       });
3236
       });
3237
-
3237
+      
3238
     },
3238
     },
3239
     // 交换位置
3239
     // 交换位置
3240
     changeSchTwo(){
3240
     changeSchTwo(){
3244
           id_one:this.cur_drag_info.id,
3244
           id_one:this.cur_drag_info.id,
3245
           id_two:this.currentData.id
3245
           id_two:this.currentData.id
3246
         }
3246
         }
3247
-
3247
+      
3248
         ExchangeSch(params).then((response) => {
3248
         ExchangeSch(params).then((response) => {
3249
           if (response.data.state == 0) {
3249
           if (response.data.state == 0) {
3250
             this.$message.error(response.data.msg);
3250
             this.$message.error(response.data.msg);
3257
           }
3257
           }
3258
         });
3258
         });
3259
     },
3259
     },
3260
-
3260
+    
3261
     // !在html里面的chedule-item里绑定的| ":draggable"可控制该表格能否拖动,根据实际情况进行修改async
3261
     // !在html里面的chedule-item里绑定的| ":draggable"可控制该表格能否拖动,根据实际情况进行修改async
3262
     drop(e, day,index,name, row) {
3262
     drop(e, day,index,name, row) {
3263
       this.allowDrop(e)
3263
       this.allowDrop(e)
3366
               this.currentData.patient_id = this.cur_drag_info.patient_id;
3366
               this.currentData.patient_id = this.cur_drag_info.patient_id;
3367
               this.currentData.patient = this.cur_drag_info.patient_name;
3367
               this.currentData.patient = this.cur_drag_info.patient_name;
3368
               this.setSchedule();
3368
               this.setSchedule();
3369
-            }
3369
+            }    
3370
           }
3370
           }
3371
         }
3371
         }
3372
       }
3372
       }
3771
       this.$nextTick(() => {
3771
       this.$nextTick(() => {
3772
         this.$refs.table.doLayout();
3772
         this.$refs.table.doLayout();
3773
       });
3773
       });
3774
-
3774
+      
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){
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
         var Sun_A_One = []
3832
         var Sun_A_One = []
3833
         var Sun_N_One= []
3833
         var Sun_N_One= []
3834
 
3834
 
3835
-
3836
-
3835
+       
3836
+      
3837
       for(let j in data){
3837
       for(let j in data){
3838
         if(data[j].hasOwnProperty ('Mon_A') == true){
3838
         if(data[j].hasOwnProperty ('Mon_A') == true){
3839
           Mon_A.push(data[j].Mon_A.mode_name)
3839
           Mon_A.push(data[j].Mon_A.mode_name)
3852
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
3852
         Mon_A_One.push(x + ':' + countNum[x]+"\n")
3853
       }
3853
       }
3854
       var result = [];
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
           var strObjcet = Mon_A_One.slice(i, i+29);
3856
           var strObjcet = Mon_A_One.slice(i, i+29);
3857
           var str = strObjcet.toString();
3857
           var str = strObjcet.toString();
3858
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3858
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3878
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
3878
         Mon_M_One.push(x + ':' + countNum[x]+"\n")
3879
       }
3879
       }
3880
       var result = [];
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
           var strObjcet = Mon_M_One.slice(i, i+29);
3882
           var strObjcet = Mon_M_One.slice(i, i+29);
3883
           var str = strObjcet.toString();
3883
           var str = strObjcet.toString();
3884
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3884
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3885
           result.push(str);
3885
           result.push(str);
3886
       }
3886
       }
3887
       sums[2]="总人数:"+ sums[2] +"\n"+result
3887
       sums[2]="总人数:"+ sums[2] +"\n"+result
3888
-
3888
+      
3889
       for(let j in data){
3889
       for(let j in data){
3890
         if(data[j].hasOwnProperty ('Mon_N') == true){
3890
         if(data[j].hasOwnProperty ('Mon_N') == true){
3891
           Mon_N.push(data[j].Mon_N.mode_name)
3891
           Mon_N.push(data[j].Mon_N.mode_name)
3904
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
3904
         Mon_N_One.push(x + ':' + countNum[x]+"\n")
3905
       }
3905
       }
3906
       var result = [];
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
           var strObjcet = Mon_N_One.slice(i, i+29);
3908
           var strObjcet = Mon_N_One.slice(i, i+29);
3909
           var str = strObjcet.toString();
3909
           var str = strObjcet.toString();
3910
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3910
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3930
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
3930
         Tue_M_One.push(x + ':' + countNum[x]+"\n")
3931
       }
3931
       }
3932
       var result = [];
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
           var strObjcet = Tue_M_One.slice(i, i+29);
3934
           var strObjcet = Tue_M_One.slice(i, i+29);
3935
           var str = strObjcet.toString();
3935
           var str = strObjcet.toString();
3936
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3936
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3956
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
3956
         Tue_A_One.push(x + ':' + countNum[x]+"\n")
3957
       }
3957
       }
3958
       var result = [];
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
           var strObjcet = Tue_A_One.slice(i, i+29);
3960
           var strObjcet = Tue_A_One.slice(i, i+29);
3961
           var str = strObjcet.toString();
3961
           var str = strObjcet.toString();
3962
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3962
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3963
           result.push(str);
3963
           result.push(str);
3964
       }
3964
       }
3965
       sums[6]="总人数:"+ sums[6] +"\n"+result
3965
       sums[6]="总人数:"+ sums[6] +"\n"+result
3966
-
3966
+      
3967
       for(let j in data){
3967
       for(let j in data){
3968
         if(data[j].hasOwnProperty ('Tue_N') == true){
3968
         if(data[j].hasOwnProperty ('Tue_N') == true){
3969
           Tue_N.push(data[j].Tue_N.mode_name)
3969
           Tue_N.push(data[j].Tue_N.mode_name)
3982
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
3982
         Tue_N_One.push(x + ':' + countNum[x]+"\n")
3983
       }
3983
       }
3984
       var result = [];
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
           var strObjcet = Tue_N_One.slice(i, i+29);
3986
           var strObjcet = Tue_N_One.slice(i, i+29);
3987
           var str = strObjcet.toString();
3987
           var str = strObjcet.toString();
3988
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
3988
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4008
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
4008
         Wed_M_One.push(x + ':' + countNum[x]+"\n")
4009
       }
4009
       }
4010
       var result = [];
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
           var strObjcet = Wed_M_One.slice(i, i+29);
4012
           var strObjcet = Wed_M_One.slice(i, i+29);
4013
           var str = strObjcet.toString();
4013
           var str = strObjcet.toString();
4014
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4014
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4034
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
4034
         Wed_A_One.push(x + ':' + countNum[x]+"\n")
4035
       }
4035
       }
4036
       var result = [];
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
           var strObjcet = Wed_A_One.slice(i, i+29);
4038
           var strObjcet = Wed_A_One.slice(i, i+29);
4039
           var str = strObjcet.toString();
4039
           var str = strObjcet.toString();
4040
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4040
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4041
           result.push(str);
4041
           result.push(str);
4042
       }
4042
       }
4043
       sums[9]="总人数:"+ sums[9]  +"\n"+result
4043
       sums[9]="总人数:"+ sums[9]  +"\n"+result
4044
-
4044
+      
4045
       for(let j in data){
4045
       for(let j in data){
4046
         if(data[j].hasOwnProperty ('Wed_N') == true){
4046
         if(data[j].hasOwnProperty ('Wed_N') == true){
4047
           Wed_N.push(data[j].Wed_N.mode_name)
4047
           Wed_N.push(data[j].Wed_N.mode_name)
4057
         }
4057
         }
4058
       }
4058
       }
4059
       for(let x in countNum){
4059
       for(let x in countNum){
4060
-
4060
+        
4061
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
4061
         Wed_N_One.push(x + ':' + countNum[x]+"\n")
4062
       }
4062
       }
4063
       var result = [];
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
           var strObjcet = Wed_N_One.slice(i, i+29);
4065
           var strObjcet = Wed_N_One.slice(i, i+29);
4066
           var str = strObjcet.toString();
4066
           var str = strObjcet.toString();
4067
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4067
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4087
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
4087
         Thurs_M_One.push(x + ':' + countNum[x]+"\n")
4088
       }
4088
       }
4089
       var result = [];
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
           var strObjcet = Thurs_M_One.slice(i, i+29);
4091
           var strObjcet = Thurs_M_One.slice(i, i+29);
4092
           var str = strObjcet.toString();
4092
           var str = strObjcet.toString();
4093
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4093
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4113
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
4113
         Thurs_A_One.push(x + ':' + countNum[x]+"\n")
4114
       }
4114
       }
4115
       var result = [];
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
           var strObjcet = Thurs_A_One.slice(i, i+29);
4117
           var strObjcet = Thurs_A_One.slice(i, i+29);
4118
           var str = strObjcet.toString();
4118
           var str = strObjcet.toString();
4119
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4119
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4120
           result.push(str);
4120
           result.push(str);
4121
       }
4121
       }
4122
       sums[12]="总人数:"+ sums[12] +"\n"+result
4122
       sums[12]="总人数:"+ sums[12] +"\n"+result
4123
-
4123
+      
4124
       for(let j in data){
4124
       for(let j in data){
4125
         if(data[j].hasOwnProperty ('Thurs_N') == true){
4125
         if(data[j].hasOwnProperty ('Thurs_N') == true){
4126
           Thurs_N.push(data[j].Thurs_N.mode_name)
4126
           Thurs_N.push(data[j].Thurs_N.mode_name)
4136
         }
4136
         }
4137
       }
4137
       }
4138
       for(let x in countNum){
4138
       for(let x in countNum){
4139
-
4139
+        
4140
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
4140
         Thurs_N_One.push(x + ':' + countNum[x]+"\n")
4141
       }
4141
       }
4142
       var result = [];
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
           var strObjcet = Thurs_N_One.slice(i, i+29);
4144
           var strObjcet = Thurs_N_One.slice(i, i+29);
4145
           var str = strObjcet.toString();
4145
           var str = strObjcet.toString();
4146
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4146
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4166
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
4166
         Fri_M_One.push(x + ':' + countNum[x]+"\n")
4167
       }
4167
       }
4168
       var result = [];
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
           var strObjcet = Fri_M_One.slice(i, i+29);
4170
           var strObjcet = Fri_M_One.slice(i, i+29);
4171
           var str = strObjcet.toString();
4171
           var str = strObjcet.toString();
4172
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4172
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4189
         }
4189
         }
4190
       }
4190
       }
4191
       for(let x in countNum){
4191
       for(let x in countNum){
4192
-
4192
+        
4193
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
4193
         Fri_A_One.push(x + ':' + countNum[x]+"\n")
4194
       }
4194
       }
4195
       var result = [];
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
           var strObjcet = Fri_A_One.slice(i, i+29);
4197
           var strObjcet = Fri_A_One.slice(i, i+29);
4198
           var str = strObjcet.toString();
4198
           var str = strObjcet.toString();
4199
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4199
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4200
           result.push(str);
4200
           result.push(str);
4201
       }
4201
       }
4202
       sums[15]="总人数:"+ sums[15] +"\n"+result
4202
       sums[15]="总人数:"+ sums[15] +"\n"+result
4203
-
4203
+      
4204
       for(let j in data){
4204
       for(let j in data){
4205
         if(data[j].hasOwnProperty ('Fri_N') == true){
4205
         if(data[j].hasOwnProperty ('Fri_N') == true){
4206
           Fri_N.push(data[j].Fri_N.mode_name)
4206
           Fri_N.push(data[j].Fri_N.mode_name)
4216
         }
4216
         }
4217
       }
4217
       }
4218
       for(let x in countNum){
4218
       for(let x in countNum){
4219
-
4219
+       
4220
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
4220
         Fri_N_One.push(x + ':' + countNum[x]+"\n")
4221
       }
4221
       }
4222
       var result = [];
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
           var strObjcet = Fri_N_One.slice(i, i+29);
4224
           var strObjcet = Fri_N_One.slice(i, i+29);
4225
           var str = strObjcet.toString();
4225
           var str = strObjcet.toString();
4226
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4226
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4246
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
4246
         Sat_M_One.push(x + ':' + countNum[x]+"\n")
4247
       }
4247
       }
4248
       var result = [];
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
           var strObjcet = Sat_M_One.slice(i, i+29);
4250
           var strObjcet = Sat_M_One.slice(i, i+29);
4251
           var str = strObjcet.toString();
4251
           var str = strObjcet.toString();
4252
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4252
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4269
         }
4269
         }
4270
       }
4270
       }
4271
       for(let x in countNum){
4271
       for(let x in countNum){
4272
-
4272
+       
4273
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
4273
         Sat_A_One.push(x + ':' + countNum[x]+"\n")
4274
       }
4274
       }
4275
       var result = [];
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
           var strObjcet = Sat_A_One.slice(i, i+29);
4277
           var strObjcet = Sat_A_One.slice(i, i+29);
4278
           var str = strObjcet.toString();
4278
           var str = strObjcet.toString();
4279
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4279
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4280
           result.push(str);
4280
           result.push(str);
4281
       }
4281
       }
4282
       sums[18]="总人数:"+ sums[18] +"\n"+result
4282
       sums[18]="总人数:"+ sums[18] +"\n"+result
4283
-
4283
+      
4284
       for(let j in data){
4284
       for(let j in data){
4285
         if(data[j].hasOwnProperty ('Sat_N') == true){
4285
         if(data[j].hasOwnProperty ('Sat_N') == true){
4286
           Sat_N.push(data[j].Sat_N.mode_name)
4286
           Sat_N.push(data[j].Sat_N.mode_name)
4299
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
4299
         Sat_N_One.push(x + ':' + countNum[x]+"\n")
4300
       }
4300
       }
4301
       var result = [];
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
           var strObjcet = Sat_N_One.slice(i, i+29);
4303
           var strObjcet = Sat_N_One.slice(i, i+29);
4304
           var str = strObjcet.toString();
4304
           var str = strObjcet.toString();
4305
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4305
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4325
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
4325
         Sun_M_One.push(x + ':' + countNum[x]+"\n")
4326
       }
4326
       }
4327
       var result = [];
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
           var strObjcet = Sun_M_One.slice(i, i+29);
4329
           var strObjcet = Sun_M_One.slice(i, i+29);
4330
           var str = strObjcet.toString();
4330
           var str = strObjcet.toString();
4331
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4331
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4348
         }
4348
         }
4349
       }
4349
       }
4350
       for(let x in countNum){
4350
       for(let x in countNum){
4351
-
4351
+       
4352
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
4352
         Sun_A_One.push(x + ':' + countNum[x]+"\n")
4353
       }
4353
       }
4354
       var result = [];
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
           var strObjcet = Sun_A_One.slice(i, i+29);
4356
           var strObjcet = Sun_A_One.slice(i, i+29);
4357
           var str = strObjcet.toString();
4357
           var str = strObjcet.toString();
4358
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4358
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4359
           result.push(str);
4359
           result.push(str);
4360
       }
4360
       }
4361
       sums[21]="总人数:"+ sums[21] +"\n"+result
4361
       sums[21]="总人数:"+ sums[21] +"\n"+result
4362
-
4362
+      
4363
       for(let j in data){
4363
       for(let j in data){
4364
         if(data[j].hasOwnProperty ('Sun_N') == true){
4364
         if(data[j].hasOwnProperty ('Sun_N') == true){
4365
           Sun_N.push(data[j].Sun_N.mode_name)
4365
           Sun_N.push(data[j].Sun_N.mode_name)
4375
         }
4375
         }
4376
       }
4376
       }
4377
       for(let x in countNum){
4377
       for(let x in countNum){
4378
-
4378
+        
4379
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
4379
         Sun_N_One.push(x + ':' + countNum[x]+"\n")
4380
       }
4380
       }
4381
       var result = [];
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
           var strObjcet = Sun_N_One.slice(i, i+29);
4383
           var strObjcet = Sun_N_One.slice(i, i+29);
4384
           var str = strObjcet.toString();
4384
           var str = strObjcet.toString();
4385
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
4385
           str = str.replace(/,/g, " "); //将所有的逗号 替换成空格
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
       this.creating_schedule = true;
4750
       this.creating_schedule = true;
4750
       let response =await CreateSchedule(id, data)
4751
       let response =await CreateSchedule(id, data)
4751
-
4752
+     
4752
       if (response.data.state == 0) {
4753
       if (response.data.state == 0) {
4753
-        this.creating_schedule = false;
4754
-        
4755
         this.$message.error(response.data.msg);
4754
         this.$message.error(response.data.msg);
4756
       } else {
4755
       } else {
4757
-              this.creating_schedule = false;
4758
-              this.dialogTableVisible=false
4759
         var that = this;
4756
         var that = this;
4760
         var schedule = response.data.data.schedule;
4757
         var schedule = response.data.data.schedule;
4758
+        this.creating_schedule=false;
4759
+        this.dialogTableVisible=false
4761
         this.scheduleZone.forEach(function (zone, index) {
4760
         this.scheduleZone.forEach(function (zone, index) {
4762
           if (
4761
           if (
4763
             zone.zone_id == schedule.partition_id &&
4762
             zone.zone_id == schedule.partition_id &&
4793
 
4792
 
4794
     // 单击选中患者
4793
     // 单击选中患者
4795
     clickThis(row, column, cell, event) {
4794
     clickThis(row, column, cell, event) {
4796
-
4795
+      
4797
         console.log('this.currentData的数据',this.currentData);
4796
         console.log('this.currentData的数据',this.currentData);
4798
 
4797
 
4799
         if (row[column.property].schedule_id > 0) {
4798
         if (row[column.property].schedule_id > 0) {
4828
     },
4827
     },
4829
     // 双击有内容的单元格
4828
     // 双击有内容的单元格
4830
     dblclickThis(row, column, cell, event){
4829
     dblclickThis(row, column, cell, event){
4830
+      this.msDialogVisible=true
4831
       var week = this.weekDay(column.property);
4831
       var week = this.weekDay(column.property);
4832
       if (week[0] == -1 || week[1] == -1) {
4832
       if (week[0] == -1 || week[1] == -1) {
4833
         return false;
4833
         return false;
4851
         this.currentData.patient = row[column.property].patient;
4851
         this.currentData.patient = row[column.property].patient;
4852
         this.currentData.contagions = row[column.property].patient_contagions;
4852
         this.currentData.contagions = row[column.property].patient_contagions;
4853
         this.tiaoZhengType = 1;
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
     submitMode(formName) {
4897
     submitMode(formName) {
4898
       this.changing_mode = true;
4898
       this.changing_mode = true;
4938
             this.$message.error(err);
4938
             this.$message.error(err);
4939
             this.changing_mode = false;
4939
             this.changing_mode = false;
4940
           });
4940
           });
4941
-
4941
+      
4942
     },
4942
     },
4943
 
4943
 
4944
     // submitTiaoZMS(formName) {
4944
     // submitTiaoZMS(formName) {
5252
             .then(() => {
5252
             .then(() => {
5253
               this.CreateSchedule(this.currentData.patient_id, this.currentData);
5253
               this.CreateSchedule(this.currentData.patient_id, this.currentData);
5254
             })
5254
             })
5255
-            .catch(() => { });
5255
+            .catch(() => {});
5256
       } else {
5256
       } else {
5257
         this.CreateSchedule(this.currentData.patient_id, this.currentData);
5257
         this.CreateSchedule(this.currentData.patient_id, this.currentData);
5258
       }
5258
       }
5510
       } else {
5510
       } else {
5511
         return "table-row-new-class schedule-table-row infectious";
5511
         return "table-row-new-class schedule-table-row infectious";
5512
       };
5512
       };
5513
-      //
5513
+      // 
5514
     },
5514
     },
5515
     // 分区接口
5515
     // 分区接口
5516
     getAllZones() {
5516
     getAllZones() {
5568
     };
5568
     };
5569
   },
5569
   },
5570
   created() {
5570
   created() {
5571
-
5571
+   
5572
     var date = new Date();
5572
     var date = new Date();
5573
     this.time = date;
5573
     this.time = date;
5574
     var year = date.getFullYear();
5574
     var year = date.getFullYear();
5669
 .schedule-table-row td .cell {
5669
 .schedule-table-row td .cell {
5670
   font-size: 12px;
5670
   font-size: 12px;
5671
   white-space: normal !important;
5671
   white-space: normal !important;
5672
-
5672
+  
5673
 }
5673
 }
5674
 
5674
 
5675
 // 动态样式
5675
 // 动态样式

+ 158 - 52
src/xt_pages/workforce/components/tableData.vue Wyświetl plik

79
       </div>
79
       </div>
80
     </div>
80
     </div>
81
 
81
 
82
-    <!-- <el-dialog :visible.sync="searchTableVisible" width="80%">
82
+    <el-dialog :visible.sync="searchTableVisible" width="80%">
83
       <el-table
83
       <el-table
84
         :data="schedulePatients"
84
         :data="schedulePatients"
85
         :header-cell-style="{
85
         :header-cell-style="{
121
           </template>
121
           </template>
122
         </el-table-column>
122
         </el-table-column>
123
         <el-table-column label="操作" align="center" width="300">
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
           <template slot-scope="scope">
124
           <template slot-scope="scope">
153
             <span v-if="now_time <=scope.row.schedule_date">
125
             <span v-if="now_time <=scope.row.schedule_date">
154
               <el-button
126
               <el-button
177
           </template>
149
           </template>
178
         </el-table-column>
150
         </el-table-column>
179
       </el-table>
151
       </el-table>
180
-    </el-dialog> -->
152
+    </el-dialog>
181
     <!-- v-fit-columns -->
153
     <!-- v-fit-columns -->
182
     <div class="center-tab">
154
     <div class="center-tab">
183
       <el-table
155
       <el-table
440
         </el-table-column>
412
         </el-table-column>
441
       </el-table>
413
       </el-table>
442
     </div>
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
     <!-- <el-dialog
540
     <!-- <el-dialog
444
       title="排班"
541
       title="排班"
445
       :visible.sync="dialogTableVisible"
542
       :visible.sync="dialogTableVisible"
2178
         }
2275
         }
2179
       });
2276
       });
2180
     },
2277
     },
2278
+    // 搜索弹窗操作取消排班
2181
     CancelSchedule(id) {
2279
     CancelSchedule(id) {
2182
       this.$confirm("确定要取消当前排班?", "提示", {
2280
       this.$confirm("确定要取消当前排班?", "提示", {
2183
         confirmButtonText: "确定",
2281
         confirmButtonText: "确定",
2226
         })
2324
         })
2227
         .catch(() => {});
2325
         .catch(() => {});
2228
     },
2326
     },
2327
+    // 搜索修改机号成功
2229
     changeScheduleActon(formName) {
2328
     changeScheduleActon(formName) {
2230
       this.changing_bed = true;
2329
       this.changing_bed = true;
2231
       ChangeSchedule(this.currentData.id, this.changeSchedule)
2330
       ChangeSchedule(this.currentData.id, this.changeSchedule)
2407
         this.dialogTableVisible = true;
2506
         this.dialogTableVisible = true;
2408
       }
2507
       }
2409
     },
2508
     },
2509
+    // 调整机号的确认按钮
2410
     submitTiaoZJH(formName) {
2510
     submitTiaoZJH(formName) {
2411
       this.$refs[formName].validate(valid => {
2511
       this.$refs[formName].validate(valid => {
2412
         if (valid) {
2512
         if (valid) {
2431
           this.changeSchedule.change_action = "change_device";
2531
           this.changeSchedule.change_action = "change_device";
2432
           this.changeScheduleActon(formName);
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
           //   if (!cflag) {
2558
           //   if (!cflag) {
2459
           //     this.$confirm('此患者有传染病,与此透析机不匹配,确定在此排班吗?', '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
2559
           //     this.$confirm('此患者有传染病,与此透析机不匹配,确定在此排班吗?', '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
2460
           //       .then(() => {
2560
           //       .then(() => {
2461
-          //
2561
+          //         this.changeSchedule.change_action = 'change_device'
2562
+          //       this.changeScheduleActon(formName)
2462
           //       }).catch(() => {
2563
           //       }).catch(() => {
2463
           //       })
2564
           //       })
2464
           //   } else {
2565
           //   } else {
2477
           //   this.changeScheduleActon(formName)
2578
           //   this.changeScheduleActon(formName)
2478
           // }
2579
           // }
2479
         }
2580
         }
2480
-      });
2581
+      })
2481
     },
2582
     },
2583
+     //  搜索弹窗操作调整模式确认按钮
2482
     submitMode(formName) {
2584
     submitMode(formName) {
2483
       this.changing_mode = true;
2585
       this.changing_mode = true;
2484
       this.changeSchedule.change_action = "change_mode";
2586
       this.changeSchedule.change_action = "change_mode";
2664
       //   });
2766
       //   });
2665
     },
2767
     },
2666
     submitTiaoX() {
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
       switch (this.tiaoZhengType) {
2779
       switch (this.tiaoZhengType) {
2678
         case 1:
2780
         case 1:
2981
       }
3083
       }
2982
       return [w, n];
3084
       return [w, n];
2983
     },
3085
     },
3086
+    // 搜索
2984
     search: function() {
3087
     search: function() {
3088
+
2985
       let week_type = 0
3089
       let week_type = 0
2986
       var weeklist = moment().format('E');//计算今天是这周第几天
3090
       var weeklist = moment().format('E');//计算今天是这周第几天
2987
       var first_monday = moment().subtract(weeklist-1, 'days').format('YYYY-MM-DD');//周一日期
3091
       var first_monday = moment().subtract(weeklist-1, 'days').format('YYYY-MM-DD');//周一日期
3008
         }
3112
         }
3009
       });
3113
       });
3010
     },
3114
     },
3115
+    // 搜索弹窗调整机号按钮
3011
     changeMachineNumber: function(index, row) {
3116
     changeMachineNumber: function(index, row) {
3012
       this.currentData.schedule_type = row.schedule_type;
3117
       this.currentData.schedule_type = row.schedule_type;
3013
       this.currentData.bed_id = row.bed_id;
3118
       this.currentData.bed_id = row.bed_id;
3130
 
3235
 
3131
       return type_name;
3236
       return type_name;
3132
     },
3237
     },
3238
+    // 搜索弹窗调整模式按钮
3133
     changeMode: function(index, row) {
3239
     changeMode: function(index, row) {
3134
       this.changeSchedule = {
3240
       this.changeSchedule = {
3135
         mode_id: "",
3241
         mode_id: "",