From ca21c91054da4ae50a73e0894a6a64eca837048f Mon Sep 17 00:00:00 2001 From: liulujia1 <759670076@qq.com> Date: Thu, 16 Apr 2020 09:07:09 +0800 Subject: [PATCH 1/4] =?UTF-8?q?llj20200416=E6=96=87=E6=A1=A3V7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QualityInspectionInformationInquiry.js | 14 +++++++++++++ .../index.vue | 20 +++++++++++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/api/Assembly/QualityInspectionInformationInquiry.js b/src/api/Assembly/QualityInspectionInformationInquiry.js index 4ab95871..86bf255c 100644 --- a/src/api/Assembly/QualityInspectionInformationInquiry.js +++ b/src/api/Assembly/QualityInspectionInformationInquiry.js @@ -150,6 +150,20 @@ export function confirmEdit(...param) { } }) } + +export function deleterow(...param) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '车间生产管理_质检管理_删除处理', + param: `质检流水号=${param[0]}&质检类型代码=${param[1]}&零部件流水号=${param[2]}&数量=${param[3]}` + } + }) +} // 质检管理_质量情况_查询数据 export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, pageCurrent, pageSize) { return request({ diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index 5cc4975e..5a0fa567 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -791,22 +791,34 @@ export default { }, // 表内编辑确定 confirmEdit(row) { - console.log(row, 676767) - confirmEdit(row.质检流水号, row.质检类型代码, row.零部件流水号, row.是否合格, row.数量, row.不合格数量, row.不合格原因, row.处理结果, row.备注, this.$store.state.user.id).then(response => { if (response.data[0].result === '1') { - this.dialogFormVisible10 = false this.$message.success('编辑成功') this.selecttable() } else { this.$message.error('编辑失败') } }) - this.selecttable() row.edit = false }, + // 删除质检 deleterow(row) { // this.plan = row.计划流水号 + console.log(row, 4545) + this.$confirm('是否删除该质检记录?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + confirmEdit(row.质检流水号, row.质检类型代码, row.零部件流水号, row.数量).then(response => { + if (response.data[0].result === '1') { + this.$message.success('删除成功') + this.selecttable() + } else { + this.$message.error('编辑失败') + } + }) + }) }, initProject() { initProject().then(response => { From 98881a6731a7b0a43b34bfe38e453d7caa69e5aa Mon Sep 17 00:00:00 2001 From: liulujia1 <759670076@qq.com> Date: Thu, 16 Apr 2020 09:42:02 +0800 Subject: [PATCH 2/4] =?UTF-8?q?LLJ=E6=96=87=E6=A1=A3V8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QualityInspectionInformationInquiry/index.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index 5a0fa567..5174f898 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -137,7 +137,7 @@