diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index dbf0328e4..1b04c0986 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -75,7 +75,9 @@
{{ riskFactor.name }}
- {{ dutyItem.dutyName }}({{ dutyItem.suffix }}) + {{ dutyItem.dutyName }}({{ dutyItem.suffix }}) {{ dutyItem.dutyName }}
{ if (item.productCode == 'GFRS_A0008') { item.calFactorLst.map(item2 => { @@ -837,7 +838,7 @@ export default { if (currentEle.hasFlag) { currentEle[name + 'Flag'] = value.flag } - this.hiddenPayEndYear(currentEle) + // this.hiddenPayEndYear(currentEle) //特殊规则:设置豁免险 this.getTrial() } @@ -998,14 +999,14 @@ export default { }, /********start 通用规则、特殊规则处理 start******/ //通用规则1:交费方式为一次交情,无交费期限 - hiddenPayEndYear(currentEle) { - if (currentEle.code == 'payIntv') { - if (this.chooseProducts[0].productCode === 'GFRS_M0015' && this.chooseProducts[this.productIndex].productCode === 'GFRS_A0006') { - return - } - this.chooseProducts[this.productIndex]['isHidden'] = currentEle.payIntv == '0' ? true : false - } - }, + // hiddenPayEndYear(currentEle) { + // if (currentEle.code == 'payIntv') { + // if (this.chooseProducts[0].productCode === 'GFRS_M0015' && this.chooseProducts[this.productIndex].productCode === 'GFRS_A0006') { + // return + // } + // this.chooseProducts[this.productIndex]['isHidden'] = currentEle.payIntv == '0' ? true : false + // } + // }, //通用规则2:交费期限不能超过保险期间 payExceedInsured(currentEle, currentFactor, currentVale) { let payEndYearVal, insuYearVal @@ -1017,9 +1018,14 @@ export default { insuYearVal = Number(currentVale) payEndYearVal = this.getPayEndYearOrInsuYear('payEndYear', currentFactor) } - if (payEndYearVal > insuYearVal) { - this.$toast('交费期间不能超过保险期间') - return true + //交费期限为一次性交清时,val为1000,直接跳过此规则 + if (payEndYearVal != 1000) { + if (payEndYearVal > insuYearVal) { + this.$toast('交费期间不能超过保险期间') + return true + } else { + return false + } } else { return false } @@ -1546,7 +1552,7 @@ export default { } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount - this.$toast('56周岁-60周岁最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。') + this.$toast('56周岁-60周岁最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true } else { this.mainRiskInfluenceAddRisk() @@ -1563,7 +1569,7 @@ export default { } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount - this.$toast('0周岁-55周岁最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。') + this.$toast('0周岁-55周岁最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true } else { this.mainRiskInfluenceAddRisk() @@ -1573,7 +1579,7 @@ export default { } } //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验 - }else if (productCode == 'GFRS_M0040') { + } else if (productCode == 'GFRS_M0040') { // 惠企保保额限制 //被保险人年龄如果在41-60区间 if (this.saleInsuredPersonInfo.age >= 41) { @@ -1610,7 +1616,7 @@ export default { } } //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验 - } else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') { + } else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') { if (Number(defalutValue) < Number(min)) { this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`) this.nextStepFlag = true @@ -1746,8 +1752,11 @@ export default { riskItem['amt'] = this.trialList[index].amt } else { //国富人寿桂企保重大疾病保险产品专写 - if (this.trialList[index].productCode == 'GFRS_M0024' || this.trialList[index].productCode == 'GFRS_M0040' - || this.trialList[index].productCode == 'GFRS_M0044') { + if ( + this.trialList[index].productCode == 'GFRS_M0024' || + this.trialList[index].productCode == 'GFRS_M0040' || + this.trialList[index].productCode == 'GFRS_M0044' + ) { riskItem['dutyLst'] = this.trialInfos[index].duty } }