Bladeren bron

配置现货贸易路由

huangbin 4 jaren geleden
bovenliggende
commit
b8f78ac213

+ 2 - 0
public/config/readMe.txt

@@ -17,6 +17,8 @@ http://192.168.30.211:8080/cfg?key=test_211
 
 "apiUrl": "http://192.168.30.211:8080/cfg?key=test_211"
 
+仓单贸易:"apiUrl": "http://192.168.31.118:8080/cfg?key=test_118"
+
 31.175 账号
     110000000001
     199990000012

+ 5 - 5
src/common/components/thirdMenu/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="thirdMenu">
-    <a-tabs :default-active-key="current"
+    <a-tabs v-model:activeKey="current"
             @change="menuClick">
       <a-tab-pane :key="String(index)"
                   v-for="(item, index) in list"
@@ -30,18 +30,18 @@ export default defineComponent({
         },
         selectedKey: {
             default: '0',
-            type: Array as PropType<string[]>,
+            type: String,
         },
     },
     components: {},
     setup(props, context) {
-        const current = ref<string[]>(['0']);
+        const current = ref<string>('1');
         watchEffect(() => {
-            current.value = props.selectedKey;
+            current.value = props.selectedKey.toString();
         });
         function menuClick(value: string) {
             const index = +value;
-            const item = props.list[index]
+            const item = props.list[index];
             context.emit('selectMenu', +value, item);
         }
         return {

+ 2 - 0
src/layout/components/main.vue

@@ -34,6 +34,8 @@ export default defineComponent({
         // 切换路由
         function selectMenu(value: any) {
             const index = +value.key;
+            console.log(router);
+
             router.push({ name: list.value[index].code });
         }
         return { selectMenu, list, selectedKey };

+ 134 - 72
src/router/index.ts

@@ -1,4 +1,3 @@
-import * as EnumType from '@/common/constants/routerName';
 import { setLoadComplete } from '@/common/methods';
 import { getLoadIsComplete } from '@/common/methods/mixin';
 import Main from '@/layout/components/main.vue';
@@ -58,7 +57,7 @@ const routes: Array<RouteRecordRaw> = [
                 },
                 children: [
                     {
-                        path: '/custom_info/normal',
+                        path: '/custom_info/custom_info_normal',
                         name: 'custom_info_normal',
                         component: () => import('@/views/information/custom/list/normal-use/index.vue'),
                         meta: {
@@ -66,7 +65,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/custom_info/stop',
+                        path: '/custom_info/custom_info_disabled',
                         name: 'custom_info_disabled',
                         component: () => import('@/views/information/custom/list/stop-use/index.vue'),
                         meta: {
@@ -74,7 +73,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/custom_info/checkpending',
+                        path: '/custom_info/custom_info_checkpending',
                         name: 'custom_info_checkpending',
                         component: () => import('@/views/information/custom/list/checkpending/index.vue'),
                         meta: {
@@ -82,7 +81,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/custom_info/unsubmit',
+                        path: '/custom_info/custom_info_unsubmit',
                         name: 'custom_info_unsubmit',
                         component: () => import('@/views/information/custom/list/unsubmit/index.vue'),
                         meta: {
@@ -103,7 +102,7 @@ const routes: Array<RouteRecordRaw> = [
                 },
                 children: [
                     {
-                        path: '/goods_info/spot',
+                        path: '/goods_info/goods_info_spot',
                         name: 'goods_info_spot',
                         component: () => import('@/views/information/goods/list/spot-variety/index.vue'),
                         meta: {
@@ -111,7 +110,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/goods_info/hedging',
+                        path: '/goods_info/goods_info_hedge',
                         name: 'goods_info_hedge',
                         component: () => import('@/views/information/goods/list/hedging-variety/index.vue'),
                         meta: {
@@ -132,7 +131,7 @@ const routes: Array<RouteRecordRaw> = [
                 },
                 children: [
                     {
-                        path: '/spot_contract/unsubmitted',
+                        path: '/spot_contract/spot_contract_unsubmitted',
                         name: 'spot_contract_unsubmitted',
                         component: () => import('@/views/information/spot-contract/list/unsubmitted/index.vue'),
                         meta: {
@@ -140,7 +139,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/spot_contract/checkpending',
+                        path: '/spot_contract/spot_contract_checkpending',
                         name: 'spot_contract_checkpending',
                         component: () => import('@/views/information/spot-contract/list/checkpending/index.vue'),
                         meta: {
@@ -148,7 +147,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/spot_contract/performance',
+                        path: '/spot_contract/spot_contract_performance',
                         name: 'spot_contract_performance',
                         component: () => import('@/views/information/spot-contract/list/performance/index.vue'),
                         meta: {
@@ -156,7 +155,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/spot_contract/finished',
+                        path: '/spot_contract/spot_contract_finished',
                         name: 'spot_contract_finished',
                         component: () => import('@/views/information/spot-contract/list/finished/index.vue'),
                         meta: {
@@ -177,7 +176,7 @@ const routes: Array<RouteRecordRaw> = [
                 },
                 children: [
                     {
-                        path: '/account_info/business',
+                        path: '/account_info/account_info_business',
                         name: 'account_info_business',
                         component: () => import('@/views/information/account_info/list/account_info_business/index.vue'),
                         meta: {
@@ -185,7 +184,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/account_info/futures',
+                        path: '/account_info/account_info_futures',
                         name: 'account_info_futures',
                         component: () => import('@/views/information/account_info/list/account_info_futures/index.vue'),
                         meta: {
@@ -193,7 +192,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/account_info/managers',
+                        path: '/account_info/account_info_manager',
                         name: 'account_info_manager',
                         component: () => import('@/views/information/account_info/list/account_info_manager/index.vue'),
                         meta: {
@@ -201,7 +200,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/account_info/trade',
+                        path: '/account_info/account_info_trade',
                         name: 'account_info_trade',
                         component: () => import('@/views/information/account_info/list/account_info_trade/index.vue'),
                         meta: {
@@ -223,7 +222,7 @@ const routes: Array<RouteRecordRaw> = [
                 },
                 children: [
                     {
-                        path: '/warehouse_info/normal',
+                        path: '/warehouse_info/warehouse_info_normal',
                         name: 'warehouse_info_normal',
                         component: () => import('@/views/information/warehouse-info/list/normal-use/index.vue'),
                         meta: {
@@ -231,7 +230,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/warehouse_info/stop',
+                        path: '/warehouse_info/warehouse_info_disabled',
                         name: 'warehouse_info_disabled',
                         component: () => import('@/views/information/warehouse-info/list/stop-use/index.vue'),
                         meta: {
@@ -261,7 +260,7 @@ const routes: Array<RouteRecordRaw> = [
                 },
                 children: [
                     {
-                        path: '/inventory/current',
+                        path: '/inventory/inventory_current',
                         name: 'inventory_current',
                         component: () => import('@/views/search/inventory/list/inventory_current/index.vue'),
                         meta: {
@@ -269,7 +268,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/inventory/applyrecord',
+                        path: '/inventory/inventory_applyrecord',
                         name: 'inventory_applyrecord',
                         component: () => import('@/views/search/inventory/list/inventory_applyrecord/index.vue'),
                         meta: {
@@ -290,7 +289,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'purchase_pending' },
                 children: [
                     {
-                        path: '/purchase/pending',
+                        path: '/purchase/purchase_pending',
                         name: 'purchase_pending',
                         component: () => import('@/views/business/purchase/list/pending/index.vue'),
                         meta: {
@@ -298,7 +297,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/purchase/performance',
+                        path: '/purchase/purchase_performance',
                         name: 'purchase_performance',
                         component: () => import('@/views/business/purchase/list/performance/index.vue'),
                         meta: {
@@ -306,7 +305,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/purchase/all',
+                        path: '/purchase/purchase_all',
                         name: 'purchase_all',
                         component: () => import('@/views/business/purchase/list/all/index.vue'),
                         meta: {
@@ -325,7 +324,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'sell_pending' },
                 children: [
                     {
-                        path: '/sell/pending',
+                        path: '/sell/sell_pending',
                         name: 'sell_pending',
                         component: () => import('@/views/business/sell/list/pending/index.vue'),
                         meta: {
@@ -333,16 +332,16 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/sell/performance',
-                        name: EnumType.Sell.performance,
+                        path: '/sell/sell_performance',
+                        name: 'sell_performance',
                         component: () => import('@/views/business/sell/list/performance/index.vue'),
                         meta: {
                             requireAuth: true,
                         },
                     },
                     {
-                        path: '/sell/all',
-                        name: EnumType.Sell.all,
+                        path: '/sell/sell_all',
+                        name: 'sell_all',
                         component: () => import('@/views/business/sell/list/all/index.vue'),
                         meta: {
                             requireAuth: true,
@@ -357,35 +356,35 @@ const routes: Array<RouteRecordRaw> = [
                 meta: {
                     requireAuth: true,
                 },
-                redirect: { name: EnumType.Exposure.realTime },
+                redirect: { name: 'exposure_realtime' },
                 children: [
                     {
-                        path: '/exposure/realTime',
-                        name: EnumType.Exposure.realTime,
+                        path: '/exposure/exposure_realtime',
+                        name: 'exposure_realtime',
                         component: () => import('@/views/business/exposure/list/realTime/index.vue'),
                         meta: {
                             requireAuth: true,
                         },
                     },
                     {
-                        path: '/exposure/spot',
-                        name: EnumType.Exposure.spot,
+                        path: '/exposure/exposure_spot',
+                        name: 'exposure_spot',
                         component: () => import('@/views/business/exposure/list/spot/index.vue'),
                         meta: {
                             requireAuth: true,
                         },
                     },
                     {
-                        path: '/exposure/futures',
-                        name: EnumType.Exposure.futures,
+                        path: '/exposure/exposure_futures',
+                        name: 'exposure_futures',
                         component: () => import('@/views/business/exposure/list/futures/index.vue'),
                         meta: {
                             requireAuth: true,
                         },
                     },
                     {
-                        path: '/exposure/history',
-                        name: EnumType.Exposure.history,
+                        path: '/exposure/exposure_history',
+                        name: 'exposure_history',
                         component: () => import('@/views/business/exposure/list/history/index.vue'),
                         meta: {
                             requireAuth: true,
@@ -403,7 +402,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'plan_uncommitted' },
                 children: [
                     {
-                        path: '/plan/uncommitted',
+                        path: '/plan/plan_uncommitted',
                         name: 'plan_uncommitted',
                         component: () => import('@/views/business/plan/list/uncommitted/index.vue'),
                         meta: {
@@ -411,7 +410,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/plan/audit',
+                        path: '/plan/plan_audit',
                         name: 'plan_audit',
                         component: () => import('@/views/business/plan/list/audit/index.vue'),
                         meta: {
@@ -419,7 +418,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/plan/running',
+                        path: '/plan/plan_running',
                         name: 'plan_running',
                         component: () => import('@/views/business/plan/list/running/index.vue'),
                         meta: {
@@ -439,7 +438,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'business_review_someprice' },
                 children: [
                     {
-                        path: '/review/someprice',
+                        path: '/business_review/business_review_someprice',
                         name: 'business_review_someprice',
                         component: () => import('@/views/manage/business-review/list/someprice/index.vue'),
                         meta: {
@@ -447,7 +446,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/review/settlement',
+                        path: '/business_review/business_review_settlement',
                         name: 'business_review_settlement',
                         component: () => import('@/views/manage/business-review/list/settlement/index.vue'),
                         meta: {
@@ -466,7 +465,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'finance_review_funds' },
                 children: [
                     {
-                        path: '/review/funds',
+                        path: '/finance_review/finance_review_funds',
                         name: 'finance_review_funds',
                         component: () => import('@/views/manage/finance-review/list/funds/index.vue'),
                         meta: {
@@ -474,7 +473,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/review/invoice',
+                        path: '/finance_review/finance_review_invoice',
                         name: 'finance_review_invoice',
                         component: () => import('@/views/manage/finance-review/list/invoice/index.vue'),
                         meta: {
@@ -493,7 +492,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'inventory_review_checkin' },
                 children: [
                     {
-                        path: '/inventory_review/checkin',
+                        path: '/inventory_review/inventory_review_checkin',
                         name: 'inventory_review_checkin',
                         component: () => import('@/views/manage/inventory-review/list/checkin/index.vue'),
                         meta: {
@@ -501,7 +500,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/inventory_review/checkout',
+                        path: '/inventory_review/inventory_review_checkout',
                         name: 'inventory_review_checkout',
                         component: () => import('@/views/manage/inventory-review/list/checkout/index.vue'),
                         meta: {
@@ -520,7 +519,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'exposure_report_exposure' },
                 children: [
                     {
-                        path: '/exposure_report/exposure',
+                        path: '/exposure_report/exposure_report_exposure',
                         name: 'exposure_report_exposure',
                         component: () => import('@/views/report/exposure-report/list/exposure_report/index.vue'),
                         meta: {
@@ -539,7 +538,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'finance_report_finance' },
                 children: [
                     {
-                        path: '/finance_report/finance',
+                        path: '/finance_report/finance_report_finance',
                         name: 'finance_report_finance',
                         component: () => import('@/views/report/finance-report/list/finance_report_finance/index.vue'),
                         meta: {
@@ -558,7 +557,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'inventory_report_inventory_category' },
                 children: [
                     {
-                        path: '/inventory_report/category',
+                        path: '/inventory_report/inventory_report_inventory_category',
                         name: 'inventory_report_inventory_category',
                         component: () => import('@/views/report/inventory-report/list/category/index.vue'),
                         meta: {
@@ -586,7 +585,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'spot_report_spot' },
                 children: [
                     {
-                        path: '/spot_report/spot',
+                        path: '/spot_report/spot_report_spot',
                         name: 'spot_report_spot',
                         component: () => import('@/views/report/spot-report/list/spot_report/index.vue'),
                         meta: {
@@ -605,7 +604,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'sum_pl_report_sum_pl' },
                 children: [
                     {
-                        path: '/sum_pl_report/sum_pl',
+                        path: '/sum_pl_report/sum_pl_report_sum_pl',
                         name: 'sum_pl_report_sum_pl',
                         component: () => import('@/views/report/sum_pl_report/list/sum_pl_report/index.vue'),
                         meta: {
@@ -624,7 +623,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'future_report_future' },
                 children: [
                     {
-                        path: '/future_report/future',
+                        path: '/future_report/future_report_future',
                         name: 'future_report_future',
                         component: () => import('@/views/report/future_report/list/future_report/index.vue'),
                         meta: {
@@ -643,7 +642,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_custom_info_normal' },
                 children: [
                     {
-                        path: '/platinum_customer_info/normal',
+                        path: '/platinum_customer_info/platinum_custom_info_normal',
                         name: 'platinum_custom_info_normal',
                         component: () => import('@/views/platinum/platinum_customer_info/list/normal-use/index.vue'),
                         meta: {
@@ -651,7 +650,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_customer_info/unsubmit',
+                        path: '/platinum_customer_info/platinum_customer_info_unsubmit',
                         name: 'platinum_customer_info_unsubmit',
                         component: () => import('@/views/platinum/platinum_customer_info/list/unsubmit/index.vue'),
                         meta: {
@@ -659,7 +658,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_customer_info/stop',
+                        path: '/platinum_customer_info/platinum_customer_info_stop',
                         name: 'platinum_customer_info_stop',
                         component: () => import('@/views/platinum/platinum_customer_info/list/stop-use/index.vue'),
                         meta: {
@@ -678,7 +677,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_pick_query_tab' },
                 children: [
                     {
-                        path: '/platinum_pick_query/tab',
+                        path: '/platinum_pick_query/platinum_pick_query_tab',
                         name: 'platinum_pick_query_tab',
                         component: () => import('@/views/platinum/platinum_pick_query/list/tab/index.vue'),
                         meta: {
@@ -697,7 +696,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_recharge_review_tab' },
                 children: [
                     {
-                        path: '/platinum_withdrawal_review_tab/recharge',
+                        path: '/platinum_withdrawal_review_tab/platinum_recharge_review_tab',
                         name: 'platinum_recharge_review_tab',
                         component: () => import('@/views/platinum/platinum_recharge_withdrawal_review/list/recharge/index.vue'),
                         meta: {
@@ -705,7 +704,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_withdrawal_review_tab/withdrawal',
+                        path: '/platinum_withdrawal_review_tab/platinum_withdrawal_review_tab',
                         name: 'platinum_withdrawal_review_tab',
                         component: () => import('@/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/index.vue'),
                         meta: {
@@ -724,7 +723,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_fixed_investment_price_query_tab' },
                 children: [
                     {
-                        path: '/platinum_fixed_investment_price_query/tab',
+                        path: '/platinum_fixed_investment_price_query/platinum_fixed_investment_price_query_tab',
                         name: 'platinum_fixed_investment_price_query_tab',
                         component: () => import('@/views/platinum/platinum_fixed_investment_price_query/list/tab/index.vue'),
                         meta: {
@@ -743,7 +742,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_fixed_investment_plan_query' },
                 children: [
                     {
-                        path: '/platinum_fixed_investment_plan_query/plan',
+                        path: '/platinum_fixed_investment_plan_query/platinum_fixed_investment_plan_query',
                         name: 'platinum_fixed_investment_plan_query',
                         component: () => import('@/views/platinum/platinum_fixed_investment_query/list/plan/index.vue'),
                         meta: {
@@ -751,7 +750,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_fixed_investment_plan_query/flow',
+                        path: '/platinum_fixed_investment_plan_query/platinum_fixed_investment_flow_query',
                         name: 'platinum_fixed_investment_flow_query',
                         component: () => import('@/views/platinum/platinum_fixed_investment_query/list/flow/index.vue'),
                         meta: {
@@ -770,7 +769,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_document_query_position' },
                 children: [
                     {
-                        path: '/platinum_document_query/position',
+                        path: '/platinum_document_query/platinum_document_query_position',
                         name: 'platinum_document_query_position',
                         component: () => import('@/views/platinum/platinum_document_query/list/position/index.vue'),
                         meta: {
@@ -778,7 +777,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_document_query/order',
+                        path: '/platinum_document_query/platinum_document_query_order',
                         name: 'platinum_document_query_order',
                         component: () => import('@/views/platinum/platinum_document_query/list/order/index.vue'),
                         meta: {
@@ -786,7 +785,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_document_query/waiting',
+                        path: '/platinum_document_query/platinum_document_query_waiting',
                         name: 'platinum_document_query_waiting',
                         component: () => import('@/views/platinum/platinum_document_query/list/waiting/index.vue'),
                         meta: {
@@ -794,7 +793,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_document_query/success',
+                        path: '/platinum_document_query/platinum_document_query_success',
                         name: 'platinum_document_query_success',
                         component: () => import('@/views/platinum/platinum_document_query/list/success/index.vue'),
                         meta: {
@@ -813,7 +812,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_financing_information_tab' },
                 children: [
                     {
-                        path: '/platinum_financing_information/tab',
+                        path: '/platinum_financing_information/platinum_financing_information_tab',
                         name: 'platinum_financing_information_tab',
                         component: () => import('@/views/platinum/platinum_financing_information/list/tab/index.vue'),
                         meta: {
@@ -832,7 +831,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_agents_and_stores_tab' },
                 children: [
                     {
-                        path: '/platinum_agents_and_stores/tab',
+                        path: '/platinum_agents_and_stores/platinum_agents_and_stores_tab',
                         name: 'platinum_agents_and_stores_tab',
                         component: () => import('@/views/platinum/platinum_agents_and_stores/list/tab/index.vue'),
                         meta: {
@@ -851,7 +850,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_agreement_tab' },
                 children: [
                     {
-                        path: '/platinum_agreement/tab',
+                        path: '/platinum_agreement/platinum_agreement_tab',
                         name: 'platinum_agreement_tab',
                         component: () => import('@/views/platinum/platinum_agreement/list/tab/index.vue'),
                         meta: {
@@ -870,7 +869,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_capital_flow_tab' },
                 children: [
                     {
-                        path: '/platinum_capital_flow_tab/tab',
+                        path: '/platinum_capital_flow_tab/platinum_capital_flow_tab',
                         name: 'platinum_capital_flow_tab',
                         component: () => import('@/views/platinum/platinum_capital_flow/platinum_capital_flow_tab/index.vue'),
                         meta: {
@@ -889,7 +888,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_promotion_report_tab' },
                 children: [
                     {
-                        path: '/platinum_promotion_report/tab',
+                        path: '/platinum_promotion_report/platinum_promotion_report_tab',
                         name: 'platinum_promotion_report_tab',
                         component: () => import('@/views/platinum/platinum_promotion_report/platinum_promotion_report_tab/index.vue'),
                         meta: {
@@ -908,7 +907,7 @@ const routes: Array<RouteRecordRaw> = [
                 redirect: { name: 'platinum_broker_management_normal_tab' },
                 children: [
                     {
-                        path: '/platinum_broker_management/normal',
+                        path: '/platinum_broker_management/platinum_broker_management_normal_tab',
                         name: 'platinum_broker_management_normal_tab',
                         component: () => import('@/views/platinum/platinum_broker_management/normal/index.vue'),
                         meta: {
@@ -916,7 +915,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_broker_management/waiting',
+                        path: '/platinum_broker_management/platinum_broker_management_waiting_tab',
                         name: 'platinum_broker_management_waiting_tab',
                         component: () => import('@/views/platinum/platinum_broker_management/waiting/index.vue'),
                         meta: {
@@ -924,7 +923,7 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                     {
-                        path: '/platinum_broker_management/refuse',
+                        path: '/platinum_broker_management/platinum_broker_management_refuse_tab',
                         name: 'platinum_broker_management_refuse_tab',
                         component: () => import('@/views/platinum/platinum_broker_management/refuse/index.vue'),
                         meta: {
@@ -933,6 +932,69 @@ const routes: Array<RouteRecordRaw> = [
                     },
                 ]
             },
+            {
+                path: '/spot_trade',
+                name: 'spot_trade',
+                component: Main,
+                meta: {
+                    requireAuth: true,
+                },
+                redirect: { name: '"warehouse_receipt_trade' },
+                children: [
+                    {
+                        path: '/spot_trade/warehouse_receipt_trade',
+                        name: 'warehouse_receipt_trade',
+                        component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                        children: [
+                            {
+                                path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price',
+                                name: 'warehouse_receipt_trade_floating_price',
+                                component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price/index.vue'),
+                                meta: {
+                                    requireAuth: true,
+                                },
+                            },
+                            {
+                                path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price',
+                                name: 'warehouse_receipt_trade_price',
+                                component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price/index.vue'),
+                                meta: {
+                                    requireAuth: true,
+                                },
+                            },
+                        ]
+                    },
+                    {
+                        path: '/spot_trade/capacity_pre_sale',
+                        name: 'capacity_pre_sale',
+                        component: () => import('@/views/market/spot_trade/capacity_pre_sale/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                        children: [
+                            {
+                                path: '/spot_trade/capacity_pre_sale/capacity_pre_sale_floating_price',
+                                name: 'capacity_pre_sale_floating_price',
+                                component: () => import('@/views/market/spot_trade/capacity_pre_sale/capacity_pre_sale_floating_price/index.vue'),
+                                meta: {
+                                    requireAuth: true,
+                                },
+                            },
+                            {
+                                path: '/spot_trade/capacity_pre_sale/capacity_pre_sale_price',
+                                name: 'capacity_pre_sale_price',
+                                component: () => import('@/views/market/spot_trade/capacity_pre_sale/capacity_pre_sale_price/index.vue'),
+                                meta: {
+                                    requireAuth: true,
+                                },
+                            },
+                        ]
+                    },
+                ]
+            },
         ],
     },
     {

+ 0 - 0
src/views/market/index.vue


+ 17 - 0
src/views/market/spot_trade/capacity_pre_sale/capacity_pre_sale_floating_price/index.vue

@@ -0,0 +1,17 @@
+<template>
+  <!-- 仓单预售 浮动价预售-->
+  <div class="capacity_pre_sale_floating_price">
+    浮动价预售
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from '@/common/export/commonTable';
+
+export default defineComponent({
+    name: 'capacity_pre_sale_floating_price',
+    setup() {
+        return {};
+    },
+});
+</script>

+ 17 - 0
src/views/market/spot_trade/capacity_pre_sale/capacity_pre_sale_price/index.vue

@@ -0,0 +1,17 @@
+<template>
+  <!-- 仓单预售 一口价预售-->
+  <div class="capacity_pre_sale_price">
+    一口价预售
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from '@/common/export/commonTable';
+
+export default defineComponent({
+    name: 'capacity_pre_sale_price',
+    setup() {
+        return {};
+    },
+});
+</script>

+ 55 - 0
src/views/market/spot_trade/capacity_pre_sale/index.vue

@@ -0,0 +1,55 @@
+<template>
+  <!-- 仓单预售 -->
+  <div class="warehouse_receipt_trade">
+    <router-view></router-view>
+    <ThridMenu :list="tabList"
+               :selectedKey="index"
+               @selectMenu="changeTab" />
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent, ref } from 'vue';
+import { getThirdMenuData } from '@/common/setup/table/button';
+import { TabList } from '@/common/components/description/interface';
+import ThridMenu from '@/common/components/thirdMenu/index.vue';
+import { useRoute, useRouter } from 'vue-router';
+import { initData } from '@/common/methods';
+
+export default defineComponent({
+    name: 'capacity_pre_sale',
+    components: {
+        ThridMenu,
+    },
+    setup() {
+        const list = getThirdMenuData();
+        const item = list.find((e) => e.code === 'capacity_pre_sale');
+        const tabList = item
+            ? item.children.map((e) => {
+                  return { lable: e.title, code: e.code };
+              })
+            : [];
+        const router = useRouter();
+        const route = useRoute();
+        const index = ref<string>('0');
+        initData(() => {
+            if (tabList.length) {
+                const name = route.name as string;
+                const result = tabList.findIndex((e) => e.code === name);
+                // 处理页面刷新
+                if (result !== -1) {
+                    router.push({ name });
+                    index.value = result.toString();
+                } else {
+                    router.push({ name: tabList[0].code });
+                    index.value = '0';
+                }
+            }
+        });
+        function changeTab(index: number, current: TabList) {
+            router.push({ name: current.code });
+        }
+        return { tabList, changeTab, index };
+    },
+});
+</script>

+ 55 - 0
src/views/market/spot_trade/warehouse_receipt_trade/index.vue

@@ -0,0 +1,55 @@
+<template>
+  <!-- 仓单贸易 -->
+  <div class="warehouse_receipt_trade">
+    <router-view></router-view>
+    <ThridMenu :list="tabList"
+               :selectedKey="index"
+               @selectMenu="changeTab" />
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent, ref } from 'vue';
+import { getThirdMenuData } from '@/common/setup/table/button';
+import { TabList } from '@/common/components/description/interface';
+import ThridMenu from '@/common/components/thirdMenu/index.vue';
+import { useRoute, useRouter } from 'vue-router';
+import { initData } from '@/common/methods';
+
+export default defineComponent({
+    name: 'warehouse_receipt_trade',
+    components: {
+        ThridMenu,
+    },
+    setup() {
+        const list = getThirdMenuData();
+        const item = list.find((e) => e.code === 'warehouse_receipt_trade');
+        const tabList = item
+            ? item.children.map((e) => {
+                  return { lable: e.title, code: e.code };
+              })
+            : [];
+        const router = useRouter();
+        const route = useRoute();
+        const index = ref<string>('0');
+        initData(() => {
+            if (tabList.length) {
+                const name = route.name as string;
+                const result = tabList.findIndex((e) => e.code === name);
+                // 处理页面刷新
+                if (result !== -1) {
+                    router.push({ name });
+                    index.value = result.toString();
+                } else {
+                    router.push({ name: tabList[0].code });
+                    index.value = '0';
+                }
+            }
+        });
+        function changeTab(index: number, current: TabList) {
+            router.push({ name: current.code });
+        }
+        return { tabList, changeTab, index };
+    },
+});
+</script>

+ 17 - 0
src/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price/index.vue

@@ -0,0 +1,17 @@
+<template>
+  <!-- 仓单贸易 浮动价挂牌-->
+  <div class="capacity_pre_sale">
+    浮动价挂牌
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from '@/common/export/commonTable';
+
+export default defineComponent({
+    name: 'warehouse_receipt_trade_floating_price',
+    setup() {
+        return {};
+    },
+});
+</script>

+ 17 - 0
src/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price/index.vue

@@ -0,0 +1,17 @@
+<template>
+  <!-- 仓单预售 一口价挂牌-->
+  <div class="capacity_pre_sale">
+    一口价挂牌
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from '@/common/export/commonTable';
+
+export default defineComponent({
+    name: 'warehouse_receipt_trade_price',
+    setup() {
+        return {};
+    },
+});
+</script>