提交 | 用户 | 时间
|
e57a89
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询报工记录 表列表 |
|
4 |
export function listWorkReport(query) { |
|
5 |
return request({ |
|
6 |
url: '/om/workReport/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询报工记录 表详细 |
|
13 |
export function getWorkReport(id) { |
|
14 |
return request({ |
|
15 |
url: '/om/workReport/' + id, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增报工记录 表 |
|
21 |
export function addWorkReport(data) { |
|
22 |
return request({ |
|
23 |
url: '/om/workReport', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改报工记录 表 |
|
30 |
export function updateWorkReport(data) { |
|
31 |
return request({ |
|
32 |
url: '/om/workReport', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
|
|
38 |
// 删除报工记录 表 |
|
39 |
export function delWorkReport(id) { |
|
40 |
return request({ |
|
41 |
url: '/om/workReport/' + id, |
|
42 |
method: 'delete' |
|
43 |
}) |
|
44 |
} |