Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 10 months ago
parent
commit
7d05e3bf7a
1 changed files with 113 additions and 131 deletions
  1. 113 131
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue

+ 113 - 131
src/xt_pages/dialysis/template/DialysisPrintOrderSix.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"
395
                       >
395
                       >
396
                          {{ dialysisOrder&&dialysisOrder.puncture_way }}
396
                          {{ dialysisOrder&&dialysisOrder.puncture_way }}
397
                       </div>
397
                       </div>
398
-                      
398
+
399
                     </div>
399
                     </div>
400
                     <div
400
                     <div
401
                       class="inline_block"
401
                       class="inline_block"
417
                             : "/"
417
                             : "/"
418
                         }}
418
                         }}
419
                       </span>
419
                       </span>
420
-                       
420
+
421
                       </div>
421
                       </div>
422
                     </div>
422
                     </div>
423
                     <div
423
                     <div
440
                             : "/"
440
                             : "/"
441
                         }}
441
                         }}
442
                       </span>
442
                       </span>
443
-                       
443
+
444
                       </div>
444
                       </div>
445
                     </div>
445
                     </div>
446
                   </div>
446
                   </div>
853
                             ? prescription.replacement_total
853
                             ? prescription.replacement_total
854
                             : "/"
854
                             : "/"
855
                         }}
855
                         }}
856
-                        </span> 
856
+                        </span>
857
                         <span v-if="org_id!=10206"> {{
857
                         <span v-if="org_id!=10206"> {{
858
                           prescription.displace_liqui_value
858
                           prescription.displace_liqui_value
859
                             ? prescription.displace_liqui_value
859
                             ? prescription.displace_liqui_value
860
                             : "/"
860
                             : "/"
861
                         }}
861
                         }}
862
-                        </span> 
862
+                        </span>
863
                       </div>
863
                       </div>
864
                       L
864
                       L
865
                     </div>
865
                     </div>
879
                             ? prescription.replacement_total
879
                             ? prescription.replacement_total
880
                             : "/"
880
                             : "/"
881
                         }}
881
                         }}
882
-                        </span> 
882
+                        </span>
883
                         <span v-if="org_id!=10206"> {{
883
                         <span v-if="org_id!=10206"> {{
884
                           prescription.displace_liqui_value
884
                           prescription.displace_liqui_value
885
                             ? prescription.displace_liqui_value
885
                             ? prescription.displace_liqui_value
886
                             : "/"
886
                             : "/"
887
                         }}
887
                         }}
888
-                        </span> 
888
+                        </span>
889
                       </div>
889
                       </div>
890
                       L
890
                       L
891
                       </div>
891
                       </div>
1117
                       kg
1117
                       kg
1118
                     </div>
1118
                     </div>
1119
                     <div class="inline_block" style="flex: 1" v-if="org_id!=10469 && org_id!=0">
1119
                     <div class="inline_block" style="flex: 1" v-if="org_id!=10469 && org_id!=0">
1120
-                      计划超滤量: 
1120
+                      计划超滤量:
1121
                       <div
1121
                       <div
1122
                         class="under_line"
1122
                         class="under_line"
1123
                         style="width: 100px; text-align: center"
1123
                         style="width: 100px; text-align: center"
1128
                             : "/"
1128
                             : "/"
1129
                         }}
1129
                         }}
1130
                       </div>
1130
                       </div>
1131
-                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span> 
1131
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
1132
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
1132
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
1133
                     </div>
1133
                     </div>
1134
 
1134
 
1135
 
1135
 
1136
                     <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 0">
1136
                     <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 0">
1137
-                      处方脱水量: 
1137
+                      处方脱水量:
1138
                       <div
1138
                       <div
1139
                         class="under_line"
1139
                         class="under_line"
1140
                         style="width: 100px; text-align: center"
1140
                         style="width: 100px; text-align: center"
1199
                         style="width: 50px; text-align: center"
1199
                         style="width: 50px; text-align: center"
1200
                       >
1200
                       >
1201
                         {{
1201
                         {{
1202
-                          prescription.bicarbonate
1203
-                            ? prescription.bicarbonate
1204
-                            : "/"
1202
+                          prescription.bicarbonate ? prescription.bicarbonate : "/"
1205
                         }}
1203
                         }}
1206
                       </div>
1204
                       </div>
1207
                       mmol/L
