-
+
+
+
+
+
{{ riskFactor.name }}
+
+
+
{{ dutyItem.dutyName }}({{ dutyItem.suffix }})
+
+
+
+
+
+
+
@@ -352,7 +393,20 @@ export default {
this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue))
})
}
-
+ // if (item.productCode == 'GFRS_A0003') {
+ // //该附加险的责任保额=主险的保费
+ // item.calFactorLst.map(v => {
+ // if (v.code == 'dutyGroup' && v.rules.length > 0) {
+ // v.rules.map(y => {
+ // if (y.defaultDutyAmt === null) {
+ // y.defaultDutyAmt = (JSON.parse(localStorage.trialList)[0].prem / 10000).toFixed(6)
+ // }
+ // y.moneyUnit = 10000
+ // y.changeWithMainRisk = true //责任险保额=主险保费,不允许用户手动更改
+ // })
+ // }
+ // })
+ // }
//保存险种编号
this.mainRiskCode = item.mainRiskCode
})
@@ -429,7 +483,10 @@ export default {
dutyStepperChange(value, productIndex, calFactorIndex, dutyItemIndex, isChecked, min, max) {
//这个险种使用其他验证方式
if (this.mainRiskCode === 'GFRS_M0016') return
-
+ if (this.chooseProducts[productIndex].productCode === 'GFRS_A0003') {
+ this.getTrial()
+ return
+ }
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex]
if (value < min || value > max) {
this.$toast(localStorage.hint)
@@ -767,6 +824,24 @@ export default {
item.moneyUnit = 1
item.suffix = '元'
}
+ if (this.chooseProducts[remitIndex].productCode == 'GFRS_A0003') {
+ //此附加险的缴费期间=主险缴费期间;保险期间=主险保险期间
+ if (item.code == 'insuYear') {
+ item.hasFlag = '1'
+ item.insuYearFlag = mainRiskInfo.insuYear.insuYearFlag
+ item.insuYear = Number(mainRiskInfo.insuYear.insuYear)
+ item.showContent = mainRiskInfo.insuYear.showContent
+ }
+ if (item.code == 'dutyGroup') {
+ let trialList = JSON.parse(localStorage.trialList)
+ item.rules.forEach(v => {
+ v.amt = trialList[0].prem
+ v.defaultDutyAmt = (Number(trialList[0].prem) / 10000).toFixed(6)
+ v.moneyUnit = 10000
+ v.suffix = '万元'
+ })
+ }
+ }
})
},
getRemitIndex() {
@@ -908,7 +983,7 @@ export default {
if (dutyItem.necess) {
// trialInfo['amt'] = this.trialList[index].amt
result.push({
- amt: Number(dutyItem.defaultDutyAmt) * Number(dutyItem.moneyUnit),
+ amt: (Number(dutyItem.defaultDutyAmt) * Number(dutyItem.moneyUnit)).toFixed(2),
dutyCode: dutyItem.duty,
dutyName: dutyItem.dutyName
})
@@ -924,8 +999,12 @@ export default {
trialInfo['payEndYear'] = '1000'
trialInfo['payEndYearFlag'] = 'Y'
// 福宝宝和万能险传A
- if (item.mainRiskCode != 'GFRS_M0006' && item.mainRiskCode != 'GFRS_M0017'
- && item.mainRiskCode != 'GFRS_M0003' && item.mainRiskCode != 'GFRS_M0013') {
+ if (
+ item.mainRiskCode != 'GFRS_M0006' &&
+ item.mainRiskCode != 'GFRS_M0017' &&
+ item.mainRiskCode != 'GFRS_M0003' &&
+ item.mainRiskCode != 'GFRS_M0013'
+ ) {
trialInfo['insuYearFlag'] = 'Y'
}
}
@@ -1151,9 +1230,11 @@ export default {
//万能型产品保费赋值给保额
//增加判断是否是从建议书跳转过来了的
if (localStorage.isFrom != 'proposal') {
- if (this.trialList[index].productCode == 'GFRS_M0003'
- || this.trialList[index].productCode == 'GFRS_M0015'
- || this.trialList[index].productCode == 'GFRS_M0017') {
+ if (
+ this.trialList[index].productCode == 'GFRS_M0003' ||
+ this.trialList[index].productCode == 'GFRS_M0015' ||
+ this.trialList[index].productCode == 'GFRS_M0017'
+ ) {
riskItem['amt'] = this.trialList[index].prem
}
}
diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue
index d105bde18..f9c0149e6 100644
--- a/src/views/ebiz/common/MainRiskList.vue
+++ b/src/views/ebiz/common/MainRiskList.vue
@@ -9,10 +9,8 @@
-
-
-
-
+
+
@@ -126,13 +124,20 @@ export default {
if (riskRules.healthGradeLimit(resultData, this)) {
return
}
- if (riskRules.lifeGradeLimit(resultData, this)) {
- return
- }
+ // if (riskRules.lifeGradeLimit(resultData, this)) {
+ // return
+ // }
+ //validateAppntFlag 0-职业寿险等级需校验主合同的投保人;1-职业寿险等级无需校验主合同的投保人
if (resultData.productInsuredDTO.validateAppntFlag == '0') {
+ //校验主合同投保人寿险职业等级
if (riskRules.lifeGradeLimitForBaby(resultData, this)) {
return
}
+ } else {
+ //校验主合同被保人寿险职业等级
+ if (riskRules.lifeGradeLimit(resultData, this)) {
+ return
+ }
}
/********end 主险选择限制 end******/