|
|
|
@ -53,59 +53,59 @@
|
|
|
|
|
unique-opened="true"
|
|
|
|
|
@open="handleOpen">
|
|
|
|
|
|
|
|
|
|
<el-submenu index="11">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<i class="el-icon-s-order"></i>
|
|
|
|
|
<span>单据管理</span>
|
|
|
|
|
</template>
|
|
|
|
|
<el-menu-item :index=0 @click="clickMenuItem(0)">
|
|
|
|
|
<!-- <el-submenu index="11" v-if="workPlaceClass == 1">-->
|
|
|
|
|
<!-- <template slot="title">-->
|
|
|
|
|
<!-- <i class="el-icon-s-order"></i>-->
|
|
|
|
|
<!-- <span>单据管理</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<el-menu-item :index=0 @click="clickMenuItem(0)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-edit-outline"></i>-->
|
|
|
|
|
<span slot="title">处理单据</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=4 @click="clickMenuItem(4)">
|
|
|
|
|
<el-menu-item :index=4 @click="clickMenuItem(4)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-order"></i>-->
|
|
|
|
|
<span slot="title">待处理单</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=5 @click="clickMenuItem(5)">
|
|
|
|
|
<el-menu-item :index=5 @click="clickMenuItem(5)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-s-claim"></i>-->
|
|
|
|
|
<span slot="title">已完成单</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=6 @click="clickMenuItem(6)">
|
|
|
|
|
<el-menu-item :index=6 @click="clickMenuItem(6)" v-if="workPlaceClass == 1">
|
|
|
|
|
<!-- <i class="el-icon-upload"></i>-->
|
|
|
|
|
<span slot="title">单据上传</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
</el-submenu>
|
|
|
|
|
<!-- </el-submenu>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-submenu index="33" v-if="autoTag == 1">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<i class="el-icon-s-platform"></i>
|
|
|
|
|
<span>工位管理</span>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <el-submenu index="33" v-if="workPlaceClass == 2">-->
|
|
|
|
|
<!-- <template slot="title">-->
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
<!-- <span>工位管理</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
|
|
|
|
|
<el-menu-item :index=1 @click="clickMenuItem(1)">
|
|
|
|
|
<el-menu-item :index=1 @click="clickMenuItem(1)" v-if="workPlaceClass == 2" >
|
|
|
|
|
<!-- <i class="el-icon-s-unfold"></i>-->
|
|
|
|
|
<span slot="title">工位上货</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=2 @click="clickMenuItem(2)">
|
|
|
|
|
<!-- <i class="el-icon-s-fold"></i>-->
|
|
|
|
|
<el-menu-item :index=2 @click="clickMenuItem(2)" v-if="workPlaceClass == 2" >
|
|
|
|
|
<!-- <i class="el-icon-s-fold"></i>-->
|
|
|
|
|
<span slot="title">工位退货</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=3 @click="clickMenuItem(3)">
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
<el-menu-item :index=3 @click="clickMenuItem(3)" v-if="workPlaceClass == 2" >
|
|
|
|
|
<!-- <i class="el-icon-s-platform"></i>-->
|
|
|
|
|
<span slot="title">工位库存</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=7 @click="clickMenuItem(7)">
|
|
|
|
|
<!-- <i class="el-icon-s-help"></i>-->
|
|
|
|
|
<el-menu-item :index=7 @click="clickMenuItem(7)" v-if="workPlaceClass == 2" >
|
|
|
|
|
<!-- <i class="el-icon-s-help"></i>-->
|
|
|
|
|
<span slot="title">拆零管理</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
<el-menu-item :index=8 @click="clickMenuItem(8)">
|
|
|
|
|
<!-- <i class="el-icon-warning"></i>-->
|
|
|
|
|
<el-menu-item :index=8 @click="clickMenuItem(8)" v-if="workPlaceClass == 2" >
|
|
|
|
|
<!-- <i class="el-icon-warning"></i>-->
|
|
|
|
|
<span slot="title">存量预警</span>
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
<!-- </el-submenu>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-submenu index="22" v-if="autoTag == 1">-->
|
|
|
|
@ -365,6 +365,7 @@ export default {
|
|
|
|
|
tabIndex: 0,
|
|
|
|
|
menuActive: 0,
|
|
|
|
|
autoTag: 0,
|
|
|
|
|
workPlaceClass: 1,
|
|
|
|
|
resetKeys: {}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -516,6 +517,25 @@ export default {
|
|
|
|
|
let item = this.curWorkPlaces.find(item => item.workplaceId == this.$route.query.workplaceId);
|
|
|
|
|
this.formData.workplaceName = item.workplaceName
|
|
|
|
|
this.formData.workplaceStatus = item.workplaceStatus
|
|
|
|
|
this.workPlaceClass = item.workPlaceClass
|
|
|
|
|
if(this.workPlaceClass == 2){
|
|
|
|
|
console.log(this.workPlaceClass)
|
|
|
|
|
this.closeAllTabs()
|
|
|
|
|
this.editableTabsValue = 'IoCreateOrderOut';
|
|
|
|
|
this.menuActive= 1,
|
|
|
|
|
this.editableTabs = [{
|
|
|
|
|
number: 1,
|
|
|
|
|
title: '工位上货',
|
|
|
|
|
name: 'IoCreateOrderOut',
|
|
|
|
|
component: IoCreateOrderOut,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
// title: '这是单据的标题'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else
|
|
|
|
|
if (this.curWorkPlaces.length == 1 && this.formData.workPlaceCode == null) {
|
|
|
|
|
this.formData.workPlaceCode = this.curWorkPlaces[0].workplaceId;
|
|
|
|
|