/* Layout */
import Layout from '@/layout'

export default {
  path: '/myAccounts',
  name: 'MyAccounts',
  component: Layout,
  redirect: '/receive',
  meta: {
    title: '我的账款', // 我的账款
    icon: 'myFinancing'
  },
  children: [
    {
      path: '/receive',
      name: 'Receive',
      component: () => import('@/views/myAccounts/receive/index'),
      meta: {
        title: '我的收款' // 我的收款
      },
      children: [
        {
          path: 'receiveView',
          name: 'ReceiveView',
          component: () => import('@/views/myAccounts/receive/view'),
          hidden: true,
          meta: {
            title: '我的收款详情', activeMenu: '/receive'
          }
        }
      ]
    },
    {
      path: '/payment',
      name: 'Payment',
      component: () => import('@/views/myAccounts/payment/index'),
      meta: {
        title: '应付账款' // 应付账款
      },
      children: [
        {
          path: 'paymentView',
          name: 'PaymentView',
          component: () => import('@/views/myAccounts/payment/view'),
          hidden: true,
          meta: {
            title: '应付账款详情', activeMenu: '/payment'
          }
        }
      ]
    }
  ]
}
