From b09ae6f96e63e5dc65a4a7ff08a85f0a072d1446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=AE=E4=BC=9F?= Date: Sat, 21 Dec 2019 15:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90IMP=E3=80=91=E4=BF=9D=E8=B4=B9?= =?UTF-8?q?=E8=AF=95=E7=AE=97amt=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 25 +++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 302f83d1f..4155806e9 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -25,14 +25,14 @@ {{ riskFactor.name + '(' + riskFactor.suffix + ')' }} {{ riskFactor.name }}       + @@ -60,8 +60,7 @@
{ this.defalutAmt = i.displayAmount @@ -271,6 +271,9 @@ export default { this.getTrial() } }, + // blur(value) { + // console.log('哈哈哈',value) + // }, //弹框选择 toSelect(index, index1, columns) { console.log(index, index1, columns) @@ -730,22 +733,24 @@ export default { }) }, //保额份数变化 - stepperChange( value, defalutValue, productIndex, calFactorIndex ) { + stepperChange(defalutValue, productIndex, calFactorIndex ) { + // debugger // let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex] // currentEle.defaultValue = value console.log('进来几次') - this.mult = Number(value) / Number(defalutValue) + this.mult = Number(this.defalutAmt) / Number(defalutValue) let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex] - if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) { + if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) { Dialog.alert({ message: localStorage.hint }).then(() => { - currentEle.defaultValue = currentEle.rules[productIndex].defaultValue + // debugger + this.defalutAmt = currentEle.rules[productIndex].displayAmount // this.nextStepFlag = true }) } else { this.mainRiskInfluenceAddRisk() - currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit) + currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit) this.getTrial() } },