feat: 实现产需单按工序步骤生成排产明细功能
1. 重构接收产需单接口,支持按配置工序步骤生成明细 2. 新增工艺、工艺步骤CRUD接口与管理页面 3. 新增工序选择组件 4. 优化产需单页面,增加历史记录功能 5. 为排产明细添加工序步骤名称展示
This commit is contained in:
44
klp-ui/src/api/aps/process.js
Normal file
44
klp-ui/src/api/aps/process.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询工艺列表
|
||||
export function listProcess(query) {
|
||||
return request({
|
||||
url: '/flow/prodProcess/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询工艺详细
|
||||
export function getProcess(processId) {
|
||||
return request({
|
||||
url: '/flow/prodProcess/' + processId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增工艺
|
||||
export function addProcess(data) {
|
||||
return request({
|
||||
url: '/flow/prodProcess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工艺
|
||||
export function updateProcess(data) {
|
||||
return request({
|
||||
url: '/flow/prodProcess',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工艺
|
||||
export function delProcess(processIds) {
|
||||
return request({
|
||||
url: '/flow/prodProcess/' + processIds,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/aps/processStep.js
Normal file
44
klp-ui/src/api/aps/processStep.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询工艺步骤列表
|
||||
export function listProcessStep(query) {
|
||||
return request({
|
||||
url: '/flow/prodProcessStep/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询工艺步骤详细
|
||||
export function getProcessStep(stepId) {
|
||||
return request({
|
||||
url: '/flow/prodProcessStep/' + stepId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增工艺步骤
|
||||
export function addProcessStep(data) {
|
||||
return request({
|
||||
url: '/flow/prodProcessStep',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工艺步骤
|
||||
export function updateProcessStep(data) {
|
||||
return request({
|
||||
url: '/flow/prodProcessStep',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工艺步骤
|
||||
export function delProcessStep(stepIds) {
|
||||
return request({
|
||||
url: '/flow/prodProcessStep/' + stepIds,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -73,12 +73,12 @@ export function delScheduleItem(ids) {
|
||||
|
||||
// ====== 排产单明细项 接收/合并 ======
|
||||
|
||||
// 接收产需单(后端全字段复制)
|
||||
export function receiveScheduleItem(scheduleId) {
|
||||
// 接收产需单(根据配置的工序步骤生成排产明细)
|
||||
export function receiveScheduleItem(data) {
|
||||
return request({
|
||||
url: '/flow/prodScheduleItem/receive',
|
||||
method: 'post',
|
||||
data: { scheduleId }
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user