diff --git a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue index eba2aca24..2092da8a0 100644 --- a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue +++ b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue @@ -356,19 +356,20 @@ item.productCode != 'GFRS_M0098' && item.productCode != 'GFRS_M0103' && item.productCode != 'GFRS_M0112' && - item.productCode != 'GFRS_M0085' + item.productCode != 'GFRS_M0085' && + trialList[index] " > 首期保费(元): 保额(元): - {{ trialList[index].showPrem | moneyFormat }} + {{ trialList[index].showPrem | moneyFormat }} @@ -561,13 +562,11 @@ export default { firstTermTotalPremium() { const res = this.trialList.reduce( (accumulator, currentValue) => { - console.log(accumulator.showPrem, currentValue.showPrem) - return accumulator.showPrem + currentValue.showPrem + return { showPrem: accumulator.showPrem + (currentValue.showPrem || 0) } }, { showPrem: 0 } ) - - if (typeof res === 'number') return res + if (typeof res.showPrem === 'number') return res.showPrem else return 0 }, /** @@ -3595,6 +3594,7 @@ export default { handleChoosedProductsChange() { this.chooseProducts = JSON.parse(localStorage.getItem('chooseProducts')) this.selectAddtionRisk() + this.getTrial() } }, watch: {