Browse Source

11月21日,打印单

yq1 1 day ago
parent
commit
edbb16b5c6
1 changed files with 42 additions and 39 deletions
  1. 42 39
      src/pages/main/template/DialysisPrintOrdereighty.vue

+ 42 - 39
src/pages/main/template/DialysisPrintOrdereighty.vue View File

1
 <template>
1
 <template>
2
   <div id="dialysis-print-box-1">
2
   <div id="dialysis-print-box-1">
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
-    <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content" 
4
+    <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content"
5
       style="margin-left: 10px;font-family: SimSun;"
5
       style="margin-left: 10px;font-family: SimSun;"
6
     >
6
     >
7
       <div style="display:inline-block;width:100%;text-align:center;">
7
       <div style="display:inline-block;width:100%;text-align:center;">
122
                     透析机型号:
122
                     透析机型号:
123
                     <div class="under_line" style="width: 60%; text-align: center">
123
                     <div class="under_line" style="width: 60%; text-align: center">
124
                       <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
124
                       <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
125
-                        {{ getnumberlist(dialysisOrder.bed_id) }} 
125
+                        {{ getnumberlist(dialysisOrder.bed_id) }}
126
                       </span>
126
                       </span>
127
                       <span v-else>
127
                       <span v-else>
128
-                        {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) }} 
128
+                        {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) }}
129
                       </span>
129
                       </span>
130
                     </div>
130
                     </div>
131
                   </div>
131
                   </div>
226
                       {{ predialysis.blood_access_part_opera_name }}
226
                       {{ predialysis.blood_access_part_opera_name }}
227
                     </div>
227
                     </div>
228
                   </div>
228
                   </div>
229
-                  
229
+
230
                   <div class="inline_block" style="flex: 1">
230
                   <div class="inline_block" style="flex: 1">
231
                     导管:
231
                     导管:
232
                     <div class="under_line"
232
                     <div class="under_line"
235
                       {{ predialysis.catheter ? predialysis.catheter : "/" }}
235
                       {{ predialysis.catheter ? predialysis.catheter : "/" }}
236
                     </div>
236
                     </div>
237
                   </div>
237
                   </div>
238
-                  
238
+
239
                 </div>
239
                 </div>
240
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
240
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
241
                   <div class="inline_block" style="flex: 1">
241
                   <div class="inline_block" style="flex: 1">
343
                           : "/"
343
                           : "/"
344
                       }}
344
                       }}
345
                     </div>
345
                     </div>
346
-                    kg
346
+                    L
347
                   </div>
347
                   </div>
348
                 </div>
348
                 </div>
349
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >
349
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >
366
                       style="width: 50px; text-align: center"
366
                       style="width: 50px; text-align: center"
367
                     >
367
                     >
368
                       {{ prescription.kalium ? prescription.kalium : "/" }}
368
                       {{ prescription.kalium ? prescription.kalium : "/" }}
369
-                      
369
+
370
                     </div>
370
                     </div>
371
                     mmol/L
371
                     mmol/L
372
                   </div>
372
                   </div>
382
                     <div class="under_line"
382
                     <div class="under_line"
383
                       style="width: 35px; text-align: center"
383
                       style="width: 35px; text-align: center"
384
                     >
384
                     >
385
-                      <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>                     
385
+                      <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>
386
                     </div>
386
                     </div>
387
                     mmol/L
387
                     mmol/L
388
                   </div>
388
                   </div>
396
                         prescription.bicarbonate ? prescription.bicarbonate : "/"
396
                         prescription.bicarbonate ? prescription.bicarbonate : "/"
397
                       }}
397
                       }}
398
                       </span>
398
                       </span>
399
-                      
399
+
400
                     </div>
400
                     </div>
401
                     mmol/L
401
                     mmol/L
402
-                  </div> 
402
+                  </div>
403
                 </div>
403
                 </div>
404
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >
404
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >
405
                   <div class="inline_block" style="flex: 1;">
405
                   <div class="inline_block" style="flex: 1;">
427
                     <span v-if="prescription.anticoagulant!=''">
427
                     <span v-if="prescription.anticoagulant!=''">
428
                       {{ getshouji(prescription.anticoagulant) }}
428
                       {{ getshouji(prescription.anticoagulant) }}
429
                     </span>
429
                     </span>
430
-                    
430
+
431
                   </div>
431
                   </div>
432
                   <div class="inline_block" style="flex: 1;">
432
                   <div class="inline_block" style="flex: 1;">
433
                     追加:
433
                     追加:
443
                     <span v-if="prescription.anticoagulant!=''">
443
                     <span v-if="prescription.anticoagulant!=''">
444
                       {{ getweichi(prescription.anticoagulant) }}
444
                       {{ getweichi(prescription.anticoagulant) }}
445
                     </span>
445
                     </span>
446
-                    
446
+
447
                   </div>
447
                   </div>
