|
@@ -21,7 +21,7 @@
|
21
|
21
|
|
22
|
22
|
<td width="50">年 龄:</td>
|
23
|
23
|
<td width="40">
|
24
|
|
- <div class="under-line">{{ getAge(patientInfo) }}</div>
|
|
24
|
+ <div class="under-line">{{ getNewAge(patientInfo.id_card_no) }}</div>
|
25
|
25
|
</td>
|
26
|
26
|
<td width="20"></td>
|
27
|
27
|
|
|
@@ -33,7 +33,7 @@
|
33
|
33
|
<td width="60">住院号:</td>
|
34
|
34
|
<td width="80">
|
35
|
35
|
<div class="under-line">
|
36
|
|
- {{ patientInfo.admission_number ? patientInfo.admission_number : "" }}
|
|
36
|
+ {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number : "" }}
|
37
|
37
|
</div>
|
38
|
38
|
</td>
|
39
|
39
|
<td width="20"></td>
|
|
@@ -1149,6 +1149,19 @@ export default {
|
1149
|
1149
|
}
|
1150
|
1150
|
},
|
1151
|
1151
|
methods: {
|
|
1152
|
+ getNewAge(UUserCard) {
|
|
1153
|
+ if (UUserCard != null && UUserCard != '') {
|
|
1154
|
+ // 获取年龄
|
|
1155
|
+ var myDate = new Date()
|
|
1156
|
+ var month = myDate.getMonth() + 1
|
|
1157
|
+ var day = myDate.getDate()
|
|
1158
|
+ var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
|
|
1159
|
+ if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
|
|
1160
|
+ age++
|
|
1161
|
+ }
|
|
1162
|
+ return age
|
|
1163
|
+ }
|
|
1164
|
+ },
|
1152
|
1165
|
getHemorrhage(hemorrhage){
|
1153
|
1166
|
if(hemorrhage.indexOf(',') == -1){
|
1154
|
1167
|
let str = hemorrhage
|