diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 151bd2d95..c40785b82 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -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)