修复 新建、编辑立减金,可用时间段不允许输入0天
This commit is contained in:
parent
0cf86dff04
commit
01d9f2c263
|
@ -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
|
||||
/>
|
||||
</div>
|
||||
<span className='effect_dates'>有效期</span>
|
||||
|
|
Loading…
Reference in New Issue