yq1 1 year ago
parent
commit
928248f033

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventy.vue View File

8
         icon="el-icon-printer"
8
         icon="el-icon-printer"
9
         @click="printAction"
9
         @click="printAction"
10
         type="primary"
10
         type="primary"
11
-        >打印70
11
+        >打印
12
       </el-button>
12
       </el-button>
13
     </div>
13
     </div>
14
     <div class="app-container">
14
     <div class="app-container">

+ 91 - 91
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue View File

2
   <div>
2
   <div>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
5
-    
5
+
6
     <div id="dialysis-print-box-1"  ref="pdfContent">
6
     <div id="dialysis-print-box-1"  ref="pdfContent">
7
       <div
7
       <div
8
         id="dialysis-print-box-1-1"
8
         id="dialysis-print-box-1-1"
72
                   ? patientInfo.DialysisSchedule.device_zone.name
72
                   ? patientInfo.DialysisSchedule.device_zone.name
73
                   : "/"
73
                   : "/"
74
               }}</span>
74
               }}</span>
75
-              
75
+
76
             </div>
76
             </div>
77
           </div>
77
           </div>
78
           <div class="inline_block" >
78
           <div class="inline_block" >
85
                   ? dialysisOrder.DeviceNumber.number
85
                   ? dialysisOrder.DeviceNumber.number
86
                   : patientInfo.DialysisSchedule.device_number.number
86
                   : patientInfo.DialysisSchedule.device_number.number
87
               }}</span>
87
               }}</span>
88
-              
88
+
89
             </div>
89
             </div>
90
           </div>
90
           </div>
91
           <div class="inline_block">
91
           <div class="inline_block">
248
                         {{ predialysis.blood_access_part_opera_name }}
248
                         {{ predialysis.blood_access_part_opera_name }}
249
                       </div>
249
                       </div>
250
                     </div>
250
                     </div>
251
-                   
251
+
252
                   </div>
252
                   </div>
253
 
253
 
254
                   <div
254
                   <div
255
                     class="row"
255
                     class="row"
256
                     style="padding: 2px 0; line-height: 23px; display: flex"
256
                     style="padding: 2px 0; line-height: 23px; display: flex"
257
                   >
257
                   >
258
-                    
258
+
259
                     <div class="inline_block" style="">
259
                     <div class="inline_block" style="">
260
                       内瘘:
260
                       内瘘:
261
                       <div
261
                       <div
289
                      <div
289
                      <div
290
                       class="inline_block"
290
                       class="inline_block"
291
                       style=" flex: 1"
291
                       style=" flex: 1"
292
-                      
292
+
293
                     >
293
                     >
294
                       穿刺方式:
294
                       穿刺方式:
295
                       <div
295
                       <div
337
                             : "/"
337
                             : "/"
338
                         }}
338
                         }}
339
                       </span>
339
                       </span>
340
-                       
340
+
341
                       </div>
341
                       </div>
342
                     </div>
342
                     </div>
343
                     <div
343
                     <div
351
                       >
351
                       >
352
                       <span>
352
                       <span>
353
                         {{
353
                         {{
354
-                          
354
+
355
                         }}
355
                         }}
356
                       </span>
356
                       </span>
357
-                       
357
+
358
                       </div>
358
                       </div>
359
                     </div>
359
                     </div>
360
                   </div>
360
                   </div>
668
                       </div>
668
                       </div>
669
                     </div>
669
                     </div>
670
                     <div
670
                     <div
671
-                     
671
+
672
                       class="inline_block"
672
                       class="inline_block"
673
                       style="margin-left: 10px; flex: 1"
673
                       style="margin-left: 10px; flex: 1"
674
                     >
674
                     >
682
                             ? prescription.displace_liqui_value
682
                             ? prescription.displace_liqui_value
683
                             : "/"
683
                             : "/"
684
                         }}
684
                         }}
685
-                        </span> 
685
+                        </span>
686
                       </div>
686
                       </div>
687
                       L
687
                       L
688
                     </div>
688
                     </div>
751
                     <div class="inline_block" style="flex: 1">
751
                     <div class="inline_block" style="flex: 1">
752
                       透析(滤)器:
752
                       透析(滤)器:
753
                       <!--  透析(滤)器分开取值 -->
753
                       <!--  透析(滤)器分开取值 -->
