修复立减金 面额正则验证bug
This commit is contained in:
parent
5d78abd9d5
commit
42c335b381
|
@ -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'}
|
||||||
|
|
Loading…
Reference in New Issue