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.
LanJu_UI/src/api/mes/reportWorkConsume.js

80 lines
1.6 KiB
JavaScript

import request from '@/utils/request'
// 查询生产报工物料消耗列表
export function listReportWorkConsume(query) {
return request({
url: '/mes/reportWorkConsume/list',
method: 'get',
params: query
});
}
// 查询生产报工物料消耗详细
export function getReportWorkConsume(recordId) {
return request({
url: '/mes/reportWorkConsume/' + recordId,
method: 'get'
});
}
// 新增生产报工物料消耗
export function addReportWorkConsume(data) {
return request({
url: '/mes/reportWorkConsume',
method: 'post',
data: data
});
}
// 新增生产报工物料消耗
export function addConsumes(data) {
return request({
url: '/mes/reportWorkConsume/addConsumes',
method: 'post',
data: data
});
}
// 修改生产报工物料消耗
export function updateReportWorkConsume(data) {
return request({
url: '/mes/reportWorkConsume',
method: 'put',
data: data
});
}
// 删除生产报工物料消耗
export function delReportWorkConsume(recordId) {
return request({
url: '/mes/reportWorkConsume/' + recordId,
method: 'delete'
});
}
// 查询报工物料损耗详细列表
export function getConsumeList(query) {
return request({
url: '/mes/reportWorkConsume/getConsumeList',
method: 'get',
params: query
});
}
// 提交报工物料损耗详细列表
export function submitConsumePS(data) {
return request({
url: '/mes/reportWorkConsume/submitConsumePS',
method: 'post',
data: data
});
}
/**提交报工信息**/
export function submitReportInfo(data) {
return request({
url: '/mes/reportWorkConsume/submitReportInfo',
method: 'post',
data: data
});
}