1205
                       mmol/L
1256
                             : "/"
1254
                             : "/"
1257
                         }}
1255
                         }}
1258
                       </div>
1256
                       </div>
1259
-                     
1257
+
1260
                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">
1258
                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">
1261
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1259
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1262
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1260
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1276
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1274
                      <span v-if="prescription.anticoagulant == 10">iu</span>
1277
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1275
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1278
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1276
                      <span v-if="prescription.anticoagulant == 13">iu</span>
1279
-                    
1277
+
1280
                     </span>
1278
                     </span>
1281
                     </div>
1279
                     </div>
1282
                     <div class="inline_block" style="margin-left: 20px">
1280
                     <div class="inline_block" style="margin-left: 20px">
1413
                     </div>
1411
                     </div>
1414
                   </div>
1412
                   </div>
1415
 
1413
 
1416
-
1417
-                  <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==0 || org_id == 3877  || org_id == 9671">
1414
+                  <div class="row" style="padding: 2px 0; line-height: 23px" v-if=" org_id == 3877  || org_id == 9671">
1418
                     <div
1415
                     <div
1419
                       class="inline_block"
1416
                       class="inline_block"
1420
                       style="margin-left: 20px"
1417
                       style="margin-left: 20px"
1432
                         }}
1429
                         }}
1433
                       </div>
1430
                       </div>
1434
                       <span>ml/h</span>
1431
                       <span>ml/h</span>
1435
-                   
1436
-                  
1432
+
1433
+
1437
                     </div>
1434
                     </div>
1438
                     <div
1435
                     <div
1439
                       class="inline_block"
1436
                       class="inline_block"
1452
                         }}
1449
                         }}
1453
                       </div>
1450
                       </div>
1454
                       <span>ml/h</span>
1451
                       <span>ml/h</span>
1455
-                   
1456
-                  
1452
+
1453
+
1457
                     </div>
1454
                     </div>
1458
                     <div class="inline_block" style="margin-left: 20px">
1455
                     <div class="inline_block" style="margin-left: 20px">
1459
                       碳酸氢钠流速:
1456
                       碳酸氢钠流速:
1467
                             : ""
1464
                             : ""
1468
                         }}
1465
                         }}
1469
                       </div>
1466
                       </div>
1470
-                     
1471
-                     
1467
+
1468
+
1472
                     </div>
1469
                     </div>
1473
                     <span>ml/h</span>
1470
                     <span>ml/h</span>
1474
-                   
1475
-              
1476
-                  
1471
+
1472
+
1473
+
1477
                   </div>
1474
                   </div>
1478
 
1475
 
1479
                    <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==10469 || org_id == 9671">
1476
                    <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==10469 || org_id == 9671">
1488
                       >
1485
                       >
1489
                        {{predialysis.machine_type ? predialysis.machine_type : ""}}
1486
                        {{predialysis.machine_type ? predialysis.machine_type : ""}}
1490
                       </div>
1487
                       </div>
1491
-                    
1488
+
1492
                     </div>
1489
                     </div>
1493
                     <div
1490
                     <div
1494
                       class="inline_block"
1491
                       class="inline_block"
1587
                               : "mmHg"
1584
                               : "mmHg"
1588
                           }})
1585
                           }})
1589
                         </td>
1586
                         </td>
1590
-                        
1587
+
1591
                         <td width="60" v-if="org_id == 9836">体温(°C)</td>
1588
                         <td width="60" v-if="org_id == 9836">体温(°C)</td>
1592
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1589
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1593
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1590
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1594
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1591
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1595
                         <td width="50" v-if="org_id != 10121 &&  org_id!=10600">
1592
                         <td width="50" v-if="org_id != 10121 &&  org_id!=10600">
1596
-                          <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span> 
1597
-                          <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span> 
1598
-                          <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span> 
1593
+                          <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
1594
+                          <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
1595
+                          <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span>
1599
                         </td>
1596
                         </td>
1600
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1597
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1601
                         <td width="50" v-if="org_id == 10375 || org_id == 0">置换率<br />(ml/h)</td>
1598
                         <td width="50" v-if="org_id == 10375 || org_id == 0">置换率<br />(ml/h)</td>
1606
                           置换量<br />(ml)
1603
                           置换量<br />(ml)
1607
                         </td>
1604
                         </td>
1608
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1605
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1609
-                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10587">KT/V</td>
1610
-                        <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1611
-                        <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1606
+                        <td width="50" v-if="org_id == 9538 || org_id ==10600">KT/V</td>
1607
+                        <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1608
+                        <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1612
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1609
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1613
                         <td width="50" v-if="org_id == 10490 || org_id == 0">碳酸氢钠<br />(ml)</td>
1610
                         <td width="50" v-if="org_id == 10490 || org_id == 0">碳酸氢钠<br />(ml)</td>
1614
                         <td width="50" v-if="org_id == 10598 || org_id == 0">护士签名</td>
1611
                         <td width="50" v-if="org_id == 10598 || org_id == 0">护士签名</td>
1644
                               : ""
1641
                               : ""
1645
                             }}
1642
                             }}
1646
                           </span>
1643
                           </span>
1647
-                          
1644
+
1648
                         </td>
1645
                         </td>
1649
                         <td>
1646
                         <td>
1650
                           <span
1647
                           <span
1708
                           <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
1705
                           <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
1709
                         </td>
1706
                         </td>
1710
 
1707
 
1711
-                      
1708
+
1712
                         <td v-if="org_id == 10375 || org_id == 0"><br />
1709
                         <td v-if="org_id == 10375 || org_id == 0"><br />
1713
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1710
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1714
                         </td>
1711
                         </td>
1735
                           </span>
1732
                           </span>
1736
                         </td>
1733
                         </td>
1737
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1734
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1738
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10587">
1735
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600">
1739
                           {{ monitor.ktv?monitor.ktv:"" }}
1736
                           {{ monitor.ktv?monitor.ktv:"" }}
1740
                         </td>
1737
                         </td>
1741
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1738
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1801
                                 "
1798
                                 "
1802
                                 >【开始透析】
1799
                                 >【开始透析】
1803
                                 </template>
1800
                                 </template>
1804
-                              
1801
+
1805
                               {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
1802
                               {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
1806
                                 monitor.dispose
1803
                                 monitor.dispose
1807
                               }}
1804
                               }}
1972
                               v-else
1969
                               v-else
1973
                             />
1970
                             />
1974
                           </span>
1971
                           </span>
1975
-                         
1972
+
1976
                         </td>
1973
                         </td>
1977
                         <!-- <td height="35px">
1974
                         <!-- <td height="35px">
1978
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1975
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
2014
                       <!-- </template> -->
2011
                       <!-- </template> -->
2015
 
2012
 
2016
 
2013
 
2017
-                      <tr  
2014
+                      <tr
2018
                       v-if="org_id == 0 || org_id ==10206"
2015
                       v-if="org_id == 0 || org_id ==10206"
2019
                       v-for="(advice, advice_index) in projectsOne"
2016
                       v-for="(advice, advice_index) in projectsOne"
2020
                       :key="advice_index"
2017
                       :key="advice_index"
2095
                 </td>
2092
                 </td>
2096
               </tr>
2093
               </tr>
2097
 
2094
 
2098
-            
2095
+
2099
             </tbody>
2096
             </tbody>
2100
           </table>
2097
           </table>
2101
         </div>
2098
         </div>
2127
               <span v-if="prescription.mode_id!=13">血液净化治疗记录单</span>
2124
               <span v-if="prescription.mode_id!=13">血液净化治疗记录单</span>
2128
               <span v-if="prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
2125
               <span v-if="prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
2129
              </span>
2126
              </span>
2130
-            
2127
+
2131
             </div>
2128
             </div>
2132
           </div>
2129
           </div>
2133
           <div class="row">
2130
           <div class="row">
2651
                             : "未称重"
2648
                             : "未称重"
2652
                         }}
2649
                         }}
2653
                       </span>
2650
                       </span>
2654
-                       
2651
+
2655
                       </div>
2652
                       </div>
2656
                       kg
2653
                       kg
2657
                     </div>
2654
                     </div>
2964
                       >
2961
                       >
2965
                         {{ afterdialysis.cvc_v ? afterdialysis.cvc_v : "/" }}
2962
                         {{ afterdialysis.cvc_v ? afterdialysis.cvc_v : "/" }}
2966
                       </div>ml
2963
                       </div>ml
2967
-                      
2964
+
2968
                     </div>
2965
                     </div>
2969
                   </div>
2966
                   </div>
2970
                 </td>
