[FIX]富娃娃两全保险(万能险)-投保页面-保费填写校验

This commit is contained in:
yuweiqi
2020-01-18 19:24:01 +08:00
parent f40e583d5a
commit 12f6739cab

View File

@@ -102,7 +102,7 @@
</div>
</div>
</div>
<!-- 为富娃娃两全保险万能型专写 -->
<div v-if="item.isRemit == 1 && isTrial !== '' && item.isMainRisk == 0">
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
<div class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
@@ -701,6 +701,7 @@ export default {
path: '/common/selectedProduct'
}
})
localStorage.trialList = ''
} else {
this.chooseProducts.splice(index, 1)
}
@@ -839,13 +840,10 @@ export default {
console.log(defalutValue, productIndex, calFactorIndex, min, max)
console.log(this.saleInsuredPersonInfo.age)
console.log(riskFactor)
console.log(JSON.parse(localStorage.trialList)[0].productCode)
// debugger
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
let currentEle = localStorage.isTrial !== '' && this.chooseProducts[productIndex].isMainRisk == '0' ? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex] : this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
//改动原因:孝心保产品有对年龄的特殊要求
//添加判断,是否是孝心保产品
if (JSON.parse(localStorage.trialList)[0].productCode == 'GFRS_M0014') {
if (localStorage.trialList != '' && JSON.parse(localStorage.trialList)[0].productCode == 'GFRS_M0014') {
//被保人年龄如果在50-65区间
if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
//使用rules规则里的第二条控制保额份数
@@ -885,16 +883,15 @@ export default {
}
}
}
//isTrial为0 ---暂时为富娃娃两全保险(万能型专配输入保费校验
//isTrial为0 ---暂时为富娃娃两全保险(万能型专配 输入保费校验
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
if (Number(this.defalutAmt) < Number(min) || Number(this.defalutAmt) > Number(max)) {
// this.$toast(localStorage.hint)
this.$toast(4444444)
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}`)
this.nextStepFlag = true
} else {
if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
this.$toast(localStorage.hint)
this.$toast(`超过最低保费部分金额需为1000元整数倍`)
this.nextStepFlag = true
} else {
this.mainRiskInfluenceAddRisk()