mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 15:46:44 +08:00
【国富人寿】保费试算页面有关代码冲突解决
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<van-tag type="primary" v-else class="mr5 green" plain>附加险</van-tag>
|
<van-tag type="primary" v-else class="mr5 green" plain>附加险</van-tag>
|
||||||
<span class="ml5 center fs13 flex1">{{ item.riskName }}</span>
|
<span class="ml5 center fs13 flex1">{{ item.riskName }}</span>
|
||||||
<van-tag type="primary" v-if="item.isMainRisk == 0 && item.hasAddtionRisk && isEnterAddtionRisk" plain @click="selectAddtionRisk" class="green mr8"
|
<van-tag type="primary" v-if="item.isMainRisk == 0 && item.hasAddtionRisk && isEnterAddtionRisk" plain @click="selectAddtionRisk" class="green mr8"
|
||||||
>附</van-tag
|
>附</van-tag
|
||||||
>
|
>
|
||||||
<van-icon name="search" size="20" v-if="item.documentDTOS && item.documentDTOS.length > 0" @click="seeDocument(index)" class="green mr5" />
|
<van-icon name="search" size="20" v-if="item.documentDTOS && item.documentDTOS.length > 0" @click="seeDocument(index)" class="green mr5" />
|
||||||
<van-icon name="delete" size="22" @click="deleteRisk(index)" class="green" />
|
<van-icon name="delete" size="22" @click="deleteRisk(index)" class="green" />
|
||||||
@@ -47,8 +47,8 @@
|
|||||||
riskFactor
|
riskFactor
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
input-width="100"
|
input-width="100"
|
||||||
:integer="false"
|
:integer="false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1930,6 +1930,7 @@ export default {
|
|||||||
if (
|
if (
|
||||||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0051' ||
|
this.chooseProducts[0].mainRiskCode == 'GFRS_M0051' ||
|
||||||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0044' ||
|
this.chooseProducts[0].mainRiskCode == 'GFRS_M0044' ||
|
||||||
|
this.chooseProducts[0].mainRiskCode == 'GFRS_M0060' ||
|
||||||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0035' ||
|
this.chooseProducts[0].mainRiskCode == 'GFRS_M0035' ||
|
||||||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0038' ||
|
this.chooseProducts[0].mainRiskCode == 'GFRS_M0038' ||
|
||||||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0040'
|
this.chooseProducts[0].mainRiskCode == 'GFRS_M0040'
|
||||||
@@ -2342,157 +2343,44 @@ export default {
|
|||||||
return riskCode != 'DCRS_A0001'
|
return riskCode != 'DCRS_A0001'
|
||||||
})
|
})
|
||||||
|
|
||||||
localStorage.addRiskCodes = JSON.stringify(addRiskCodes)
|
localStorage.addRiskCodes = JSON.stringify(addRiskCodes)
|
||||||
this.$jump({
|
let thismyurl = ''
|
||||||
flag: 'h5',
|
if (this.$route.query.orderNo) {
|
||||||
extra: {
|
thismyurl = '/?orderNo=' + this.$route.query.orderNo
|
||||||
url: location.origin + '/#/common/addRiskList'
|
} else if (this.$route.query.proposalOrderNo) {
|
||||||
},
|
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||||
routerInfo: {
|
|
||||||
path: '/common/addRiskList'
|
|
||||||
}
|
}
|
||||||
})
|
this.$jump({
|
||||||
},
|
flag: 'h5',
|
||||||
//保额份数变化
|
extra: {
|
||||||
stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
|
url: location.origin + '/#/common/addRiskList' + thismyurl
|
||||||
let currentEle =
|
},
|
||||||
localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'
|
routerInfo: {
|
||||||
? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex]
|
path: '/common/addRiskList' + thismyurl
|
||||||
: 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.age >= 50 && this.saleInsuredPersonInfo.age <= 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.nextStepFlag = true
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//被保险人年龄如果在66-75之间
|
})
|
||||||
} else if (this.saleInsuredPersonInfo.age >= 66 && this.saleInsuredPersonInfo.age <= 75) {
|
},
|
||||||
//使用rules规则里的第一条控制保额份数
|
//保额份数变化
|
||||||
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
|
stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
|
||||||
this.$toast(showHint)
|
let currentEle =
|
||||||
this.nextStepFlag = true
|
localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'
|
||||||
} else {
|
? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex]
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
: this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
//改动原因:孝心保产品有对年龄的特殊要求
|
||||||
this.$toast(showHint)
|
//添加判断,是否是孝心保产品
|
||||||
this.nextStepFlag = true
|
let showHint = this.chooseProducts[productIndex].hint
|
||||||
} else {
|
let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode
|
||||||
this.mainRiskInfluenceAddRisk()
|
if (productCode == 'GFRS_M0014') {
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
//被保险人年龄如果在50-65区间
|
||||||
this.getTrial()
|
if (this.saleInsuredPersonInfo.insuredAge >= 50 && this.saleInsuredPersonInfo.insuredAge <= 65) {
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
|
||||||
} else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|
|
||||||
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057') {
|
|
||||||
console.log('defalutValue==', defalutValue)
|
|
||||||
console.log("currentEle['amt']==", currentEle['amt'])
|
|
||||||
console.log('riskFactor.rules', riskFactor.rules)
|
|
||||||
console.log('this.saleInsuredPersonInfo.age ', this.saleInsuredPersonInfo.age)
|
|
||||||
//被保险人年龄如果在50-65区间
|
|
||||||
if (this.saleInsuredPersonInfo.age >= 56 && this.saleInsuredPersonInfo.age <= 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) +'元。超过最低基本保险金额为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) +'元。超过最低基本保险金额为10000元整数倍。')
|
|
||||||
this.nextStepFlag = true
|
|
||||||
} else {
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
|
||||||
this.getTrial()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//年龄在0-55周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
|
||||||
} else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 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) +'元。超过最低基本保险金额为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) +'元。超过最低基本保险金额为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.age >= 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.age >= 0 && this.saleInsuredPersonInfo.age <= 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.age >= 51 && this.saleInsuredPersonInfo.age <= 60) {
|
|
||||||
//使用rules规则里的第二条控制保额份数
|
//使用rules规则里的第二条控制保额份数
|
||||||
// 年龄在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('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
|
this.$toast(showHint)
|
||||||
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.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||||
this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
|
this.$toast(showHint)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
@@ -2500,15 +2388,16 @@ export default {
|
|||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
//被保险人年龄如果在66-75之间
|
||||||
} else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 50) {
|
} else if (this.saleInsuredPersonInfo.insuredAge >= 66 && this.saleInsuredPersonInfo.insuredAge <= 75) {
|
||||||
//使用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('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 {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
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.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||||
|
this.$toast(showHint)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
@@ -2517,11 +2406,17 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if(this.branchTypeVal == 'G' || this.branchTypeVal == 'T'|| this.branchTypeVal == 'Y' ){ //世纪无忧中介渠道规则(银销个,健销个投保规则同个险规则)
|
//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区间
|
//被保险人年龄如果在50-65区间
|
||||||
if (this.saleInsuredPersonInfo.age >= 56 && this.saleInsuredPersonInfo.age <= 60) {
|
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||||
//使用rules规则里的第二条控制保额份数
|
//使用rules规则里的第二条控制保额份数
|
||||||
// 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
// 年龄在56周岁及以上被保险人,投保本险种时,最低基本保险金额为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
|
||||||
@@ -2536,14 +2431,15 @@ export default {
|
|||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
//年龄在0-55周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
|
||||||
} else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 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)) {
|
||||||
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 {
|
||||||
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 {
|
||||||
@@ -2553,96 +2449,207 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||||
// 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
|
} else if (productCode == 'GFRS_M0040') {
|
||||||
} else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
|
// 惠企保保额限制
|
||||||
if (Number(defalutValue) < Number(min)) {
|
//被保险人年龄如果在41-60区间
|
||||||
if (riskFactor.yearWay == "一次性交清") {
|
if (this.saleInsuredPersonInfo.insuredAge >= 41) {
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
//使用rules规则里的第二条控制保额份数
|
||||||
} else {
|
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元整数倍。')
|
||||||
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.nextStepFlag = true
|
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||||
}else{
|
} else if (productCode == 'GFRS_M0046') {
|
||||||
this.nextStepFlag = false
|
//被保险人年龄如果在50-65区间
|
||||||
this.mainRiskInfluenceAddRisk()
|
if(this.branchTypeVal == 'Z'){ //中介渠道规则
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(riskFactor.moneyUnit)
|
if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||||
this.getTrial()
|
//使用rules规则里的第二条控制保额份数
|
||||||
}
|
// 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
|
||||||
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
|
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||||
if (Number(defalutValue) < Number(min)) {
|
this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
|
||||||
if (riskFactor.yearWay == "一次性交清") {
|
this.nextStepFlag = true
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
} else {
|
||||||
} else {
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
// 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
|
||||||
|
} 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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.nextStepFlag = true
|
// 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
|
||||||
} else {
|
} else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
if (Number(defalutValue) < Number(min)) {
|
||||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
if (riskFactor.yearWay == "一次性交清") {
|
||||||
this.$toast(`超过最低保费部分金额需为1000元整数倍`)
|
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
|
} 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)) {
|
||||||
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '1') {
|
if (riskFactor.yearWay == "一次性交清") {
|
||||||
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
} else {
|
||||||
this.nextStepFlag = true
|
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
|
||||||
} else {
|
}
|
||||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
this.nextStepFlag = true
|
||||||
// defalutValue = currentEle.rules[productIndex].displayAmount
|
} else {
|
||||||
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
|
// 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 {
|
||||||
this.mainRiskInfluenceAddRisk()
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
// defalutValue = currentEle.rules[productIndex].displayAmount
|
||||||
this.getTrial()
|
this.$toast('投保本险种最低基本保险金额为10000元,超过最低基本保险金额为1000元整数倍')
|
||||||
|
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) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) {
|
||||||
// defalutValue = currentEle.rules[productIndex].displayAmount
|
|
||||||
this.$toast(showHint)
|
this.$toast(showHint)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
// defalutValue = currentEle.rules[productIndex].displayAmount
|
||||||
this.getTrial()
|
this.$toast(showHint)
|
||||||
|
this.nextStepFlag = true
|
||||||
|
} else {
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
|
||||||
|
this.getTrial()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
||||||
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
// defalutValue = value
|
||||||
// defalutValue = value
|
console.log('进来几次')
|
||||||
console.log('进来几次')
|
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
||||||
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
},
|
||||||
},
|
//下一步
|
||||||
//下一步
|
async nextStep(isFrom) {
|
||||||
async nextStep(isFrom) {
|
//GFRS_M0016需要验证责任
|
||||||
//GFRS_M0016需要验证责任
|
if (this.mainRiskCode === 'GFRS_M0016' || this.mainRiskCode === 'GFRS_M0070') {
|
||||||
if (this.mainRiskCode === 'GFRS_M0016' || this.mainRiskCode === 'GFRS_M0070') {
|
let calFactorLst = this.chooseProducts[0].calFactorLst
|
||||||
let calFactorLst = this.chooseProducts[0].calFactorLst
|
for (let i = 0; i < calFactorLst.length; i++) {
|
||||||
for (let i = 0; i < calFactorLst.length; i++) {
|
if (calFactorLst[i].code === 'dutyGroup') {
|
||||||
if (calFactorLst[i].code === 'dutyGroup') {
|
let duties = calFactorLst[i].rules
|
||||||
let duties = calFactorLst[i].rules
|
for (let j = 0; j < duties.length; j++) {
|
||||||
for (let j = 0; j < duties.length; j++) {
|
let item = duties[j]
|
||||||
let item = duties[j]
|
if (!this.valiDuty(item.defaultDutyAmt, item.duty)) {
|
||||||
if (!this.valiDuty(item.defaultDutyAmt, item.duty)) {
|
return
|
||||||
return
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//GFRS_A0004需要验证责任
|
//GFRS_A0004需要验证责任
|
||||||
for (let m = 0; m < this.chooseProducts.length; m++) {
|
for (let m = 0; m < this.chooseProducts.length; m++) {
|
||||||
@@ -2880,6 +2887,35 @@ export default {
|
|||||||
this.saleInsuredPersonInfo.insuredId = resultData.content.id;
|
this.saleInsuredPersonInfo.insuredId = resultData.content.id;
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
||||||
}
|
}
|
||||||
|
//试算记录保存更新--编辑
|
||||||
|
this.saveOrUpdateTrialRecordInfoFunc(resultData.content.riskDTO)
|
||||||
|
}else if (isFrom == 'orderTrial' && localStorage.isFrom == 'sale') {
|
||||||
|
this.$toast.clear()
|
||||||
|
this.trialResultsShow = true
|
||||||
|
this.verifyResultList = resultData.content.data.verifyResultList
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$toast(resultData.resultMessage)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//建议书试算记录保存更新--编辑功能
|
||||||
|
saveOrUpdateTrialRecordInfoFunc(riskDTO){
|
||||||
|
let insuanceId
|
||||||
|
riskDTO.forEach(item => {
|
||||||
|
if (item.isMainRisk == '0') {
|
||||||
|
insuanceId = item.insuanceId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let data ={
|
||||||
|
serialNo:this.$CacheUtils.getLocItem('proposalNo'),
|
||||||
|
mainRiskId:insuanceId+'',
|
||||||
|
trialJsonStr:localStorage.chooseProducts
|
||||||
|
}
|
||||||
|
saveOrUpdateTrialRecordInfo(data).then(res => {
|
||||||
|
if (res.result == '0') {
|
||||||
|
//被保人产品列表界面 点击编辑按钮进入产品试算界面 点击完成 页面跳转不正确
|
||||||
|
let proposalOrderNo = this.$route.query.orderNo || ''
|
||||||
|
let url = `/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'goBack',
|
||||||
extra: {
|
extra: {
|
||||||
|
|||||||
Reference in New Issue
Block a user