mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 20:12:53 +08:00
投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当是投保人的枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示投保人和被保人关系不是本人,证件号码不可一致,请修改。
This commit is contained in:
@@ -1603,6 +1603,25 @@ export default {
|
|||||||
return this.$toast('被保险人年龄应为15岁-40岁,请重新选择。')
|
return this.$toast('被保险人年龄应为15岁-40岁,请重新选择。')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.userInfo.relationToInsured == '4') {
|
||||||
|
//投被保人关系是子女
|
||||||
|
// 被保险人的出生日期大于投保人的出生日期(即被保险人年龄小于投保人年龄)点击【下一步】提示“当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄。
|
||||||
|
if (age > insuredAge) {
|
||||||
|
return this.$toast('当前投保人是被保险人的子女,投保人年龄需小于被保险人年龄')
|
||||||
|
}
|
||||||
|
} else if (this.userInfo.relationToInsured == '3') {
|
||||||
|
//投被保人关系是父母
|
||||||
|
// 被保险人的出生日期小于投保人的出生日期(即被保险人年龄大于投保人年龄)点击【下一步】提示“当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄。
|
||||||
|
if (age < insuredAge) {
|
||||||
|
return this.$toast('当前投保人是被保险人的父母,投保人年龄需大于被保险人年龄')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
|
||||||
|
if(this.userInfo.idNo == this.insuredInfo.idNo && this.userInfo.idType == this.insuredInfo.idType){
|
||||||
|
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
|
||||||
|
}
|
||||||
|
|
||||||
this.infoUpdate()
|
this.infoUpdate()
|
||||||
// console.log('success')
|
// console.log('success')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1268,26 +1268,35 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if (this.userInfo.relationToAppnt == '4') {
|
} else if (this.userInfo.relationToAppnt == '4') {
|
||||||
//投被保人关系是子女
|
//投被保人关系是子女
|
||||||
|
// 被保险人的出生日期大于投保人的出生日期(即被保险人年龄小于投保人年龄)点击【下一步】提示“当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄。
|
||||||
if (age > JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).age) {
|
if (age > JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).age) {
|
||||||
await this.$dialog.confirm({
|
return this.$toast('当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄')
|
||||||
title: '提示',
|
// await this.$dialog.confirm({
|
||||||
message: '亲,请确认被保险人与投保人关系哦~',
|
// title: '提示',
|
||||||
confirmButtonText: '继续填写',
|
// message: '亲,请确认被保险人与投保人关系哦~',
|
||||||
cancelButtonText: '返回修改',
|
// confirmButtonText: '继续填写',
|
||||||
})
|
// cancelButtonText: '返回修改',
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
} else if (this.userInfo.relationToAppnt == '3') {
|
} else if (this.userInfo.relationToAppnt == '3') {
|
||||||
//投被保人关系是父母
|
//投被保人关系是父母
|
||||||
|
// 被保险人的出生日期小于投保人的出生日期(即被保险人年龄大于投保人年龄)点击【下一步】提示“当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄。
|
||||||
if (age < JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).age) {
|
if (age < JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).age) {
|
||||||
await this.$dialog.confirm({
|
return this.$toast('当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄')
|
||||||
title: '提示',
|
// await this.$dialog.confirm({
|
||||||
message: '亲,请确认被保险人与投保人关系哦~',
|
// title: '提示',
|
||||||
confirmButtonText: '继续填写',
|
// message: '亲,请确认被保险人与投保人关系哦~',
|
||||||
cancelButtonText: '返回修改',
|
// confirmButtonText: '继续填写',
|
||||||
})
|
// cancelButtonText: '返回修改',
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
|
||||||
|
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') {
|
// if (this.userInfo.marriage == '1') {
|
||||||
// if (this.userInfo.sex == '0' && age < 22) {
|
// if (this.userInfo.sex == '0' && age < 22) {
|
||||||
// return this.$toast('年龄与婚姻状况不符')
|
// return this.$toast('年龄与婚姻状况不符')
|
||||||
|
|||||||
Reference in New Issue
Block a user