Commit 2a89cc86 by zhuzhequan

fix:bug修复

parent 1196ab7d
......@@ -496,12 +496,18 @@ const handleCreateInbound = async () => {
background: 'rgba(0, 0, 0, 0.3)',
})
try {
const skus = selections.value.map((r) => r.thirdSkuCode as string)
const res = await getBySkuAndUserMarkApi(firstWid, skus.join(','), null)
if (res.code !== 200) return
otherPurchaseData.value = res.data.map((item: InterskuList) =>
mapInterskuToProduct(item),
)
warehouseList.value = []
otherPurchaseData.value = []
for(const item of selections.value){
if(item.thirdSkuCode){
const userMark = item.thirdSkuCode.includes('JM')?null:item.thirdSkuCode.slice(0,4)
const res = await getBySkuAndUserMarkApi(firstWid, item.thirdSkuCode, userMark)
if (res.code !== 200) return
otherPurchaseData.value = otherPurchaseData.value.concat(res.data.map((r: InterskuList) =>
mapInterskuToProduct(r),
) )
}
}
await fetchReceiptLocationList('')
const listRes = await warehouseInfoGetAll()
warehouseList.value = listRes.data || []
......
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