|
@@ -2698,8 +2698,7 @@ export default {
|
2698
|
2698
|
getoldAge(){
|
2699
|
2699
|
let date = new Date()
|
2700
|
2700
|
let year = date.getFullYear()
|
2701
|
|
- // let year = 2034
|
2702
|
|
- let year_d = year-this.xtdate.split('-')[0]
|
|
2701
|
+ let year_d = year-this.patientInfo.birth.split('-')[0]
|
2703
|
2702
|
let year_m = this.xtdate.split('-')[1]
|
2704
|
2703
|
let birth_m = this.patientInfo.birth.split('-')[1]
|
2705
|
2704
|
let year_date = this.xtdate.split('-')[2]
|
|
@@ -2707,6 +2706,7 @@ export default {
|
2707
|
2706
|
// console.log(year,'今年年月')
|
2708
|
2707
|
// console.log(this.xtdate.split('-'),'病人就诊年月')
|
2709
|
2708
|
// console.log(this.patientInfo.birth,'病人生日')
|
|
2709
|
+ // console.log(year_d,'year_d')
|
2710
|
2710
|
if(year_m < birth_m){
|
2711
|
2711
|
return year_d - 1
|
2712
|
2712
|
}else if(year_m = birth_m){
|