feat(分卷): 实现镀锌工序特殊分卷功能
新增特殊分卷功能,包括分步分条界面、API接口及状态管理。主要修改: 1. 添加分步分条组件,支持新增、编辑、删除分条 2. 扩展分卷API接口,包括开始/完成/取消特殊分卷 3. 优化操作按钮加载状态和错误处理 4. 调整界面布局和样式
This commit is contained in:
@@ -238,4 +238,68 @@ export function restoreMaterialCoil(coilId) {
|
||||
url: '/wms/materialCoil/rollback/' + coilId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 开始分条,锁定钢卷
|
||||
*/
|
||||
export function startSpecialSplit(coilId) {
|
||||
if (!coilId) {
|
||||
return Promise.reject(new Error('coilId is required'))
|
||||
}
|
||||
return request({
|
||||
url: '/wms/materialCoil/specialSplit/start',
|
||||
method: 'post',
|
||||
params: {
|
||||
coilId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建一个分条
|
||||
*/
|
||||
export function createSpecialChild(parentCoilId, pendingActionId, data) {
|
||||
return request({
|
||||
url: '/wms/materialCoil/specialSplit/createChild',
|
||||
method: 'post',
|
||||
data: data,
|
||||
params: {
|
||||
parentCoilId,
|
||||
pendingActionId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成分卷操作
|
||||
*/
|
||||
export function completeSpecialSplit(pendingActionId) {
|
||||
if (!pendingActionId) {
|
||||
return Promise.reject(new Error('pendingActionId is required'))
|
||||
}
|
||||
return request({
|
||||
url: '/wms/materialCoil/specialSplit/complete',
|
||||
method: 'post',
|
||||
params: {
|
||||
pendingActionId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消镀锌分卷
|
||||
*/
|
||||
export function cancelSpecialSplit(pendingActionId) {
|
||||
if (!pendingActionId) {
|
||||
return Promise.reject(new Error('pendingActionId is required'))
|
||||
}
|
||||
return request({
|
||||
url: '/wms/materialCoil/specialSplit/cancel',
|
||||
method: 'post',
|
||||
params: {
|
||||
pendingActionId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user