|
|
@@ -528,26 +528,60 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: '/finance_report',
|
|
|
name: 'finance_report',
|
|
|
- component: () => import('@/views/report/finance-report/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
+ redirect: { name: 'finance_report_finance' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/finance_report/finance',
|
|
|
+ name: 'finance_report_finance',
|
|
|
+ component: () => import('@/views/report/finance-report/list/finance_report_finance/index.vue'),
|
|
|
+ meta: {
|
|
|
+ requireAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
path: '/inventory_report',
|
|
|
name: 'inventory_report',
|
|
|
- component: () => import('@/views/report/inventory-report/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
+ redirect: { name: 'inventory_report_inventory' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/inventory_report/inventory',
|
|
|
+ name: 'inventory_report_inventory',
|
|
|
+ component: () => import('@/views/report/inventory-report/list/inventory_report_inventory/index.vue'),
|
|
|
+ meta: {
|
|
|
+ requireAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
path: '/spot_report',
|
|
|
name: 'spot_report',
|
|
|
- component: () => import('@/views/report/spot-report/index.vue'),
|
|
|
+ component: Main,
|
|
|
meta: {
|
|
|
requireAuth: true,
|
|
|
},
|
|
|
+ redirect: { name: 'spot_report_spot' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/spot_report/spot',
|
|
|
+ name: 'spot_report_spot',
|
|
|
+ component: () => import('@/views/report/spot-report/list/spot_report/index.vue'),
|
|
|
+ meta: {
|
|
|
+ requireAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
},
|
|
|
],
|
|
|
},
|