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.

54 lines
951 B
JavaScript

import request from '@/utils/request'
// 查询周排产计划列表
export function listPlan(query) {
return request({
url: '/production/plan/list',
method: 'get',
params: query
})
}
// 查询周排产计划详细
export function getPlan(id) {
return request({
url: '/production/plan/' + id,
method: 'get'
})
}
// 新增周排产计划
export function addPlan(data) {
return request({
url: '/production/plan',
method: 'post',
data: data
})
}
// 修改周排产计划
export function updatePlan(data) {
return request({
url: '/production/plan',
method: 'put',
data: data
})
}
// 删除周排产计划
export function delPlan(id) {
return request({
url: '/production/plan/' + id,
method: 'delete'
})
}
// 批量更新周排产计划
export function batchUpdatePlan(data) {
return request({
url: '/production/plan/batchUpdate',
method: 'put',
data: data
})
}