2967
                 </td>
2976
                     style="padding: 2px 0; line-height: 23px; display: flex"
2973
                     style="padding: 2px 0; line-height: 23px; display: flex"
2977
                   >
2974
                   >
2978
                    <div v-if="org_id == 0 || org_id == 10440">
2975
                    <div v-if="org_id == 0 || org_id == 10440">
2979
-                    
2980
-                  
2976
+
2977
+
2981
 
2978
 
2982
                     <div class="inline_block" style="flex: 1">
2979
                     <div class="inline_block" style="flex: 1">
2983
                       上机护士:
2980
                       上机护士:
3018
                         />
3015
                         />
3019
                       </div>
3016
                       </div>
3020
                     </div>
3017
                     </div>
3021
-                  
3022
-                  
3018
+
3019
+
3023
                   </div>
3020
                   </div>
3024
                   <div v-if="org_id!=0 && org_id!=10440">
3021
                   <div v-if="org_id!=0 && org_id!=10440">
3025
                     <div class="inline_block" style="flex: 1">
3022
                     <div class="inline_block" style="flex: 1">
3062
                       </div>
3059
                       </div>
3063
                     </div>
3060
                     </div>
3064
                   </div>
3061
                   </div>
3065
-                   
3062
+
3066
                   <div v-if="org_id==0||org_id==10440">
3063
                   <div v-if="org_id==0||org_id==10440">
3067
-                    
3068
-                    <div class="inline_block" style="flex: 1">                 
3064
+
3065
+                    <div class="inline_block" style="flex: 1">
3069
                      <div>
3066
                      <div>
3070
-                      <span>责任护士:</span> 
3067
+                      <span>责任护士:</span>
3071
                       <div
3068
                       <div
3072
                         class="under_line"
3069
                         class="under_line"
3073
                         style="width: 80px; text-align: center"
3070
                         style="width: 80px; text-align: center"
3074
-                       
3071
+
3075
                       >
3072
                       >
3076
-                    
3073
+
3077
                         <span
3074
                         <span
3078
                           style="height: 35px; display: inline-block"
3075
                           style="height: 35px; display: inline-block"
3079
                           v-if="
3076
                           v-if="
3114
 
3111
 
3115
                   <div v-if="org_id!=0&&org_id!=10440&&org_id!= 10206">
3112
                   <div v-if="org_id!=0&&org_id!=10440&&org_id!= 10206">
3116
                     <div class="inline_block" style="flex: 1">
3113
                     <div class="inline_block" style="flex: 1">
3117
-                      <span v-if="org_id==10414">责任护士:</span> 
3118
-                      <span v-else>治疗护士:</span> 
3119
-                      
3114
+                      <span v-if="org_id==10414">责任护士:</span>
3115
+                      <span v-else>治疗护士:</span>
3116
+
3120
                       <div
3117
                       <div
3121
                         class="under_line"
3118
                         class="under_line"
3122
                         style="width: 80px; text-align: center"
3119
                         style="width: 80px; text-align: center"
3155
                       </div>
3152
                       </div>
3156
                     </div>
3153
                     </div>
3157
                   </div>
3154
                   </div>
3158
-                  
3155
+
3159
 
3156
 
3160
 
3157
 
3161
                     <div class="inline_block" style="flex: 1">
3158
                     <div class="inline_block" style="flex: 1">
3162
-                      <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span> 
3163
-                      <span v-else >核对人员:</span> 
3159
+                      <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span>
3160
+                      <span v-else >核对人员:</span>
3164
                       <div
3161
                       <div
3165
                         class="under_line"
3162
                         class="under_line"
3166
                         style="width: 80px; text-align: center"
3163
                         style="width: 80px; text-align: center"
3349
                             v-else
3346
                             v-else
3350
                           />
3347
                           />
3351
                       </span>
3348
                       </span>
3352
-                      
3349
+
3353
                       </div>
3350
                       </div>
3354
                     </div>
3351
                     </div>
3355
                   </div>
3352
                   </div>
3356
                 </td>
3353
                 </td>
3357
               </tr>
3354
               </tr>
3358
 
3355
 
3359
-            
3356
+
3360
             </tbody>
3357
             </tbody>
3361
           </table>
3358
           </table>
3362
           <!-- <div  class="print-yema">1</div> -->
3359
           <!-- <div  class="print-yema">1</div> -->
