fix:库存管理出入库记录列表中按钮“撤销”改为“撤回”

This commit is contained in:
shijing 2025-12-30 14:59:35 +08:00
parent 3297fa5a93
commit 9171a58059
4 changed files with 12 additions and 21 deletions

View File

@ -123,16 +123,7 @@
v-auth="'mio.submit'" v-auth="'mio.submit'"
v-if="scope.row.state == 20" v-if="scope.row.state == 20"
> >
撤销 撤回
</el-button>
<el-button
link
type="warning"
@click="revert(scope.row)"
v-auth="'mio.submit'"
v-if="scope.row.state == 20"
>
撤销
</el-button> </el-button>
<el-button <el-button
link link
@ -260,14 +251,14 @@ export default {
.catch(() => {}); .catch(() => {});
}, },
revert(row) { revert(row) {
this.$confirm(`确定撤该操作吗?`, "提示", { this.$confirm(`确定撤该操作吗?`, "提示", {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$API.inm.mio.revert this.$API.inm.mio.revert
.req(row.id) .req(row.id)
.then((res) => { .then((res) => {
this.$message.success("撤成功"); this.$message.success("撤成功");
this.$refs.table.refresh(); this.$refs.table.refresh();
return res; return res;
}) })

View File

@ -145,7 +145,7 @@
v-auth="'mio.submit'" v-auth="'mio.submit'"
v-if="scope.row.state == 20" v-if="scope.row.state == 20"
> >
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -259,14 +259,14 @@ export default {
.catch(() => {}); .catch(() => {});
}, },
revert(row) { revert(row) {
this.$confirm(`确定撤该操作吗?`, "提示", { this.$confirm(`确定撤该操作吗?`, "提示", {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$API.inm.mio.revert this.$API.inm.mio.revert
.req(row.id) .req(row.id)
.then((res) => { .then((res) => {
this.$message.success("撤成功"); this.$message.success("撤成功");
this.$refs.table.refresh(); this.$refs.table.refresh();
return res; return res;
}) })

View File

@ -154,7 +154,7 @@
v-auth="'mio.submit'" v-auth="'mio.submit'"
v-if="scope.row.state == 20" v-if="scope.row.state == 20"
> >
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -275,14 +275,14 @@ export default {
.catch(() => {}); .catch(() => {});
}, },
revert(row) { revert(row) {
this.$confirm(`确定撤该操作吗?`, "提示", { this.$confirm(`确定撤该操作吗?`, "提示", {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$API.inm.mio.revert this.$API.inm.mio.revert
.req(row.id) .req(row.id)
.then((res) => { .then((res) => {
this.$message.success("撤成功"); this.$message.success("撤成功");
this.$refs.table.refresh(); this.$refs.table.refresh();
return res; return res;
}) })

View File

@ -127,7 +127,7 @@
(scope.row.type == 'other_in' || (scope.row.type == 'other_in' ||
scope.row.type == 'other_out')" scope.row.type == 'other_out')"
> >
</el-button> </el-button>
<el-button <el-button
link link
@ -269,14 +269,14 @@ export default {
}); });
}, },
revert(row) { revert(row) {
this.$confirm(`确定撤该操作吗?`, "提示", { this.$confirm(`确定撤该操作吗?`, "提示", {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$API.inm.mio.revert this.$API.inm.mio.revert
.req(row.id) .req(row.id)
.then((res) => { .then((res) => {
this.$message.success("撤成功"); this.$message.success("撤成功");
this.$refs.table.refresh(); this.$refs.table.refresh();
return res; return res;
}) })