mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-18 06:16:43 +08:00
【IMP】修改保费问题
This commit is contained in:
@@ -148,7 +148,8 @@ export default {
|
|||||||
[Picker.name]: Picker,
|
[Picker.name]: Picker,
|
||||||
[Stepper.name]: Stepper,
|
[Stepper.name]: Stepper,
|
||||||
[Field.name]: Field,
|
[Field.name]: Field,
|
||||||
[Checkbox.name]: Checkbox
|
[Checkbox.name]: Checkbox,
|
||||||
|
[Dialog.name]: Dialog
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -232,45 +233,45 @@ export default {
|
|||||||
},
|
},
|
||||||
// 责任保额份数变化
|
// 责任保额份数变化
|
||||||
dutyStepperChange(value, productIndex, calFactorIndex, dutyItemIndex, isChecked, min, max) {
|
dutyStepperChange(value, productIndex, calFactorIndex, dutyItemIndex, isChecked, min, max) {
|
||||||
if (value < min || value > max) {
|
|
||||||
this.nextStepFlag = true
|
|
||||||
this.changeFlag = false
|
|
||||||
} else {
|
|
||||||
this.changeFlag = true
|
|
||||||
}
|
|
||||||
if (isChecked) {
|
|
||||||
;[this.productIndex, this.calFactorIndex] = [productIndex, calFactorIndex]
|
|
||||||
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules
|
|
||||||
currentEle.forEach(item => {
|
|
||||||
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
|
||||||
})
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
|
||||||
this.getTrial()
|
|
||||||
} else {
|
|
||||||
;[this.productIndex, this.calFactorIndex] = [productIndex, calFactorIndex]
|
|
||||||
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules
|
|
||||||
currentEle.forEach(item => {
|
|
||||||
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex]
|
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex]
|
||||||
if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
if (value < min || value > max) {
|
||||||
currentEle.defaultDutyAmt = currentEle.minDutyAmt
|
this.$toast(localStorage.hint)
|
||||||
console.log()
|
|
||||||
Dialog.alert({
|
|
||||||
message: localStorage.hint
|
|
||||||
}).then(() => {
|
|
||||||
// on close
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||||
// currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
Dialog.alert({
|
||||||
this.getTrial()
|
message: localStorage.hint
|
||||||
|
}).then(()=> {
|
||||||
|
currentEle.defaultDutyAmt = currentEle.minDutyAmt
|
||||||
|
})
|
||||||
|
|
||||||
|
// this.$toast(localStorage.hint)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// this.mainRiskInfluenceAddRisk()
|
||||||
|
// currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
||||||
|
// this.getTrial()
|
||||||
|
if (isChecked) {
|
||||||
|
;[this.productIndex, this.calFactorIndex] = [productIndex, calFactorIndex]
|
||||||
|
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules
|
||||||
|
currentEle.forEach(item => {
|
||||||
|
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
||||||
|
})
|
||||||
|
this.mainRiskInfluenceAddRisk()
|
||||||
|
this.getTrial()
|
||||||
|
} else {
|
||||||
|
;[this.productIndex, this.calFactorIndex] = [productIndex, calFactorIndex]
|
||||||
|
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules
|
||||||
|
currentEle.forEach(item => {
|
||||||
|
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//弹框选择
|
//弹框选择
|
||||||
toSelect(index, index1, columns) {
|
toSelect(index, index1, columns) {
|
||||||
console.log(index, index1, columns)
|
|
||||||
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
||||||
this.columns = columns
|
this.columns = columns
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user