import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const order: AppRouteModule = {
  path: '/dealer',
  name: 'Dealer',
  component: LAYOUT,
  redirect: '/dealer/account',
  meta: {
    icon: 'bi:columns',
    title: '经销商管理',
    orderNo: 102,
  },
  children: [
    {
      path: 'account',
      name: 'Account',
      component: () => import('/@/views/dealer/account.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: '经销商账号管理',
        icon: 'bx:list-ul',
        hideChildrenInMenu: true,
      },
    },{
      path: 'finance',
      name: 'Finance',
      component: () => import('/@/views/dealer/finance.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: '经销商结算统计',
        icon: 'bx:list-ul',
        hideChildrenInMenu: true,
      },
    },
  ],
};

export default order;
