222
schangxiang@126.com
2024-11-29 7d345dd5aa6411e982c5e0c56846ada36550970a
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
import request from '/@/utils/request';
enum Api {
  AddWmsSubstituteGood = '/api/wmsSubstituteGood/add',
  DeleteWmsSubstituteGood = '/api/wmsSubstituteGood/delete',
  UpdateWmsSubstituteGood = '/api/wmsSubstituteGood/update',
  PageWmsSubstituteGood = '/api/wmsSubstituteGood/page',
  DetailWmsSubstituteGood = '/api/wmsSubstituteGood/detail',
}
 
// 增加替代品管理
export const addWmsSubstituteGood = (params?: any) =>
    request({
        url: Api.AddWmsSubstituteGood,
        method: 'post',
        data: params,
    });
 
// 删除替代品管理
export const deleteWmsSubstituteGood = (params?: any) => 
    request({
            url: Api.DeleteWmsSubstituteGood,
            method: 'post',
            data: params,
        });
 
// 编辑替代品管理
export const updateWmsSubstituteGood = (params?: any) => 
    request({
            url: Api.UpdateWmsSubstituteGood,
            method: 'post',
            data: params,
        });
 
// 分页查询替代品管理
export const pageWmsSubstituteGood = (params?: any) => 
    request({
            url: Api.PageWmsSubstituteGood,
            method: 'post',
            data: params,
        });
 
// 详情替代品管理
export const detailWmsSubstituteGood = (id: any) => 
    request({
            url: Api.DetailWmsSubstituteGood,
            method: 'get',
            data: { id },
        });