Browse Source

11月18 打印单

yq1 4 days ago
parent
commit
69a0bb7652
1 changed files with 47 additions and 48 deletions
  1. 47 48
      src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue

+ 47 - 48
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue View File

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