投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当是投保人的枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示投保人和被保人关系不是本人,证件号码不可一致,请修改。

This commit is contained in:
liyuetong
2021-08-03 09:26:19 +08:00
parent 1d9ba73cd8
commit 574cb4bf0c
2 changed files with 12 additions and 8 deletions

View File

@@ -1616,10 +1616,12 @@ export default {
return this.$toast('当前投保人是被保险人的父母,投保人年龄需大于被保险人年龄')
}
}
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
if(this.userInfo.idNo == this.insuredInfo.idNo && this.userInfo.idType == this.insuredInfo.idType){
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
if (this.userInfo.relationToInsured != '1') {
//投被保人关系不是本人
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
if(this.userInfo.idNo == this.insuredInfo.idNo && this.userInfo.idType == this.insuredInfo.idType){
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
}
}
this.infoUpdate()

View File

@@ -1291,10 +1291,12 @@ export default {
// })
}
}
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
if(this.userInfo.idNo == JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo && this.userInfo.idType == JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType){
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
if (this.userInfo.relationToAppnt != '1') {
//投被保人关系不是本人
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
if(this.userInfo.idNo == JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo && this.userInfo.idType == JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType){
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
}
}
// if (this.userInfo.marriage == '1') {