fix:其他出入库加编辑

This commit is contained in:
shijing 2024-09-10 15:50:44 +08:00
parent d6c27697c4
commit 7f3c2f00f6
1 changed files with 11 additions and 6 deletions

View File

@ -94,6 +94,14 @@
width="150px"
>
<template #default="scope">
<el-button
link
type="primary"
@click="table_edit(scope.row)"
v-if="scope.row.state == 10&&(scope.row.type == 'other_in' ||scope.row.type == 'other_out')"
>
编辑
</el-button>
<el-button
link
type="primary"
@ -106,11 +114,7 @@
type="primary"
@click="table_submit(scope.row)"
v-auth="'mio.submit'"
v-if="
scope.row.state == 10 &&
(scope.row.type == 'other_in' ||
scope.row.type == 'other_out')
"
v-if="scope.row.state == 10 &&(scope.row.type == 'other_in' ||scope.row.type == 'other_out')"
>
提交
</el-button>
@ -211,9 +215,10 @@ export default {
table_edit(row) {
this.dialog.save = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("edit", type).setData(row);
this.$refs.saveDialog.open("edit", row.type).setData(row);
});
},
//
table_detail(row) {
this.type = row.type;