fix:其他出入库加编辑
This commit is contained in:
parent
d6c27697c4
commit
7f3c2f00f6
|
|
@ -94,6 +94,14 @@
|
||||||
width="150px"
|
width="150px"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<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
|
<el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
@ -106,11 +114,7 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="table_submit(scope.row)"
|
@click="table_submit(scope.row)"
|
||||||
v-auth="'mio.submit'"
|
v-auth="'mio.submit'"
|
||||||
v-if="
|
v-if="scope.row.state == 10 &&(scope.row.type == 'other_in' ||scope.row.type == 'other_out')"
|
||||||
scope.row.state == 10 &&
|
|
||||||
(scope.row.type == 'other_in' ||
|
|
||||||
scope.row.type == 'other_out')
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -211,9 +215,10 @@ export default {
|
||||||
table_edit(row) {
|
table_edit(row) {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.saveDialog.open("edit", type).setData(row);
|
this.$refs.saveDialog.open("edit", row.type).setData(row);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//查看
|
//查看
|
||||||
table_detail(row) {
|
table_detail(row) {
|
||||||
this.type = row.type;
|
this.type = row.type;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue