【中介渠道-八桂无忧D】 被保人重疾B添加规则

This commit is contained in:
dwq
2021-07-07 16:29:38 +08:00
parent 963dd833f7
commit ecf10aca22
4 changed files with 62 additions and 7 deletions

View File

@@ -188,6 +188,16 @@ export default {
// }
/********start 附加险选择限制 start******/
//判断被保 八桂D
/* let mainRisk = JSON.parse(this.$CacheUtils.getLocItem('chooseProducts'))[0];
let mainRiskCode = mainRisk.productCode;
let addRiskCodes = localStorage.addRiskCodes && JSON.parse(localStorage.addRiskCodes)
if(mainRiskCode =='GFRS_M0044'||mainRiskCode =='GFRS_M0051'){
if(this.result.productCode=='GFRS_A0010'&&(addRiskCodes.length==0||addRiskCodes[0]=='GFRS_A0010')){
this.$toast('当前未投保其他长险附加险,不可附加该险种!')
return true
}
}*/
//豁免险与其他附加险年龄险种
if (resultData.productTrialInfoDTO.isRemit == '0' && resultData.productTrialInfoDTO.remitType == '0') {
if (riskRules.ageLimit(resultData, this, 1)) {

View File

@@ -77,13 +77,13 @@
<div class="pv12 border-bd">{{ riskFactor.name }}</div>
<div class="duty">
<div class="flex justify-content-s border-bd pv10 align-items-c" v-for="(dutyItem, dutyItemIndex) in riskFactor.rules" :key="dutyItemIndex">
<span v-if="!(item.productCode == 'GFRS_M0024' || item.productCode == 'GFRS_M0040' || item.productCode == 'GFRS_M0044' || item.productCode == 'GFRS_M0046')" class="fs14 w100"
<span v-if="!(item.productCode == 'GFRS_M0024' || item.productCode == 'GFRS_M0040' || item.productCode == 'GFRS_M0044' || item.productCode == 'GFRS_M0046'|| item.productCode == 'GFRS_M0051')" class="fs14 w100"
>{{ dutyItem.dutyName }}({{ dutyItem.suffix }})</span
>
<span v-else class="fs14 w100">{{ dutyItem.dutyName }}</span>
<div class="flex relative">
<van-stepper
v-if="!(item.productCode == 'GFRS_M0024' || item.productCode == 'GFRS_M0040' || item.productCode == 'GFRS_M0044' || item.productCode == 'GFRS_M0046')"
v-if="!(item.productCode == 'GFRS_M0024' || item.productCode == 'GFRS_M0040' || item.productCode == 'GFRS_M0044' || item.productCode == 'GFRS_M0046'|| item.productCode == 'GFRS_M0051')"
v-model="dutyItem.defaultDutyAmt"
:min="dutyItem.minDutyAmt"
:max="dutyItem.maxDutyAmt"
@@ -1468,7 +1468,33 @@ export default {
//设置豁免险保额
this.setRemitRisk()
this.nextStepFlag = false
} else {
//针对八桂D产品 计算被保人重疾B附加险保额 ==其他附加险的保额 重新试算后面添加的其他附加险
if ( this.chooseProducts[0].mainRiskCode == 'GFRS_M0051'||this.chooseProducts[0].mainRiskCode == 'GFRS_M0044') {
let tParams = this.getParams()
// 开门红产品试算增加标识
if (this.activeType == 'KMH' && this.isFrom != 'proposal') {
for (let product of tParams.trialInfos) {
product.isKmh = '1'
}
}
let tResult = await trial(tParams)
if (tResult.result == 0) {
if (tResult.flag === '1') {
this.richChildrenFlag = true
}
this.trialList = tResult.trialList
localStorage.trialList = JSON.stringify(tResult.trialList)
//设置豁免险保额
this.setRemitRisk()
this.nextStepFlag = false
}
if(this.chooseProducts.length>0&&this.chooseProducts[1].productCode=='GFRS_A0010'){
this.$toast('当前未投保其他长险附加险,请删除该险种重新选择附加险!')
this.nextStepFlag = true
}
}
} else {
this.nextStepFlag = true
this.$toast(resultData.resultMessage)
}
@@ -1522,7 +1548,21 @@ export default {
trialInfo.duty = result
}
})
//针对八桂D产品 计算被保人重疾B附加险保额 ==其他附加险的保额
if ( this.chooseProducts[0].mainRiskCode == 'GFRS_M0051'||this.chooseProducts[0].mainRiskCode == 'GFRS_M0044'){
if(item.productCode == 'GFRS_A0010'){
let toTrial = 0
let trials = JSON.parse(localStorage.trialList)
trials.forEach(tr=>{
if(tr.isMainRisk=='1'&&tr.productCode!='GFRS_A0010'){
toTrial+=Number(tr.prem);
}
})
trialInfo.duty.forEach(d=>{
d.amt=toTrial;
})
}
}
//通用规则1交费方式为一次交情无交费期限
if (trialInfo['payIntv'] == '0') {
trialInfo['payEndYear'] = '1000'
@@ -1907,7 +1947,8 @@ export default {
this.trialList[index].productCode == 'GFRS_M0024' ||
this.trialList[index].productCode == 'GFRS_M0040' ||
this.trialList[index].productCode == 'GFRS_M0044' ||
this.trialList[index].productCode == 'GFRS_M0046'
this.trialList[index].productCode == 'GFRS_M0046' ||
this.trialList[index].productCode == 'GFRS_M0051'
) {
riskItem['dutyLst'] = this.trialInfos[index].duty
}
@@ -1961,7 +2002,7 @@ export default {
//国富人寿桂企保重大疾病保险产品专写
this.trialInfos.map((v, i) => {
if (v.productCode == 'GFRS_M0024' || v.productCode == 'GFRS_M0040' || v.productCode == 'GFRS_M0044'
|| v.productCode == 'GFRS_M0046') {
|| v.productCode == 'GFRS_M0046'|| v.productCode == 'GFRS_M0051') {
delete riskDTOLst[i].duty
}
})

View File

@@ -119,6 +119,10 @@ export default {
flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0044', this)
let specilFlag = '1'
path = `${path}?specilFlag=${specilFlag}`
}else if (this.$route.params.productDetailCode == 'GFRSPRO_M0051') {
flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0051', this)
let specilFlag = '1'
path = `${path}?specilFlag=${specilFlag}`
} else {
flagPermission = false
}

View File

@@ -666,7 +666,7 @@ export default {
return Toast.fail('暂不支持组合产品转投保')
}
}
if (this.mainRiskCodes[0] == 'GFRS_M0024' || this.mainRiskCodes[0] == 'GFRS_M0040' || this.mainRiskCodes[0] == 'GFRS_M0044') {
if (this.mainRiskCodes[0] == 'GFRS_M0024' || this.mainRiskCodes[0] == 'GFRS_M0040' || this.mainRiskCodes[0] == 'GFRS_M0044'|| this.mainRiskCodes[0] == 'GFRS_M0051') {
let specilFlag = '1'
path = `${path}&specilFlag=${specilFlag}`
let flagPermission = await riskRules.getProductSellPermissionList(this.mainRiskCodes[0], this)