【IMP】更改保费试算amt问题

This commit is contained in:
皮伟
2019-12-21 15:53:12 +08:00
parent 2017e78361
commit 8c6fac20bc

View File

@@ -27,12 +27,10 @@
<!-- {{riskFactorIndex}} --> <!-- {{riskFactorIndex}} -->
<van-stepper <van-stepper
v-model="defalutAmt" v-model="defalutAmt"
:min="riskFactor.minAmt || riskFactor.minPrem"
:max="riskFactor.maxAmt || riskFactor.maxPrem"
:show-plus="false" :show-plus="false"
:show-minus="false" :show-minus="false"
class="ml30" class="ml30"
@change="stepperChange(defalutAmt,item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)" @change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
input-width="100" input-width="100"
:integer="false" :integer="false"
/> />
@@ -60,8 +58,6 @@
<div class="flex"> <div class="flex">
<van-stepper <van-stepper
v-model="dutyItem.defaultDutyAmt" v-model="dutyItem.defaultDutyAmt"
:min="dutyItem.minDutyAmt"
:max="dutyItem.maxDutyAmt"
:show-plus="false" :show-plus="false"
:show-minus="false" :show-minus="false"
class="ml10 mr10" class="ml10 mr10"
@@ -727,22 +723,24 @@ export default {
}) })
}, },
//保额份数变化 //保额份数变化
stepperChange( value, defalutValue, productIndex, calFactorIndex ) { stepperChange(defalutValue, productIndex, calFactorIndex ) {
// debugger
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex] // let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
// currentEle.defaultValue = value // currentEle.defaultValue = value
console.log('进来几次') console.log('进来几次')
this.mult = Number(value) / Number(defalutValue) this.mult = Number(this.defalutAmt) / Number(defalutValue)
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex] 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({ Dialog.alert({
message: localStorage.hint message: localStorage.hint
}).then(() => { }).then(() => {
currentEle.defaultValue = currentEle.rules[productIndex].defaultValue // debugger
this.defalutAmt = currentEle.rules[productIndex].displayAmount
// this.nextStepFlag = true // this.nextStepFlag = true
}) })
} else { } else {
this.mainRiskInfluenceAddRisk() this.mainRiskInfluenceAddRisk()
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit) currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
this.getTrial() this.getTrial()
} }
}, },