fix: 添加出入库撤销的method

This commit is contained in:
caoqianming 2025-04-15 11:27:43 +08:00
parent 50454e2bac
commit 9481cad0c3
2 changed files with 36 additions and 0 deletions

View File

@ -243,6 +243,24 @@ export default {
}) })
.catch(() => {}); .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) { table_submit(row) {
this.$API.inm.mio.submit.req(row.id).then((res) => { this.$API.inm.mio.submit.req(row.id).then((res) => {
this.$message.success("提交成功"); this.$message.success("提交成功");

View File

@ -264,6 +264,24 @@ export default {
this.$refs.table.refresh(); 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() { handleQuery() {
this.$refs.table.queryData(this.query); this.$refs.table.queryData(this.query);
}, },