建议书-保费试算页面-保存逻辑调整

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-06-29 14:18:10 +08:00
parent 4967324d87
commit c2fdffd4b7

View File

@@ -2713,13 +2713,19 @@ export default {
if (item.isMainRisk == 0) {
mainRiskCode = item.productCode
}
let thismyinsuanceIdInfo = JSON.parse(this.$route.query.insuanceIdInfo)
let insuanceId = ''
thismyinsuanceIdInfo.forEach(item01=>{
if(item01.isMainRisk == item.productCode){
insuanceId = item01.insuanceId
}
})
if(this.$route.query.insuanceIdInfo){
let thismyinsuanceIdInfo = JSON.parse(this.$route.query.insuanceIdInfo)
debugger
thismyinsuanceIdInfo.forEach(item01=>{
if(item01.isMainRisk == item.productCode){
insuanceId = item01.insuanceId
}
})
}
let riskItem = {
isMainRisk: item.isMainRisk,
riskName: item.riskName,
@@ -2729,10 +2735,12 @@ export default {
prem: this.trialList[index] && this.trialList[index].prem,
standPrem: this.trialList[index] && this.trialList[index].standPrem,
predictTransferPrem: item.predictTransferPrem,
thirdInsuraceNo: this.policyNo,
insuanceId:insuanceId //编辑时添加主险id
thirdInsuraceNo: this.policyNo
// mult: this.mult
}
if(this.$route.query.insuanceIdInfo){
riskItem.insuanceId = insuanceId
}
if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') {
//增加万能险 预计转入保费校验
rollInResult = this.rollInCheck(item.predictTransferPrem)