yq1 1 year ago
parent
commit
4d57b3bd6d
1 changed files with 59 additions and 59 deletions
  1. 59 59
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue

+ 59 - 59
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

6
       <div
6
       <div
7
         id="dialysis-print-box-64-1  "
7
         id="dialysis-print-box-64-1  "
8
         class="dialysis-print-order print-template-two print_page_main_content"
8
         class="dialysis-print-order print-template-two print_page_main_content"
9
-        
9
+
10
       >
10
       >
11
         <div id="dialysis-print-box-64" style="padding:10px 0 0 40px;">
11
         <div id="dialysis-print-box-64" style="padding:10px 0 0 40px;">
12
           <!-- <div 10px 0 0 40px
12
           <!-- <div 10px 0 0 40px
89
                     <span v-else-if="prescription.mode_id == 11">HFR</span>
89
                     <span v-else-if="prescription.mode_id == 11">HFR</span>
90
                     <span v-else-if="prescription.mode_id == 12">HDF+HP</span>
90
                     <span v-else-if="prescription.mode_id == 12">HDF+HP</span>
91
                     <span v-else-if="prescription.mode_id == 13">CRRT</span>
91
                     <span v-else-if="prescription.mode_id == 13">CRRT</span>
92
-                  
92
+
93
                     <span v-else-if="prescription.mode_id == 19">IUF+HD</span>
93
                     <span v-else-if="prescription.mode_id == 19">IUF+HD</span>
94
                     <span v-else-if="prescription.mode_id == 20">UF</span>
94
                     <span v-else-if="prescription.mode_id == 20">UF</span>
95
                     <span v-else-if="prescription.mode_id == 21">HD+</span>
95
                     <span v-else-if="prescription.mode_id == 21">HD+</span>
138
                   <span v-else-if="prescription.anticoagulant == 13">那屈肝素钙</span>
138
                   <span v-else-if="prescription.anticoagulant == 13">那屈肝素钙</span>
139
                   <span v-else-if="prescription.anticoagulant == 14">肝素钙注射液</span>
139
                   <span v-else-if="prescription.anticoagulant == 14">肝素钙注射液</span>
140
                   <span v-else-if="prescription.anticoagulant == 15">甲磺酸萘莫司他</span>
140
                   <span v-else-if="prescription.anticoagulant == 15">甲磺酸萘莫司他</span>
141
-                  &nbsp; 
142
-                  <span style="width:150px;display: inline-block;" 
141
+                  &nbsp;
142
+                  <span style="width:150px;display: inline-block;"
143
                   v-if=" prescription.anticoagulant != 1 && prescription.anticoagulant != 12 && prescription.anticoagulant != 5">
143
                   v-if=" prescription.anticoagulant != 1 && prescription.anticoagulant != 12 && prescription.anticoagulant != 5">
144
-                    首剂: {{ prescription.anticoagulant_shouji }} 
144
+                    首剂: {{ prescription.anticoagulant_shouji }}
145
                     <span v-if="prescription.anticoagulant == 4">mg</span>
145
                     <span v-if="prescription.anticoagulant == 4">mg</span>
146
                     <span v-if="prescription.anticoagulant == 3">iu</span>
146
                     <span v-if="prescription.anticoagulant == 3">iu</span>
147
                     <span v-if="prescription.anticoagulant == 2">iu</span>
147
                     <span v-if="prescription.anticoagulant == 2">iu</span>
152
                     <span v-if="prescription.anticoagulant == 9">iu</span>
152
                     <span v-if="prescription.anticoagulant == 9">iu</span>
153
                     <span v-if="prescription.anticoagulant == 11">mg</span>
153
                     <span v-if="prescription.anticoagulant == 11">mg</span>
154
                     <span v-if="prescription.anticoagulant == 13">mg</span>
154
                     <span v-if="prescription.anticoagulant == 13">mg</span>
155
-                    <span v-if="prescription.anticoagulant == 14 || 
155
+                    <span v-if="prescription.anticoagulant == 14 ||
156
                           prescription.anticoagulant == 15">mg
156
                           prescription.anticoagulant == 15">mg
157
                     </span>
157
                     </span>
158
-                    
158
+
159
                   </span>
159
                   </span>
160
-                  &nbsp; 
161
-                  <span style="width:135px;display: inline-block;" 
160
+                  &nbsp;
161
+                  <span style="width:150px;display: inline-block;"
162
                   v-if="prescription.anticoagulant != 12 && prescription.anticoagulant != 1 ">
162
                   v-if="prescription.anticoagulant != 12 && prescription.anticoagulant != 1 ">
