diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 099f30833..6ade3124c 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -27,7 +27,7 @@
{{ riskFactor.name + '(' + riskFactor.suffix + ')' }} {{ riskFactor.name }}       - +
- +
@@ -450,6 +450,7 @@ export default { //初始化数据 init() { // 获取是否从建议书过来的 + let that = this this.isFrom = localStorage.isFrom //获取投保人信息 if (this.$CacheUtils.getLocItem('saleInsuredInfo')) { @@ -473,14 +474,25 @@ export default { } }) } + + let payEndYearVal //初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009去掉后,附加险list就为空--隐藏’附‘icon item.calFactorLst.map(i => { if (i.code == 'payEndYear') { if (i.payEndYear == '1000' && i.payEndYearFlag == 'Y') { this.isEnterAddtionRiskListFunc() } + //初始化时取交费期间的值 + payEndYearVal = i.showContent } }) + //初始化时取交费期间的值,值再去对应productTrialYearDTOS中的第几条规则 + item.productTrialYearDTOS.forEach((item, index) => { + if (payEndYearVal == item.yearWay + '年交') { + that.payEndYearColumnsIndex = index + } + }) + // if (item.productCode == 'GFRS_A0003') { // //该附加险的责任保额=主险的保费 // item.calFactorLst.map(v => { @@ -1241,7 +1253,7 @@ export default { this.chooseProducts.map(item => { item.calFactorLst.map(i => { if (i.code == 'payEndYear') { - payEndYearVal = code.showContent + payEndYearVal = i.showContent } }) })