提交 | 用户 | 时间
|
fd2207
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询工艺流程列表 |
|
4 |
export function listTechnologyRoute(query) { |
|
5 |
return request({ |
|
6 |
url: '/bs/technologyRoute/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询工艺流程详细 |
|
13 |
export function getTechnologyRoute(id) { |
|
14 |
return request({ |
|
15 |
url: '/bs/technologyRoute/' + id, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增工艺流程 |
|
21 |
export function addTechnologyRoute(data) { |
|
22 |
return request({ |
|
23 |
url: '/bs/technologyRoute', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改工艺流程 |
|
30 |
export function updateTechnologyRoute(data) { |
|
31 |
return request({ |
|
32 |
url: '/bs/technologyRoute', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
|
|
38 |
export function updateTechnologyRouteAndChild(data) { |
|
39 |
return request({ |
|
40 |
url: '/bs/technologyRoute/technologyRouteAndChild', |
|
41 |
method: 'put', |
|
42 |
data: data |
|
43 |
}) |
|
44 |
} |
|
45 |
|
|
46 |
// 删除工艺流程 |
|
47 |
export function delTechnologyRoute(id) { |
|
48 |
return request({ |
|
49 |
url: '/bs/technologyRoute/' + id, |
|
50 |
method: 'delete' |
|
51 |
}) |
|
52 |
} |