Commit c9893ce8 by wuqian

修复校验

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