163
-                    追加: {{ prescription.anticoagulant_weichi  }} 
163
+                    追加: {{ prescription.anticoagulant_weichi  }}
164
                     <span v-if="prescription.anticoagulant == 5">ml/h</span>
164
                     <span v-if="prescription.anticoagulant == 5">ml/h</span>
165
                     <span v-if="prescription.anticoagulant == 4">mg/h</span>
165
                     <span v-if="prescription.anticoagulant == 4">mg/h</span>
166
                     <span v-if="prescription.anticoagulant == 3">iu/h</span>
166
                     <span v-if="prescription.anticoagulant == 3">iu/h</span>
169
                     <span v-if="prescription.anticoagulant == 7">iu/h</span>
169
                     <span v-if="prescription.anticoagulant == 7">iu/h</span>
170
                     <span v-if="prescription.anticoagulant == 10">mg/h</span>
170
                     <span v-if="prescription.anticoagulant == 10">mg/h</span>
171
                     <span v-if="prescription.anticoagulant == 8">iu/h</span>
171
                     <span v-if="prescription.anticoagulant == 8">iu/h</span>
172
-                    <span v-if="prescription.anticoagulant == 9">iu/h</span>  
172
+                    <span v-if="prescription.anticoagulant == 9">iu/h</span>
173
                     <span v-if="prescription.anticoagulant == 11">mg/h</span>
173
                     <span v-if="prescription.anticoagulant == 11">mg/h</span>
174
                     <span v-if="prescription.anticoagulant == 13">mg/h</span>
174
                     <span v-if="prescription.anticoagulant == 13">mg/h</span>
175
-                    <span v-if="prescription.anticoagulant == 14 || 
175
+                    <span v-if="prescription.anticoagulant == 14 ||
176
                           prescription.anticoagulant == 15">mg/h
176
                           prescription.anticoagulant == 15">mg/h
177
                     </span>
177
                     </span>
178
                   </span>
178
                   </span>
179
-                  
180
-                  &nbsp; 
181
-                  <span style="width:150px;display: inline-block;" 
179
+
180
+                  &nbsp;
181
+                  <span style="width:150px;display: inline-block;"
182
                   v-if="prescription.anticoagulant != 12 && prescription.anticoagulant != 1 && prescription.anticoagulant != 5 ">
182
                   v-if="prescription.anticoagulant != 12 && prescription.anticoagulant != 1 && prescription.anticoagulant != 5 ">
183
-                    总量: {{ prescription.anticoagulant_zongliang  }} 
183
+                    总量: {{ prescription.anticoagulant_zongliang  }}
184
                     <span v-if="prescription.anticoagulant == 4">mg</span>
184
                     <span v-if="prescription.anticoagulant == 4">mg</span>
185
                     <span v-if="prescription.anticoagulant == 3">iu</span>
185
                     <span v-if="prescription.anticoagulant == 3">iu</span>
186
                     <span v-if="prescription.anticoagulant == 2">iu</span>
186
                     <span v-if="prescription.anticoagulant == 2">iu</span>
188
                     <span v-if="prescription.anticoagulant == 7">iu</span>
188
                     <span v-if="prescription.anticoagulant == 7">iu</span>
189
                     <span v-if="prescription.anticoagulant == 10">mg</span>
189
                     <span v-if="prescription.anticoagulant == 10">mg</span>
190
                     <span v-if="prescription.anticoagulant == 8">iu</span>
190
                     <span v-if="prescription.anticoagulant == 8">iu</span>
191
-                    <span v-if="prescription.anticoagulant == 9">iu</span>  
191
+                    <span v-if="prescription.anticoagulant == 9">iu</span>
192
                     <span v-if="prescription.anticoagulant == 11">mg</span>
192
                     <span v-if="prescription.anticoagulant == 11">mg</span>
193
                     <span v-if="prescription.anticoagulant == 13">mg</span>
193
                     <span v-if="prescription.anticoagulant == 13">mg</span>
194
-                    <span v-if="prescription.anticoagulant == 14 || 
194
+                    <span v-if="prescription.anticoagulant == 14 ||
195
                           prescription.anticoagulant == 15">mg
195
                           prescription.anticoagulant == 15">mg
196
                     </span>
196
                     </span>
197
                   </span>
197
                   </span>
198
-                 
198
+
199
                 </td>
199
                 </td>
200
               </tr>
200
               </tr>
201
               <tr>
201
               <tr>
218
                   </div>
218
                   </div>
219
                   <!-- <div style="margin-left:70px ;display: inline-block;">
219
                   <!-- <div style="margin-left:70px ;display: inline-block;">
220
                     实际预冲量:
220
                     实际预冲量:
