Commit c9893ce8 by wuqian

修复校验

parent ab093293
......@@ -247,7 +247,6 @@ import useOrderStore from '@/store/cnOrder'
import {
getPackingCnDataApi,
clearBoxApi,
clearAllBoxApi,
getPodBoxListApi,
submitInspectionApi,
} from '@/api/podCnOrder'
......@@ -906,33 +905,33 @@ const print = (data: OrderData, forcePrint = false, callback?: () => void) => {
})
})
}
const clearAllBox = async () => {
try {
await ElMessageBox.alert('确定清空所有箱子吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
})
} catch {
productionOrderRef.value.focus()
return
}
try {
const res = await clearAllBoxApi()
if (res.code !== 200) return
orderStore.setPodBoxList({
boxList: res.data,
factoryNo: userStore.user?.factory.id || '',
warehouseId: warehouseId.value,
})
productionOrderRef.value.focus()
podOrderDetailsData.value = {}
coverImage.value = ''
boxIndex.value = null
} catch (error) {
productionOrderRef.value.focus()
console.error(error)
}
}
// const clearAllBox = async () => {
// try {
// await ElMessageBox.alert('确定清空所有箱子吗?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// })
// } catch {
// productionOrderRef.value.focus()
// return
// }
// try {
// const res = await clearAllBoxApi()
// if (res.code !== 200) return
// orderStore.setPodBoxList({
// boxList: res.data,
// factoryNo: userStore.user?.factory.id || '',
// warehouseId: warehouseId.value,
// })
// productionOrderRef.value.focus()
// podOrderDetailsData.value = {}
// coverImage.value = ''
// boxIndex.value = null
// } catch (error) {
// productionOrderRef.value.focus()
// console.error(error)
// }
// }
const handleRowClick = (row: ProductList) => {
console.log(907, row)
coverImage.value = row.previewImgs?.[0]?.url || ''
......
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