Commit 3377f050 by zhuzhequan

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

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