diff --git a/src/views/wpm_gx/check_drawer.vue b/src/views/wpm_gx/check_drawer.vue index e29a9233..1ff8ebe6 100644 --- a/src/views/wpm_gx/check_drawer.vue +++ b/src/views/wpm_gx/check_drawer.vue @@ -54,17 +54,24 @@ - + @@ -97,11 +104,21 @@ export default { this.apiObj = this.$API.qm.ftestwork.list; return this; }, - table_del(row){ - this.$API.qm.ftestwork.delete.req(row.id).then((res) => { - this.$refs.drawer_table.fetch(); + table_revert(row){ + this.$API.qm.ftestwork.revert.req(row.id).then((res) => { + this.$refs.drawer_table.refresh(); }); }, + table_delete(row){ + let that = this; + that.$confirm("确定删除该检验记录吗?", "提示", { + type: "warning", + }).then(() => { + that.$API.qm.ftestwork.delete.req(row.id).then((res) => { + that.$refs.drawer_table.refresh(); + }); + }).catch(() => {}); + }, }, };