754
-                      <div 
754
+                      <div
755
                         class="under_line"
755
                         class="under_line"
756
                         style="width: 100px; text-align: center"
756
                         style="width: 100px; text-align: center"
757
                       >
757
                       >
792
                         class="under_line"
792
                         class="under_line"
793
                         style="width: 50px; text-align: center"
793
                         style="width: 50px; text-align: center"
794
                       >
794
                       >
795
-                        {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 
795
+                        {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
796
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
796
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
797
                       </div>
797
                       </div>
798
-                    
798
+
799
                     </div>
799
                     </div>
800
 
800
 
801
                     <div
801
                     <div
809
                       >
809
                       >
810
                        {{predialysis.machine_type ? predialysis.machine_type : ""}}
810
                        {{predialysis.machine_type ? predialysis.machine_type : ""}}
811
                       </div>
811
                       </div>
812
-                    
812
+
813
                     </div>
813
                     </div>
814
                   </div>
814
                   </div>
815
 
815
 
889
                       kg
889
                       kg
890
                     </div>
890
                     </div>
891
                     <div class="inline_block" style="flex: 1">
891
                     <div class="inline_block" style="flex: 1">
892
-                      体重增加: 
892
+                      体重增加:
893
                       <div
893
                       <div
894
                         class="under_line"
894
                         class="under_line"
895
                         style="width: 100px; text-align: center"
895
                         style="width: 100px; text-align: center"
896
                       >
896
                       >
897
-                      {{ predialysis.weight_before > 0 && lastafterdialysis.weight_after > 0 
898
-                        ? parseFloat(predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2): "/" 
897
+                      {{ predialysis.weight_before > 0 && lastafterdialysis.weight_after > 0
898
+                        ? parseFloat(predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2): "/"
899
                       }}
899
                       }}
900
                       </div>
900
                       </div>
901
-                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span> 
901
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
902
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
902
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
903
                     </div>
903
                     </div>
904
                     <div class="inline_block" style="flex: 1">
904
                     <div class="inline_block" style="flex: 1">
905
-                      计划超滤量: 
905
+                      计划超滤量:
906
                       <div
906
                       <div
907
                         class="under_line"
907
                         class="under_line"
908
                         style="width: 100px; text-align: center"
908
                         style="width: 100px; text-align: center"
913
                             : "/"
913
                             : "/"
914
                         }}kg
914
                         }}kg
915
                       </div>
915
                       </div>
916
-                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span> 
916
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
917
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
917
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
918
                     </div>
918
                     </div>
919
                   </div>
919
                   </div>
1013
                             : "/"
1013
                             : "/"
1014
                         }}
1014
                         }}
1015
                       </div>
1015
                       </div>
1016
-                     
1016
+
1017
                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">
1017
                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">
1018
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1018
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1019
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1019
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1033
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1033
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1034
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1034
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1035
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1035
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1036
-                    
1036
+
1037
                     </span>
1037
                     </span>
1038
                     </div>
1038
                     </div>
1039
                     <div class="inline_block" style="margin-left: 20px">
1039
                     <div class="inline_block" style="margin-left: 20px">
1214
                         </td>
1214
                         </td>
1215
                         <td width="50">超滤量<br />(ml)</td>
1215
                         <td width="50">超滤量<br />(ml)</td>
1216
                         <td width="50" >
1216
                         <td width="50" >
1217
-                          <span > 钠浓度<br />(mmol/L)</span> 
1217
+                          <span > 钠浓度<br />(mmol/L)</span>
1218
                         </td>
1218
                         </td>
1219
                         <td width="200">病情变化及处理</td>
1219
                         <td width="200">病情变化及处理</td>
1220
                       </tr>
1220
                       </tr>
1222
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1222
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1223
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1223
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1224
                         <td >
1224
                         <td >
1225
-                          {{ monitor.temperature ? monitor.temperature : "" }}
1225
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1226
                         </td>
1226
                         </td>