448
                   <div class="inline_block" style="flex: 1;"
448
                   <div class="inline_block" style="flex: 1;"
449
                     v-if="prescription.anticoagulant == 5"
449
                     v-if="prescription.anticoagulant == 5"
492
                     <span v-if="prescription.anticoagulant!=''">
492
                     <span v-if="prescription.anticoagulant!=''">
493
                       {{ getzongliang(prescription.anticoagulant) }}
493
                       {{ getzongliang(prescription.anticoagulant) }}
494
                     </span>
494
                     </span>
495
-                    
495
+
496
                   </div>
496
                   </div>
497
                 </div>
497
                 </div>
498
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
498
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
689
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
689
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
690
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
690
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
691
                       </td>
691
                       </td>
692
-                      
692
+
693
                       <td height="35px">
693
                       <td height="35px">
694
                         <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
694
                         <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
695
                         <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
695
                         <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
696
                       </td>
696
                       </td>
697
-                
697
+
698
                       <td height="35px">
698
                       <td height="35px">
699
                         <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
699
                         <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
700
                         <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
700
                         <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
785
                   </div>
785
                   </div>
786
                   次/分
786
                   次/分
787
                 </div>
787
                 </div>
788
-                   
788
+
789
               </div>
789
               </div>
790
 
790
 
791
               <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
791
               <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
900
                   <span>
900
                   <span>
901
                       透析中入量(L):
901
                       透析中入量(L):
902
                     </span>
902
                     </span>
903
-                  
903
+
904
                   <div
904
                   <div
905
                     class="under_line"
905
                     class="under_line"
906
                     style="width: 70px; text-align: center"
906
                     style="width: 70px; text-align: center"
982
           <tr>
982
           <tr>
983
             <td>
983
             <td>
984
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
984
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
985
-             
985
+
986
                 <div class="inline_block" style="flex: 1">
986
                 <div class="inline_block" style="flex: 1">
987
                   上机护士:
987
                   上机护士:
988
                   <div  class="under_line"
988
                   <div  class="under_line"
1021
                     />
1021
                     />
1022
                   </div>
1022
                   </div>
1023
                 </div>
1023
                 </div>
1024
-            
1024
+
1025
                 <div class="inline_block" style="flex:1;">
1025
                 <div class="inline_block" style="flex:1;">
1026
                   <span> 核对护士:</span>
1026
                   <span> 核对护士:</span>
1027
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
1027
                   <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
1054
                     style="width: 64%; text-align: center"
1054
                     style="width: 64%; text-align: center"
1055
                   >
1055
                   >
1056
                     <span style="height: 30px;display: inline-block;">
1056
                     <span style="height: 30px;display: inline-block;">
1057
-                      
1057
+
1058
                     </span>
1058
                     </span>
1059
                     <span v-if="dialysisOrder!=null">
1059
                     <span v-if="dialysisOrder!=null">
1060
-                      {{getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") ? 
1060
+                      {{getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") ?
1061
                       getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") :''}}
1061
                       getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") :''}}
1062
                     </span>
1062
                     </span>
1063
-                    
1063
+
1064
                   </div>
1064
                   </div>
1065
                 </div>
1065
                 </div>
1066
                 <div class="inline_block" style="flex: 1.1">
1066
                 <div class="inline_block" style="flex: 1.1">
1071
                     <span style="height: 30px; display: inline-block">
1071
                     <span style="height: 30px; display: inline-block">
1072
                     </span>
1072
                     </span>
1073
                     <span v-if="dialysisOrder!=null">
1073
                     <span v-if="dialysisOrder!=null">
1074
-                      {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ? 
1074
+                      {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ?
1075
                       getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }}
1075
                       getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }}
1076
                     </span>
1076
                     </span>
1077
-                    
1077
+
1078
 
1078
 
1079
                   </div>
1079
                   </div>
1080
                 </div>
1080
                 </div>
1095
 import { getDataConfig } from '@/utils/data'
1095
 import { getDataConfig } from '@/utils/data'
1096
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1096
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1097
 import LabelBox from '../printItem/LabelBox'
1097
 import LabelBox from '../printItem/LabelBox'
1098
-import {Toast} from 'vant'
1098
+import {Dialog} from 'vant'
1099
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1099
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1100
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1100
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1101
 import print from 'print-js'
1101
 import print from 'print-js'
1247
       ) {
1247
       ) {
1248
         const obj4 = "透前血压"
1248
         const obj4 = "透前血压"
1249
         checkDate.push(obj4)
1249
         checkDate.push(obj4)
1250
-      } if (this.prescription.dialysis_duration_hour == 0 && 
1250
+      } if (this.prescription.dialysis_duration_hour == 0 &&
1251
             this.prescription.dialysis_duration_minute ==0
1251
             this.prescription.dialysis_duration_minute ==0
1252
       ) {
1252
       ) {
1253
         const obj5 = "透析时间"
1253
         const obj5 = "透析时间"
1261
       } if (this.predialysis.catheter == '' ) {
1261
       } if (this.predialysis.catheter == '' ) {
1262
         const obj8 = "导管"
1262
         const obj8 = "导管"
1263
         checkDate.push(obj8)
1263
         checkDate.push(obj8)
1264
-      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
1264
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' &&
1265
             this.prescription.dialysis_dialyszers ==''
1265
             this.prescription.dialysis_dialyszers ==''
1266
       ) {
1266
       ) {
1267
         const obj9 = "透析(滤)器"
1267
         const obj9 = "透析(滤)器"
1318
         const obj24 = "首剂"
1318
         const obj24 = "首剂"
1319
         checkDate.push(obj24)
1319
         checkDate.push(obj24)
1320
       }if (this.prescription.anticoagulant_zongliang == 0 &&
1320
       }if (this.prescription.anticoagulant_zongliang == 0 &&
1321
-        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1321
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1322
       ) {
1322
       ) {
1323
         const obj25 = "总量"
1323
         const obj25 = "总量"
1324
         checkDate.push(obj25)
1324
         checkDate.push(obj25)
1434
             }
1434
             }
