Parcourir la source

11月18 打印单

yq1 il y a 1 semaine
Parent
révision
69a0bb7652
1 fichiers modifiés avec 47 ajouts et 48 suppressions
  1. 47 48
      src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue

+ 47 - 48
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue Voir le fichier

@@ -134,10 +134,10 @@
134 134
                       透析机型号:
135 135
                       <div class="under_line" style="width: 60%; text-align: center">
136 136
                         <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
137
-                          {{ getnumberlist(dialysisOrder.bed_id) }} 
137
+                          {{ getnumberlist(dialysisOrder.bed_id) }}
138 138
                         </span>
139 139
                         <span v-else>
140
-                          {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) }} 
140
+                          {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) }}
141 141
                         </span>
142 142
                       </div>
143 143
                     </div>
@@ -234,7 +234,7 @@
234 234
                         {{ predialysis.blood_access_part_id }}
235 235
                         {{ predialysis.blood_access_part_opera_name }}
236 236
                       </div>
237
-                    </div>       
237
+                    </div>
238 238
                     <div class="inline_block" style="flex: 1">
239 239
                       导管:
240 240
                       <div class="under_line"
@@ -375,7 +375,7 @@
375 375
                         style="width: 50px; text-align: center"
376 376
                       >
377 377
                        {{ prescription.kalium ? prescription.kalium : "/" }}
378
-                       
378
+
379 379
                       </div>
380 380
                       mmol/L
381 381
                     </div>
@@ -391,7 +391,7 @@
391 391
                       <div class="under_line"
392 392
                         style="width: 35px; text-align: center"
393 393
                       >
394
-                       <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>                     
394
+                       <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>
395 395
                       </div>
396 396
                       mmol/L
397 397
                     </div>
@@ -405,7 +405,7 @@
405 405
                           prescription.bicarbonate ? prescription.bicarbonate : "/"
406 406
                         }}
407 407
                         </span>
408
-                        
408
+
409 409
                       </div>
410 410
                       mmol/L
411 411
                     </div>
@@ -435,7 +435,7 @@
435 435
                       <span v-if="prescription.anticoagulant!=''">
436 436
                         {{ getshouji(prescription.anticoagulant) }}
437 437
                       </span>
438
-                      
438
+
439 439
                     </div>
440 440
                     <div class="inline_block" style="flex: 1;">
441 441
                       追加:
@@ -451,7 +451,7 @@
451 451
                       <span v-if="prescription.anticoagulant!=''">
452 452
                         {{ getweichi(prescription.anticoagulant) }}
453 453
                       </span>
454
-                      
454
+
455 455
                     </div>
456 456
                     <div class="inline_block" style="flex: 1;"
457 457
                       v-if="prescription.anticoagulant == 5"
@@ -500,7 +500,7 @@
500 500
                       <span v-if="prescription.anticoagulant!=''">
501 501
                         {{ getzongliang(prescription.anticoagulant) }}
502 502
                       </span>
503
-                      
503
+
504 504
                     </div>
505 505
                   </div>
506 506
 
@@ -1091,7 +1091,7 @@
1091 1091
                       </div>
1092 1092
                     </div>
1093 1093
                   </div>
1094
-                 
1094
+
1095 1095
                 </td>
1096 1096
               </tr>
1097 1097
               <tr>
@@ -1099,7 +1099,7 @@
1099 1099
                   <div class="row"
1100 1100
                     style="padding: 2px 0; line-height: 23px; display: flex"
1101 1101
                   >
1102
-                  
1102
+
1103 1103
                     <div class="inline_block" style="flex: 1">
1104 1104
                       上机护士:
1105 1105
                       <div  class="under_line"
@@ -1138,7 +1138,7 @@
1138 1138
                         />
1139 1139
                       </div>
1140 1140
                     </div>
1141
-                    
1141
+
1142 1142
 
1143 1143
                     <div class="inline_block" style="flex: 1">
1144 1144
                       <span>核对护士:</span>
@@ -1296,13 +1296,13 @@
1296 1296
                         style="width: 64%; text-align: center"
1297 1297
                       >
1298 1298
                         <span style="height: 30px;display: inline-block;">
1299
-                          
1299
+
1300 1300
                         </span>
1301 1301
                         <span v-if="dialysisOrder!=null">