1227
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1227
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1228
                         <td >{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1228
                         <td >{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1229
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1229
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1230
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1230
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1231
-                        <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1231
+                        <!-- <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td> -->
1232
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1232
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1233
                         <td >
1233
                         <td >
1234
                           {{
1234
                           {{
1252
                               : ""
1252
                               : ""
1253
                             }}
1253
                             }}
1254
                           </span>
1254
                           </span>
1255
-                          
1255
+
1256
                         </td>
1256
                         </td>
1257
                         <td>
1257
                         <td>
1258
                           <span
1258
                           <span
1317
                                 "
1317
                                 "
1318
                                 >【开始透析】
1318
                                 >【开始透析】
1319
                                 </template>
1319
                                 </template>
1320
-                              
1320
+
1321
                               {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
1321
                               {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
1322
                                 monitor.dispose
1322
                                 monitor.dispose
1323
                               }}
1323
                               }}
1340
                         <td></td>
1340
                         <td></td>
1341
                         <td></td>
1341
                         <td></td>
1342
                         <td></td>
1342
                         <td></td>
1343
-                        <td></td>                       
1343
+                        <td></td>
1344
                         <td style="line-height: 16px; padding: 0px">
1344
                         <td style="line-height: 16px; padding: 0px">
1345
                           <div
1345
                           <div
1346
                             style="
1346
                             style="
1400
                         <td style="font-size: 16px" width="10%">医生签名</td>
1400
                         <td style="font-size: 16px" width="10%">医生签名</td>
1401
                         <td style="font-size: 16px" width="10%">时间</td>
1401
                         <td style="font-size: 16px" width="10%">时间</td>
1402
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1402
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1403
-                       
1403
+
1404
                         <td
1404
                         <td
1405
                           style="font-size: 16px"
1405
                           style="font-size: 16px"
1406
                           width="10%"
1406
                           width="10%"
1407
                           v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1407
                           v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1408
                         >
1408
                         >
1409
                           核对护士
1409
                           核对护士
1410
-                        </td>  
1410
+                        </td>
1411
                       </tr>
1411
                       </tr>
1412
                       <!-- <template v-for="group in doctor_advices" > -->
1412
                       <!-- <template v-for="group in doctor_advices" > -->
1413
 
1413
 
1474
                               v-else
1474
                               v-else
1475
                             />
1475
                             />
1476
                           </span>
1476
                           </span>
1477
-                         
1477
+
1478
                         </td>
1478
                         </td>
1479
                         <!-- <td height="35px">
1479
                         <!-- <td height="35px">
1480
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1480
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1500
                             />
1500
                             />
1501
                           </span>
1501
                           </span>
1502
                         </td>
1502
                         </td>
1503
-                       
1503
+
1504
                         <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1504
                         <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1505
                           <span v-if="advice!=null && advice.checker>0">
1505
                           <span v-if="advice!=null && advice.checker>0">
1506
                             <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
1506
                             <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
1517
                       <!-- </template> -->
1517
                       <!-- </template> -->
1518
 
1518
 
1519
 
1519
 
1520
-                      <tr  
1520
+                      <tr
1521
                       v-if="org_id == 0 || org_id ==10206"
1521
                       v-if="org_id == 0 || org_id ==10206"
1522
                       v-for="(advice, advice_index) in projectsOne"
1522
                       v-for="(advice, advice_index) in projectsOne"
1523
                       :key="advice_index"
1523
                       :key="advice_index"
1598
                 </td>
1598
                 </td>
1599
               </tr>
1599
               </tr>
1600
 
1600
 
1601
-            
1601
+
1602
             </tbody>
1602
             </tbody>
1603
           </table>
1603
           </table>
1604
         </div>
1604
         </div>
1690
             </div>
1690
             </div>
1691
           </div>
1691
           </div>
1692
           <div class="row" style="margin-bottom: 10px">
1692
           <div class="row" style="margin-bottom: 10px">
1693
- 
1693
+
1694
             <div class="inline_block" style="margin-left: 10px">
1694
             <div class="inline_block" style="margin-left: 10px">
1695
               诊断:
1695
               诊断:
1696
               <div
1696
               <div
1775
                   <td style="font-size: 16px" width="10%">时间</td>
1775
                   <td style="font-size: 16px" width="10%">时间</td>
1776
                   <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
1776
                   <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
1777
                   <td style="font-size: 16px" width="10%">执行人签名</td>
1777
                   <td style="font-size: 16px" width="10%">执行人签名</td>
1778
-                  
1778
+
1779
                   <td
1779
                   <td
1780
                     style="font-size: 16px"
1780
                     style="font-size: 16px"
1781
                     width="10%"
1781
                     width="10%"
1872
                       v-else
1872
                       v-else
1873
                     />
