mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 15:06:45 +08:00
提交福宝宝产品校验职业等级和险种关系
This commit is contained in:
@@ -514,7 +514,7 @@ export default {
|
||||
this.chooseProducts.forEach(item => {
|
||||
let trialInfo = {}
|
||||
item.calFactorLst.forEach(factor => {
|
||||
//type 类型 0为picker 1计步器 2
|
||||
//type 类型 0为picker 1计步器 2职业等级
|
||||
if (factor.type == 0) {
|
||||
if (factor.hasFlag == '1') {
|
||||
trialInfo[factor.code] = factor[factor.code]
|
||||
|
||||
@@ -114,6 +114,11 @@ export default {
|
||||
if (riskRules.lifeGradeLimit(resultData, this)) {
|
||||
return
|
||||
}
|
||||
if (resultData.productCode == 'GFRS_M0006') {
|
||||
if (riskRules.lifeGradeLimitForBaby(resultData, this)) {
|
||||
return
|
||||
}
|
||||
}
|
||||
/********end 主险选择限制 end******/
|
||||
|
||||
//保存附加险
|
||||
|
||||
@@ -10,8 +10,8 @@ export default {
|
||||
tips = '被保人年龄不适合此款险种,请选择其他险种!'
|
||||
}
|
||||
let minAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.minAge
|
||||
let maxAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.maxAge
|
||||
;[age, minAge, maxAge] = [Number(age), Number(minAge), Number(maxAge)]
|
||||
let maxAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.maxAge;
|
||||
[age, minAge, maxAge] = [Number(age), Number(minAge), Number(maxAge)]
|
||||
if (age > maxAge || age < minAge) {
|
||||
vm.$toast(tips)
|
||||
return true
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
let healthGrade = resultData.productInsuredDTO.healthGrade
|
||||
if (healthGrade == 0) return false
|
||||
if (Number(cuttentHealthGrade) > Number(healthGrade)) {
|
||||
vm.$toast('健康等级不适合此款险种,请选择其他险种!')
|
||||
vm.$toast('健康职业等级不适合此款险种,请选择其他险种!')
|
||||
return true
|
||||
}
|
||||
return false
|
||||
@@ -46,7 +46,18 @@ export default {
|
||||
let lifeGrade = resultData.productInsuredDTO.lifeGrade
|
||||
if (lifeGrade == 0) return false
|
||||
if (Number(cuttentLifeGrade) > Number(lifeGrade)) {
|
||||
vm.$toast('寿险等级不适合此款险种,请选择其他险种!')
|
||||
vm.$toast('寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
// 福宝宝产品寿险等级对主险影响
|
||||
lifeGradeLimitForBaby(resultData, vm) {
|
||||
let cuttentLifeGrade = this.getSaleInsuredInfo().lifeGrade
|
||||
let lifeGrade = resultData.productInsuredDTO.lifeGrade
|
||||
if (lifeGrade == 0) return false
|
||||
if (Number(cuttentLifeGrade) > Number(lifeGrade)) {
|
||||
vm.$toast('投保人寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user