refactor(wms): 移除表单字段并优化领料确认逻辑
移除交付计划中的绑定订单字段和接收导入中的类型、逻辑库区列 为导入数据添加默认类型和逻辑库区值 在领料操作前添加确认弹窗提示
This commit is contained in:
@@ -506,16 +506,12 @@ export default {
|
||||
remark: `PC端领料创建-${this.label}`
|
||||
}
|
||||
|
||||
addPendingAction(pendingData).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.$message.success('领料成功,已创建待操作任务')
|
||||
this.getPendingAction() // 刷新待操作列表
|
||||
} else {
|
||||
this.$message.error(response.msg || '领料失败')
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error('领料失败:', error)
|
||||
this.$message.error('领料失败,请重试')
|
||||
this.$modal.confirm(`是否确认从${row.warehouseName || '仓库'}领料${row.currentCoilNo || '物料'}?`).then(() => {
|
||||
// 用户点击确认后执行的操作
|
||||
return addPendingAction(pendingData)
|
||||
}).then(response => {
|
||||
this.$message.success('领料成功,已创建待操作任务')
|
||||
this.getPendingAction() // 刷新待操作列表
|
||||
}).finally(() => {
|
||||
this.$set(row, 'picking', false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user