diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index af97e7be..97ba2d7d 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -411,8 +411,8 @@ export default class addKnockGold extends Component { } if ( - !/^[0-9]*$/.test(this.state.model.denomination) || - !/^[0-9]*$/.test(this.state.model.reduce_amount) + !/([1-9]\d*\.?\d*)|(0\.\d*[1-9])/.test(this.state.model.denomination) || + !/([1-9]\d*\.?\d*)|(0\.\d*[1-9])/.test(this.state.model.reduce_amount) ) { Notify.error('请输入正确的面额金额或立减金额') return false @@ -623,7 +623,7 @@ export default class addKnockGold extends Component { unit='元' disabled={this.props?.data?.id ? true : false} countShow={false} - maxLength={4} + maxLength={6} height={'36px'} width={'231px'} alignment={'left'} @@ -642,7 +642,7 @@ export default class addKnockGold extends Component { unit='元' disabled={this.props?.data?.id ? true : false} countShow={false} - maxLength={4} + maxLength={6} height={'36px'} width={'231px'} alignment={'left'}