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

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-04-10 16:52:46 +08:00
parent 9a2845160c
commit ea8eb2990a

View File

@@ -2080,7 +2080,7 @@ export default {
// 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)
//如果证件类型是身份证或户口本
if (this.insuredInfo.idType == '1') {