import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ic:baseline-view-in-ar',
      keepAlive: true,
      order: 1000,
      title: '入账管理',
    },
    name: 'Posting',
    path: '/posting',
    children: [
      {
        meta: {
          title: '账单导入',
          keepAlive: true,
        },
        name: 'ImportBills',
        path: '/posting/import-bills',
        component: () => import('#/views/posting/import/index.vue'),
      },
      {
        meta: {
          title: '账单核对',
          keepAlive: true,
        },
        name: 'ReconciliateBills',
        path: '/posting/reconciliate-bills',
        component: () => import('#/views/posting/reconciliate/index.vue'),
      },
    ],
  },
];

export default routes;
