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