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)