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

This commit is contained in:
liyuetong
2021-05-28 18:39:03 +08:00
parent a9709acb9a
commit 1fb8a7abb6

View File

@@ -462,7 +462,7 @@ export default {
}
//构建提交数据、渲染险种
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
this.chooseProducts.map(item => {
this.chooseProducts.forEach((item, index) => {
if (item.mainRiskCode == 'GFRS_M0006') {
item.isHidden = true
}
@@ -486,12 +486,14 @@ export default {
payEndYearVal = i.showContent
}
})
//初始化时取交费期间的值值再去对应productTrialYearDTOS中的第几条规则
item.productTrialYearDTOS.forEach((item, index) => {
if (payEndYearVal == item.yearWay + '年交') {
that.payEndYearColumnsIndex = index
}
})
if (index == 0) {
//初始化时取交费期间的值值再去对应productTrialYearDTOS中的第几条规则
item.productTrialYearDTOS.forEach((item, index) => {
if (payEndYearVal == item.yearWay + '年交') {
that.payEndYearColumnsIndex = index
}
})
}
// if (item.productCode == 'GFRS_A0003') {
// //该附加险的责任保额=主险的保费