云
10 天以前 874afbfb8eec12fe6ca60565c80f620f68e30d62
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import type { PageParam, PageResult } from '@vben/request';
 
import { requestClient } from '#/api/request';
 
export namespace MesWmTransactionApi {
  /** 库存事务流水 */
  export interface Transaction {
    id?: number;
    type?: number; // 事务类型(1-入库 2-出库)
    typeName?: string; // 事务类型名称
    bizType?: number; // 业务类型编码
    bizTypeName?: string; // 业务类型名称
    bizCode?: string; // 业务单号
    itemId?: number; // 物料ID
    itemCode?: string; // 物料编码
    itemName?: string; // 物料名称
    specification?: string; // 规格型号
    unitMeasureName?: string; // 计量单位名称
    itemTypeName?: string; // 物料类别名称
    quantity?: number; // 变动数量
    batchId?: number; // 批次ID
    batchCode?: string; // 批次号
    palletCode?: string; // 出库明细中的托盘码
    bagCode?: string; // 袋码
    shipmentId?: number;
    warehouseId?: number; // 仓库ID
    warehouseName?: string; // 仓库名称
    locationId?: number; // 库区ID
    locationName?: string; // 库区名称
    areaId?: number; // 库位ID
    areaName?: string; // 库位名称
    transactionTime?: string; // 事务发生时间
    createTime?: string; // 创建时间
  }
 
  /** 分页查询参数 */
  export interface PageParams extends PageParam {
    itemId?: number;
    batchCodeExact?: string;
    bizCodeExact?: string;
    shipmentId?: number;
    batchCode?: string;
    warehouseId?: number;
    locationId?: number;
    areaId?: number;
    type?: number;
    bizType?: number;
    bizCode?: string;
    materialStockId?: number;
    startTime?: string;
    endTime?: string;
  }
}
 
/** 分页查询库存事务流水 */
export function getTransactionPage(params: MesWmTransactionApi.PageParams) {
  return requestClient.get<PageResult<MesWmTransactionApi.Transaction>>(
    '/mes/wm/transaction/page',
    { params },
  );
}