Browse Source

8月21,79打印单

yq1 7 months ago
parent
commit
0cb4bb18a9

+ 36 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_seventynine.vue View File

@@ -40,9 +40,15 @@
40 40
                         <div style="flex: 1;">
41 41
                           姓 名:{{ record.patient.name }}
42 42
                         </div>
43
+                        <div style="flex: 1;">
44
+                          年 龄:{{getNewAge(record.patient.id_card_no) }}岁
45
+                        </div>
43 46
                         <div style="flex: 1;">
44 47
                           性 别:{{ record.patient.gender == 1 ? "男" : "女" }}
45 48
                         </div>
49
+                        <div style="flex: 1;">
50
+                          透析号:{{ record.patient.dialysis_no }}
51
+                        </div>
46 52
                         <div style="flex: 1;">
47 53
                           透析机号:
48 54
                           {{ record.dialysis_order &&
@@ -53,6 +59,13 @@
53 59
                               : record.device_number.number
54 60
                           }}
55 61
                         </div>
62
+                        <div style="flex: 1;">
63
+                          透析次数:{{ record.patient.total_dialysis +
64
+                            record.patient.user_sys_before_count
65
+                              ? record.patient.total_dialysis +
66
+                                record.patient.user_sys_before_count
67
+                              : "/" }}
68
+                        </div>
56 69
                       </div>
57 70
                     </td>
58 71
                   </tr>
@@ -133,7 +146,8 @@
133 146
                   <tr>
134 147
                     <td colspan="2">
135 148
                       <div style="line-height:30px;">
136
-                      <span>计划脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
149
+                      <span>目标脱水量: {{ record.prescription.prescription_water ? record.prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
150
+                      <span>处方脱水量: {{ record.prescription.target_ultrafiltration ? record.prescription.target_ultrafiltration : "" }} </span>L &nbsp;&nbsp;
137 151
                       <span>透析液流量: {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }} </span>ml/h
138 152
                       </div>
139 153
                     </td>
@@ -209,7 +223,7 @@
209 223
                   <tr>
210 224
                     <td rowspan="2">时间</td>
211 225
                     <td colspan="5">透析参数</td>
212
-                    <td colspan="2">生命体征</td>
226
+                    <td colspan="3">生命体征</td>
213 227
                     <td colspan="2">治疗中病情变化</td>
214 228
                   </tr>
215 229
                   <tr>
@@ -222,7 +236,7 @@
222 236
                     <td>HR<br/>bpm</td>
223 237
                     <!-- <td>R<br/>bpm</td> -->
224 238
                     <td>BP<br/>mmHg</td>
225
-                    <!-- <td>SpO₂<br/>%</td> -->
239
+                    <td>护士签名</td>
226 240
                     <td>记录</td>
227 241
                   </tr>
228 242
                   <tr v-for="(monitor, monindex) in record.monitor_records" :key="monindex">
@@ -248,8 +262,10 @@
248 262
                           : "/"
249 263
                       }}
250 264
                     </td>
251
-                    <!-- <td>{{monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "/"}}</td> -->
252
-                    <!-- <td></td> -->
265
+                    <td>
266
+                      <span v-if="setAdminUserES(monitor, 'monitoring_nurse') == ''">{{getAdminUser(monitor, 'monitoring_nurse')}}</span>
267
+                      <img class="es-img" :src="setAdminUserES(monitor, 'monitoring_nurse')" alt="" srcset=""  v-else >
268
+                    </td>
253 269
                     <td>
254 270
                       {{ monitor.end }} {{ monitor.symptom }} &nbsp;
255 271
                       {{monitor.dispose}} &nbsp;{{ monitor.result }}
@@ -288,7 +304,7 @@
288 304
 
289 305
                     <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
290 306
                       <td style="height:30px;line-height:30px">{{ getTime(advice[0].start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
291
-                      <td style="height:30px;line-height:30px">
307
+                      <td style="height:30px;line-height:30px;text-align: left;">
292 308
                         <span v-if="advice[0].parent_id > 0">---></span>
293 309
                         <span>{{ advice[0].advice_name }}</span>
294 310
                         <span v-if="advice && advice[0].advice_desc">({{ advice[0].advice_desc }}{{ advice[0].drug_spec_unit }})</span>
@@ -354,7 +370,7 @@
354 370
                 <div style="display: flex;">
355 371
                   <div style="flex: 1;"></div>
356 372
                   <div style="flex: 1;margin-top: 20px;">
357
-                    <div style="display: inline-block;margin-right: 20px;">
373
+                    <div style="display: inline-block;margin-right: 120px;">
358 374
                       <span style="display: inline-block;">医生签名:</span>
359 375
                       <span v-if=" setAdminUserES(record.prescription, 'prescription_doctor') == '' ">
360 376
                           {{ getAdminUser(record.prescription, 'prescription_doctor')}}
@@ -949,6 +965,19 @@
949 965
       }
950 966
       return displace_liqui_part_name;
951 967
       },
968
+      getNewAge(UUserCard) {
969
+        if (UUserCard != null && UUserCard != '') {
970
+          //获取年龄
971
+          var myDate = new Date();
972
+          var month = myDate.getMonth() + 1;
973
+          var day = myDate.getDate();
974
+          var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
975
+          if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
976
+          age++;
977
+          }
978
+          return age;
979
+        }
980
+      },
952 981
     }
