Commit 9fad3a5e by qinjianhui

fix: 问题修改

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