【中介渠道鑫享年年终身寿险(B款)】 被保人点击下一步,长期校验

This commit is contained in:
li.yuetong
2022-08-04 09:32:33 +08:00
parent 8b69614e92
commit b5a1756755

View File

@@ -1503,7 +1503,7 @@ export default {
}
//年龄在46-65周岁之间
} else if (age >= 46 && age <= 65) {
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 20 || this.userInfo.effectiveDateType == false) {
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 20 && this.userInfo.effectiveDateType == false) {
this.userInfo.certiexpiredate = ''
this.$refs.certiexpiredate.date = ''
return this.$toast('46周岁~65周岁的证件有效期为20年或长期')