【IMP】保费试算份数问题更改

This commit is contained in:
皮伟
2019-12-19 15:50:16 +08:00
parent b5fbc8b822
commit 7e1ca89fa3

View File

@@ -26,13 +26,13 @@
<span v-else class="fs14"> {{ riskFactor.name }} &nbsp;&nbsp; &nbsp;&nbsp;</span>
<!-- {{riskFactorIndex}} -->
<van-stepper
v-model="item.calFactorLst[riskFactorIndex].defaultValue"
v-model="defalutAmt"
:min="riskFactor.minAmt || riskFactor.minPrem"
:max="riskFactor.maxAmt || riskFactor.maxPrem"
:show-plus="false"
:show-minus="false"
class="ml30"
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
@change="stepperChange(defalutAmt,item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
input-width="100"
:integer="false"
/>
@@ -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({