Merge branch 'clickCopyv1.4' into lazyRouter

This commit is contained in:
wangsongsole 2022-08-19 15:29:09 +08:00
commit 0c77acfc2a
1 changed files with 9 additions and 0 deletions

View File

@ -596,6 +596,15 @@ export default class addKnockGold extends Component {
Notify.error('请完整的选择固定时间段') Notify.error('请完整的选择固定时间段')
return false 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
}
/* 验证有效期内,规则日期可用 */ /* 验证有效期内,规则日期可用 */