953 982
   }
954 983
 </script>

+ 33 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSeventynine.vue View File

@@ -8,7 +8,9 @@
8 8
         <table border="1" class="table-box" style="border-collapse: collapse;text-align: center;width: 99%;font-size: 16px;">
9 9
           <tbody>
10 10
             <tr>
11
-              <td width="80" style="line-height:30px;">治疗日期: <span>{{ year }}</span>年<span>{{ months }}</span>月<span>{{ day }}</span>日</td>
11
+              <td width="80" style="line-height:30px;">
12
+                治疗日期: <span>{{ year }}</span>年<span>{{ months }}</span>月<span>{{ day }}</span>日
13
+              </td>
12 14
             </tr>
13 15
           </tbody>
14 16
         </table>
@@ -20,13 +22,23 @@
20 22
                   <div style="flex: 1;">
21 23
                     姓 名:{{ patientInfo.name ? patientInfo.name : "/" }}
22 24
                   </div>
25
+                  <div style="flex: 1;">
26
+                    年 龄:{{ getAge(patientInfo) }}岁
27
+                  </div>
23 28
                   <div style="flex: 1;">
24 29
                     性 别:{{ patientInfo.gender ? patientInfo.gender : "/" }}
25 30
                   </div>
31
+                  <div style="flex: 1;">
32
+                    透析号:{{ patientInfo.dialysis_no ? patientInfo.dialysis_no : "/" }}
33
+                  </div>
26 34
                   <div style="flex: 1;">
27 35
                     透析机号:
28 36
                     {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
29 37
                   </div>
38
+                  <div style="flex: 1;">
39
+                    透析次数:{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? 
40
+                                patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
41
+                  </div>
30 42
                 </div>
31 43
               </td>
32 44
             </tr>
@@ -113,7 +125,8 @@
113 125
             <tr>
114 126
               <td colspan="2">
115 127
                 <div style="line-height:30px;">
116
-                 <span>计划脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
128
+                 <span>目标脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
129
+                 <span>处方脱水量: {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }} </span>L &nbsp;&nbsp;
117 130
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
118 131
                 </div>
119 132
               </td>
@@ -184,7 +197,7 @@
184 197
             <tr>
185 198
               <td rowspan="2">时间</td>
186 199
               <td colspan="5">透析参数</td>
187
-              <td colspan="2">生命体征</td>
200
+              <td colspan="3">生命体征</td>
188 201
               <td colspan="2">治疗中病情变化</td>
189 202
             </tr>
190 203
             <tr>
@@ -197,7 +210,7 @@
197 210
               <td>HR<br/>bpm</td>
198 211
               <!-- <td>R<br/>bpm</td> -->
199 212
               <td>BP<br/>mmHg</td>
200
-              <!-- <td>SpO₂<br/>%</td> -->
213
+              <td>护士签名</td>
201 214
               <!-- <td>时间</td> -->
202 215
               <td>记录</td>
203 216
             </tr>
@@ -224,8 +237,20 @@
224 237
                     : "/"
225 238
                 }}
226 239
               </td>
227
-              <!-- <td>{{monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "/"}}</td> -->
228
-              <!-- <td></td> -->
240
+              <td>
241
+                <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
242
+                  {{
243
+                  getAdminUser(monitor.monitoring_nurse)
244
+                  }}
245
+                </span>
246
+                <span
247
+                  v-else
248
+                  style="display:flex;align-items:center;justify-content:space-around;height:36px;"
249
+                >
250
+                  <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
251
+                </span>
252
+              </td>
253
+              
229 254
               <td>
230 255
                 {{ monitor.end }} {{ monitor.symptom }} &nbsp;
231 256
                 {{monitor.dispose}} &nbsp;{{ monitor.result }}
@@ -259,7 +284,7 @@
259 284
 
260 285
               <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
261 286
                 <td style="height:30px;line-height:30px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
262
-                <td style="height:30px;line-height:30px">
287
+                <td style="height:30px;line-height:30px;text-align: left;">
263 288
                   <span v-if="advice.parent_id > 0">---></span>
264 289
                   <span>{{ advice.advice_name }}</span>
265 290
                   <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
@@ -307,7 +332,7 @@
307 332
           <div style="display: flex;">
308 333
             <div style="flex: 1;"></div>
309 334
             <div style="flex: 1;margin-top: 20px;">
310
-              <div style="display: inline-block;margin-right: 20px;">
335
+              <div style="display: inline-block;margin-right: 120px;">
311 336
                 <span style="display: inline-block;">医生签名:</span>
312 337
                 <span style="display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
313 338
                   {{ getAdminUser(prescription.creater)}}