zhangwencui
7 天以前 7619c19a67c2ac824f803090bab753fc5ea14408
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
62
63
64
65
66
import type { PageParam, PageResult } from '@vben/request';
 
import { requestClient } from '#/api/request';
 
export namespace WlsStockTakingResultApi {
  /** 盘点结果 */
  export interface StockTakingResult {
    id?: number; // 结果编号
    taskId?: number; // 任务编号
    lineId?: number; // 盘点行编号
    materialStockId?: number; // 库存编号
    itemId?: number; // 物料编号
    itemCode?: string; // 物料编码
    itemName?: string; // 物料名称
    specification?: string; // 规格型号
    unitMeasureName?: string; // 计量单位名称
    batchId?: number; // 批次编号
    batchCode?: string; // 批次号
    warehouseId?: number; // 仓库编号
    warehouseName?: string; // 仓库名称
    locationId?: number; // 库区编号
    locationName?: string; // 库区名称
    areaId?: number; // 库位编号
    areaName?: string; // 库位名称
    quantity?: number; // 在库数量
    takingQuantity?: number; // 盘点数量
    remark?: string; // 备注
    createTime?: string; // 创建时间
  }
}
 
/** 查询盘点结果分页 */
export function getStockTakingResultPage(params: PageParam) {
  return requestClient.get<
    PageResult<WlsStockTakingResultApi.StockTakingResult>
  >('/mes/wm/stocktaking-task-result/page', { params });
}
 
/** 查询盘点结果详情 */
export function getStockTakingResult(id: number) {
  return requestClient.get<WlsStockTakingResultApi.StockTakingResult>(
    '/mes/wm/stocktaking-task-result/get',
    { params: { id } },
  );
}
 
/** 新增盘点结果 */
export function createStockTakingResult(
  data: WlsStockTakingResultApi.StockTakingResult,
) {
  return requestClient.post('/mes/wm/stocktaking-task-result/create', data);
}
 
/** 修改盘点结果 */
export function updateStockTakingResult(
  data: WlsStockTakingResultApi.StockTakingResult,
) {
  return requestClient.put('/mes/wm/stocktaking-task-result/update', data);
}
 
/** 删除盘点结果 */
export function deleteStockTakingResult(id: number) {
  return requestClient.delete(
    `/mes/wm/stocktaking-task-result/delete?id=${id}`,
  );
}