fix:其他出入库加编辑
This commit is contained in:
parent
d6c27697c4
commit
7f3c2f00f6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue