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.
62 lines
1.1 KiB
JavaScript
62 lines
1.1 KiB
JavaScript
1 year ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询生产派工列表
|
||
|
export function listProductplan(query) {
|
||
|
return request({
|
||
|
url: '/mes/productplan/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询生产派工详细
|
||
|
export function getProductplan(planId) {
|
||
|
return request({
|
||
|
url: '/mes/productplan/' + planId,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增生产派工
|
||
|
export function addProductplan(data) {
|
||
|
return request({
|
||
|
url: '/mes/productplan',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改生产派工
|
||
|
export function updateProductplan(data) {
|
||
|
return request({
|
||
|
url: '/mes/productplan',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除生产派工
|
||
|
export function delProductplan(planId) {
|
||
|
return request({
|
||
|
url: '/mes/productplan/' + planId,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获取派工编号
|
||
|
export function getDispatchCode() {
|
||
|
return request({
|
||
|
url: '/mes/productplan/getDispatchCode',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 生产工单新增生产派工List
|
||
|
export function orderAddMesProductPlanList(data) {
|
||
|
return request({
|
||
|
url: '/mes/productplan/orderAddMesProductPlanList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|