/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const settlementManagement = {
    path: '/settlementManagement',
    component: Layout,
    redirect: 'noRedirect',
    name: 'settlementManagement',
    meta: {
        title: '结算管理',
        icon: 'jiesuanguanli',
        checkIcon: 'checkjiesuanguanli',
        module: 'changyuntong.jiesuanguanli',
    },
    alwaysShow: true,
    children: [{
            path: '/driverFeeSettlement',
            name: 'driverFeeSettlement',
            component: () =>
                import ('@/views/settlementManagement/driverFeeSettlement'),
            meta: {
                title: '司机费用结算',
                icon: '',
                module: 'changyuntong.jiesuanguanli.sifei.view',
            }
        },
        {
            path: '/advancePaymentAndRepaymentSettlement',
            name: 'advancePaymentAndRepaymentSettlement',
            component: () =>
                import ('@/views/settlementManagement/advancePaymentAndRepaymentSettlement'),
            meta: {
                title: '垫付还款结算',
                icon: '',
                module: 'changyuntong.jiesuanguanli.dianfu.view',
            },
        },
        {
            path: '/CashOwner',
            name: 'CashOwner',
            component: () =>
                import ('@/views/settlementManagement/CashOwner'),
            meta: {
                title: '货主提现',
                icon: '',
                module: 'changyuntong.jiesuanguanli.tixian.view',
            },
        },
        {
            path: '/ownerFlow',
            name: 'ownerFlow',
            component: () =>
                import ('@/views/settlementManagement/ownerFlow'),
            meta: {
                title: '货主账户流水',
                icon: '',
                module: 'changyuntong.jiesuanguanli.hangliu.view',
            },
        },
        {
            path: '/statisticalReport',
            name: 'statisticalReport',
            component: () =>
                import ('@/views/settlementManagement/statisticalReport'),
            meta: {
                title: '统计报表',
                icon: '',
                module: 'changyuntong.jiesuanguanli.baobiao.view',
            },
        },
    ]
}

export default settlementManagement