mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 18:36:43 +08:00
保费试算页面变更保额或者保费重新定义当前数据
This commit is contained in:
@@ -2404,25 +2404,161 @@ 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') {
|
||||||
let showHint = this.chooseProducts[productIndex].hint
|
if(item.yearWay == '一次性交清'){
|
||||||
let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode
|
currentEle = item
|
||||||
if (productCode == 'GFRS_M0014') {
|
}
|
||||||
//被保险人年龄如果在50-65区间
|
} else {
|
||||||
if (this.saleInsuredPersonInfo.insuredAge >= 50 && this.saleInsuredPersonInfo.insuredAge <= 65) {
|
if(item.yearWay == params.trialInfos[productIndex].payEndYear){
|
||||||
//使用rules规则里的第二条控制保额份数
|
currentEle = item
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||||
|
}
|
||||||
|
//改动原因:孝心保产品有对年龄的特殊要求
|
||||||
|
//添加判断,是否是孝心保产品
|
||||||
|
let showHint = this.chooseProducts[productIndex].hint
|
||||||
|
let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode
|
||||||
|
if (productCode == 'GFRS_M0014') {
|
||||||
|
//被保险人年龄如果在50-65区间
|
||||||
|
if (this.saleInsuredPersonInfo.insuredAge >= 50 && this.saleInsuredPersonInfo.insuredAge <= 65) {
|
||||||
|
//使用rules规则里的第二条控制保额份数
|
||||||
|
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||||
|
this.$toast(showHint)
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} else {
|
||||||
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
|
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||||
this.$toast(showHint)
|
this.$toast(showHint)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//被保险人年龄如果在66-75之间
|
||||||
|
} else if (this.saleInsuredPersonInfo.insuredAge >= 66 && this.saleInsuredPersonInfo.insuredAge <= 75) {
|
||||||
|
//使用rules规则里的第一条控制保额份数
|
||||||
|
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||||
|
this.$toast(showHint)
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} else {
|
||||||
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
|
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||||
|
this.$toast(showHint)
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||||
|
}
|
||||||
|
else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|
||||||
|
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
|
||||||
|
console.log('defalutValue==', defalutValue)
|
||||||
|
console.log("currentEle['amt']==", currentEle['amt'])
|
||||||
|
console.log('riskFactor.rules', riskFactor.rules)
|
||||||
|
console.log('this.saleInsuredPersonInfo.insuredAge ', this.saleInsuredPersonInfo.insuredAge)
|
||||||
|
//被保险人年龄如果在50-65区间
|
||||||
|
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||||
|
//使用rules规则里的第二条控制保额份数
|
||||||
|
// 年龄在56周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
||||||
|
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
|
||||||
|
} 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
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//年龄在0-55周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
||||||
|
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 55) {
|
||||||
|
//使用rules规则里的第一条控制保额份数
|
||||||
|
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
|
||||||
|
} 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) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||||
|
}
|
||||||
|
else if (productCode == 'GFRS_M0040') {
|
||||||
|
// 惠企保保额限制
|
||||||
|
//被保险人年龄如果在41-60区间
|
||||||
|
if (this.saleInsuredPersonInfo.insuredAge >= 41) {
|
||||||
|
//使用rules规则里的第二条控制保额份数
|
||||||
|
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||||
|
this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。')
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} 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
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 40) {
|
||||||
|
//使用rules规则里的第一条控制保额份数
|
||||||
|
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||||
|
this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。')
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} 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
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||||
|
}
|
||||||
|
else if (productCode == 'GFRS_M0046') {
|
||||||
|
//被保险人年龄如果在50-65区间
|
||||||
|
if(this.branchTypeVal == 'Z'){ //中介渠道规则
|
||||||
|
if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||||
|
//使用rules规则里的第二条控制保额份数
|
||||||
|
// 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
||||||
|
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
|
||||||
} else {
|
} else {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||||
this.$toast(showHint)
|
this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
@@ -2430,16 +2566,15 @@ export default {
|
|||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//被保险人年龄如果在66-75之间
|
//年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
||||||
} else if (this.saleInsuredPersonInfo.insuredAge >= 66 && this.saleInsuredPersonInfo.insuredAge <= 75) {
|
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 50) {
|
||||||
//使用rules规则里的第一条控制保额份数
|
//使用rules规则里的第一条控制保额份数
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||||
this.$toast(showHint)
|
this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
|
||||||
this.$toast(showHint)
|
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
@@ -2448,17 +2583,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
}else if(this.branchTypeVal == 'G' || this.branchTypeVal == 'T'|| this.branchTypeVal == 'Y' ){ //世纪无忧中介渠道规则(银销个,健销个投保规则同个险规则)
|
||||||
} else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|
|
||||||
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
|
|
||||||
console.log('defalutValue==', defalutValue)
|
|
||||||
console.log("currentEle['amt']==", currentEle['amt'])
|
|
||||||
console.log('riskFactor.rules', riskFactor.rules)
|
|
||||||
console.log('this.saleInsuredPersonInfo.insuredAge ', this.saleInsuredPersonInfo.insuredAge)
|
|
||||||
//被保险人年龄如果在50-65区间
|
//被保险人年龄如果在50-65区间
|
||||||
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||||
//使用rules规则里的第二条控制保额份数
|
//使用rules规则里的第二条控制保额份数
|
||||||
// 年龄在56周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
// 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
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.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
@@ -2473,7 +2602,7 @@ export default {
|
|||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//年龄在0-55周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
//年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
||||||
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 55) {
|
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 55) {
|
||||||
//使用rules规则里的第一条控制保额份数
|
//使用rules规则里的第一条控制保额份数
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||||
@@ -2481,7 +2610,6 @@ export default {
|
|||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
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) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
|
this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
@@ -2491,190 +2619,83 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
}
|
||||||
} else if (productCode == 'GFRS_M0040') {
|
// 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
|
||||||
// 惠企保保额限制
|
}
|
||||||
//被保险人年龄如果在41-60区间
|
else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
|
||||||
if (this.saleInsuredPersonInfo.insuredAge >= 41) {
|
if (Number(defalutValue) < Number(min)) {
|
||||||
//使用rules规则里的第二条控制保额份数
|
if (riskFactor.yearWay == "一次性交清") {
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。')
|
} else {
|
||||||
this.nextStepFlag = true
|
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
} 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
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 40) {
|
|
||||||
//使用rules规则里的第一条控制保额份数
|
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
|
||||||
this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。')
|
|
||||||
this.nextStepFlag = true
|
|
||||||
} 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
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
this.nextStepFlag = true
|
||||||
} else if (productCode == 'GFRS_M0046') {
|
}else{
|
||||||
//被保险人年龄如果在50-65区间
|
this.nextStepFlag = false
|
||||||
if(this.branchTypeVal == 'Z'){ //中介渠道规则
|
this.mainRiskInfluenceAddRisk()
|
||||||
if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
currentEle['amt'] = Number(defalutValue) * Number(riskFactor.moneyUnit)
|
||||||
//使用rules规则里的第二条控制保额份数
|
this.getTrial()
|
||||||
// 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
}
|
||||||
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) +'元整数倍。')
|
else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
|
||||||
this.nextStepFlag = true
|
if (Number(defalutValue) < Number(min)) {
|
||||||
} else {
|
if (riskFactor.yearWay == "一次性交清") {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
} else {
|
||||||
this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
|
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
this.nextStepFlag = true
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
|
||||||
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 50) {
|
|
||||||
//使用rules规则里的第一条控制保额份数
|
|
||||||
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
|
|
||||||
} 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
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else if(this.branchTypeVal == 'G' || this.branchTypeVal == 'T'|| this.branchTypeVal == 'Y' ){ //世纪无忧中介渠道规则(银销个,健销个投保规则同个险规则)
|
|
||||||
//被保险人年龄如果在50-65区间
|
|
||||||
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
|
||||||
//使用rules规则里的第二条控制保额份数
|
|
||||||
// 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
|
||||||
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
|
|
||||||
} 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
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
|
||||||
} else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 55) {
|
|
||||||
//使用rules规则里的第一条控制保额份数
|
|
||||||
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
|
|
||||||
} 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
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
|
this.nextStepFlag = true
|
||||||
} else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
|
} else {
|
||||||
if (Number(defalutValue) < Number(min)) {
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
if (riskFactor.yearWay == "一次性交清") {
|
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
this.$toast(`超过最低保费部分金额需为1000元整数倍`)
|
||||||
} else {
|
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
|
||||||
}
|
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
}else{
|
} else {
|
||||||
this.nextStepFlag = false
|
this.nextStepFlag = false
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
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') {
|
}
|
||||||
if (Number(defalutValue) < Number(min)) {
|
//其他产品按照原先的逻辑判断
|
||||||
if (riskFactor.yearWay == "一次性交清") {
|
}
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') {
|
||||||
} else {
|
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
||||||
}
|
this.nextStepFlag = true
|
||||||
this.nextStepFlag = true
|
} else {
|
||||||
} else {
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
// defalutValue = currentEle.rules[productIndex].displayAmount
|
||||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
|
||||||
this.$toast(`超过最低保费部分金额需为1000元整数倍`)
|
|
||||||
this.nextStepFlag = true
|
|
||||||
} else {
|
|
||||||
this.nextStepFlag = false
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(riskFactor.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//其他产品按照原先的逻辑判断
|
|
||||||
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') {
|
|
||||||
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
|
||||||
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
this.mainRiskInfluenceAddRisk()
|
||||||
// defalutValue = currentEle.rules[productIndex].displayAmount
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
this.getTrial()
|
||||||
this.nextStepFlag = true
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
||||||
|
this.$toast(showHint)
|
||||||
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
|
// defalutValue = currentEle.rules[productIndex].displayAmount
|
||||||
this.$toast(showHint)
|
this.$toast(showHint)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
this.mainRiskInfluenceAddRisk()
|
||||||
// defalutValue = currentEle.rules[productIndex].displayAmount
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
this.$toast(showHint)
|
this.getTrial()
|
||||||
this.nextStepFlag = true
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
}
|
||||||
// defalutValue = value
|
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
||||||
console.log('进来几次')
|
// defalutValue = value
|
||||||
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
console.log('进来几次')
|
||||||
},
|
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
||||||
|
},
|
||||||
//下一步
|
//下一步
|
||||||
async nextStep(isFrom) {
|
async nextStep(isFrom) {
|
||||||
//GFRS_M0016需要验证责任
|
//GFRS_M0016需要验证责任
|
||||||
|
|||||||
Reference in New Issue
Block a user