|
@@ -46,7 +46,7 @@
|
46
|
46
|
<div class="inline_block" style="margin-left: 10px">
|
47
|
47
|
年龄:
|
48
|
48
|
<div class="under_line" style="width: 30px; text-align: center">
|
49
|
|
- {{ getAge(patientInfo) }}
|
|
49
|
+ {{ getAge(patientInfo) - getoldAge()}}
|
50
|
50
|
</div>
|
51
|
51
|
岁
|
52
|
52
|
</div>
|
|
@@ -2694,6 +2694,17 @@ export default {
|
2694
|
2694
|
};
|
2695
|
2695
|
},
|
2696
|
2696
|
methods: {
|
|
2697
|
+ // 获取当前年份,用于年龄计算
|
|
2698
|
+ getoldAge(){
|
|
2699
|
+ let date = new Date()
|
|
2700
|
+ let year = date.getFullYear()
|
|
2701
|
+ let year_d = year-this.xtdate.split('-')[0]
|
|
2702
|
+ return year_d
|
|
2703
|
+ },
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
2697
|
2708
|
checkData() {
|
2698
|
2709
|
if (this.receiverTreatmentAccess.way == 0) {
|
2699
|
2710
|
this.$message.error("入科方式未填");
|