3444
                           核对护士
3441
                           核对护士
3445
                         </td>
3442
                         </td>
3446
                       </tr>
3443
                       </tr>
3447
-                     
3444
+
3448
 
3445
 
3449
                       <tr
3446
                       <tr
3450
                         v-for="(advice, advice_index) in doctor_advices"
3447
                         v-for="(advice, advice_index) in doctor_advices"
3454
                           <span v-if="advice.start_time">
3451
                           <span v-if="advice.start_time">
3455
                             {{ getTime(advice.start_time, "{h}:{i}") }}
3452
                             {{ getTime(advice.start_time, "{h}:{i}") }}
3456
                           </span>
3453
                           </span>
3457
-                          
3454
+
3458
                         </td>
3455
                         </td>
3459
                         <td
3456
                         <td
3460
                           height="32px"
3457
                           height="32px"
3489
                             >({{ advice.remark }})</span
3486
                             >({{ advice.remark }})</span
3490
                           >
3487
                           >
3491
                         </td>
3488
                         </td>
3492
-                    
3489
+
3493
                         <td height="32px">
3490
                         <td height="32px">
3494
                           <span
3491
                           <span
3495
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
3492
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
3503
                             v-else
3500
                             v-else
3504
                           />
3501
                           />
3505
                         </td>
3502
                         </td>
3506
-                      
3503
+
3507
                         <td height="32px">
3504
                         <td height="32px">
3508
                           <span
3505
                           <span
3509
                             v-if="setAdminUserES(advice.execution_staff) == ''"
3506
                             v-if="setAdminUserES(advice.execution_staff) == ''"
3535
                           />
3532
                           />
3536
                         </td>
3533
                         </td>
3537
                       </tr>
3534
                       </tr>
3538
-                      
3539
 
3535
 
3540
-                   
3536
+
3537
+
3541
                     </tbody>
3538
                     </tbody>
3542
      </table>
3539
      </table>
3543
 
3540
 
3544
 
3541
 
3545
-    
3546
-     
3547
 
3542
 
3548
-     
3543
+
3544
+
3545
+
3549
     </div>
3546
     </div>
3550
   </div>
3547
   </div>
3551
 </template>
3548
 </template>
3554
 import CheckBox from "../batch_print/option_check_box";
3551
 import CheckBox from "../batch_print/option_check_box";
3555
 import { getDialysisRecord } from "@/api/dialysis";
3552
 import { getDialysisRecord } from "@/api/dialysis";
3556
 import { getDataConfig } from "@/utils/data";
3553
 import { getDataConfig } from "@/utils/data";
3557
-import { jsGetAge, uParseTime,jsGetAgeOne } from "@/utils/tools";
3554
+import { jsGetAge, uParseTime } from "@/utils/tools";
3558
 
3555
 
3559
 import LabelBox from "../printItem/LabelBox";
3556
 import LabelBox from "../printItem/LabelBox";
3560
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
3557
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
3689
       },
3686
       },
3690
       org_id: 0,
3687
       org_id: 0,
3691
       projectsOne: [],
3688
       projectsOne: [],
3692
-      ageDate:""
3693
     };
3689
     };
3694
   },
3690
   },
