修改添加续期标识逻辑

This commit is contained in:
mengxiaolong
2020-09-25 16:58:07 +08:00
parent b03111524a
commit 2bfb79f445

View File

@@ -1518,6 +1518,7 @@ export default {
let [mainRiskCode, riskDTOLst] = ['', []]
let rollInResult = '' //校验预计转入保费结果
this.chooseProducts.forEach((item, index) => {
console.log(item)
if (localStorage.trialList != '') {
if (item.isMainRisk == 0) {
mainRiskCode = item.productCode
@@ -1592,7 +1593,11 @@ export default {
}
if (!this.renewalShow(this.mainRiskCode)) {
this.trialInfos[index].isRenewal = this.renewal
for (let prop of item.calFactorLst) {
if (prop.type === '4') {
this.trialInfos[index].isRenewal = this.renewal
}
}
}
// console.log(riskItem)
@@ -1639,12 +1644,6 @@ export default {
product.amt = trialProduct.amt
}
}
params.orderDTO.insuredDTOs[0].riskDTOLst.map(item => {
if (!this.renewalShow(this.mainRiskCode)) {
item.isRenewal = this.renewal
return item
}
})
console.dir(params)
resultData = await saveProposal(params)
} else {