You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
758 B
JavaScript
45 lines
758 B
JavaScript
2 years ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询报工报表列表
|
||
|
export function listReportWork(query) {
|
||
|
return request({
|
||
|
url: '/mes/reportWork/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 查询报工报表详细
|
||
|
export function getReportWork(id) {
|
||
|
return request({
|
||
|
url: '/mes/reportWork/' + id,
|
||
|
method: 'get'
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 新增报工报表
|
||
|
export function addReportWork(data) {
|
||
|
return request({
|
||
|
url: '/mes/reportWork',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 修改报工报表
|
||
|
export function updateReportWork(data) {
|
||
|
return request({
|
||
|
url: '/mes/reportWork',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
// 删除报工报表
|
||
|
export function delReportWork(id) {
|
||
|
return request({
|
||
|
url: '/mes/reportWork/' + id,
|
||
|
method: 'delete'
|
||
|
});
|
||
|
}
|