diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index bb2bfd211..8a198d2c7 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -320,7 +320,8 @@ const dutyGFRS_A0004Rules = { 320205: { mainRisk: 'GFRS_M0005', msg: '住院医疗提示:金额只能是0.5、1、1.5、2', - msg_1: '附加到国富人寿国富民惠医疗保险(2020版)最高基本保额不超过1万元。' + msg_1: '附加到国富人寿国富民惠医疗保险(2020版)最高基本保额不超过1万元。', + msg_2: '住院医疗提示:金额只能是0.5、1', }, 320206: { msg: '住院津贴提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍' @@ -682,18 +683,29 @@ export default { // 保额只能为5000 10000 15000 200000 if (currentEle.duty == '320205') { - if (!(value == '0.5' || value == '1' || value == '1.5' || value == '2')) { - this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg) - this.nextStepFlag = true - return false - } if (this.mainRiskCode === dutyGFRS_A0004Rules[currentEle.duty]['mainRisk']) { + console.log(1); if (!(value == '0.5' || value == '1')) { + console.log(2); + this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg_2) + this.nextStepFlag = true + return false + } else if(value-0 > 1){ + console.log(3); this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg_1) this.nextStepFlag = true return false } + } else { + if (!(value == '0.5' || value == '1' || value == '1.5' || value == '2')) { + this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg) + this.nextStepFlag = true + return false + } } + + + this.nextStepFlag = false return true }