diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index d20e29a23..9363c34ea 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -710,18 +710,18 @@ export default { console.log(value) this.mult = value let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex] - // if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) { - // Dialog.alert({ - // message: `输入必须为${Number(currentEle.limit) * currentEle.moneyUnit}的整数倍` - // }).then(() => { - // currentEle.defaultValue = currentEle.rules[productIndex].defaultValue - // this.nextStepFlag = true - // }) - // } else { + if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) { + Dialog.alert({ + message: localStorage.hint + }).then(() => { + currentEle.defaultValue = currentEle.rules[productIndex].defaultValue + this.nextStepFlag = true + }) + } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit) this.getTrial() - // } + } }, //下一步 async nextStep() { diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue index 04fdf2b33..d6106d6fd 100644 --- a/src/views/ebiz/common/MainRiskList.vue +++ b/src/views/ebiz/common/MainRiskList.vue @@ -97,6 +97,7 @@ export default { let resultData = await calculatePremium({ productCodes: [riskProductCode], platform: 'app', type: '1' }) if (resultData.result == 0) { resultData = resultData.trialDTOS[0] + localStorage.hint = resultData.hint if (resultData.productTrialInfoDTO.dutyGroup != null) { resultData.productTrialInfoDTO.dutyGroup.map(item => { if (item.dutyName == '意外身故/伤残保险金') { diff --git a/src/views/ebiz/proposal/Exhibition.vue b/src/views/ebiz/proposal/Exhibition.vue index eaf7788a6..2aea3e055 100644 --- a/src/views/ebiz/proposal/Exhibition.vue +++ b/src/views/ebiz/proposal/Exhibition.vue @@ -293,7 +293,7 @@ export default { } else { //在app端 params.proposalInfoDTO.proposalNo = localStorage.orderNo - this.mainRiskCodes = JSON.parse(localStorage.mainRiskCodes) + this.mainRiskCodes = JSON.parse(o.mainRiskCodes) getDemo(params).then(res => { this.formatLocal(res) })