Commit dd6fb12d by linjinhong

fix:修改播种墙配货

parent 882de5c9
......@@ -119,7 +119,7 @@
<div
v-for="img in row.previewImgs"
:key="img"
@click="handleCurrentChange(img.url)"
@click.stop="handleCurrentChange(img.url)"
style="cursor: pointer; margin-right: 5px; flex: 1"
>
<img v-if="img.url" :src="img.url" alt="" />
......@@ -225,7 +225,7 @@ import type { WebSocketMessage } from '@/utils/websocket'
import {
OrderData,
PodMakeOrderData,
// ProductList,
ProductList,
} from '@/types/api/podMakeOrder'
import useOrderStore from '@/store/order'
import {
......@@ -676,14 +676,16 @@ const initOrderDetailBox = async () => {
}
return item
})
console.log(669, podOrderDetailsData.value)
podOrderDetailsData.value =
boxList.find((item) => item.data)?.data || undefined
boxIndex.value = boxList.find((item) => item.data)?.box || null
podOrderDetailsData.value?.productList?.forEach((el) => {
if (!el.previewImgs) el.previewImgs = JSON.parse(el.imageAry)
})
coverImage.value =
boxList.find((item) => item.data)?.data?.productList?.[0]
?.previewImgs?.[0].url || ''
podOrderDetailsData.value?.productList?.[0]?.previewImgs?.[0].url || ''
if (
podOrderDetailsData.value &&
podOrderDetailsData.value.pickingNumber ===
......@@ -903,7 +905,9 @@ const clearAllBox = async () => {
console.error(error)
}
}
const handleRowClick = () => {
const handleRowClick = (row: ProductList) => {
console.log(907, row)
coverImage.value = row.previewImgs?.[0]?.url || ''
productionOrderRef.value.focus()
}
const handleCurrentChange = (url: string) => {
......
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