mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 05:06:43 +08:00
[FIX] 【生产-电投】修复八桂附加险职业等级校验异常问题
This commit is contained in:
@@ -76,30 +76,30 @@ export default {
|
|||||||
localStorage.isAutoPay = localStorage.isAutoPay == '0' ? '0' : resultData.isAutoPay //自动垫交
|
localStorage.isAutoPay = localStorage.isAutoPay == '0' ? '0' : resultData.isAutoPay //自动垫交
|
||||||
localStorage.isRenew = localStorage.isRenew == '0' ? '0' : resultData.isRenew //自动续保
|
localStorage.isRenew = localStorage.isRenew == '0' ? '0' : resultData.isRenew //自动续保
|
||||||
localStorage.isForceRenew = localStorage.isForceRenew == '0' ? '0' : resultData.isForceRenew //自动续保默认是否选中 0-是 1-否
|
localStorage.isForceRenew = localStorage.isForceRenew == '0' ? '0' : resultData.isForceRenew //自动续保默认是否选中 0-是 1-否
|
||||||
if(resultData.productTrialInfoDTO.ruleExpression){
|
if (resultData.productTrialInfoDTO.ruleExpression) {
|
||||||
let ruleExpression = localStorage.ruleExpression ? JSON.parse(localStorage.ruleExpression) : {};
|
let ruleExpression = localStorage.ruleExpression ? JSON.parse(localStorage.ruleExpression) : {}
|
||||||
ruleExpression[resultData.productCode] = resultData.productTrialInfoDTO.ruleExpression
|
ruleExpression[resultData.productCode] = resultData.productTrialInfoDTO.ruleExpression
|
||||||
localStorage.ruleExpression = JSON.stringify(ruleExpression)
|
localStorage.ruleExpression = JSON.stringify(ruleExpression)
|
||||||
|
|
||||||
for(let item of ruleExpression[resultData.productCode]){
|
for (let item of ruleExpression[resultData.productCode]) {
|
||||||
let config = JSON.parse(item.ruleExpression)
|
let config = JSON.parse(item.ruleExpression)
|
||||||
switch (config.eventType){
|
switch (config.eventType) {
|
||||||
case 'loadFormat':
|
case 'loadFormat':
|
||||||
let initFn = new Function(...config.funPar, config.funBody.join(''))
|
let initFn = new Function(...config.funPar, config.funBody.join(''))
|
||||||
let str = initFn(resultData)
|
let str = initFn(resultData)
|
||||||
if(str){
|
if (str) {
|
||||||
return this.$toast(str)
|
return this.$toast(str)
|
||||||
}
|
}
|
||||||
break;
|
break
|
||||||
case 'checkMainRisk':
|
case 'checkMainRisk':
|
||||||
let checkMainRiskFn = new Function(...config.funPar, config.funBody.join(''))
|
let checkMainRiskFn = new Function(...config.funPar, config.funBody.join(''))
|
||||||
let checkMainRiskStr = checkMainRiskFn()
|
let checkMainRiskStr = checkMainRiskFn()
|
||||||
if(checkMainRiskStr){
|
if (checkMainRiskStr) {
|
||||||
return this.$toast(checkMainRiskStr)
|
return this.$toast(checkMainRiskStr)
|
||||||
}
|
}
|
||||||
break;
|
break
|
||||||
default:
|
default:
|
||||||
break;
|
break
|
||||||
}
|
}
|
||||||
// if(config.eventType == 'loadFormat'){
|
// if(config.eventType == 'loadFormat'){
|
||||||
// let initFn = new Function(...config.funPar, config.funBody.join(''))
|
// let initFn = new Function(...config.funPar, config.funBody.join(''))
|
||||||
@@ -158,7 +158,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/********start 附加险选择限制 start******/
|
/********start 附加险选择限制 start******/
|
||||||
//豁免险与其他附加险年龄险种
|
//豁免险与其他附加险年龄险种
|
||||||
if (resultData.productTrialInfoDTO.isRemit == '0' && resultData.productTrialInfoDTO.remitType == '0') {
|
if (resultData.productTrialInfoDTO.isRemit == '0' && resultData.productTrialInfoDTO.remitType == '0') {
|
||||||
@@ -194,6 +194,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//校验主合同的被保险人寿险职业等级
|
//校验主合同的被保险人寿险职业等级
|
||||||
|
console.log(1111, resultData)
|
||||||
if (riskRules.lifeGradeLimit(resultData, this)) {
|
if (riskRules.lifeGradeLimit(resultData, this)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,9 +43,12 @@ export default {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
//寿险等级对附加险的影响
|
//寿险等级对附加险的影响 标识
|
||||||
lifeGradeLimit(resultData, vm) {
|
lifeGradeLimit(resultData, vm) {
|
||||||
let cuttentLifeGrade = this.getSaleInsuredPersonInfo().lifeGrade
|
let cuttentLifeGrade
|
||||||
|
if (resultData.productTrialInfoDTO.isRemit === '0' && resultData.productTrialInfoDTO.remitType === '0')
|
||||||
|
cuttentLifeGrade = this.getSaleInsuredInfo().lifeGrade
|
||||||
|
else cuttentLifeGrade = this.getSaleInsuredPersonInfo().lifeGrade
|
||||||
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user