初始化时取交费期间的值,值再去对应productTrialYearDTOS中的第几条规则

This commit is contained in:
liyuetong
2021-05-28 18:13:22 +08:00
parent 857b32b097
commit a9709acb9a

View File

@@ -27,7 +27,7 @@
<div class="flex align-items-c">
<span v-if="riskFactor.suffix" class="fs14">{{ riskFactor.name + '(' + riskFactor.suffix + ')' }}</span>
<span v-else class="fs14">{{ riskFactor.name }} &nbsp;&nbsp; &nbsp;&nbsp;</span>
<!-- {{riskFactorIndex}} -->
<!-- {{ riskFactorIndex }} -->
<!-- {{defalutAmt}} -->
<van-stepper
v-model="item.calFactorLst[riskFactorIndex].displayAmount"
@@ -118,7 +118,7 @@
</div>
</div>
</div>
<!-- 为富娃娃两全保险万能型专写 -->
<!-- 为富娃娃两全保险万能型专写 外加鑫享年年-->
<div v-if="item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 0">
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
<div class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
@@ -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_A0007GFRS_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
}
})
})