1873
                     />
1874
                   </td>
1874
                   </td>
1875
-                  
1875
+
1876
                   <td height="32px" v-if="org_id == 10223 || org_id ==9538">
1876
                   <td height="32px" v-if="org_id == 10223 || org_id ==9538">
1877
                     <span v-if="setAdminUserES(advice.checker) == ''">{{
1877
                     <span v-if="setAdminUserES(advice.checker) == ''">{{
1878
                       getAdminUser(advice.checker)
1878
                       getAdminUser(advice.checker)
1991
                         {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "/" }}
1991
                         {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "/" }}
1992
                       </div>
1992
                       </div>
1993
                     </div>
1993
                     </div>
1994
-                    
1994
+
1995
                   </div>
1995
                   </div>
1996
                   <!-- <div
1996
                   <!-- <div
1997
                     class="row"
1997
                     class="row"
2124
                             : "未称重"
2124
                             : "未称重"
2125
                         }}
2125
                         }}
2126
                       </span>
2126
                       </span>
2127
-                       
2127
+
2128
                       </div>
2128
                       </div>
2129
                       kg
2129
                       kg
2130
                     </div>
2130
                     </div>
2213
                       </div>
2213
                       </div>
2214
                     </div>
2214
                     </div>
2215
                   </div>
2215
                   </div>
2216
-                  
2216
+
2217
                 </td>
2217
                 </td>
2218
               </tr>
2218
               </tr>
2219
               <tr>
2219
               <tr>
2266
 
2266
 
2267
                     <div>
2267
                     <div>
2268
                       <div class="inline_block" style="flex: 1">
2268
                       <div class="inline_block" style="flex: 1">
2269
-                        <span>治疗护士:</span> 
2270
-                        
2269
+                        <span>治疗护士:</span>
2270
+
2271
                         <div
2271
                         <div
2272
                           class="under_line"
2272
                           class="under_line"
2273
                           style="width: 80px; text-align: center"
2273
                           style="width: 80px; text-align: center"
2306
                         </div>
2306
                         </div>
2307
                       </div>
2307
                       </div>
2308
                     </div>
2308
                     </div>
2309
-      
2309
+
2310
                     <div class="inline_block" style="flex: 1">
2310
                     <div class="inline_block" style="flex: 1">
2311
-                      
2312
-                      <span >核对人员:</span> 
2311
+
2312
+                      <span >核对人员:</span>
2313
                       <div
2313
                       <div
2314
                         class="under_line"
2314
                         class="under_line"
2315
                         style="width: 80px; text-align: center"
2315
                         style="width: 80px; text-align: center"
2478
                         />
2478
                         />
2479
                       </div>
2479
                       </div>
2480
                     </div>
2480
                     </div>
2481
-                   
2481
+
2482
                   </div>
2482
                   </div>
2483
                 </td>
2483
                 </td>
2484
               </tr>
2484
               </tr>
2485
 
2485
 
2486
-            
2486
+
2487
             </tbody>
2487
             </tbody>
2488
           </table>
2488
           </table>
2489
           <!-- <div  class="print-yema">1</div> -->
2489
           <!-- <div  class="print-yema">1</div> -->
2571
                           核对护士
2571
                           核对护士
2572
                         </td>
2572
                         </td>
2573
                       </tr>
2573
                       </tr>
2574
-                     
2574
+
2575
 
2575
 
2576
                       <tr
2576
                       <tr
2577
                         v-for="(advice, advice_index) in doctor_advices"
2577
                         v-for="(advice, advice_index) in doctor_advices"
2581
                           <span v-if="advice.start_time">
2581
                           <span v-if="advice.start_time">
2582
                             {{ getTime(advice.start_time, "{h}:{i}") }}
2582
                             {{ getTime(advice.start_time, "{h}:{i}") }}
2583
                           </span>
2583
                           </span>
2584
-                          
2584
+
2585
                         </td>
2585
                         </td>
2586
                         <td
2586
                         <td
2587
                           height="32px"
2587
                           height="32px"
2616
                             >({{ advice.remark }})</span
2616
                             >({{ advice.remark }})</span
2617
                           >
2617
                           >
2618
                         </td>
2618
                         </td>
2619
-                    
2619
+
2620
                         <td height="32px">
2620
                         <td height="32px">
2621
                           <span
2621
                           <span
