提交最新更改

This commit is contained in:
皮伟
2019-12-06 10:58:14 +08:00
parent c60d512aa3
commit eb368d3d5c

View File

@@ -29,8 +29,7 @@
v-model="item.calFactorLst[riskFactorIndex].defaultValue" v-model="item.calFactorLst[riskFactorIndex].defaultValue"
:min="riskFactor.minAmt || riskFactor.minPrem" :min="riskFactor.minAmt || riskFactor.minPrem"
:max="riskFactor.maxAmt || riskFactor.maxPrem" :max="riskFactor.maxAmt || riskFactor.maxPrem"
:show-plus="false"
:show-minus="false"
class="ml10" class="ml10"
@change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)" @change="stepperChange(item.calFactorLst[riskFactorIndex].defaultValue, index, riskFactorIndex)"
input-width="100" input-width="100"
@@ -62,8 +61,7 @@
v-model="dutyItem.defaultDutyAmt" v-model="dutyItem.defaultDutyAmt"
:min="dutyItem.minDutyAmt" :min="dutyItem.minDutyAmt"
:max="dutyItem.maxDutyAmt" :max="dutyItem.maxDutyAmt"
:show-plus="false"
:show-minus="false"
class="ml10 mr10" class="ml10 mr10"
@focus="focusStep" @focus="focusStep"
@blur="blurStep" @blur="blurStep"
@@ -379,7 +377,6 @@ export default {
this.chooseProducts.forEach((item, index) => { this.chooseProducts.forEach((item, index) => {
if (this.influenceAddRiskCodes.includes(item.productCode)) { if (this.influenceAddRiskCodes.includes(item.productCode)) {
let influences = this.getInfluencesItem(item.productCode) let influences = this.getInfluencesItem(item.productCode)
let mainAddRelation = influences.amtInfluence[0].mainAddRelation let mainAddRelation = influences.amtInfluence[0].mainAddRelation
let amtTimes = influences.amtInfluence[0].amtTimes let amtTimes = influences.amtInfluence[0].amtTimes
let mainRiskAmt = this.getMainRiskAmt() let mainRiskAmt = this.getMainRiskAmt()
@@ -711,19 +708,18 @@ export default {
console.log(value) console.log(value)
this.mult = value this.mult = value
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) {
currentEle.defaultValue = currentEle.rules[productIndex].defaultValue // Dialog.alert({
Dialog.alert({ // message: `输入必须为${Number(currentEle.limit) * currentEle.moneyUnit}的整数倍`
message: `输入不能超过${Number(currentEle.limit) * 10000}的倍数` // }).then(() => {
}).then(() => { // currentEle.defaultValue = currentEle.rules[productIndex].defaultValue
// on close // this.nextStepFlag = true
}) // })
} else { // } else {
this.mainRiskInfluenceAddRisk() this.mainRiskInfluenceAddRisk()
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit) currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
this.getTrial() this.getTrial()
} // }
}, },
//下一步 //下一步
async nextStep() { async nextStep() {