From 3112462c7a9a24ae92acb4ce8d80e7efaed288f5 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 29 Apr 2026 15:21:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A6=85=E9=81=93376=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E8=B6=85=E6=B4=97=E5=90=8E=E7=9A=84=E5=A4=96=E8=A7=82=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E6=83=B3=E8=A6=81=E6=96=B0=E5=A2=9E=E6=92=A4=E5=9B=9E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=8D=B3?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BD=9C=E5=BA=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/checkrecord.vue | 51 ++++++++++++-------------------- src/views/wpm_gx/index.vue | 2 +- 2 files changed, 20 insertions(+), 33 deletions(-) diff --git a/src/views/wpm_gx/checkrecord.vue b/src/views/wpm_gx/checkrecord.vue index ef8d461a..95cb7cf2 100644 --- a/src/views/wpm_gx/checkrecord.vue +++ b/src/views/wpm_gx/checkrecord.vue @@ -79,6 +79,22 @@ + + + @@ -128,21 +144,12 @@ export default { }; }, methods: { - //查看 - table_detail(row) { - let that = this; - that.cate_type=row.type; - that.dialog.inmRecord = true; - that.$nextTick(() => { - that.$refs.inmRecordDialog.open("show").setData(row,row.type); - }); - }, //撤销 - revert(row) { - this.$confirm(`确定撤销该操作吗?`, "提示", { + check_revert(row) { + this.$confirm(`确定撤销该检验吗?`, "提示", { type: "warning", }).then(() => { - this.$API.inm.mio.revert.req(row.id).then((res) => { + this.$API.qm.ftestwork.revert.req(row.id).then((res) => { this.$message.success("撤销成功"); this.$refs.table.refresh(); return res; @@ -153,26 +160,6 @@ export default { }).catch(() => {}); }, - //删除 - table_del(row) { - this.$confirm(`确定删除吗?`, "提示", { - type: "warning", - }) - .then(() => { - this.$API.inm.mio.delete - .req(row.id) - .then((res) => { - this.$message.success("删除成功"); - this.$refs.table.refresh(); - return res; - }) - .catch((err) => { - return err; - }); - }) - .catch(() => {}); - }, - handleQuery() { this.$refs.table.queryData(this.query); }, diff --git a/src/views/wpm_gx/index.vue b/src/views/wpm_gx/index.vue index b87eb83c..663ca91c 100644 --- a/src/views/wpm_gx/index.vue +++ b/src/views/wpm_gx/index.vue @@ -140,7 +140,7 @@ export default { that.mgroupMtype = res[0].mtype; that.processtype = res[0].process_type; that.mgroupDept = res[0].belong_dept; - if(that.mgroupName=='黑化'||that.mgroupName=='退火'){ + if(that.mgroupName=='黑化'||that.mgroupName=='退火'||that.mgroupName=='外观检验'){ that.options.push("检验记录") } that.componentsShow = true;