BaseLibraryInfo.vue
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<a-card :bordered="false">
<a-tabs v-model:activeKey="activeKey" @change="change">
<a-tab-pane key="1" tab="原物料管理" force-render>
<tbl-material-list></tbl-material-list>
</a-tab-pane>
<a-tab-pane key="6" tab="原材料管理">
<template v-if="TblRawMaterialsListFlag">
<tbl-rawMaterials-list></tbl-rawMaterials-list>
</template>
</a-tab-pane>
<a-tab-pane key="2" tab="半成品管理">
<template v-if="TblSemiFinishedListFlag">
<tbl-semi-finished-list></tbl-semi-finished-list>
</template>
</a-tab-pane>
<a-tab-pane key="3" tab="成品管理">
<template v-if="TblMaterialListFlag">
<finish-product-manage-list></finish-product-manage-list>
</template>
</a-tab-pane>
<a-tab-pane key="4" tab="耗材管理">
<template v-if="TblConsumablesListFlag">
<tbl-consumables-list></tbl-consumables-list>
</template>
</a-tab-pane>
<a-tab-pane key="5" tab="劳保管理">
<template v-if="TblProtectionListFlag">
<tbl-protection-list></tbl-protection-list>
</template>
</a-tab-pane>
</a-tabs>
</a-card>
</template>
<script>
import FinishProductManageList from './FinishProductManageList'
import TblMaterialList from './TblMaterialList'
import TblSemiFinishedList from './TblSemiFinishedList'
import TblConsumablesList from './TblConsumablesList.vue'
import TblProtectionList from './TblProtectionList.vue'
import TblRawMaterialsList from './TblRawMaterialsList.vue'
export default {
components: {
FinishProductManageList,
TblMaterialList,
TblSemiFinishedList,
TblConsumablesList,
TblProtectionList,
TblRawMaterialsList
},
data() {
return {
activeKey: "1",
TblMaterialListFlag: false,
TblSemiFinishedListFlag: false,
TblConsumablesListFlag: false,
TblProtectionListFlag: false,
TblRawMaterialsListFlag: false
}
},
methods: {
change(e) {
switch (e) {
case "1":
break;
case "2":
this.TblSemiFinishedListFlag = true;
break;
case "3":
this.TblMaterialListFlag = true;
break;
case "4":
this.TblConsumablesListFlag = true;
case "5":
this.TblProtectionListFlag = true;
case "6":
this.TblRawMaterialsListFlag = true;
default:
break;
}
},
}
}
</script>