Commit 21e76b01 by qinjianhui

fix: 问题修改

parent ded1d9e8
......@@ -414,7 +414,7 @@ const validateField = (
) => {
const value = row[field]
const strValue = value === 0 || value === '0' ? '0' : String(value ?? '')
const fieldLabel = '本次发货数量'
// const fieldLabel = '本次发货数量'
if (!strValue) {
if (field === 'currentShipQuantity')
......@@ -422,9 +422,6 @@ const validateField = (
} else if (!/^\d+$/.test(strValue)) {
if (field === 'currentShipQuantity')
row._currentShipQuantityError = '只能输入正整数'
} else if (Number(strValue) === 0) {
if (field === 'currentShipQuantity')
row._currentShipQuantityError = `${fieldLabel}不能为0`
} else {
if (field === 'currentShipQuantity') row._currentShipQuantityError = ''
}
......
......@@ -689,7 +689,7 @@ const handleDeleteOrder = async () => {
return ElMessage.warning('请选择一条数据')
}
try {
await ElMessageBox.confirm('确定删除选中的订单??', '提示', {
await ElMessageBox.confirm('确定删除选中的订单?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
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