diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 7e121f79..07061553 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -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 /> 有效期