3695
   methods: {
3691
   methods: {
3696
     toUpload() {
3692
     toUpload() {
3697
-         
3693
+
3698
          let dom = document.getElementById("dialysis-print-box-1")
3694
          let dom = document.getElementById("dialysis-print-box-1")
3699
          //调用方法下载
3695
          //调用方法下载
3700
          html2canvas(dom, {
3696
          html2canvas(dom, {
3708
          }).then((canvas) => {
3704
          }).then((canvas) => {
3709
            //返回图片dataURL,参数:图片格式和清晰度(0-1)
3705
            //返回图片dataURL,参数:图片格式和清晰度(0-1)
3710
            var pageData = canvas.toDataURL('image/jpeg', 1.0);
3706
            var pageData = canvas.toDataURL('image/jpeg', 1.0);
3711
- 
3707
+
3712
            //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
3708
            //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
3713
            var pdf = new jsPDF('', 'pt', 'a4');
3709
            var pdf = new jsPDF('', 'pt', 'a4');
3714
- 
3710
+
3715
            //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
3711
            //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
3716
            //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
3712
            //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
3717
            pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
3713
            pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
3718
-           
3714
+
3719
            console.log("pdf222222222222222222",pdf)
3715
            console.log("pdf222222222222222222",pdf)
3720
 
3716
 
3721
            var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
3717
            var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
3723
            const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
3719
            const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
3724
            console.log("blobwoowowowwo",blob)
3720
            console.log("blobwoowowowwo",blob)
3725
            this.openPdf(blob);
3721
            this.openPdf(blob);
3726
-           
3722
+
3727
            // var data = {
3723
            // var data = {
3728
            //   name:newBase64Data,
3724
            //   name:newBase64Data,
3729
            // }
3725
            // }
3738
            //     this.openPdf(blob);
3734
            //     this.openPdf(blob);
3739
            //   }
3735
            //   }
3740
            // })
3736
            // })
3741
-           
3737
+
3742
            // this.viewPdf(newBase64Data)
3738
            // this.viewPdf(newBase64Data)
3743
            //保存到pdf,名字是stone
3739
            //保存到pdf,名字是stone
3744
            // pdf.save('stone.pdf');
3740
            // pdf.save('stone.pdf');
3745
-          
3741
+
3746
          });
3742
          });
3747
        },
3743
        },
3748
-    
3744
+
3749
      viewPdf(content) {
3745
      viewPdf(content) {
3750
        console.log("content",content);
3746
        console.log("content",content);
3751
        const blob = this.base64ToBlob(content);
3747
        const blob = this.base64ToBlob(content);
3764
            return value1 - value2
3760
            return value1 - value2
3765
        }
3761
        }
3766
      },
3762
      },
3767
- 
3763
+
3768
      openPdf(blob) {
3764
      openPdf(blob) {
3769
        const objectUrl = URL.createObjectURL(blob);
3765
        const objectUrl = URL.createObjectURL(blob);
3770
        const a = document.createElement('a');
3766
        const a = document.createElement('a');
3780
        const bytesLength = byteCharacters.length;
3776
        const bytesLength = byteCharacters.length;
3781
        const slicesCount = Math.ceil(bytesLength / sliceSize);
3777
        const slicesCount = Math.ceil(bytesLength / sliceSize);
3782
        const byteArrays = new Array(slicesCount);
3778
        const byteArrays = new Array(slicesCount);
3783
- 
3779
+
3784
        for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
3780
        for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
3785
          const begin = sliceIndex * sliceSize;
3781
          const begin = sliceIndex * sliceSize;
3786
          const end = Math.min(begin + sliceSize, bytesLength);
3782
          const end = Math.min(begin + sliceSize, bytesLength);
3787
- 
3783
+
3788
          const bytes = new Array(end - begin);
3784
          const bytes = new Array(end - begin);
3789
          for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
3785
          for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
3790
            bytes[i] = byteCharacters[offset].charCodeAt(0);
3786
            bytes[i] = byteCharacters[offset].charCodeAt(0);
3791
          }
3787
          }
3792
          byteArrays[sliceIndex] = new Uint8Array(bytes);
3788
          byteArrays[sliceIndex] = new Uint8Array(bytes);
3793
        }
3789
        }
3794
- 
3790
+
3795
        return new Blob(byteArrays, {
3791
        return new Blob(byteArrays, {
3796
          type: contentType
3792
          type: contentType
3797
        });
3793
        });
3798
      },
3794
      },
3799
-    
3795
+
3800
      UploadPdf(res) {
3796
      UploadPdf(res) {
3801
        let pdfBase64Str = res;
3797
        let pdfBase64Str = res;
3802
        let title = "上传给后端的个人报告";
3798
        let title = "上传给后端的个人报告";
4210
         } else {
4206
         } else {
4211
           this.patientInfo.first_dialysis_date = "";
4207
           this.patientInfo.first_dialysis_date = "";
4212
         }
4208
         }
4213
-        this.ageDate = uParseTime(response.data.data.schedule.schedule_date,"{y}-{m}-{d}");
4214
         this.check = response.data.data.check;
4209
         this.check = response.data.data.check;
4215
         this.xtdate = response.data.data.xtdate;
4210
         this.xtdate = response.data.data.xtdate;
4216
         this.predialysis = response.data.data.PredialysisEvaluation;
4211
         this.predialysis = response.data.data.PredialysisEvaluation;