2622
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
2622
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
2630
                             v-else
2630
                             v-else
2631
                           />
2631
                           />
2632
                         </td>
2632
                         </td>
2633
-                      
2633
+
2634
                         <td height="32px">
2634
                         <td height="32px">
2635
                           <span
2635
                           <span
2636
                             v-if="setAdminUserES(advice.execution_staff) == ''"
2636
                             v-if="setAdminUserES(advice.execution_staff) == ''"
2662
                           />
2662
                           />
2663
                         </td>
2663
                         </td>
2664
                       </tr>
2664
                       </tr>
2665
-                      
2666
 
2665
 
2667
-                   
2666
+
2667
+
2668
                     </tbody>
2668
                     </tbody>
2669
      </table>
2669
      </table>
2670
 
2670
 
2671
 
2671
 
2672
-    
2673
-     
2674
 
2672
 
2675
-     
2673
+
2674
+
2675
+
2676
     </div>
2676
     </div>
2677
   </div>
2677
   </div>
2678
 </template>
2678
 </template>
2820
   },
2820
   },
2821
   methods: {
2821
   methods: {
2822
     toUpload() {
2822
     toUpload() {
2823
-         
2823
+
2824
          let dom = document.getElementById("dialysis-print-box-1")
2824
          let dom = document.getElementById("dialysis-print-box-1")
2825
          //调用方法下载
2825
          //调用方法下载
2826
          html2canvas(dom, {
2826
          html2canvas(dom, {
2834
          }).then((canvas) => {
2834
          }).then((canvas) => {
2835
            //返回图片dataURL,参数:图片格式和清晰度(0-1)
2835
            //返回图片dataURL,参数:图片格式和清晰度(0-1)
2836
            var pageData = canvas.toDataURL('image/jpeg', 1.0);
2836
            var pageData = canvas.toDataURL('image/jpeg', 1.0);
2837
- 
2837
+
2838
            //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
2838
            //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
2839
            var pdf = new jsPDF('', 'pt', 'a4');
2839
            var pdf = new jsPDF('', 'pt', 'a4');
2840
- 
2840
+
2841
            //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
2841
            //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
2842
            //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
2842
            //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
2843
            pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
2843
            pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
2844
-           
2844
+
2845
            console.log("pdf222222222222222222",pdf)
2845
            console.log("pdf222222222222222222",pdf)
2846
 
2846
 
2847
            var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
2847
            var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
2849
            const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
2849
            const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
2850
            console.log("blobwoowowowwo",blob)
2850
            console.log("blobwoowowowwo",blob)
2851
            this.openPdf(blob);
2851
            this.openPdf(blob);
2852
-           
2852
+
2853
            // var data = {
2853
            // var data = {
2854
            //   name:newBase64Data,
2854
            //   name:newBase64Data,
2855
            // }
2855
            // }
2864
            //     this.openPdf(blob);
2864
            //     this.openPdf(blob);
2865
            //   }
2865
            //   }
2866
            // })
2866
            // })
2867
-           
2867
+
2868
            // this.viewPdf(newBase64Data)
2868
            // this.viewPdf(newBase64Data)
2869
            //保存到pdf,名字是stone
2869
            //保存到pdf,名字是stone
2870
            // pdf.save('stone.pdf');
2870
            // pdf.save('stone.pdf');
2871
-          
2871
+
2872
          });
2872
          });
2873
        },
2873
        },
2874
-    
2874
+
2875
      viewPdf(content) {
2875
      viewPdf(content) {
2876
        console.log("content",content);
2876
        console.log("content",content);
2877
        const blob = this.base64ToBlob(content);
2877
        const blob = this.base64ToBlob(content);
2890
            return value1 - value2
2890
            return value1 - value2
2891
        }
2891
        }
2892
      },
2892
      },
