diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 869950871..872bf17d3 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -26,13 +26,13 @@ {{ riskFactor.name }}       @@ -172,7 +172,9 @@ export default { isFrom: localStorage.isRelated === '0', policyNo: '', //关联保单号 // 份数 - mult: '' + mult: '', + // 默认钱数 + defalutAmt: '' } }, mounted() { @@ -205,12 +207,15 @@ export default { if (item.mainRiskCode == 'GFRS_M0006') { item.isHidden = true } - item.calFactorLst.map(i => { - if (i.defaultValue) { - this.mult = i.defaultValue + if(item.mainRiskCode != 'GFRS_M0008') { + item.calFactorLst.map(i => { + if (i.defaultValue) { + this.defalutAmt = i.defaultValue + this.mult = Number(i.defaultValue)/Number(i.defaultValue) + } + }) } }) - }) // this.influenceAddRiskCodes @@ -722,11 +727,11 @@ export default { }) }, //保额份数变化 - stepperChange(value, productIndex, calFactorIndex) { + stepperChange(value,defalutValue, productIndex, calFactorIndex) { // let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex] // currentEle.defaultValue = value console.log('进来几次') - this.mult = value + this.mult = Number(value)/Number(defalutValue) let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex] if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) { Dialog.alert({