优化修改订单

This commit is contained in:
Mrking 2025-01-19 22:41:01 +08:00
parent 3db30d8fd2
commit f59d708ef0
1 changed files with 6 additions and 3 deletions

View File

@ -293,7 +293,10 @@ const itemFormEntrysRef = ref() // 表单 Ref
const itemFormEntrysRules = reactive({
price: [{ required: true, message: '单价不能为空', trigger: 'blur' }],
qty: [{ required: true, message: '单价不能为空', trigger: 'blur' }],
qty: [
{ required: true, message: '数量不能为空', trigger: 'blur' },
{ min: 1, message: '数量必须大于0', trigger: 'change' }
],
})
@ -361,8 +364,8 @@ const addRow = (row) => {
materialName: row.name,
producer: row.producer,
newType: 1,
qty: 1,
price: 0,
qty: null,
price: null,
amount: 0,
discount: 0,
deliveryDate: row.deliveryDate,