|
|
@ -946,9 +946,6 @@ export default { |
|
|
|
if (row < 0) { |
|
|
|
if (row < 0) { |
|
|
|
this.$message.error('金额不能小于0') |
|
|
|
this.$message.error('金额不能小于0') |
|
|
|
this.batchRate = '' |
|
|
|
this.batchRate = '' |
|
|
|
} else if (row.startsWith('0')) { |
|
|
|
|
|
|
|
this.batchRate = '' |
|
|
|
|
|
|
|
// 金额小数部分不能超过2位 |
|
|
|
|
|
|
|
} else if (!/^\d+(\.\d{1,2})?$/.test(row)) { |
|
|
|
} else if (!/^\d+(\.\d{1,2})?$/.test(row)) { |
|
|
|
this.$message.error('请输入数字!') |
|
|
|
this.$message.error('请输入数字!') |
|
|
|
this.batchRate = '' |
|
|
|
this.batchRate = '' |
|
|
|