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 + } /* 验证有效期内,规则日期可用 */