1435
           })
1435
           })
1436
       }
1436
       }
1437
- 
1437
+
1438
       this.getcheckData(checkDate)
1438
       this.getcheckData(checkDate)
1439
     },
1439
     },
1440
     getDisplaceLiquiPart: function (val) {
1440
     getDisplaceLiquiPart: function (val) {
1573
       // getDialysisRecord(this.queryParams).then(response => {
1573
       // getDialysisRecord(this.queryParams).then(response => {
1574
       var response = this.childResponse
1574
       var response = this.childResponse
1575
       if (response.data.state == 1) {
1575
       if (response.data.state == 1) {
1576
-        console.log('1234566',response.data.data);  
1576
+        console.log('1234566',response.data.data);
1577
         this.adminUser = response.data.data.users
1577
         this.adminUser = response.data.data.users
1578
         this.users = response.data.data.users
1578
         this.users = response.data.data.users
1579
         this.patientInfo = response.data.data.patientInfo
1579
         this.patientInfo = response.data.data.patientInfo
1741
             if(this.org_id!=10683){
1741
             if(this.org_id!=10683){
1742
               this.monitors[index].end = '【结束透析】'
1742
               this.monitors[index].end = '【结束透析】'
1743
             }
1743
             }
1744
-             
1744
+
1745
               tempmonitorflag = false
1745
               tempmonitorflag = false
1746
             }
1746
             }
1747
             if (tempmonitorflag && index == this.monitors.length - 1) {
1747
             if (tempmonitorflag && index == this.monitors.length - 1) {
1748
               if(this.org_id!=10683){
1748
               if(this.org_id!=10683){
1749
                 this.monitors[index].end = '【结束透析】'
1749
                 this.monitors[index].end = '【结束透析】'
1750
               }
1750
               }
1751
-             
1751
+
1752
             }
1752
             }
1753
           }
1753
           }
1754
         }
1754
         }
1914
         }
1914
         }
1915
         this.totollength = this.doctor_advices.length + this.monitors.length
1915
         this.totollength = this.doctor_advices.length + this.monitors.length
1916
         console.log(this.advice_groups)
1916
         console.log(this.advice_groups)
1917
-       
1917
+
1918
       } else {
1918
       } else {
1919
         this.loading = false
1919
         this.loading = false
1920
         this.$message.error('请求数据失败')
1920
         this.$message.error('请求数据失败')
2004
       if(id != 0){
2004
       if(id != 0){
2005
         for(let i in options){
2005
         for(let i in options){
2006
           if(id == options[i].id){
2006
           if(id == options[i].id){
2007
-            console.log('anticoagulantsConfit11111',id); 
2007
+            console.log('anticoagulantsConfit11111',id);
2008
             return options[i].shouji_unit
2008
             return options[i].shouji_unit
2009
           }
2009
           }
2010
         }
2010
         }
2048
     getcheckData(val){
2048
     getcheckData(val){
2049
       if(val.length >0){
2049
       if(val.length >0){
2050
         let message = `记录单未填数据:\n${val.join("\n")}`;
2050
         let message = `记录单未填数据:\n${val.join("\n")}`;
2051
-        Toast({
2052
-          duration:0,
2051
+        Dialog.confirm({
2052
+          allowHtml:true,
2053
           message:message,
2053
           message:message,
2054
-          closeOnClick:true,
2055
-          closeOnClickOverlay:true,
2056
-        })
2054
+        }).then(() => {
2055
+
2056
+          })
2057
+          .catch(() => {
2058
+
2059
+          });
2057
         return message
2060
         return message
2058
       }else{
2061
       }else{
2059
         this.$toast('核对完成');
2062
         this.$toast('核对完成');