221
-                    {{ prescription.pre_impulse ? prescription.pre_impulse : "/" }} 
221
+                    {{ prescription.pre_impulse ? prescription.pre_impulse : "/" }}
222
                      &nbsp;L
222
                      &nbsp;L
223
                   </div> -->
223
                   </div> -->
224
                   <div style="margin-left:70px ; display: inline-block;">
224
                   <div style="margin-left:70px ; display: inline-block;">
372
                         <td style=" ">记录</td>
372
                         <td style=" ">记录</td>
373
                         <!-- <td >护士签名</td> -->
373
                         <!-- <td >护士签名</td> -->
374
                       </tr>
374
                       </tr>
375
-                    
375
+
376
                       <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
376
                       <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
377
                         <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
377
                         <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
378
                         <td style=" ">
378
                         <td style=" ">
491
                   </table>
491
                   </table>
492
                 </td>
492
                 </td>
493
               </tr>
493
               </tr>
494
-             
494
+
495
               <tr>
495
               <tr>
496
                 <td colspan="3">
496
                 <td colspan="3">
497
                     <table  class="inside_table" border="1" cellspacing="0" cellpadding="0"
497
                     <table  class="inside_table" border="1" cellspacing="0" cellpadding="0"
526
               </tr>
526
               </tr>
527
               <tr v-for="(advice, advice_index) in advices" :key="advice_index" >
527
               <tr v-for="(advice, advice_index) in advices" :key="advice_index" >
528
                 <td colspan="3">
528
                 <td colspan="3">
529
-                  <table class="inside_table"  border="1" cellspacing="0" cellpadding="0" 
529
+                  <table class="inside_table"  border="1" cellspacing="0" cellpadding="0"
530
                         style="text-align: center; border-top: none;border-bottom: none;
530
                         style="text-align: center; border-top: none;border-bottom: none;
531
                         border-right: none;border-left: none; box-sizing: border-box;">
531
                         border-right: none;border-left: none; box-sizing: border-box;">
532
                     <tr style="border-bottom:none;">
532
                     <tr style="border-bottom:none;">
629
                       <td v-if="advice_index > 5" width="150" style=""></td>
629
                       <td v-if="advice_index > 5" width="150" style=""></td>
630
                       <td v-if="advice_index > 5" width="110"></td>
630
                       <td v-if="advice_index > 5" width="110"></td>
631
                     </tr>
631
                     </tr>
632
-                  
632
+
633
                   </table>
633
                   </table>
634
                 </td>
634
                 </td>
635
               </tr>
635
               </tr>
636
-     
636
+
637
               <tr>
637
               <tr>
638
                 <td colspan="3">
638
                 <td colspan="3">
639
                   <!-- <div style="display: inline-block;">
639
                   <!-- <div style="display: inline-block;">
710
                 </td>
710
                 </td>
711
               </tr>
711
               </tr>
712
 
712
 
713
-           
713
+
714
             </table>
714
             </table>
715
           </div>
715
           </div>
716
         </div>
716
         </div>
1004
         let projects = [];
1004
         let projects = [];
1005
         response.data.data.projects.map((item) => {
1005
         response.data.data.projects.map((item) => {
1006
           if (item.type == 2 && item.project.is_print == 1) {
1006
           if (item.type == 2 && item.project.is_print == 1) {
1007
-          
1007
+
1008
             projects.push(item);
1008
             projects.push(item);
1009
           }
1009
           }
1010
         });
1010
         });
1029
         console.log("this.projects", this.projects);
1029
         console.log("this.projects", this.projects);
1030
 
1030
 
