mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 05:16:43 +08:00
【IMP】保费试算份数问题更改
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
<span v-else class="fs14"> {{ riskFactor.name }} </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({
|
||||
|
||||
Reference in New Issue
Block a user