index.vue
1.23 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
<template>
<PageWrapper contentBackground>
<div className="config-page">
<Tabs v-model:selectedKey="currentKey" className="ml-2 mb-0">
<Tabs.TabPane key="1" tab="利润率配置">
<TablePanel :searchInfo="{ relationCode: 'profitRate' }" :column="1" />
</Tabs.TabPane>
<Tabs.TabPane key="2" tab="包装费用配置">
<TablePanel :searchInfo="{ relationCode: 'packetPrice' }" :column="2" />
</Tabs.TabPane>
<Tabs.TabPane key="3" tab="汇率配置">
<TablePanel :searchInfo="{ settingCode: 'exchangeRate' }" :column="3"
/></Tabs.TabPane>
</Tabs>
</div>
</PageWrapper>
</template>
<script setup lang="ts">
import { Tabs } from 'ant-design-vue';
import { PageWrapper } from '/@/components/Page';
import TablePanel from './TablePanel.vue';
import { onMounted } from 'vue';
import { useOrderStoreWithOut } from '/@/store/modules/order';
let currentKey = '1';
const orderStore = useOrderStoreWithOut();
onMounted(async () => {
await orderStore.getDict();
});
</script>
<style>
.config-page .ant-tabs-nav-operations ant-tabs-nav-operations-hidden {
display: none;
}
.config-page .ant-tabs-nav {
margin-bottom: 0;
}
</style>