1031
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1031
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1032
-        
1033
-        
1032
+
1033
+
1034
         if(this.projects!=null && this.projects.length >0){
1034
         if(this.projects!=null && this.projects.length >0){
1035
            for(let i=0;i<this.projects.length;i++){
1035
            for(let i=0;i<this.projects.length;i++){
1036
              this.projects.sort(this.compare('id'))
1036
              this.projects.sort(this.compare('id'))
1037
              if(this.projects[i].type== 2){
1037
              if(this.projects[i].type== 2){
1038
-            
1038
+
1039
               this.projects[i].project_team_name = ""
1039
               this.projects[i].project_team_name = ""
1040
               this.projects[i].project_team_id = 0
1040
               this.projects[i].project_team_id = 0
1041
               console.log("this.projects[i].project.team",this.projects[i].project.team)
1041
               console.log("this.projects[i].project.team",this.projects[i].project.team)
1043
                 this.projects[i].project_team = this.projects[i].team.project_team
1043
                 this.projects[i].project_team = this.projects[i].team.project_team
1044
                 this.projects[i].project_team_id = this.projects[i].team.id
1044
                 this.projects[i].project_team_id = this.projects[i].team.id
1045
                 this.projects[i].start_time = this.projects[i].start_time
1045
                 this.projects[i].start_time = this.projects[i].start_time
1046
-                this.projects[i].single_dose =  this.getCount(this.projects[i].project_id) 
1046
+                this.projects[i].single_dose =  this.getCount(this.projects[i].project_id)
1047
                 this.projects[i].single_dose_unit = this.projects[i].unit
1047
                 this.projects[i].single_dose_unit = this.projects[i].unit
1048
                 this.projects[i].execution_time = this.projects[i].execution_time
1048
                 this.projects[i].execution_time = this.projects[i].execution_time
1049
-                this.projects[i].execution_staff= this.projects[i].execution_staff 
1049
+                this.projects[i].execution_staff= this.projects[i].execution_staff
1050
                 this.projects[i].advice_name =  this.projects[i].team.project_team
1050
                 this.projects[i].advice_name =  this.projects[i].team.project_team
1051
-              
1052
-               
1051
+
1052
+
1053
                 this.advices.push(this.projects[i])
1053
                 this.advices.push(this.projects[i])
1054
               }else{
1054
               }else{
1055
                 this.projects[i].project_team = this.projects[i].project.project_name
1055
                 this.projects[i].project_team = this.projects[i].project.project_name
1056
                 this.projects[i].advice_name = this.projects[i].project.project_name
1056
                 this.projects[i].advice_name = this.projects[i].project.project_name
1057
                 this.projects[i].start_time = this.projects[i].start_time
1057
                 this.projects[i].start_time = this.projects[i].start_time
1058
-                this.projects[i].single_dose =  this.getCount(this.projects[i].project_id) 
1058
+                this.projects[i].single_dose =  this.getCount(this.projects[i].project_id)
1059
                 this.projects[i].single_dose_unit = this.projects[i].unit
1059
                 this.projects[i].single_dose_unit = this.projects[i].unit
1060
                 this.projects[i].execution_time = this.projects[i].execution_time
1060
                 this.projects[i].execution_time = this.projects[i].execution_time
1061
-                this.projects[i].execution_staff= this.projects[i].execution_staff 
1061
+                this.projects[i].execution_staff= this.projects[i].execution_staff
1062
                 this.advices.push(this.projects[i])
1062
                 this.advices.push(this.projects[i])
1063
               }
1063
               }
1064
-             
1064
+
1065
              }
1065
              }
1066
-             
1066
+
1067
            }
1067
            }
1068
         }
1068
         }
1069
-       
1070
-       
1071
-      
1069
+
1070
+
1071
+
1072
         var tableAdvice = this.advices;
1072
         var tableAdvice = this.advices;
1073
 
1073
 
1074
 
1074
 
1148
           this.advices = tableAdvice;
1148
           this.advices = tableAdvice;
1149
         }
1149
         }
1150
 
1150
 
1151
-        var arr = [] 
1151
+        var arr = []
1152
         arr = this.unique(this.advices)
1152
         arr = this.unique(this.advices)
1153
         // console.log("arriooowo",arr)
1153
         // console.log("arriooowo",arr)
1154
         // if(arr!=null && arr.length >0){
1154
         // if(arr!=null && arr.length >0){
1155
-  
1155
+
1156
         //    for(let i=0;i<arr.length;i++){
1156
         //    for(let i=0;i<arr.length;i++){
1157
         //       if(arr[i].advice_name!="" && arr[i].advice_name!=undefined){
1157
         //       if(arr[i].advice_name!="" && arr[i].advice_name!=undefined){
1158
         //         arr[i].prescription_id_no = 0
1158
         //         arr[i].prescription_id_no = 0
1160
         //       }else{
1160
         //       }else{
1161
         //         arr[i].prescription_id_no = 0
1161
         //         arr[i].prescription_id_no = 0
1162
         //       }
1162
         //       }
1163
-             
1163
+
1164
         //    }
1164
         //    }
1165
         //    let dataInfo = {}
1165
         //    let dataInfo = {}
1166
         //    arr.forEach((item, index) => {
1166
         //    arr.forEach((item, index) => {
1173
         //           single_dose:item.single_dose,
1173
         //           single_dose:item.single_dose,
1174
         //           single_dose_unit:item.unit,
1174
         //           single_dose_unit:item.unit,
1175
         //           execution_time:item.execution_time,
1175
         //           execution_time:item.execution_time,
1176
-        //           execution_staff:item.execution_staff, 
1176
+        //           execution_staff:item.execution_staff,
1177
         //           advice_doctor:item.advice_doctor,
