<template>
  <!-- 预售仓单 -->
  <section class="pre_sale_warehouse_receipt">
    <component :is="componentId"
               v-if="componentId">
    </component>
    <thirdMenu :list="tabList"
               @selectMenu="changeTab"
               :value="'title'"></thirdMenu>
  </section>
</template>

<script lang="ts">
import { defineAsyncComponent, defineComponent } from 'vue';
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
import thirdMenu from '@/common/components/thirdMenu/index.vue';
import { handleOrderDetailList } from '@/common/setup/order/orderData';
export default defineComponent({
    name: enumOrderComponents.pre_sale_warehouse_receipt,
    components: {
        thirdMenu,
        [enumOrderComponents.pre_sale_warehouse_receipt_deal]: defineAsyncComponent(() => import('./components/pre_sale_warehouse_receipt_deal/index.vue')),
        [enumOrderComponents.pre_sale_warehouse_receipt_designated_deal]: defineAsyncComponent(() => import('./components/pre_sale_warehouse_receipt_designated_deal/index.vue')),
        [enumOrderComponents.pre_sale_warehouse_receipt_order_summary]: defineAsyncComponent(() => import('./components/pre_sale_warehouse_receipt_order_summary/index.vue')),
        [enumOrderComponents.pre_sale_warehouse_receipt_pending_order]: defineAsyncComponent(() => import('./components/pre_sale_warehouse_receipt_pending_order/index.vue')),
    },
    setup() {
        return { ...handleOrderDetailList(enumOrderComponents.pre_sale_warehouse_receipt) };
    },
});
</script>

<style lang="less">
</style>;