4435
         for (let index = 0; index < this.doctor_advices.length; index++) {
4430
         for (let index = 0; index < this.doctor_advices.length; index++) {
4436
           this.doctor_advices[index]["isShow"] = 2;
4431
           this.doctor_advices[index]["isShow"] = 2;
4437
         }
4432
         }
4438
-   
4433
+
4439
         // if (this.doctor_advices.length > 0) {
4434
         // if (this.doctor_advices.length > 0) {
4440
         //   var group = this.newAdviceGroupObject()
4435
         //   var group = this.newAdviceGroupObject()
4441
         //   var initGroupBlock = function(group, advice) {
4436
         //   var initGroupBlock = function(group, advice) {
4521
               projectsOne.push(item);
4516
               projectsOne.push(item);
4522
           });
4517
           });
4523
           this.projectsOne = projectsOne;
4518
           this.projectsOne = projectsOne;
4524
-          
4519
+
4525
 
4520
 
4526
           console.log("this.projectsOne", this.projectsOne);
4521
           console.log("this.projectsOne", this.projectsOne);
4527
 
4522
 
4528
         }
4523
         }
4529
-        
4524
+
4530
 
4525
 
4531
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
4526
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
4532
         if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 ){
4527
         if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 ){
4533
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4528
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4534
-            
4529
+
4535
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
4530
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
4536
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
4531
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
4537
               console.log("寄哪里 222")
4532
               console.log("寄哪里 222")
4549
         });
4544
         });
4550
         this.projects = projects;
4545
         this.projects = projects;
4551
 
4546
 
4552
-      
4547
+
4553
         console.log("this.projects", this.projects);
4548
         console.log("this.projects", this.projects);
4554
 
4549
 
4555
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
4550
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
4556
-      
4551
+
4557
         if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206){
4552
         if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206){
4558
             if(this.projects!=null && this.projects.length >0){
4553
             if(this.projects!=null && this.projects.length >0){
4559
              for(let i=0;i<this.projects.length;i++){
4554
              for(let i=0;i<this.projects.length;i++){
4560
               if(this.projects[i].type== 2){
4555
               if(this.projects[i].type== 2){
4561
-              
4556
+
4562
                 this.projects[i].project_team_name = ""
4557
                 this.projects[i].project_team_name = ""
4563
                 this.projects[i].project_team_id = 0
4558
                 this.projects[i].project_team_id = 0
4564
                 console.log("this.projects[i].project.team",this.projects[i].project.team)
4559
                 console.log("this.projects[i].project.team",this.projects[i].project.team)
4569
                   this.projects[i].single_dose = this.projects[i].single_dose
4564
                   this.projects[i].single_dose = this.projects[i].single_dose
4570
                   this.projects[i].single_dose_unit = this.projects[i].unit
4565
                   this.projects[i].single_dose_unit = this.projects[i].unit
4571
                   this.projects[i].execution_time = this.projects[i].execution_time
4566
                   this.projects[i].execution_time = this.projects[i].execution_time
4572
-                  this.projects[i].execution_staff= this.projects[i].execution_staff 
4567
+                  this.projects[i].execution_staff= this.projects[i].execution_staff
4573
                   this.projects[i].advice_name =  this.projects[i].team.project_team
4568
                   this.projects[i].advice_name =  this.projects[i].team.project_team
4574
                   this.projects[i].advice_doctor = this.projects[i].doctor
4569
                   this.projects[i].advice_doctor = this.projects[i].doctor
4575
-                
4576
-                
4570
+
4571
+
4577
                   this.doctor_advices.push(this.projects[i])
4572
                   this.doctor_advices.push(this.projects[i])
4578
                   // this.doctor_advices_2.push(this.project[i])
4573
                   // this.doctor_advices_2.push(this.project[i])
4579
                 }else{
4574
                 }else{
4583
                   this.projects[i].single_dose = this.projects[i].single_dose
4578
                   this.projects[i].single_dose = this.projects[i].single_dose
4584
                   this.projects[i].single_dose_unit = this.projects[i].unit
4579
                   this.projects[i].single_dose_unit = this.projects[i].unit
4585
                   this.projects[i].execution_time = this.projects[i].execution_time
4580
                   this.projects[i].execution_time = this.projects[i].execution_time
4586
-                  this.projects[i].execution_staff= this.projects[i].execution_staff 
4581
+                  this.projects[i].execution_staff= this.projects[i].execution_staff
4587
                   this.projects[i].advice_doctor = this.projects[i].doctor
4582
                   this.projects[i].advice_doctor = this.projects[i].doctor
4588
                   this.doctor_advices.push(this.projects[i])
4583
                   this.doctor_advices.push(this.projects[i])
4589
                   // this.doctor_advices_2.push(this.projects[i])
4584
                   // this.doctor_advices_2.push(this.projects[i])
4590
                 }
4585
                 }
4591
-              
4586
+
4592
               }
4587
               }
4593
-              
4588
+
4594
             }
4589
             }
4595
           }
