From 01d9f2c263d7a7c86df7d54322e784be49991127 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 17 Jun 2022 09:50:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E3=80=81=E7=BC=96=E8=BE=91=E7=AB=8B=E5=87=8F=E9=87=91=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=97=B6=E9=97=B4=E6=AE=B5=E4=B8=8D=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E8=BE=93=E5=85=A50=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 7e121f79..07061553 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -455,10 +455,12 @@ export default class addKnockGold extends Component { this.state.model.entry_time[0], this.state.model.entry_time[1] ) - if (TimeDiffer < Number(this.state.model.effect_date)) { + if ( + TimeDiffer < Number(this.state.model.effect_date) || + 1 > Number(this.state.model.effect_date) + ) { Notify.error( - `有限期不允许大于生效时间段 - 注:当前有效期最大时间为 ${TimeDiffer} 天` + `有限期不允许大于生效时间段 注:当前有效期最小时间为 1 天,最大时间为 ${TimeDiffer} 天` ) return false } @@ -964,6 +966,7 @@ export default class addKnockGold extends Component { disabled={this.props?.data?.id ? true : false} width='195px' popupWidth='195px' + disableSearch /> 有效期