Commit dd6fb12d by linjinhong

fix:修改播种墙配货

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