gaoluyang
2026-06-29 27cd042df9aca0383a49f3514bc21958dd890912
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import type { PageParam, PageResult } from '../../../packages/effects/request/src';
 
import { requestClient } from '#/api/request';
 
export namespace WmsInventoryApi {
  /** WMS 库存统计 */
  export interface Inventory {
    id?: number;
    itemId?: number;
    itemCode?: string;
    itemName?: string;
    unit?: string;
    skuId?: number;
    skuCode?: string;
    skuName?: string;
    warehouseId?: number;
    warehouseName?: string;
    quantity?: number;
    remark?: string;
    createTime?: Date;
  }
 
  /** WMS 库存统计列表请求 */
  export interface InventoryListReq {
    warehouseId: number;
  }
}
 
/** 查询库存统计分页 */
export function getInventoryPage(params: PageParam) {
  return requestClient.get<PageResult<WmsInventoryApi.Inventory>>(
    '/wms/inventory/page',
    { params },
  );
}
 
/** 查询库存统计列表 */
export function getInventoryList(params: WmsInventoryApi.InventoryListReq) {
  return requestClient.get<WmsInventoryApi.Inventory[]>('/wms/inventory/list', {
    params,
  });
}