提交 | 用户 | 时间
|
0cceb6
|
1 |
import request from '@/utils/request' |
Y |
2 |
|
|
3 |
// 查询返修数据列表 |
|
4 |
export function listRepairData(query) { |
|
5 |
return request({ |
|
6 |
url: '/rm/repairData/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询返修数据详细 |
|
13 |
export function getRepairData(id) { |
|
14 |
return request({ |
|
15 |
url: '/rm/repairData/' + id, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增返修数据 |
|
21 |
export function addRepairData(data) { |
|
22 |
return request({ |
|
23 |
url: '/rm/repairData', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改返修数据 |
|
30 |
export function updateRepairData(data) { |
|
31 |
return request({ |
|
32 |
url: '/rm/repairData', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
|
|
38 |
// 删除返修数据 |
|
39 |
export function delRepairData(id) { |
|
40 |
return request({ |
|
41 |
url: '/rm/repairData/' + id, |
|
42 |
method: 'delete' |
|
43 |
}) |
|
44 |
} |