From 1a2d9063cedec3680310e901d7ce3da1258099f8 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Tue, 31 Mar 2020 16:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=89=BA=E5=88=A0=E9=99=A4=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/ProcessPlanningNew.js | 2 +- .../ProcessPlanningNew/index.vue | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/api/ManufacturingCenter/ProcessPlanningNew.js b/src/api/ManufacturingCenter/ProcessPlanningNew.js index 28e1b23c..a08b6816 100644 --- a/src/api/ManufacturingCenter/ProcessPlanningNew.js +++ b/src/api/ManufacturingCenter/ProcessPlanningNew.js @@ -400,7 +400,7 @@ export function deleteOne(num0, num1) { data: { UserID: state.state.user.id, ModularID: router.currentRoute.path, - type: '2', + type: '1', name: '车间生产管理工艺_零件工序_删除数据_工序流水号', param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' } diff --git a/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue b/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue index cdfc3b0b..cccda101 100644 --- a/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue +++ b/src/views/ManufacturingCenter/ProcessPlanningNew/index.vue @@ -400,13 +400,7 @@ - + { - this.searchDetail() + deleteOne(this.partNumValue, row.工序流水号).then(response => { + if (response.data[0].结果 === '成功') { + this.searchDetail() + } else { + this.$message.error('此工序已加工,无法删除') + } }) } },