1302
-                          {{getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") ? 
1302
+                          {{getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") ?
1303 1303
                           getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") :''}}
1304 1304
                         </span>
1305
-                        
1305
+
1306 1306
                       </div>
1307 1307
                     </div>
1308 1308
                     <div class="inline_block" style="flex: 1.1">
@@ -1313,10 +1313,10 @@
1313 1313
                         <span style="height: 30px; display: inline-block">
1314 1314
                         </span>
1315 1315
                         <span v-if="dialysisOrder!=null">
1316
-                          {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ? 
1316
+                          {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ?
1317 1317
                           getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }}
1318 1318
                         </span>
1319
-                        
1319
+
1320 1320
 
1321 1321
                       </div>
1322 1322
                     </div>
@@ -2272,8 +2272,8 @@ export default {
2272 2272
   methods: {
2273 2273
     checkData() {
2274 2274
       var checkDate =[]
2275
-      if(this.dialysisOrder && this.dialysisOrder.bed_id == 0 &&
2276
-        this.patientInfo.DialysisSchedule.bed_id == 0
2275
+      if((this.dialysisOrder != undefined && this.dialysisOrder.bed_id == 0 &&
2276
+        this.patientInfo.DialysisSchedule.bed_id == 0)||this.dialysisOrder == undefined
2277 2277
       ){
2278 2278
         const obj = "透析机型号"
2279 2279
         checkDate.push(obj)
@@ -2293,7 +2293,7 @@ export default {
2293 2293
       ) {
2294 2294
         const obj4 = "透前血压"
2295 2295
         checkDate.push(obj4)
2296
-      } if (this.prescription.dialysis_duration_hour == 0 && 
2296
+      } if (this.prescription.dialysis_duration_hour == 0 &&
2297 2297
             this.prescription.dialysis_duration_minute ==0
2298 2298
       ) {
2299 2299
         const obj5 = "透析时间"
@@ -2307,7 +2307,7 @@ export default {
2307 2307
       } if (this.predialysis.catheter == '' ) {
2308 2308
         const obj8 = "导管"
2309 2309
         checkDate.push(obj8)
2310
-      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
2310
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' &&
2311 2311
             this.prescription.dialysis_dialyszers ==''
2312 2312
       ) {
2313 2313
         const obj9 = "透析(滤)器"
@@ -2364,7 +2364,7 @@ export default {
2364 2364
         const obj24 = "首剂"
2365 2365
         checkDate.push(obj24)
2366 2366
       }if (this.prescription.anticoagulant_zongliang == 0 &&
2367
-        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
2367
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
2368 2368
       ) {
2369 2369
         const obj25 = "总量"
2370 2370
         checkDate.push(obj25)
@@ -2480,10 +2480,10 @@ export default {
2480 2480
             }
2481 2481
           })
2482 2482
       }
2483
- 
2483
+
2484 2484
       this.getcheckData(checkDate)
2485 2485
     },
2486
-    
2486
+
2487 2487
     toUpload() {
2488 2488
 
2489 2489
       let dom = document.getElementById("dialysis-print-box-1")
@@ -2621,7 +2621,7 @@ export default {
2621 2621
       }
2622 2622
     },
2623 2623
 
2624
-   
2624
+
2625 2625
     getDisplaceLiquiPart: function (val) {
2626 2626
       let displace_liqui_part_name = "/";
2627 2627
       const displace_liqui_part = this.displaceLiquiPartOptions;
@@ -3065,7 +3065,7 @@ export default {
3065 3065
             }
3066 3066
          }
3067 3067
 
3068
-      
3068
+
3069 3069
 
3070 3070
          let projects = [];
3071 3071
         response.data.data.projects.map((item) => {
@@ -3091,7 +3091,7 @@ export default {
3091 3091
                 this.projects[i].project_team_id = 0
3092 3092
 
3093 3093
                 if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
3094
-                 
3094
+
3095 3095
                   this.projects[i].project_team = this.projects[i].team.project_team
3096 3096
                   this.projects[i].project_team_id = this.projects[i].team.id
3097 3097
                   this.projects[i].start_time = this.projects[i].start_time
@@ -3102,7 +3102,7 @@ export default {
3102 3102
                   this.projects[i].advice_name =  this.projects[i].team.project_team
3103 3103
                   this.projects[i].advice_doctor = this.projects[i].doctor
3104 3104
 
3105
-             
3105
+
3106 3106
                   newHisArr.push(this.projects[i])
3107 3107
                   // this.doctor_advices_2.push(this.project[i])
3108 3108
                 }else{
@@ -3120,14 +3120,14 @@ export default {
3120 3120
                   // this.doctor_advices_2.push(this.projects[i])
3121 3121
                 }
3122 3122
 
3123
-                
3123
+
3124 3124
 
3125 3125
               }
3126 3126
 
3127 3127
             }
3128 3128
             }
3129 3129
 
3130
-          
3130
+
3131 3131
 
3132 3132
             for(let i=0;i<newHisArr.length;i++){
3133 3133
               newHisArr[i].advice_name_str = ""
@@ -3242,7 +3242,7 @@ export default {
3242 3242
         this.totollength = this.doctor_advices.length + this.monitors.length;
3243 3243
         console.log("this.totollength",this.totollength)
3244 3244
 
3245
-        
3245
+
3246 3246
         if (this.totollength > 18) {
3247 3247
           var temp_advice_length = this.doctor_advices.length
3248 3248
           var doctor_advices_1 = [];
@@ -3382,7 +3382,7 @@ export default {
3382 3382
       if(id != 0){
3383 3383
         for(let i in options){
3384 3384
           if(id == options[i].id){
3385
-            console.log('anticoagulantsConfit11111',id); 
3385
+            console.log('anticoagulantsConfit11111',id);
3386 3386
             return options[i].shouji_unit
3387 3387
           }
3388 3388
         }
@@ -3425,13 +3425,12 @@ export default {
3425 3425
     },
3426 3426
     getcheckData(val){
3427 3427
       if(val.length >0){
3428
-        let message = `记录单未填数据:<br/><br/>&nbsp;&nbsp;${val.join("<br/><br/>&nbsp;&nbsp;")}`;
3429
-        this.$message({
3428
+        let message = `记录单未填数据:<br/>&nbsp;&nbsp;${val.join("<br/>&nbsp;&nbsp;")}`;
3429
+        this.$confirm(message, '提示', {
3430
+          confirmButtonText: '确定',
3431
+          cancelButtonText: '取消',
3432
+          type: 'warning',
3430 3433
           dangerouslyUseHTMLString: true,
3431
-          message:message,
3432
-          duration:0,
3433
-          showClose:true,
3434
-          type:'error'
3435 3434
         })
3436 3435
         return message
3437 3436
       }else{
@@ -3449,13 +3448,13 @@ export default {
3449 3448
     const birthYear = parseInt(idNumber.substring(6, 10), 10);
3450 3449
     const birthMonth = parseInt(idNumber.substring(10, 12), 10);
3451 3450
     const birthDay = parseInt(idNumber.substring(12, 14), 10);
3452
- 
3451
+
3453 3452
     const today = new Date();
3454 3453
     // console.log("today============",today)
3455 3454
     var ageYear = year - birthYear;
3456 3455
     let ageMonth = month - birthMonth; // 月份是从0开始的
3457 3456
     let ageDay = day - birthDay;
3458
- 
3457
+
3459 3458
     // 调整月份和日期,以便于正确计算
3460 3459
       if (ageDay < 0) {
3461 3460
           ageMonth -= 1;
@@ -3467,13 +3466,13 @@ export default {
3467 3466
           ageYear -= 1;
3468 3467
           ageMonth += 12;
3469 3468
       }
3470
-   
3471
-     return ageYear 
3469
+
3470
+     return ageYear
3472 3471
     },
3473 3472
     // getTime(val) {
3474 3473
     //   return uParseTime(val, "{y}年{m}月{d}日");
3475 3474
     // },
3476
-  
3475
+
3477 3476
     getTimeOne(val) {
3478 3477
       return uParseTime(val, "{y}");
3479 3478
     },
@@ -3494,13 +3493,13 @@ export default {
3494 3493
     const birthYear = parseInt(idNumber.substring(6, 10), 10);
3495 3494
     const birthMonth = parseInt(idNumber.substring(10, 12), 10);
3496 3495
     const birthDay = parseInt(idNumber.substring(12, 14), 10);
3497
- 
3496
+
3498 3497
     const today = new Date();
3499 3498
     // console.log("today============",today)
3500 3499
     var ageYear = year - birthYear;
3501 3500
     let ageMonth = month - birthMonth; // 月份是从0开始的
3502 3501
     let ageDay = day - birthDay;
3503
- 
3502
+
3504 3503
     // 调整月份和日期,以便于正确计算
3505 3504
       if (ageDay < 0) {
3506 3505
           ageMonth -= 1;
@@ -3512,8 +3511,8 @@ export default {
3512 3511
           ageYear -= 1;
3513 3512
           ageMonth += 12;
3514 3513
       }
3515
-   
3516
-     return ageYear 
3514
+
3515
+     return ageYear
3517 3516
     },
3518 3517
 
3519 3518
   },
@@ -3566,7 +3565,7 @@ export default {
3566 3565
 
3567 3566
     this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
3568 3567
     console.log('this.modeOptions',this.anticoagulantsConfit);
3569
-    
3568
+
3570 3569
     this.blood_access_part_opera = getDataConfig(
3571 3570
       "hemodialysis",
3572 3571
       "vascular_access_desc"