保费试算页面变更保额或者保费重新定义当前数据

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-07-14 17:22:37 +08:00
parent 8ea217567c
commit 91cd83e6bf

View File

@@ -2404,10 +2404,24 @@ export default {
}, },
//保额份数变化 //保额份数变化
stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) { stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
let currentEle = let currentEle = ''
localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0' let params = this.getParams()
? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex] if(localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'){
: this.chooseProducts[productIndex].calFactorLst[calFactorIndex] // params[productIndex].payEndYear == '1000' 交费期间为一次性交清
this.chooseProducts[productIndex].productTrialYearDTOS.forEach(item=>{
if(params.trialInfos[productIndex].payEndYear == '1000') {
if(item.yearWay == '一次性交清'){
currentEle = item
}
} else {
if(item.yearWay == params.trialInfos[productIndex].payEndYear){
currentEle = item
}
}
})
} else {
currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
}
//改动原因:孝心保产品有对年龄的特殊要求 //改动原因:孝心保产品有对年龄的特殊要求
//添加判断,是否是孝心保产品 //添加判断,是否是孝心保产品
let showHint = this.chooseProducts[productIndex].hint let showHint = this.chooseProducts[productIndex].hint
@@ -2449,7 +2463,8 @@ export default {
} }
} }
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验 //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
} else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044' }
else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') { || productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
console.log('defalutValue==', defalutValue) console.log('defalutValue==', defalutValue)
console.log("currentEle['amt']==", currentEle['amt']) console.log("currentEle['amt']==", currentEle['amt'])
@@ -2492,7 +2507,8 @@ export default {
} }
} }
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验 //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
} else if (productCode == 'GFRS_M0040') { }
else if (productCode == 'GFRS_M0040') {
// 惠企保保额限制 // 惠企保保额限制
//被保险人年龄如果在41-60区间 //被保险人年龄如果在41-60区间
if (this.saleInsuredPersonInfo.insuredAge >= 41) { if (this.saleInsuredPersonInfo.insuredAge >= 41) {
@@ -2529,7 +2545,8 @@ export default {
} }
} }
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验 //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
} else if (productCode == 'GFRS_M0046') { }
else if (productCode == 'GFRS_M0046') {
//被保险人年龄如果在50-65区间 //被保险人年龄如果在50-65区间
if(this.branchTypeVal == 'Z'){ //中介渠道规则 if(this.branchTypeVal == 'Z'){ //中介渠道规则
if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) { if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) {
@@ -2604,7 +2621,8 @@ export default {
} }
} }
// 国富人寿富桂金生养老年金保险GFRS_M0053中介渠道鑫享金生养老年金保险GFRS_M0061 // 国富人寿富桂金生养老年金保险GFRS_M0053中介渠道鑫享金生养老年金保险GFRS_M0061
} else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') { }
else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
if (Number(defalutValue) < Number(min)) { if (Number(defalutValue) < Number(min)) {
if (riskFactor.yearWay == "一次性交清") { if (riskFactor.yearWay == "一次性交清") {
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`) this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
@@ -2618,7 +2636,8 @@ export default {
currentEle['amt'] = Number(defalutValue) * Number(riskFactor.moneyUnit) currentEle['amt'] = Number(defalutValue) * Number(riskFactor.moneyUnit)
this.getTrial() this.getTrial()
} }
} 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)) { if (Number(defalutValue) < Number(min)) {
if (riskFactor.yearWay == "一次性交清") { if (riskFactor.yearWay == "一次性交清") {
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`) this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
@@ -2639,7 +2658,8 @@ export default {
} }
} }
//其他产品按照原先的逻辑判断 //其他产品按照原先的逻辑判断
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') { }
else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') {
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) { if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
this.$toast('投保本险种最低基本保险金额为10000元超过最低基本保险金额为1000元整数倍') this.$toast('投保本险种最低基本保险金额为10000元超过最低基本保险金额为1000元整数倍')
this.nextStepFlag = true this.nextStepFlag = true
@@ -2654,7 +2674,8 @@ export default {
this.getTrial() this.getTrial()
} }
} }
} else { }
else {
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) { if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
this.$toast(showHint) this.$toast(showHint)
this.nextStepFlag = true this.nextStepFlag = true