fix:根据路由判断显示领料(qingxi),入库(chenpjiance)
This commit is contained in:
parent
ebc736174b
commit
a17052e672
|
@ -2,10 +2,10 @@
|
|||
<el-container>
|
||||
<el-header>
|
||||
<div class="left-panel">
|
||||
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" v-if="mgroupName=='清洗'">领料</el-button>
|
||||
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" v-if="route_code=='qingxi'">领料</el-button>
|
||||
<el-button type="primary" v-auth="'handover.create'" @click="table_add(40)">报废</el-button>
|
||||
<el-button type="primary" v-auth="'handover.create'" @click="batchConcat()">合批</el-button>
|
||||
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'" v-if="mgroupName=='检测'">入库</el-button>
|
||||
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'" v-if="route_code=='chenpjiance'">入库</el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<el-select
|
||||
|
@ -308,6 +308,7 @@ export default {
|
|||
page:0,
|
||||
wm: ""
|
||||
},
|
||||
route_code:"",
|
||||
showBatch: "",
|
||||
wmMaterial:'',
|
||||
cate_type:'',
|
||||
|
@ -326,6 +327,9 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
let paths = this.$route.path;
|
||||
let arr = paths.split("/");
|
||||
this.route_code = arr[2];
|
||||
this.getMgroupInfo();
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue