【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}} -->
<van-stepper
v-model="defalutAmt"
:min="riskFactor.minAmt || riskFactor.minPrem"
:max="riskFactor.maxAmt || riskFactor.maxPrem"
:show-plus="false"
:show-minus="false"
class="ml30"
@change="stepperChange(defalutAmt,item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
input-width="100"
:integer="false"
/>
@@ -60,8 +58,6 @@
<div class="flex">
<van-stepper
v-model="dutyItem.defaultDutyAmt"
:min="dutyItem.minDutyAmt"
:max="dutyItem.maxDutyAmt"
:show-plus="false"
:show-minus="false"
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]
// 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()
}
},