Commit 21e76b01 by qinjianhui

fix: 问题修改

parent ded1d9e8
...@@ -414,7 +414,7 @@ const validateField = ( ...@@ -414,7 +414,7 @@ const validateField = (
) => { ) => {
const value = row[field] const value = row[field]
const strValue = value === 0 || value === '0' ? '0' : String(value ?? '') const strValue = value === 0 || value === '0' ? '0' : String(value ?? '')
const fieldLabel = '本次发货数量' // const fieldLabel = '本次发货数量'
if (!strValue) { if (!strValue) {
if (field === 'currentShipQuantity') if (field === 'currentShipQuantity')
...@@ -422,9 +422,6 @@ const validateField = ( ...@@ -422,9 +422,6 @@ const validateField = (
} else if (!/^\d+$/.test(strValue)) { } else if (!/^\d+$/.test(strValue)) {
if (field === 'currentShipQuantity') if (field === 'currentShipQuantity')
row._currentShipQuantityError = '只能输入正整数' row._currentShipQuantityError = '只能输入正整数'
} else if (Number(strValue) === 0) {
if (field === 'currentShipQuantity')
row._currentShipQuantityError = `${fieldLabel}不能为0`
} else { } else {
if (field === 'currentShipQuantity') row._currentShipQuantityError = '' if (field === 'currentShipQuantity') row._currentShipQuantityError = ''
} }
......
...@@ -689,7 +689,7 @@ const handleDeleteOrder = async () => { ...@@ -689,7 +689,7 @@ const handleDeleteOrder = async () => {
return ElMessage.warning('请选择一条数据') return ElMessage.warning('请选择一条数据')
} }
try { try {
await ElMessageBox.confirm('确定删除选中的订单??', '提示', { await ElMessageBox.confirm('确定删除选中的订单?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment