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); },