index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <!-- 现货仓单 -->
  3. <section class="spot_warran">
  4. <component :is="componentId"
  5. v-if="componentId">
  6. </component>
  7. <thirdMenu :list="tabList"
  8. @selectMenu="changeTab"
  9. :value="'title'"></thirdMenu>
  10. </section>
  11. </template>
  12. <script lang="ts">
  13. import { defineAsyncComponent, defineComponent } from 'vue';
  14. import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
  15. import thirdMenu from '@/common/components/thirdMenu/index.vue';
  16. import { handleOrderDetailList } from '@/common/setup/order/orderData';
  17. export default defineComponent({
  18. name: enumOrderComponents.spot_warrant,
  19. components: {
  20. thirdMenu,
  21. [enumOrderComponents.spot_warrant_deal]: defineAsyncComponent(() => import('./components/spot_warrant_deal/index.vue')),
  22. [enumOrderComponents.spot_warrant_designated_deal]: defineAsyncComponent(() => import('./components/spot_warrant_designated_deal/index.vue')),
  23. [enumOrderComponents.spot_warrant_in_and_out_warehouse]: defineAsyncComponent(() => import('./components/spot_warrant_in_and_out_warehouse/index.vue')),
  24. [enumOrderComponents.spot_warrant_inventory_summary]: defineAsyncComponent(() => import('./components/spot_warrant_inventory_summary/index.vue')),
  25. [enumOrderComponents.spot_warrant_pending_order]: defineAsyncComponent(() => import('./components/spot_warrant_pending_order/index.vue')),
  26. [enumOrderComponents.spot_warrant_spot_summary]: defineAsyncComponent(() => import('./components/spot_warrant_spot_summary/index.vue')),
  27. [enumOrderComponents.spot_warrant_spot_details]: defineAsyncComponent(() => import('./components/spot_warrant_spot_details/index.vue')),
  28. [enumOrderComponents.spot_warrant_bargain]: defineAsyncComponent(() => import('./components/spot_warrant_bargain/index.vue')),
  29. },
  30. setup() {
  31. return { ...handleOrderDetailList(enumOrderComponents.spot_warrant) };
  32. },
  33. });
  34. </script>
  35. <style lang="less">
  36. </style>;