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
833 B
JavaScript
45 lines
833 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询生产箱码和托盘绑定关系列表
|
|
export function listTask(query) {
|
|
return request({
|
|
url: '/mes/task/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询生产箱码和托盘绑定关系详细
|
|
export function getTask(id) {
|
|
return request({
|
|
url: '/mes/task/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增生产箱码和托盘绑定关系
|
|
export function addTask(data) {
|
|
return request({
|
|
url: '/mes/task',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改生产箱码和托盘绑定关系
|
|
export function updateTask(data) {
|
|
return request({
|
|
url: '/mes/task',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除生产箱码和托盘绑定关系
|
|
export function delTask(id) {
|
|
return request({
|
|
url: '/mes/task/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|