index.vue
2.13 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
<template>
<div className="approve-page px-4 bg-white">
<a-tabs default-active-key="1" v-model:activeKey="currentKey">
<a-tab-pane key="1" tab="字段待审核">
<FieldPanel />
</a-tab-pane>
<a-tab-pane key="3" tab="利润分析待审核">
<ProfitPanel />
</a-tab-pane>
<a-tab-pane key="5" tab="项目报告书待审核">
<ReportPanel />
</a-tab-pane>
<a-tab-pane key="7" tab="应收款待审核">
<ReceivePanel />
</a-tab-pane>
<a-tab-pane key="2" tab="字段已审核">
<FieldPanel isApproved />
</a-tab-pane>
<a-tab-pane key="4" tab="利润分析已审核">
<ProfitPanel isApproved />
</a-tab-pane>
<a-tab-pane key="6" tab="项目报告书已审核">
<ReportPanel isApproved />
</a-tab-pane>
<a-tab-pane key="8" tab="应收款已审核">
<ReceivePanel isApproved />
</a-tab-pane>
</a-tabs>
</div>
</template>
<script lang="ts">
import { defineComponent, onMounted, ref } from 'vue';
import { Tabs } from 'ant-design-vue';
import ReportPanel from './ReportPanel.vue';
import ProfitPanel from './ProfitPanel.vue';
import FieldPanel from './FieldPanel.vue';
import ReceivePanel from './ReceivePanel.vue';
import { useOrderStoreWithOut } from '/@/store/modules/order';
const orderStore = useOrderStoreWithOut();
export default defineComponent({
components: {
[Tabs.name]: Tabs,
[Tabs.TabPane.name]: Tabs.TabPane,
ReportPanel,
FieldPanel,
ProfitPanel,
ReceivePanel,
},
setup() {
const checkedKeys = ref<Array<string | number>>([]);
const currentKey = ref('1');
onMounted(async () => {
await orderStore.getDict();
});
return {
checkedKeys,
currentKey,
};
},
});
</script>
<style>
.approve-page .vben-basic-table .ant-table-wrapper {
margin-bottom: 0;
}
.approve-page .vben-basic-table-form-container {
padding-right: 0;
padding-left: 0;
}
.approve-page .vben-basic-table-form-container .ant-form {
margin-bottom: 0;
padding-top: 0;
}
</style>