Browse Source

8月21日,79打印单

yq1 6 months ago
parent
commit
0c1b25eb05
1 changed files with 52 additions and 12 deletions
  1. 52 12
      src/pages/main/template/DialysisPrintOrderServentynine.vue

+ 52 - 12
src/pages/main/template/DialysisPrintOrderServentynine.vue View File

@@ -20,13 +20,24 @@
20 20
                   <div style="flex: 1;">
21 21
                     姓 名:{{ patientInfo.name ? patientInfo.name : "/" }}
22 22
                   </div>
23
+                  <div style="flex: 1;">
24
+                    年 龄:{{ getNewAge(patientInfo.id_card_no) }}岁
25
+                    <!-- 年 龄:{{ getAge(patientInfo) }}岁 -->
26
+                  </div>
23 27
                   <div style="flex: 1;">
24 28
                     性 别:{{ patientInfo.gender ? '男' : "女" }}
25 29
                   </div>
30
+                  <div style="flex: 1;">
31
+                    透析号:{{ patientInfo.dialysis_no ? patientInfo.dialysis_no : "/" }}
32
+                  </div>
26 33
                   <div style="flex: 1;">
27 34
                     透析机号:
28 35
                     {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
29 36
                   </div>
37
+                  <div style="flex: 1;">
38
+                    透析次数:{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? 
39
+                                patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
40
+                  </div>
30 41
                 </div>
31 42
               </td>
32 43
             </tr>
@@ -112,7 +123,8 @@
112 123
             <tr>
113 124
               <td colspan="2">
114 125
                 <div style="line-height:30px;">
115
-                 <span>计划脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>ml &nbsp;&nbsp;
126
+                  <span>目标脱水量: {{ prescription.prescription_water ? prescription.prescription_water : "" }} </span>L &nbsp;&nbsp;
127
+                  <span>处方脱水量: {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }} </span>L &nbsp;&nbsp;
116 128
                  <span>透析液流量: {{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} </span>ml/h
117 129
                 </div>
118 130
               </td>
@@ -183,7 +195,7 @@
183 195
             <tr>
184 196
               <td rowspan="2">时间</td>
185 197
               <td colspan="5">透析参数</td>
186
-              <td colspan="2">生命体征</td>
198
+              <td colspan="3">生命体征</td>
187 199
               <td colspan="2">治疗中病情变化</td>
188 200
             </tr>
189 201
             <tr>
@@ -196,7 +208,7 @@
196 208
               <td>HR<br/>bpm</td>
197 209
               <!-- <td>R<br/>bpm</td> -->
198 210
               <td>BP<br/>mmHg</td>
199
-              <!-- <td>SpO₂<br/>%</td> -->
211
+              <td>护士签名</td>
200 212
               <!-- <td>时间</td> -->
201 213
               <td>记录</td>
202 214
             </tr>
@@ -223,8 +235,19 @@
223 235
                     : "/"
224 236
                 }}
225 237
               </td>
226
-              <!-- <td>{{monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "/"}}</td> -->
227
-              <!-- <td></td> -->
238
+              <td>
239
+                <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
240
+                  {{
241
+                  getAdminUser(monitor.monitoring_nurse)
242
+                  }}
243
+                </span>
244
+                <span
245
+                  v-else
246
+                  style="display:flex;align-items:center;justify-content:space-around;height:36px;"
247
+                >
248
+                  <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
249
+                </span>
250
+              </td>
228 251
               <td>
229 252
                 {{ monitor.end }} {{ monitor.symptom }} &nbsp;
230 253
                 {{monitor.dispose}} &nbsp;{{ monitor.result }}
@@ -261,7 +284,7 @@
261 284
 
262 285
               <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
263 286
                 <td style="height:30px;line-height:30px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
264
-                <td style="height:30px;line-height:30px">
287
+                <td style="height:30px;line-height:30px;text-align: left;">
265 288
                   <span v-if="advice.parent_id > 0">---></span>
266 289
                   <span>{{ advice.advice_name }}</span>
267 290
                   <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
@@ -312,7 +335,7 @@
312 335
           <div style="display: flex;">
313 336
             <div style="flex: 1;"></div>
314 337
             <div style="flex: 1;margin-top: 20px;">
315
-              <div style="display: inline-block;margin-right: 20px;">
338
+              <div style="display: inline-block;margin-right: 120px;">
316 339
                 <span style="display: inline-block;">医生签名:</span>
317 340
                 <span style="display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
318 341
                   {{ getAdminUser(prescription.creater)}}
@@ -710,7 +733,7 @@ export default {
710 733
             this.patientInfo.birthday,
711 734
             "{y}-{m}-{d}"
712 735
           );
713
-          this.patientInfo.age = jsGetAge(this.patientInfo.birth, "-");
736
+          // this.patientInfo.age = jsGetAge(this.patientInfo.birth, "-");
714 737
           if (response.data.data.patientInfo.first_dialysis_date != 0) {
715 738
             this.patientInfo.first_dialysis_date = uParseTime(
716 739
               response.data.data.patientInfo.first_dialysis_date,
@@ -1037,12 +1060,12 @@ export default {
1037 1060
       }
1038 1061
       return "";
1039 1062
     },
1040
-    getAge: function(val) {
1063
+    getAge: function (val) {
1041 1064
       // if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1042 1065
       if (val.birthday != 0) {
1043
-        return jsGetAge(val.birth, "-");
1066
+        return jsGetAge(val.birth, '-')
1044 1067
       } else {
1045
-        return "";
1068
+        return ''
1046 1069
       }
1047 1070
       // } else {
1048 1071
       //   return jsGetAge(val.birth, '-')
@@ -1072,7 +1095,24 @@ export default {
1072 1095
         }
1073 1096
       }
1074 1097
       return displace_liqui_part_name;
1075
-    }
1098
+    },
1099
+    getNewAge (UUserCard) {
1100
+      if (UUserCard != null && UUserCard != '') {
1101
+        // 获取年龄
1102
+        var myDate = new Date()
1103
+        var month = myDate.getMonth() + 1
1104
+        var day = myDate.getDate()
1105
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
1106
+        if (
1107
+          UUserCard.substring(10, 12) < month ||
1108
+          (UUserCard.substring(10, 12) == month &&
1109
+            UUserCard.substring(12, 14) <= day)
1110
+        ) {
1111
+          age++
1112
+        }
1113
+        return age
1114
+      }
1115
+    },
1076 1116
   },
1077 1117
   watch: {
1078 1118
     "patientInfo.gender": function() {