main^2
fanfan 6 months ago
parent 0fa8a10131
commit 61d25ed2d6
  1. 3
      src/views/dataCenter/goods/Index.vue

@ -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 = ''

Loading…
Cancel
Save