2893
- 
2893
+
2894
      openPdf(blob) {
2894
      openPdf(blob) {
2895
        const objectUrl = URL.createObjectURL(blob);
2895
        const objectUrl = URL.createObjectURL(blob);
2896
        const a = document.createElement('a');
2896
        const a = document.createElement('a');
2906
        const bytesLength = byteCharacters.length;
2906
        const bytesLength = byteCharacters.length;
2907
        const slicesCount = Math.ceil(bytesLength / sliceSize);
2907
        const slicesCount = Math.ceil(bytesLength / sliceSize);
2908
        const byteArrays = new Array(slicesCount);
2908
        const byteArrays = new Array(slicesCount);
2909
- 
2909
+
2910
        for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
2910
        for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
2911
          const begin = sliceIndex * sliceSize;
2911
          const begin = sliceIndex * sliceSize;
2912
          const end = Math.min(begin + sliceSize, bytesLength);
2912
          const end = Math.min(begin + sliceSize, bytesLength);
2913
- 
2913
+
2914
          const bytes = new Array(end - begin);
2914
          const bytes = new Array(end - begin);
2915
          for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
2915
          for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
2916
            bytes[i] = byteCharacters[offset].charCodeAt(0);
2916
            bytes[i] = byteCharacters[offset].charCodeAt(0);
2917
          }
2917
          }
2918
          byteArrays[sliceIndex] = new Uint8Array(bytes);
2918
          byteArrays[sliceIndex] = new Uint8Array(bytes);
2919
        }
2919
        }
2920
- 
2920
+
2921
        return new Blob(byteArrays, {
2921
        return new Blob(byteArrays, {
2922
          type: contentType
2922
          type: contentType
2923
        });
2923
        });
2924
      },
2924
      },
2925
-    
2925
+
2926
      UploadPdf(res) {
2926
      UploadPdf(res) {
2927
        let pdfBase64Str = res;
2927
        let pdfBase64Str = res;
2928
        let title = "上传给后端的个人报告";
2928
        let title = "上传给后端的个人报告";
3560
         for (let index = 0; index < this.doctor_advices.length; index++) {
3560
         for (let index = 0; index < this.doctor_advices.length; index++) {
3561
           this.doctor_advices[index]["isShow"] = 2;
3561
           this.doctor_advices[index]["isShow"] = 2;
3562
         }
3562
         }
3563
-   
3563
+
3564
         // if (this.doctor_advices.length > 0) {
3564
         // if (this.doctor_advices.length > 0) {
3565
         //   var group = this.newAdviceGroupObject()
3565
         //   var group = this.newAdviceGroupObject()
3566
         //   var initGroupBlock = function(group, advice) {
3566
         //   var initGroupBlock = function(group, advice) {
3646
               projectsOne.push(item);
3646
               projectsOne.push(item);
3647
           });
3647
           });
3648
           this.projectsOne = projectsOne;
3648
           this.projectsOne = projectsOne;
3649
-          
3649
+
3650
 
3650
 
3651
           console.log("this.projectsOne", this.projectsOne);
3651
           console.log("this.projectsOne", this.projectsOne);
3652
 
3652
 
3653
         }
3653
         }
3654
-        
3654
+
3655
 
3655
 
3656
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
3656
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
3657
         if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 ){
3657
         if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 ){
3658
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
3658
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
3659
-            
3659
+
3660
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
3660
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
3661
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
3661
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
3662
               console.log("寄哪里 222")
3662
               console.log("寄哪里 222")
3674
         });
3674
         });
3675
         this.projects = projects;
3675
         this.projects = projects;
3676
 
3676
 
3677
-      
3677
+
3678
         console.log("this.projects", this.projects);
3678
         console.log("this.projects", this.projects);
3679
 
3679
 
