修复 立减金固定时间不能大于生效时间
This commit is contained in:
parent
2264e57920
commit
c5a13b5bc8
|
@ -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
|
||||
}
|
||||
|
||||
/* 验证有效期内,规则日期可用 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue