|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<el-row class="tac">
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<!-- <h5>默认颜色</h5>-->
|
|
|
|
|
<!-- <h5>默认颜色</h5>-->
|
|
|
|
|
<el-menu
|
|
|
|
|
:default-active="menuActive"
|
|
|
|
|
class="el-menu-vertical-demo"
|
|
|
|
@ -42,53 +42,51 @@
|
|
|
|
|
:name="item.name"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<component :is="item.component" v-bind="item.componentProps" />
|
|
|
|
|
<component :is="item.component" v-bind="item.componentProps"/>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-tabs :tab-position="tabPosition" style="height: 100%">-->
|
|
|
|
|
<!-- <el-tab-pane label="处理单据" style="height: 100%" @click="addTab('DealOrderBlank')">-->
|
|
|
|
|
<!-- <DealOrderBlank>-->
|
|
|
|
|
<!-- </DealOrderBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="工位上货"style="height: 100%" @click="addTab('IoCreateOrderBlankReturn')">-->
|
|
|
|
|
<!-- <IoCreateOrderBlankReturn-->
|
|
|
|
|
<!-- :splitType="'return'"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </IoCreateOrderBlankReturn>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="工位退货" style="height: 100%" @click="addTab('IoCreateOrderBlankOut')">-->
|
|
|
|
|
<!-- <IoCreateOrderBlankOut-->
|
|
|
|
|
<!-- :splitType="'out'"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </IoCreateOrderBlankOut>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="工位存量" style="height: 100%" @click="addTab('ioSplitFifoCodeBlank')">-->
|
|
|
|
|
<!-- <ioSplitFifoCodeBlank>-->
|
|
|
|
|
<!-- </ioSplitFifoCodeBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="待处理单" style="height: 100%" @click="addTab('CollectOrderAllotBlank')">-->
|
|
|
|
|
<!-- <CollectOrderAllotBlank>-->
|
|
|
|
|
<!-- </CollectOrderAllotBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="已完成单" style="height: 100%" @click="addTab('CollectOrderEndBlank')">-->
|
|
|
|
|
<!-- <CollectOrderEndBlank>-->
|
|
|
|
|
<!-- </CollectOrderEndBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- </el-tabs>-->
|
|
|
|
|
<!-- <el-tabs :tab-position="tabPosition" style="height: 100%">-->
|
|
|
|
|
<!-- <el-tab-pane label="处理单据" style="height: 100%" @click="addTab('DealOrderBlank')">-->
|
|
|
|
|
<!-- <DealOrderBlank>-->
|
|
|
|
|
<!-- </DealOrderBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="工位上货"style="height: 100%" @click="addTab('IoCreateOrderBlankReturn')">-->
|
|
|
|
|
<!-- <IoCreateOrderBlankReturn-->
|
|
|
|
|
<!-- :splitType="'return'"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </IoCreateOrderBlankReturn>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="工位退货" style="height: 100%" @click="addTab('IoCreateOrderBlankOut')">-->
|
|
|
|
|
<!-- <IoCreateOrderBlankOut-->
|
|
|
|
|
<!-- :splitType="'out'"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </IoCreateOrderBlankOut>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="工位存量" style="height: 100%" @click="addTab('ioSplitFifoCodeBlank')">-->
|
|
|
|
|
<!-- <ioSplitFifoCodeBlank>-->
|
|
|
|
|
<!-- </ioSplitFifoCodeBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="待处理单" style="height: 100%" @click="addTab('CollectOrderAllotBlank')">-->
|
|
|
|
|
<!-- <CollectOrderAllotBlank>-->
|
|
|
|
|
<!-- </CollectOrderAllotBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tab-pane label="已完成单" style="height: 100%" @click="addTab('CollectOrderEndBlank')">-->
|
|
|
|
|
<!-- <CollectOrderEndBlank>-->
|
|
|
|
|
<!-- </CollectOrderEndBlank>-->
|
|
|
|
|
<!-- </el-tab-pane>-->
|
|
|
|
|
|
|
|
|
|
<!-- </el-tabs>-->
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -101,8 +99,13 @@ import ioSplitFifoCodeBlank from "@/views/collect/ioSplitFifoCodeBlank.vue";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components:{
|
|
|
|
|
DealOrderBlank,IoCreateOrderBlankReturn,IoCreateOrderBlankOut,ioSplitFifoCodeBlank,CollectOrderAllotBlank,CollectOrderEndBlank
|
|
|
|
|
components: {
|
|
|
|
|
DealOrderBlank,
|
|
|
|
|
IoCreateOrderBlankReturn,
|
|
|
|
|
IoCreateOrderBlankOut,
|
|
|
|
|
ioSplitFifoCodeBlank,
|
|
|
|
|
CollectOrderAllotBlank,
|
|
|
|
|
CollectOrderEndBlank
|
|
|
|
|
},
|
|
|
|
|
name: 'CollectOrderTabs',
|
|
|
|
|
data() {
|
|
|
|
@ -127,7 +130,7 @@ export default {
|
|
|
|
|
component: IoCreateOrderBlankOut,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
splitType: 'out'
|
|
|
|
|
fromSplitType: 'out'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -137,7 +140,7 @@ export default {
|
|
|
|
|
component: IoCreateOrderBlankReturn,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
splitType: 'return'
|
|
|
|
|
fromSplitType: 'return'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -146,9 +149,7 @@ export default {
|
|
|
|
|
name: 'ioSplitFifoCodeBlank',
|
|
|
|
|
component: ioSplitFifoCodeBlank,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentProps: {}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
number: 4,
|
|
|
|
@ -156,9 +157,7 @@ export default {
|
|
|
|
|
name: 'CollectOrderAllotBlank',
|
|
|
|
|
component: CollectOrderAllotBlank,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentProps: {}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
number: 5,
|
|
|
|
@ -166,9 +165,7 @@ export default {
|
|
|
|
|
name: 'CollectOrderEndBlank',
|
|
|
|
|
component: CollectOrderEndBlank,
|
|
|
|
|
// 假设你需要传递的参数
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentProps: {}
|
|
|
|
|
}],
|
|
|
|
|
editableTabs: [{
|
|
|
|
|
number: 0,
|
|
|
|
@ -186,14 +183,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
upodateMenuActive(tab, event){
|
|
|
|
|
upodateMenuActive(tab, event) {
|
|
|
|
|
const foundTab = this.findTabByName(tab.name);
|
|
|
|
|
if (foundTab) {
|
|
|
|
|
// 如果找到了,执行一些操作
|
|
|
|
|
this.menuActive = foundTab.number;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
clickMenuItem(val){
|
|
|
|
|
clickMenuItem(val) {
|
|
|
|
|
//分两种 一种已存在 一种未存在
|
|
|
|
|
let item = this.componentTables[(val)]
|
|
|
|
|
|
|
|
|
@ -238,7 +235,7 @@ export default {
|
|
|
|
|
this.editableTabs = tabs.filter(tab => tab.name !== targetName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|