mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 00:16:44 +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-else class="fs14"> {{ riskFactor.name }} </span>
|
||||
<!-- {{riskFactorIndex}} -->
|
||||
<!-- {{defalutAmt}} -->
|
||||
<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 +60,7 @@
|
||||
<div class="flex">
|
||||
<van-stepper
|
||||
v-model="dutyItem.defaultDutyAmt"
|
||||
:min="dutyItem.minDutyAmt"
|
||||
:max="dutyItem.maxDutyAmt"
|
||||
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
class="ml10 mr10"
|
||||
@@ -210,6 +209,7 @@ export default {
|
||||
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||
item.isHidden = true
|
||||
}
|
||||
// debugger
|
||||
if(item.mainRiskCode != 'GFRS_M0008') {
|
||||
item.calFactorLst.map(i => {
|
||||
this.defalutAmt = i.displayAmount
|
||||
@@ -271,6 +271,9 @@ export default {
|
||||
this.getTrial()
|
||||
}
|
||||
},
|
||||
// blur(value) {
|
||||
// console.log('哈哈哈',value)
|
||||
// },
|
||||
//弹框选择
|
||||
toSelect(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]
|
||||
// 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()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user