wujingjing
2024-04-22 f106e4dffb8279cb90726e83e7edd631f4c77699
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
import request from '/@/utils/request';
/**
 * @summary 获取所有清单
 */
export const GetAllPhmLogicTree = async (req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/GetAll@V1.0',
        method: 'get',
    });
};
 
/**
 * @summary 添加一个清单
 */
export const InsertAPhmLogicTree = async (data, req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/Insert@V1.0',
        method: 'post',
        data,
    });
};
 
/**
 * @summary 修改一个清单
 */
export const UpdateAPhmLogicTree = async (data, req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/UpdateSortCode@V1.0',
        method: 'put',
        data,
    });
};
 
/**
 * @summary 修改清单排序码
 */
export const UpdatePhmLogicTreeSorter = async (data, req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/UpdateSorter@V1.0',
        method: 'put',
        data,
    });
};
 
/**
 * @summary 删除一个清单
 */
export const DeleteAPhmLogicTree = async (params, req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/DeleteByID@V1.0',
        method: 'delete',
        params,
    });
};
 
/**
 * @summary 通过 PolicyID 获取所有清单
 */
export const GetLogicTreeByPolicyID = async (params, req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/GetByPolicyID@V1.0',
        method: 'GET',
        params: params,
    });
};
 
/**
 * @summary 是否已存在当前 logicID
 */
export const GetIsExistLogicTree = async (params, req: any = request) => {
    return req({
        url: '/Phm/Logic/Tree/IsExist@V1.0',
        method: 'GET',
        params,
    });
};