4590
           }
4596
         }
4591
         }
4597
-      
4598
-         
4592
+
4593
+
4599
         }
4594
         }
4600
-      
4595
+
4601
         console.log("时间我我我哦我我",this.doctor_advices)
4596
         console.log("时间我我我哦我我",this.doctor_advices)
4602
         if(this.org_id == 10265){
4597
         if(this.org_id == 10265){
4603
           var docArr = []
4598
           var docArr = []
4608
               }
4603
               }
4609
             }
4604
             }
4610
           }
4605
           }
4611
-          this.doctor_advices = [] 
4606
+          this.doctor_advices = []
4612
           this.doctor_advices = docArr
4607
           this.doctor_advices = docArr
4613
         }
4608
         }
4614
-       
4609
+
4615
 
4610
 
4616
         if (this.doctor_advices.length + this.projectsOne.length <= 6) {
4611
         if (this.doctor_advices.length + this.projectsOne.length <= 6) {
4617
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
4612
             var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
4663
         }
4658
         }
4664
         // console.log(this.advice_groups);
4659
         // console.log(this.advice_groups);
4665
 
4660
 
4666
-       
4661
+
4667
       } else {
4662
       } else {
4668
         this.loading = false;
4663
         this.loading = false;
4669
         this.$message.error("请求数据失败");
4664
         this.$message.error("请求数据失败");
4699
     //   }
4694
     //   }
4700
     // },
4695
     // },
4701
     getAge: function(val) {
4696
     getAge: function(val) {
4702
-     
4697
+
4703
       if (val.id_card_no) {
4698
       if (val.id_card_no) {
4704
         var thisLen = val.id_card_no.length
4699
         var thisLen = val.id_card_no.length
4705
 
4700
 
4709
         } else {
4704
         } else {
4710
           birth = val.id_card_no.substr(6, 8)
4705
           birth = val.id_card_no.substr(6, 8)
4711
         }
4706
         }
4712
-      
4713
-        if(this.org_id == 0){
4714
-          console.log("this.ageDattewowow",this.ageDate)
4715
-          var birthtwo = birth.substr(0, 4)  + birth.substr(4, 2)  + birth.substr(6, 2)
4716
-          var year = birth.substr(0,4) 
4717
-          var month = birth.substr(4, 2)
4718
-          var day = birth.substr(6, 2)
4719
-         
4720
-          var age = jsGetAgeOne(birthtwo,"-",year,month,day)
4721
-          return age
4722
-        }else{
4723
-            var birthtwo =
4724
-            birth.substr(0, 4) +
4725
-            '-' +
4726
-            birth.substr(4, 2) +
4727
-            '-' +
4728
-            birth.substr(6, 2)
4729
-            console.log("brithwo3333",birthtwo)
4730
-            var age = jsGetAge(birthtwo, '-')
4731
-            return age
4732
-        }
4733
-       
4707
+        var birthtwo =
4708
+          birth.substr(0, 4) +
4709
+          '-' +
4710
+          birth.substr(4, 2) +
4711
+          '-' +
4712
+          birth.substr(6, 2)
4713
+
4714
+        var age = jsGetAge(birthtwo, '-')
4715
+        return age
4734
       }
4716
       }
4735
     },
4717
     },
4736
     newAdviceGroupObject: function () {
4718
     newAdviceGroupObject: function () {
4822
       "vascular_access_desc"
4804
       "vascular_access_desc"
4823
     );
4805
     );
4824
     this.org_id = this.$store.getters.xt_user.org.id;
4806
     this.org_id = this.$store.getters.xt_user.org.id;
4825
-   
4807
+
4826
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
4808
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
4827
 
4809
 
4828
     var bloodAccessParOpera = getDataConfig(
4810
     var bloodAccessParOpera = getDataConfig(