diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 225a261e2..b80fe2b01 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -393,20 +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 //责任险保额=主险保费,不允许用户手动更改 - }) - } - }) - } + // 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 }) @@ -483,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) @@ -821,6 +824,17 @@ export default { item.moneyUnit = 1 item.suffix = '元' } + if (this.chooseProducts[remitIndex].productCode == 'GFRS_A0003') { + if (item.code == 'dutyGroup') { + let trialList = JSON.parse(localStorage.trialList) + item.rules.forEach(v => { + v.amt = trialList[0].prem + v.defaultDutyAmt = trialList[0].prem + v.moneyUnit = 1 + v.suffix = '万元' + }) + } + } }) }, getRemitIndex() {