Browse Source

11月21日,打印单

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