【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> <span v-else class="fs14"> {{ riskFactor.name }} &nbsp;&nbsp; &nbsp;&nbsp;</span>
<!-- {{riskFactorIndex}} --> <!-- {{riskFactorIndex}} -->
<van-stepper <van-stepper
v-model="item.calFactorLst[riskFactorIndex].defaultValue" v-model="defalutAmt"
:min="riskFactor.minAmt || riskFactor.minPrem" :min="riskFactor.minAmt || riskFactor.minPrem"
:max="riskFactor.maxAmt || riskFactor.maxPrem" :max="riskFactor.maxAmt || riskFactor.maxPrem"
:show-plus="false" :show-plus="false"
:show-minus="false" :show-minus="false"
class="ml30" class="ml30"
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)" @change="stepperChange(defalutAmt,item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
input-width="100" input-width="100"
:integer="false" :integer="false"
/> />
@@ -172,7 +172,9 @@ export default {
isFrom: localStorage.isRelated === '0', isFrom: localStorage.isRelated === '0',
policyNo: '', //关联保单号 policyNo: '', //关联保单号
// 份数 // 份数
mult: '' mult: '',
// 默认钱数
defalutAmt: ''
} }
}, },
mounted() { mounted() {
@@ -205,12 +207,15 @@ export default {
if (item.mainRiskCode == 'GFRS_M0006') { if (item.mainRiskCode == 'GFRS_M0006') {
item.isHidden = true item.isHidden = true
} }
item.calFactorLst.map(i => { if(item.mainRiskCode != 'GFRS_M0008') {
if (i.defaultValue) { item.calFactorLst.map(i => {
this.mult = i.defaultValue if (i.defaultValue) {
this.defalutAmt = i.defaultValue
this.mult = Number(i.defaultValue)/Number(i.defaultValue)
}
})
} }
}) })
})
// this.influenceAddRiskCodes // 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] // let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
// currentEle.defaultValue = value // currentEle.defaultValue = value
console.log('进来几次') console.log('进来几次')
this.mult = value this.mult = Number(value)/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(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
Dialog.alert({ Dialog.alert({