Commit 9fad3a5e by qinjianhui

fix: 问题修改

parent e2541ae6
...@@ -154,15 +154,15 @@ const buildQueryParams = () => ({ ...@@ -154,15 +154,15 @@ const buildQueryParams = () => ({
}) })
const applyQueryWarehouseName = (records: OrderInventoryData[]) => { const applyQueryWarehouseName = (records: OrderInventoryData[]) => {
const { inventoryStatus, warehouseId } = filterForm.value const { warehouseId } = filterForm.value
if (inventoryStatus !== 3 || !warehouseId) { if (!warehouseId) {
return records return records
} }
const warehouseName = props.warehouseList.find((w) => w.id === warehouseId) const warehouseName = props.warehouseList.find((w) => w.id === warehouseId)
?.name ?.name
return records.map((record) => ({ return records.map((record) => ({
...record, ...record,
warehouseName, warehouseName: record.inventoryStatus === 3 ? warehouseName : record.warehouseName,
})) }))
} }
......
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