diff --git a/src/api/storage.inventory/inventory.ts b/src/api/storage.inventory/inventory.ts index 7df96180..5a1c5fca 100644 --- a/src/api/storage.inventory/inventory.ts +++ b/src/api/storage.inventory/inventory.ts @@ -17,6 +17,21 @@ export function getInventoryList(data: any): Promise { } as any) } +/** 按商品查询库存明细:group_by_space=false 返回 quantity > 1 的 wms_storage 明细行(按 id 倒序);group_by_space=true 按库位汇总 */ +export function getInventoryListByStockId(data: { stock_id: number; group_by_space?: boolean }): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.inventory.listByStockId', + v, + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as any) +} + export function quickPutaway(data: { receiving_id: number; id?: number }): Promise { const body: Record = { ...data } if (body.receiving_id === undefined && body.id != null) { diff --git a/src/views/storage/inventory/component/panelstockdetail.vue b/src/views/storage/inventory/component/panelstockdetail.vue index 6661d39a..c98ced12 100644 --- a/src/views/storage/inventory/component/panelstockdetail.vue +++ b/src/views/storage/inventory/component/panelstockdetail.vue @@ -4,11 +4,12 @@
+ + 按明细 + 按库位汇总 + + + 刷新 +
- - - +
+ + + + +