Commit 7209ba67 by wusiyi

fix: 首次打开默认选中已配满箱子,切换箱子图片切换

parent 154b82d7
...@@ -729,6 +729,9 @@ const renderItemBox = (bool: boolean) => { ...@@ -729,6 +729,9 @@ const renderItemBox = (bool: boolean) => {
} }
} }
currentCode = '' currentCode = ''
} else {
// 切换箱子,默认展示第一张图片
coverImage.value = productList[0]?.previewImgs?.[0]?.url || ''
} }
podOrderDetailsData.value = data podOrderDetailsData.value = data
...@@ -1135,10 +1138,12 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => { ...@@ -1135,10 +1138,12 @@ const initOrderDetailBox = async (type: 'scan' | 'manual' = 'manual') => {
// 配货分拣 扫码切换配货区且配货完成 不提示 // 配货分拣 扫码切换配货区且配货完成 不提示
const boxs = pickFinished.map((item) => item.box) const boxs = pickFinished.map((item) => item.box)
console.log(type, '💼💼💼💼')
if (type === 'manual' && boxs.length > 0) { if (type === 'manual' && boxs.length > 0) {
nextTick(async () => { nextTick(async () => {
// 切换箱子至验货完成的箱子
boxChange.value = true
boxIndex.value = boxs[0] as number
try { try {
await ElMessageBox.alert( await ElMessageBox.alert(
`检测到${boxs.join(',')}号箱验货完成,请及时处理`, `检测到${boxs.join(',')}号箱验货完成,请及时处理`,
......
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