From bca62cb3de32033bb2d249b77131a8f68bb418ee Mon Sep 17 00:00:00 2001 From: liyuetong Date: Tue, 25 May 2021 17:12:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E8=B4=B9=E6=9C=9F=E9=97=B4=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E4=B8=80=E6=AC=A1=E6=80=A7=E4=BA=A4=E6=B8=85=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=BA=A4=E8=B4=B9=E6=9C=9F=E9=97=B4=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=B6=85=E8=BF=87=E4=BF=9D=E9=99=A9=E6=9C=9F=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 51 +++++++++++++--------- 1 file changed, 30 insertions(+), 21 deletions(-) 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 } }