Commit 1d7eda61 by wusiyi

fix: 修复pod发货不显示产品图bug

parent 717659b0
...@@ -50,10 +50,12 @@ export default function useShipment(callback?: () => void) { ...@@ -50,10 +50,12 @@ export default function useShipment(callback?: () => void) {
} }
let rowData let rowData
const code1 = code?.split('_')[3] const code1 = code?.split('_')[3]
const code2 = code?.split('_')[0]
for (const item of orderList.value) { for (const item of orderList.value) {
// rowData = item.productList?.find((jj) => jj.factorySubOrderNumber === code1) // rowData = item.productList?.find((jj) => jj.factorySubOrderNumber === code1)
rowData = item.productList?.find( rowData = item.productList?.find(
(jj) => `${jj.thirdSubOrderNumber}` === code1, (jj) =>
`${jj.thirdSubOrderNumber}` === code1 && item.userMark === code2,
) )
if (rowData) { if (rowData) {
rowData.factoryOrderNumber = item.factoryOrderNumber rowData.factoryOrderNumber = item.factoryOrderNumber
......
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