3680
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
3680
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
3681
-      
3681
+
3682
         if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206){
3682
         if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206){
3683
             if(this.projects!=null && this.projects.length >0){
3683
             if(this.projects!=null && this.projects.length >0){
3684
              for(let i=0;i<this.projects.length;i++){
3684
              for(let i=0;i<this.projects.length;i++){
3685
               if(this.projects[i].type== 2){
3685
               if(this.projects[i].type== 2){
3686
-              
3686
+
3687
                 this.projects[i].project_team_name = ""
3687
                 this.projects[i].project_team_name = ""
3688
                 this.projects[i].project_team_id = 0
3688
                 this.projects[i].project_team_id = 0
3689
                 console.log("this.projects[i].project.team",this.projects[i].project.team)
3689
                 console.log("this.projects[i].project.team",this.projects[i].project.team)
3694
                   this.projects[i].single_dose = this.projects[i].single_dose
3694
                   this.projects[i].single_dose = this.projects[i].single_dose
3695
                   this.projects[i].single_dose_unit = this.projects[i].unit
3695
                   this.projects[i].single_dose_unit = this.projects[i].unit
3696
                   this.projects[i].execution_time = this.projects[i].execution_time
3696
                   this.projects[i].execution_time = this.projects[i].execution_time
3697
-                  this.projects[i].execution_staff= this.projects[i].execution_staff 
3697
+                  this.projects[i].execution_staff= this.projects[i].execution_staff
3698
                   this.projects[i].advice_name =  this.projects[i].team.project_team
3698
                   this.projects[i].advice_name =  this.projects[i].team.project_team
3699
                   this.projects[i].advice_doctor = this.projects[i].doctor
3699
                   this.projects[i].advice_doctor = this.projects[i].doctor
3700
-                
3701
-                
3700
+
3701
+
3702
                   this.doctor_advices.push(this.projects[i])
3702
                   this.doctor_advices.push(this.projects[i])
3703
                   // this.doctor_advices_2.push(this.project[i])
3703
                   // this.doctor_advices_2.push(this.project[i])
3704
                 }else{
3704
                 }else{
3708
                   this.projects[i].single_dose = this.projects[i].single_dose
3708
                   this.projects[i].single_dose = this.projects[i].single_dose
3709
                   this.projects[i].single_dose_unit = this.projects[i].unit
3709
                   this.projects[i].single_dose_unit = this.projects[i].unit
3710
                   this.projects[i].execution_time = this.projects[i].execution_time
3710
                   this.projects[i].execution_time = this.projects[i].execution_time
3711
-                  this.projects[i].execution_staff= this.projects[i].execution_staff 
3711
+                  this.projects[i].execution_staff= this.projects[i].execution_staff
3712
                   this.projects[i].advice_doctor = this.projects[i].doctor
3712
                   this.projects[i].advice_doctor = this.projects[i].doctor
3713
                   this.doctor_advices.push(this.projects[i])
3713
                   this.doctor_advices.push(this.projects[i])
3714
                   // this.doctor_advices_2.push(this.projects[i])
3714
                   // this.doctor_advices_2.push(this.projects[i])
3715
                 }
3715
                 }
3716
-              
3716
+
3717
               }
3717
               }
3718
-              
3718
+
3719
             }
3719
             }
3720
           }
3720
           }
3721
         }
3721
         }
3722
-      
3723
-         
3722
+
3723
+
3724
         }
3724
         }
3725
-      
3725
+
3726
         console.log("时间我我我哦我我",this.doctor_advices)
3726
         console.log("时间我我我哦我我",this.doctor_advices)
3727
         if(this.org_id == 10265){
3727
         if(this.org_id == 10265){
3728
           var docArr = []
3728
           var docArr = []
3733
               }
3733
               }
3734
             }
3734
             }
3735
           }
3735
           }
3736
-          this.doctor_advices = [] 
3736
+          this.doctor_advices = []
3737
           this.doctor_advices = docArr
3737
           this.doctor_advices = docArr
3738
         }
3738
         }
3739
-       
3739
+
3740
 
3740
 
3741
         if (this.doctor_advices.length + this.projectsOne.length <= 6) {
3741
         if (this.doctor_advices.length + this.projectsOne.length <= 6) {
3742
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
3742
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
3788
         }
3788
         }
3789
         // console.log(this.advice_groups);
3789
         // console.log(this.advice_groups);
3790
 
3790
 
3791
-       
3791
+
3792
       } else {
3792
       } else {
3793
         this.loading = false;
3793
         this.loading = false;
3794
         this.$message.error("请求数据失败");
3794
         this.$message.error("请求数据失败");
3824
     //   }
3824
     //   }
3825
     // },
3825
     // },
3826
     getAge: function(val) {
3826
     getAge: function(val) {
3827
-     
3827
+
3828
       if (val.id_card_no) {
3828
       if (val.id_card_no) {
3829
         var thisLen = val.id_card_no.length
3829
         var thisLen = val.id_card_no.length
3830
 
3830
 
3934
       "vascular_access_desc"
3934
       "vascular_access_desc"
3935
     );
3935
     );
3936
     this.org_id = this.$store.getters.xt_user.org.id;
3936
     this.org_id = this.$store.getters.xt_user.org.id;
3937
-   
3937
+
3938
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
3938
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
3939
 
3939
 
3940
     var bloodAccessParOpera = getDataConfig(
3940
     var bloodAccessParOpera = getDataConfig(