index.vue 1.41 KB
<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.TabPane key="4" tab="邮件发送配置"><EmailPanel /></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';
  import EmailPanel from './EmailPanel.vue';
  import ProductPanel from './ProductPanel.vue';

  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>