diff --git a/src/views/ebiz/common/AddRiskList.vue b/src/views/ebiz/common/AddRiskList.vue index f3fe0b8c6..52bb386db 100644 --- a/src/views/ebiz/common/AddRiskList.vue +++ b/src/views/ebiz/common/AddRiskList.vue @@ -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)) { diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index f4a6a2443..6a73834fd 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -77,13 +77,13 @@
{{ riskFactor.name }}
- {{ dutyItem.dutyName }}({{ dutyItem.suffix }}) {{ dutyItem.dutyName }}
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 } }) diff --git a/src/views/ebiz/product/ProductDetail.vue b/src/views/ebiz/product/ProductDetail.vue index e538e4eb4..64584f034 100644 --- a/src/views/ebiz/product/ProductDetail.vue +++ b/src/views/ebiz/product/ProductDetail.vue @@ -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 } diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue index c7dce35b9..f5a8f6c9c 100644 --- a/src/views/ebiz/proposal/ProposalInfo.vue +++ b/src/views/ebiz/proposal/ProposalInfo.vue @@ -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)