From c5a13b5bc890ed511d4201e77c8d4ad68f007f01 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 19 Aug 2022 15:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=AB=8B=E5=87=8F?= =?UTF-8?q?=E9=87=91=E5=9B=BA=E5=AE=9A=E6=97=B6=E9=97=B4=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=A4=A7=E4=BA=8E=E7=94=9F=E6=95=88=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 24d5548b..41c12667 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -596,6 +596,15 @@ export default class addKnockGold extends Component { Notify.error('请完整的选择固定时间段') return false } + if ( + (this.state.model.usable_time === 'fiexd' && + this.state.model.fixed_time[0] > this.state.model.entry_time[1]) || + (this.state.model.usable_time === 'fiexd' && + this.state.model.fixed_time[1] > this.state.model.entry_time[1]) + ) { + Notify.error('固定开始时间或结束时间不允许大于生效结束时间') + return false + } /* 验证有效期内,规则日期可用 */