mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 10:26:44 +08:00
投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当是投保人的枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示投保人和被保人关系不是本人,证件号码不可一致,请修改。
This commit is contained in:
@@ -1393,7 +1393,7 @@ export default {
|
||||
}
|
||||
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
console.log('计算年龄', age)
|
||||
console.log('计算年龄', age)
|
||||
// return
|
||||
// 如果是未成年人
|
||||
if (age < 18) {
|
||||
@@ -1586,7 +1586,7 @@ export default {
|
||||
// return this.$toast('投保人必须是具有民事行为能力且有固定职业和收入的自然人,请确定')
|
||||
// }
|
||||
|
||||
let insuredInfoAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
let insuredInfoAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0049') {
|
||||
//幼儿园:3岁≤被保险人≤7岁
|
||||
if(insuredInfoAge<3||insuredInfoAge>7){
|
||||
@@ -1603,6 +1603,25 @@ export default {
|
||||
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()
|
||||
// console.log('success')
|
||||
} else {
|
||||
|
||||
@@ -1248,7 +1248,7 @@ export default {
|
||||
}
|
||||
// 计算年龄
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
|
||||
|
||||
// 被保险人人年龄≤13岁,学历不可以为研究生、本科、高中、大专
|
||||
// if (age < 14 && this.userInfo.degree - 0 <= 5) {
|
||||
// return this.$toast('亲,请确认被保险人学历哦~')
|
||||
@@ -1268,25 +1268,34 @@ export default {
|
||||
}
|
||||
} else if (this.userInfo.relationToAppnt == '4') {
|
||||
//投被保人关系是子女
|
||||
// 被保险人的出生日期大于投保人的出生日期(即被保险人年龄小于投保人年龄)点击【下一步】提示“当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄。
|
||||
if (age > JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).age) {
|
||||
await this.$dialog.confirm({
|
||||
title: '提示',
|
||||
message: '亲,请确认被保险人与投保人关系哦~',
|
||||
confirmButtonText: '继续填写',
|
||||
cancelButtonText: '返回修改',
|
||||
})
|
||||
return this.$toast('当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄')
|
||||
// await this.$dialog.confirm({
|
||||
// title: '提示',
|
||||
// message: '亲,请确认被保险人与投保人关系哦~',
|
||||
// confirmButtonText: '继续填写',
|
||||
// cancelButtonText: '返回修改',
|
||||
// })
|
||||
}
|
||||
} else if (this.userInfo.relationToAppnt == '3') {
|
||||
//投被保人关系是父母
|
||||
// 被保险人的出生日期小于投保人的出生日期(即被保险人年龄大于投保人年龄)点击【下一步】提示“当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄。
|
||||
if (age < JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).age) {
|
||||
await this.$dialog.confirm({
|
||||
title: '提示',
|
||||
message: '亲,请确认被保险人与投保人关系哦~',
|
||||
confirmButtonText: '继续填写',
|
||||
cancelButtonText: '返回修改',
|
||||
})
|
||||
return this.$toast('当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄')
|
||||
// await this.$dialog.confirm({
|
||||
// title: '提示',
|
||||
// message: '亲,请确认被保险人与投保人关系哦~',
|
||||
// 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.sex == '0' && age < 22) {
|
||||
|
||||
Reference in New Issue
Block a user