From 4c4bc41da13d2827189dc5e80b04e48890583452 Mon Sep 17 00:00:00 2001 From: "li.jieyu@ebiz-digits.com" Date: Fri, 18 Mar 2022 22:30:05 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=97=A0=E5=BF=A7=E9=87=8D=E7=96=BE?= =?UTF-8?q?=E8=B6=85=E8=BF=87=E6=9C=80=E4=BD=8E=E5=9F=BA=E6=9C=AC=E4=BF=9D?= =?UTF-8?q?=E9=99=A9=E9=87=91=E9=A2=9D=E4=B8=BA50000=E5=85=83=E6=95=B4?= =?UTF-8?q?=E6=95=B0=E5=80=8D=EF=BC=8C=E7=B3=BB=E7=BB=9F=E6=98=AF=E6=9C=89?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BA=86=EF=BC=8C=E4=BD=86=E6=98=AF=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=BF=9B=E8=A1=8C=E9=98=BB=E6=96=AD"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 61aa280f --- src/views/ebiz/common/CalculatePremium.vue | 41 +--------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 8fe46ed50..d67298e49 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -1021,29 +1021,7 @@ export default { }) } } - let riskFactor,riskFactorIndex - this.chooseProducts[0].calFactorLst.forEach((item,index) => { - if(item.code == 'inputAmt'){ - riskFactor = item - riskFactorIndex = index - } - }) - - //重新调用保额变化后的规则TODO - let isContinue = this.stepperChange( - riskFactor.displayAmount, - productIndex, - riskFactorIndex, - riskFactor.minAmt || riskFactor.minPrem, - riskFactor.maxAmt || riskFactor.maxPrem, - riskFactor - ) - - console.log(isContinue,'isContinue') - if(isContinue != false){ - console.log("验证责任") - this.valiAndSend(dutyItem, productIndex) - } + this.valiAndSend(dutyItem, productIndex) }, valiAndSend(dutyItem, productIndex) { //验证责任 @@ -2141,13 +2119,11 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) { this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2160,13 +2136,11 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) { this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2183,13 +2157,11 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) { this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2201,13 +2173,11 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) { this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2225,13 +2195,11 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) { this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2244,12 +2212,10 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) { this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2265,13 +2231,11 @@ export default { if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) { this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -2281,16 +2245,13 @@ export default { //年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。 } else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 55) { //使用rules规则里的第一条控制保额份数 - // debugger if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) { this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。') this.nextStepFlag = true - return false } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)