Commit 2a89cc86 by zhuzhequan

fix:bug修复

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