fix(wms/coil): 注释待操作列表完成标记逻辑并传递actionId
临时注释了根据actionId完成待操作任务的代码,同时在调用接口时传入当前actionId参数
This commit is contained in:
@@ -680,7 +680,7 @@ export default {
|
||||
}))
|
||||
};
|
||||
|
||||
const response = await splitMaterialCoil(splitData);
|
||||
const response = await splitMaterialCoil({ ...splitData, actionId: this.actionId });
|
||||
if (response.code === 200) {
|
||||
this.$message.success('分条保存成功');
|
||||
|
||||
@@ -698,9 +698,9 @@ export default {
|
||||
}));
|
||||
|
||||
// 如果是从待操作列表进来的,标记操作为完成
|
||||
if (this.actionId) {
|
||||
await completeAction(this.actionId, response.msg);
|
||||
}
|
||||
// if (this.actionId) {
|
||||
// await completeAction(this.actionId, response.msg);
|
||||
// }
|
||||
|
||||
// 延迟返回,让用户看到成功提示
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -686,7 +686,7 @@ export default {
|
||||
abnormals: this.abnormals,
|
||||
};
|
||||
|
||||
const response = await updateMaterialCoil(updateData);
|
||||
const response = await updateMaterialCoil({ ...updateData, actionId: this.actionId });
|
||||
|
||||
// 更新完成后如果选定了合同,需要增加与合同的绑定关系
|
||||
const coilId = response.msg;
|
||||
@@ -701,11 +701,9 @@ export default {
|
||||
this.$message.success('钢卷信息更新成功');
|
||||
|
||||
// 如果是从待操作列表进来的,标记操作为完成
|
||||
if (this.actionId) {
|
||||
await completeAction(this.actionId, response.msg);
|
||||
}
|
||||
|
||||
|
||||
// if (this.actionId) {
|
||||
// await completeAction(this.actionId, response.msg);
|
||||
// }
|
||||
|
||||
// 延迟返回
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user