fix:库存管理出入库记录列表中按钮“撤销”改为“撤回”
This commit is contained in:
parent
3297fa5a93
commit
9171a58059
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue