61 lines
1.2 KiB
JavaScript
61 lines
1.2 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询排产单明细列表
|
|
export function listPlanDetail(query) {
|
|
return request({
|
|
url: '/aps/planDetail/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询排产单明细详细
|
|
export function getPlanDetail(planDetailId) {
|
|
return request({
|
|
url: '/aps/planDetail/' + planDetailId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增排产单明细
|
|
export function addPlanDetail(data) {
|
|
return request({
|
|
url: '/aps/planDetail',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 批量新增排产单明细
|
|
export function addPlanDetailBatch(data) {
|
|
return request({
|
|
url: '/aps/planDetail/batch',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改排产单明细
|
|
export function updatePlanDetail(data) {
|
|
return request({
|
|
url: '/aps/planDetail',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除排产单明细
|
|
export function delPlanDetail(planDetailId) {
|
|
return request({
|
|
url: '/aps/planDetail/' + planDetailId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 查询排产单对应的钢卷列表
|
|
export function listPlanCoils(planSheetId) {
|
|
return request({
|
|
url: '/aps/planDetail/coils/' + planSheetId,
|
|
method: 'get',
|
|
})
|
|
} |