mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 04:56:45 +08:00
【IMP】保费试算amt问题解决
This commit is contained in:
@@ -25,14 +25,14 @@
|
|||||||
<span v-if="riskFactor.suffix" class="fs14"> {{ riskFactor.name + '(' + riskFactor.suffix + ')' }} </span>
|
<span v-if="riskFactor.suffix" class="fs14"> {{ riskFactor.name + '(' + riskFactor.suffix + ')' }} </span>
|
||||||
<span v-else class="fs14"> {{ riskFactor.name }} </span>
|
<span v-else class="fs14"> {{ riskFactor.name }} </span>
|
||||||
<!-- {{riskFactorIndex}} -->
|
<!-- {{riskFactorIndex}} -->
|
||||||
|
<!-- {{defalutAmt}} -->
|
||||||
<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 +60,7 @@
|
|||||||
<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"
|
||||||
@@ -210,6 +209,7 @@ export default {
|
|||||||
if (item.mainRiskCode == 'GFRS_M0006') {
|
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||||
item.isHidden = true
|
item.isHidden = true
|
||||||
}
|
}
|
||||||
|
// debugger
|
||||||
if(item.mainRiskCode != 'GFRS_M0008') {
|
if(item.mainRiskCode != 'GFRS_M0008') {
|
||||||
item.calFactorLst.map(i => {
|
item.calFactorLst.map(i => {
|
||||||
this.defalutAmt = i.displayAmount
|
this.defalutAmt = i.displayAmount
|
||||||
@@ -271,6 +271,9 @@ export default {
|
|||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// blur(value) {
|
||||||
|
// console.log('哈哈哈',value)
|
||||||
|
// },
|
||||||
//弹框选择
|
//弹框选择
|
||||||
toSelect(index, index1, columns) {
|
toSelect(index, index1, columns) {
|
||||||
console.log(index, index1, columns)
|
console.log(index, index1, columns)
|
||||||
@@ -730,22 +733,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()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user