|
|
@@ -1,18 +1,31 @@
|
|
|
<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 { defineComponent } from 'vue';
|
|
|
+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: {},
|
|
|
+ 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 {};
|
|
|
+ return { ...handleOrderDetailList(enumOrderComponents.pre_sale_warehouse_receipt) };
|
|
|
},
|
|
|
});
|
|
|
</script>
|