schangxiang@126.com
2024-11-21 60735779c303c2dd10feea45d7fd761103b225e0
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
67
68
69
70
71
72
73
74
75
76
77
import request from '/@/utils/request';
enum Api {
  AddWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/add',
  DeleteWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/delete',
  UpdateWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/update',
  PageWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/page',
  ListWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/list',
  DetailWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/detail',
  ImportExcelWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/importExcel',
  DownloadExcelTemplateWmsInventoryCheckRecord = '/api/wmsInventoryCheckRecord/downloadExcelTemplate',
}
 
// 增加盘点记录
export const addWmsInventoryCheckRecord = (params?: any) =>
    request({
        url: Api.AddWmsInventoryCheckRecord,
        method: 'post',
        data: params
    });
 
// 删除盘点记录
export const deleteWmsInventoryCheckRecord = (params?: any) => 
    request({
            url: Api.DeleteWmsInventoryCheckRecord,
            method: 'post',
            data: params
        });
 
// 编辑盘点记录
export const updateWmsInventoryCheckRecord = (params?: any) => 
    request({
            url: Api.UpdateWmsInventoryCheckRecord,
            method: 'post',
            data: params
        });
 
// 导入盘点记录
export const importExcelWmsInventoryCheckRecord = (params?: any) =>
    request({
        url: Api.ImportExcelWmsInventoryCheckRecord,
        method: 'post',
        data: params
    });
 
// 下载导入盘点记录模板
export const downloadExcelTemplateWmsInventoryCheckRecord = (params?: any) => 
    request({
            url: Api.DownloadExcelTemplateWmsInventoryCheckRecord,
            method: 'get',
            data: params,
            responseType: 'blob'
        });
 
 
// 分页查询盘点记录
export const pageWmsInventoryCheckRecord = (params?: any) => 
    request({
            url: Api.PageWmsInventoryCheckRecord,
            method: 'post',
            data: params
        });
 
// 不分页查询盘点记录
export const listWmsInventoryCheckRecord = (params?: any) => 
    request({
            url: Api.ListWmsInventoryCheckRecord,
            method: 'get',
            data: params
        });
 
// 详情盘点记录
export const detailWmsInventoryCheckRecord = (id: any) => 
    request({
            url: Api.DetailWmsInventoryCheckRecord,
            method: 'get',
            data: { id }
        });