Commit 3377f050 by zhuzhequan

fix:不传箱子不能清空箱子

parent 03090324
...@@ -907,6 +907,10 @@ const handleBoxClick = (item: PodMakeOrderData) => { ...@@ -907,6 +907,10 @@ const handleBoxClick = (item: PodMakeOrderData) => {
} }
const handleClearBox = async () => { const handleClearBox = async () => {
try { try {
if(!boxIndex.value){
ElMessage.warning('请选择箱子')
return
}
await ElMessageBox.alert('确定清空当前箱子吗?', '提示', { await ElMessageBox.alert('确定清空当前箱子吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -918,6 +922,7 @@ const handleClearBox = async () => { ...@@ -918,6 +922,7 @@ const handleClearBox = async () => {
if (!factoryNo) { if (!factoryNo) {
return return
} }
try { try {
const res = await clearBoxApi( const res = await clearBoxApi(
factoryNo, factoryNo,
......
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