修复立减金 面额正则验证bug

This commit is contained in:
wangsongsole 2022-06-13 14:12:00 +08:00
parent 5d78abd9d5
commit 42c335b381
1 changed files with 4 additions and 4 deletions

View File

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