1177
         //           advice_doctor:item.advice_doctor,
1178
         //           checker:item.checker,
1178
         //           checker:item.checker,
1179
         //           check_time:item.check_time,
1179
         //           check_time:item.check_time,
1184
         //           single_dose:item.single_dose,
1184
         //           single_dose:item.single_dose,
1185
         //           single_dose_unit:item.single_dose_unit,
1185
         //           single_dose_unit:item.single_dose_unit,
1186
         //           child:[]
1186
         //           child:[]
1187
-                 
1187
+
1188
         //         }
1188
         //         }
1189
         //       }
1189
         //       }
1190
         //     })
1190
         //     })
1206
 
1206
 
1207
         this.advices = []
1207
         this.advices = []
1208
         this.advices= arr
1208
         this.advices= arr
1209
-     
1209
+
1210
         console.log("advices-----------------",this.advices)
1210
         console.log("advices-----------------",this.advices)
1211
 
1211
 
1212
-         
1213
-         
1212
+
1213
+
1214
 
1214
 
1215
         // this.loading = false;
1215
         // this.loading = false;
1216
         // console.log(this.advice_groups);
1216
         // console.log(this.advice_groups);
1227
       var arr = []
1227
       var arr = []
1228
       var count =0
1228
       var count =0
1229
       for(let i=0;i<this.projects.length;i++){
1229
       for(let i=0;i<this.projects.length;i++){
1230
-       
1230
+
1231
         if(id == this.projects[i].project_id){
1231
         if(id == this.projects[i].project_id){
1232
           arr.push(this.projects[i])
1232
           arr.push(this.projects[i])
1233
         }
1233
         }
1238
         //   if(parseInt(arr[i].single_dose)>0){
1238
         //   if(parseInt(arr[i].single_dose)>0){
1239
         //     count += parseInt(arr[i].single_dose)
1239
         //     count += parseInt(arr[i].single_dose)
1240
         //   }
1240
         //   }
1241
-        
1241
+
1242
         // }
1242
         // }
1243
         count = arr[arr.length -1].count
1243
         count = arr[arr.length -1].count
1244
       }
1244
       }
1331
         var age = jsGetAge(birthtwo, "-");
1331
         var age = jsGetAge(birthtwo, "-");
1332
         return age;
1332
         return age;
1333
       }
1333
       }
1334
-    
1334
+
1335
     },
1335
     },
1336
-   
1336
+
1337
     getDiagnosis(id) {
1337
     getDiagnosis(id) {
1338
       let arr = id.split(',')
1338
       let arr = id.split(',')
1339
       var name = ''
1339
       var name = ''
1346
     },
1346
     },
1347
 
1347
 
1348
     toUpload() {
1348
     toUpload() {
1349
-       
1349
+
1350
         let dom = document.getElementById("dialysis-print-box-64")
1350
         let dom = document.getElementById("dialysis-print-box-64")
1351
         //调用方法下载
1351
         //调用方法下载
1352
         html2canvas(dom, {
1352
         html2canvas(dom, {
1374
           const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
1374
           const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
1375
           this.openPdf(blob);
1375
           this.openPdf(blob);
1376
           // this.viewPdf(newBase64Data)
1376
           // this.viewPdf(newBase64Data)
1377
-          
1377
+
1378
           // var data = {
1378
           // var data = {
1379
           //   name:newBase64Data,
1379
           //   name:newBase64Data,
1380
           // }
1380
           // }
1385
           //     this.$message.success("保存成功!")
1385
           //     this.$message.success("保存成功!")
1386
           //   }
1386
           //   }
1387
           // })
1387
           // })
1388
-          
1388
+
1389
           // this.viewPdf(newBase64Data)
1389
           // this.viewPdf(newBase64Data)
1390
           //保存到pdf,名字是stone
1390
           //保存到pdf,名字是stone
1391
           // pdf.save('stone.pdf');
1391
           // pdf.save('stone.pdf');
1392
-         
1392
+
1393
         });
1393
         });
1394
       },
1394
       },
1395
-   
1395
+
1396
     viewPdf(content) {
1396
     viewPdf(content) {
1397
       console.log("content",content);
1397
       console.log("content",content);
1398
       const blob = this.base64ToBlob(content);
1398
       const blob = this.base64ToBlob(content);
1457
       });
1457
       });
1458
     },
1458
     },
1459
 
1459
 
1460
-  
1460
+
1461
   },
1461
   },
1462
   created() {
1462
   created() {
1463
     var bloodAccessParOpera = getDataConfig(
1463
     var bloodAccessParOpera = getDataConfig(