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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ant-design:book-twotone',
      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'),
      },
      {
        meta: {
          title: '天医币订单',
          keepAlive: true,
        },
        name: 'TianyibiOrders',
        path: '/posting/tianyibi-orders',
        component: () => import('#/views/posting/tianyibiOrders/index.vue'),
      },
      {
        meta: {
          title: '用户余额',
          keepAlive: true,
        },
        name: 'UserSurplus',
        path: '/posting/user-surplus',
        component: () => import('#/views/posting/userSurplus/index.vue'),
      },
    ],
  },
];

export default routes;
