fix:生产执行出入库记录
This commit is contained in:
parent
bedc4b0d45
commit
69c63eea06
|
|
@ -2,9 +2,9 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
|
<!-- <el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
|
||||||
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gx'"
|
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gx'"
|
||||||
>领料</el-button>
|
>领料</el-button> -->
|
||||||
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</el-button>
|
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
@ -98,48 +98,20 @@
|
||||||
width="120px"
|
width="120px"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button link type="primary" @click="table_detail(scope.row)">查看</el-button>
|
||||||
link
|
<el-button link type="primary" @click="table_edit(scope.row)"
|
||||||
type="primary"
|
v-if="scope.row.state == 10&&scope.row.create_by==userId"
|
||||||
@click="table_detail(scope.row)"
|
>编辑</el-button>
|
||||||
>
|
<el-button link type="primary" @click="table_submit(scope.row)"
|
||||||
查看
|
v-auth="'mio.submit'" v-if="scope.row.state == 10&&scope.row.type!=='do_in'"
|
||||||
</el-button>
|
> <span>{{ scope.row.type=='do_out'?'接收':'提交' }}</span>
|
||||||
<el-button
|
|
||||||
link
|
|
||||||
type="primary"
|
|
||||||
@click="table_edit(scope.row)"
|
|
||||||
v-if="scope.row.state == 10"
|
|
||||||
>
|
|
||||||
编辑
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
link
|
|
||||||
type="primary"
|
|
||||||
@click="table_submit(scope.row)"
|
|
||||||
v-auth="'mio.submit'"
|
|
||||||
v-if="scope.row.state == 10&&scope.row.type!=='do_in'"
|
|
||||||
>
|
|
||||||
提交
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
link
|
|
||||||
type="danger"
|
|
||||||
@click="table_del(scope.row)"
|
|
||||||
v-auth="'mio.delete'"
|
|
||||||
v-if="scope.row.state == 10"
|
|
||||||
>
|
|
||||||
删除
|
|
||||||
</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 link type="danger" @click="table_del(scope.row)"
|
||||||
|
v-auth="'mio.delete'" v-if="scope.row.state == 10&&scope.row.create_by==userId"
|
||||||
|
>删除</el-button>
|
||||||
|
<el-button link type="warning" @click="revert(scope.row)"
|
||||||
|
v-auth="'mio.submit'" v-if="scope.row.state == 20"
|
||||||
|
>撤销</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
|
|
@ -234,6 +206,7 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.params.mgroup = that.mgroupId;
|
that.params.mgroup = that.mgroupId;
|
||||||
that.apiObj = that.$API.inm.mio.list;
|
that.apiObj = that.$API.inm.mio.list;
|
||||||
|
that.userId = this.$TOOL.data.get("USER_INFO").id;
|
||||||
that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
console.log("project_code",that.project_code);
|
console.log("project_code",that.project_code);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue