From aead2c2197d34795841e48c6bc70f64f4d2b4427 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Fri, 27 Mar 2020 09:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91GFRS-831=20=E5=9B=BD?= =?UTF-8?q?=E5=AF=8C=E4=BA=BA=E5=AF=BF=E5=9B=BD=E5=AF=8C=E6=B0=91=E6=83=A0?= =?UTF-8?q?=E5=8C=BB=E7=96=97=E4=BF=9D=E9=99=A9=EF=BC=882020=E7=89=88?= =?UTF-8?q?=EF=BC=89+=20=E5=9B=BD=E5=AF=8C=E4=BA=BA=E5=AF=BF=E9=99=84?= =?UTF-8?q?=E5=8A=A0=E4=BD=8F=E9=99=A2=E5=8C=BB=E7=96=97=E4=BF=9D=E9=99=A9?= =?UTF-8?q?=20=E9=99=84=E5=8A=A0=E9=99=A9=E7=9A=84=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BF=9D=E9=A2=9D=20=EF=BC=8C=20=E5=BD=95=E5=85=A5=E5=A4=A7?= =?UTF-8?q?=E4=BA=8E=202=20=E7=9A=84=E6=95=B0=E5=AD=97=E6=97=B6=20?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=20=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) 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 }