From 9481cad0c3f203ee59ecbf42c50eae2a9fa45364 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 15 Apr 2025 11:27:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=92=A4=E9=94=80=E7=9A=84method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good_mio.vue | 18 ++++++++++++++++++ src/views/inm/mio.vue | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/src/views/inm/good_mio.vue b/src/views/inm/good_mio.vue index 3765830c..61c79520 100644 --- a/src/views/inm/good_mio.vue +++ b/src/views/inm/good_mio.vue @@ -243,6 +243,24 @@ export default { }) .catch(() => {}); }, + revert(row) { + this.$confirm(`确定撤销该操作吗?`, "提示", { + type: "warning", + }) + .then(() => { + this.$API.inm.mio.revert + .req(row.id) + .then((res) => { + this.$message.success("撤销成功"); + this.$refs.table.refresh(); + return res; + }) + .catch((err) => { + return err; + }); + }) + .catch(() => {}); + }, table_submit(row) { this.$API.inm.mio.submit.req(row.id).then((res) => { this.$message.success("提交成功"); diff --git a/src/views/inm/mio.vue b/src/views/inm/mio.vue index 9f91e8c4..b48c16e4 100644 --- a/src/views/inm/mio.vue +++ b/src/views/inm/mio.vue @@ -264,6 +264,24 @@ export default { this.$refs.table.refresh(); }); }, + revert(row) { + this.$confirm(`确定撤销该操作吗?`, "提示", { + type: "warning", + }) + .then(() => { + this.$API.inm.mio.revert + .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); },