投保年龄计算按照生效日来算

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-04-10 16:52:46 +08:00
parent 79a8edb1b1
commit 5235d78ada

View File

@@ -2080,7 +2080,7 @@ export default {
// return this.$toast('户口本的证件号码长度应等于18位') // return this.$toast('户口本的证件号码长度应等于18位')
// } // }
} }
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date()) let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date(this.cvaliDate))
console.log('计算年龄', insuredAge) console.log('计算年龄', insuredAge)
//如果证件类型是身份证或户口本 //如果证件类型是身份证或户口本
if (this.insuredInfo.idType == '1') { if (this.insuredInfo.idType == '1') {