Commit 4a385970 by linjinhong

fix:箱子数据取值调整

parent 7bddc437
...@@ -906,12 +906,12 @@ const handleClearBox = async () => { ...@@ -906,12 +906,12 @@ const handleClearBox = async () => {
return return
} }
ElMessage.success('清空成功') ElMessage.success('清空成功')
orderStore.setPodBoxList({ // orderStore.setPodBoxList({
boxList: null, // boxList: null,
factoryNo, // factoryNo,
box: boxIndex.value || undefined, // box: boxIndex.value || undefined,
warehouseId: warehouseId.value, // warehouseId: warehouseId.value,
}) // })
boxIndex.value = null boxIndex.value = null
podOrderDetailsData.value = {} podOrderDetailsData.value = {}
coverImage.value = '' coverImage.value = ''
...@@ -1013,11 +1013,11 @@ const clearAllBox = async () => { ...@@ -1013,11 +1013,11 @@ const clearAllBox = async () => {
try { try {
const res = await clearAllBoxApi() const res = await clearAllBoxApi()
if (res.code !== 200) return if (res.code !== 200) return
orderStore.setPodBoxList({ // orderStore.setPodBoxList({
boxList: res.data, // boxList: res.data,
factoryNo: userStore.user?.factory.id || '', // factoryNo: userStore.user?.factory.id || '',
warehouseId: warehouseId.value, // warehouseId: warehouseId.value,
}) // })
productionOrderRef.value.focus() productionOrderRef.value.focus()
podOrderDetailsData.value = {} podOrderDetailsData.value = {}
coverImage.value = '' coverImage.value = ''
......
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