// eslint-disable-next-line
import {
  UserLayout,
  BasicLayout,
  RouteView,
  BlankLayout,
  PageView
} from '@/layouts'

export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: {
      title: '首页'
    },
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        redirect: '/home',
        component: PageView,
        meta: {
          title: '首页',
          icon: 'home'
        },
        hideChildrenInMenu: true,
        children: [
          {
            path: '/home',
            name: 'home',
            redirect: '/home',
            component: BlankLayout,
            meta: {
              title: '首页',
              icon: 'home',
              hidden: true
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: '/home',
                name: 'home',
                component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
                meta: {
                  title: '首页',
                  icon: 'home',
                  hidden: true
                }
              },
              {
                path: '/changePwd',
                name: 'changePwd',
                component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
                meta: {
                  title: '修改密码',
                  icon: 'home'
                },
                hidden: true
              },
              {
                path: '/notice',
                name: 'notice',
                component: () => import(/* webpackChunkName: "home" */ '@/views/setting/notice/list'),
                meta: {
                  title: '公告',
                  icon: 'bell'
                },
                hidden: true
              },
              {
                path: '/dowloadFile',
                name: 'dowloadFile',
                component: () => import(/* webpackChunkName: "home" */ '@/views/dowloadFile/list'),
                meta: {
                  title: '下载中心',
                  icon: 'bell'
                },
                hidden: true
              },
              // 新品列表
              {
                path: '/newProduct/list/:onlineFalg',
                name: 'newProductList',
                component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/list'),
                meta: {
                  title: '新品信息',
                  icon: 'home'
                },
                hidden: true
              },
              // 产品详情
              {
                path: '/viewProduct/:sn',
                name: 'viewProduct',
                component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/detail'),
                meta: {
                  title: '产品详情',
                  icon: 'home'
                },
                hidden: true
              },
            ]
          }
        ]
      },
      // 销售管理
      {
        path: '/salesManagement',
        redirect: '/salesManagement/salesQuery',
        component: PageView,
        meta: {
          title: '销售管理',
          icon: 'account-book',
          permission: 'M_salesManagement'
        },
        children: [
          {
            path: '/salesManagement/salesQuery',
            redirect: '/salesManagement/salesQuery/list',
            name: 'salesQuery',
            component: BlankLayout,
            meta: {
              title: '销售单查询',
              icon: 'monitor',
              permission: 'M_salesQueryList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesQueryList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
                meta: {
                  title: '销售单列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_salesQueryList'
                }
              },
              {
                path: 'detail/:sn',
                name: 'salesDetail',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
                meta: {
                  title: '销售单详情',
                  icon: 'monitor',
                  hidden: true,
                  replaceTab: true,
                  // permission: 'M_salesDetail'
                }
              },
              {
                path: 'add/:sn',
                name: 'salesAdd',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
                meta: {
                  title: '新增销售单',
                  icon: 'monitor',
                  hidden: true
                  // permission: 'M_salesNew'
                }
              },
              {
                path: 'edit/:sn',
                name: 'salesEdit',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
                meta: {
                  title: '编辑销售单',
                  icon: 'monitor',
                  hidden: true
                  // permission: 'M_salesNew'
                }
              },
              {
                path: 'waitDispatch/:salesBillSn/:dispatchBillSn',
                name: 'waitDispatch',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/waitDispatch/edit.vue'),
                meta: {
                  title: '下推销售单',
                  icon: 'monitor',
                  replaceTab: true,
                  hidden: true
                  // permission: 'M_salesNew'
                }
              }
            ]
          },
          {
            path: '/salesManagement/pushOrderManagement',
            redirect: '/salesManagement/pushOrderManagement/list',
            name: 'pushOrderManagement',
            component: BlankLayout,
            meta: {
              title: '下推订单列表',
              icon: 'vertical-align-bottom',
              permission: 'M_pushOrderManagementList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'pushOrderManagementList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/list.vue'),
                meta: {
                  title: '下推订单列表',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_pushOrderManagementList'
                }
              },
              {
                path: 'detail/:sn/:type',
                name: 'pushOrderDetail',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/detail.vue'),
                meta: {
                  title: '下推订单详情',
                  icon: 'vertical-align-bottom',
                  replaceTab: true,
                  hidden: true
                  // permission: 'M_outboundList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/salesCollection',
            redirect: '/salesManagement/salesCollection/list',
            name: 'salesCollection',
            component: BlankLayout,
            meta: {
              title: '销售收款',
              icon: 'vertical-align-bottom',
              permission: 'M_salesCollectionList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesCollectionList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesCollection/list.vue'),
                meta: {
                  title: '销售收款',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_salesCollectionList'
                }
              },
            ]
          },
          {
            path: '/salesManagement/stockPrint',
            redirect: '/salesManagement/stockPrint/list',
            name: 'stockPrint',
            component: BlankLayout,
            meta: {
              title: '备货打印',
              icon: 'vertical-align-bottom',
              permission: 'M_stockPrintList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'stockPrintList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/stockPrint/list.vue'),
                meta: {
                  title: '备货打印',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_stockPrintList'
                }
              },
            ]
          },
          {
            path: '/salesManagement/receiptPrint',
            redirect: '/salesManagement/receiptPrint/list',
            name: 'receiptPrint',
            component: BlankLayout,
            meta: {
              title: '收款打印',
              icon: 'vertical-align-bottom',
              permission: 'M_receiptPrintList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'receiptPrintList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/receiptPrint/list.vue'),
                meta: {
                  title: '收款打印',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_receiptPrintList'
                }
              },
            ]
          },
          {
            path: '/salesManagement/matchSendOutOrder',
            redirect: '/salesManagement/matchSendOutOrder/list',
            name: 'matchSendOutOrder',
            component: BlankLayout,
            meta: {
              title: '发货对单',
              icon: 'vertical-align-bottom',
              permission: 'M_matchSendOutOrderList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'matchSendOutOrderList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/matchSendOutOrder/list.vue'),
                meta: {
                  title: '发货对单',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_matchSendOutOrderList'
                }
              },
            ]
          },
          {
            path: '/salesManagement/examineVerify',
            redirect: '/salesManagement/examineVerify/list',
            name: 'examineVerify',
            component: BlankLayout,
            meta: {
              title: '备货审核',
              icon: 'audit',
              permission: 'M_examineVerifyList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'examineVerifyList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
                meta: {
                  title: '备货审核列表',
                  icon: 'audit',
                  hidden: true,
                  permission: 'M_examineVerifyList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/outboundOrder',
            redirect: '/salesManagement/outboundOrder/list',
            name: 'outboundOrder',
            component: BlankLayout,
            meta: {
              title: '出库',
              icon: 'export',
              permission: 'M_outboundOrderList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'outboundOrderList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
                meta: {
                  title: '出库列表',
                  icon: 'export',
                  hidden: true,
                  permission: 'M_outboundOrderList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/sendOutOrder',
            redirect: '/salesManagement/sendOutOrder/list',
            name: 'sendOutOrder',
            component: BlankLayout,
            meta: {
              title: '发货单列表',
              icon: 'export',
              permission: 'M_sendOutOrderList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'sendOutOrderList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/sendOutOrder/list.vue'),
                meta: {
                  title: '发货单列表',
                  icon: 'export',
                  hidden: true,
                  permission: 'M_sendOutOrderList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/backorder',
            redirect: '/salesManagement/backorder/list',
            name: 'backorder',
            component: BlankLayout,
            meta: {
              title: '销售缺货列表',
              icon: 'exception',
              permission: 'M_backorderList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'backorderList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
                meta: {
                  title: '销售缺货列表',
                  icon: 'exception',
                  hidden: true,
                  permission: 'M_backorderList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/shortageStatisticsC',
            redirect: '/salesManagement/shortageStatisticsC/list',
            name: 'shortageStatisticsC',
            component: BlankLayout,
            meta: {
              title: '缺货统计（按客户）',
              icon: 'file-done',
              permission: 'M_shortageStatisticsCList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'shortageStatisticsCList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/shortageStatisticsC/list.vue'),
                meta: {
                  title: '缺货统计（按客户）',
                  icon: 'file-done',
                  hidden: true,
                  permission: 'M_shortageStatisticsCList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/shortageStatisticsP',
            redirect: '/salesManagement/shortageStatisticsP/list',
            name: 'shortageStatisticsP',
            component: BlankLayout,
            meta: {
              title: '缺货统计（按产品）',
              icon: 'file-protect',
              permission: 'M_shortageStatisticsPList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'shortageStatisticsPList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/shortageStatisticsP/list.vue'),
                meta: {
                  title: '缺货统计（按产品）',
                  icon: 'file-protect',
                  hidden: true,
                  permission: 'M_shortageStatisticsPList'
                }
              }
            ]
          },
          {
            path: '/salesManagement/priceInquiry',
            redirect: '/salesManagement/priceInquiry/list',
            name: 'priceInquiry',
            component: BlankLayout,
            meta: {
              title: '价格查询',
              icon: 'file-protect',
              permission: 'M_priceInquiryList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'priceInquiryList',
                component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/priceInquiry/list.vue'),
                meta: {
                  title: '价格查询列表',
                  icon: 'file-protect',
                  hidden: true,
                  permission: 'M_priceInquiryList'
                }
              }
            ]
          }
        ]
      },
      //销售退货
      {
        path: '/salesReturnManagement',
        redirect: '/salesReturnManagement/salesReturn',
        component: PageView,
        meta: {
          title: '销售退货',
          icon: 'export',
          permission: 'M_salesReturnManagement'
        },
        children: [
           {
             path: '/salesReturnManagement/salesReturn',
             redirect: '/salesReturnManagement/salesReturn/list',
             name: 'salesReturn',
             component: BlankLayout,
             meta: {
               title: '销售退货列表',
               icon: 'fund',
               permission: 'M_salesReturnList'
             },
             hideChildrenInMenu: true,
             children: [
               {
                 path: 'list',
                 name: 'salesReturnList',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/salesReturn/list.vue'),
                 meta: {
                   title: '销售退货列表',
                   icon: 'fund',
                   hidden: true,
                   permission: 'M_salesReturnList'
                 }
               },
               {
                 path: 'detail/:sn',
                 name: 'salesReturnDetail',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/salesReturn/detail.vue'),
                 meta: {
                   title: '销售退货详情',
                   icon: 'fund',
                   hidden: true
                 }
               },
               {
                 path: 'salesReturnEdit/:sn/:buyerSn',
                 name: 'salesReturnEdit',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/salesReturn/salesReturnEdit.vue'),
                 meta: {
                   title: '编辑销售退货',
                   icon: 'fund',
                   hidden: true
                 }
               },
               {
                 path: 'custConfirm/:sn/:buyerSn',
                 name: 'custConfirm',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/custConfirm/list.vue'),
                 meta: {
                   title: '客服确认',
                   icon: 'fund',
                   replaceTab: true,
                   hidden: true
                 }
               },
             ]
           },
           {
             path: '/salesReturnManagement/billOfLading',
             redirect: '/salesReturnManagement/billOfLading/list',
             name: 'billOfLading',
             component: BlankLayout,
             meta: {
               title: '提货单列表',
               icon: 'fund',
               permission: 'M_billOfLadingList'
             },
             hideChildrenInMenu: true,
             children: [
               {
                 path: 'list',
                 name: 'billOfLadingList',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/billOfLading/list.vue'),
                 meta: {
                   title: '提货单列表',
                   icon: 'fund',
                   hidden: true,
                   permission: 'M_billOfLadingList'
                 }
               },
               {
                 path: 'detail/:sn',
                 name: 'billOfLadingDetail',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/billOfLading/detail.vue'),
                 meta: {
                   title: '提货单详情',
                   icon: 'fund',
                   hidden: true
                 }
               },
               {
                 path: 'add',
                 name: 'billOfLadingAdd',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/billOfLading/add.vue'),
                 meta: {
                   title: '新增提货单',
                   icon: 'fund',
                   hidden: true
                 }
               },
               {
                 path: 'edit/:sn',
                 name: 'billOfLadingEdit',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/billOfLading/add.vue'),
                 meta: {
                   title: '编辑提货单',
                   icon: 'fund',
                   hidden: true
                 }
               },
             ]
           },
           {
             path: '/salesReturnManagement/pickUp',
             redirect: '/salesReturnManagement/pickUp/list',
             name: 'pickUp',
             component: BlankLayout,
             meta: {
               title: '仓库提货',
               icon: 'fund',
               permission: 'M_pickUpList'
             },
             hideChildrenInMenu: true,
             children: [
               {
                 path: 'list',
                 name: 'pickUpList',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/pickUp/list.vue'),
                 meta: {
                   title: '仓库提货列表',
                   icon: 'fund',
                   hidden: true,
                   permission: 'M_pickUpList'
                 }
               },
             ]
           },
           {
             path: '/salesReturnManagement/receiveCheck',
             redirect: '/salesReturnManagement/receiveCheck/list',
             name: 'receiveCheck',
             component: BlankLayout,
             meta: {
               title: '收货品检',
               icon: 'fund',
               permission: 'M_receiveCheckList'
             },
             hideChildrenInMenu: true,
             children: [
               {
                 path: 'list',
                 name: 'receiveCheckList',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/receiveCheck/list.vue'),
                 meta: {
                   title: '收货品检列表',
                   icon: 'fund',
                   hidden: true,
                   permission: 'M_receiveCheckList'
                 }
               },
               {
                 path: 'receiving/:sn/:buyerSn',
                 name: 'salesReturnReceiving',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/receiveCheck/receiving.vue'),
                 meta: {
                   title: '收货',
                   icon: 'fund',
                   hidden: true,
                   replaceTab: true
                 }
               },
               {
                 path: 'checking/:sn/:buyerSn',
                 name: 'salesReturnCheck',
                 component: () => import(/* webpackChunkName: "salesReturnManagement" */ '@/views/salesReturnManagement/receiveCheck/checking.vue'),
                 meta: {
                   title: '品检',
                   icon: 'fund',
                   hidden: true,
                   replaceTab: true
                 }
               },
             ]
           }
        ]
      },
      // 采购管理
      {
        path: '/purchasingManagement',
        redirect: '/purchasingManagement/purchaseOrder',
        component: PageView,
        meta: {
          title: '采购管理',
          icon: 'money-collect',
          permission: 'M_purchasingManagement'
        },
        children: [
          {
            path: '/purchasingManagement/bulkWarehousingOrder',
            redirect: '/purchasingManagement/bulkWarehousingOrder/list',
            name: 'bulkWarehousingOrder',
            component: BlankLayout,
            meta: {
              title: '散件入库',
              icon: 'gold',
              permission: 'M_bulkWarehousingOrderList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'bulkWarehousingOrderList',
                component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/bulkWarehousingOrder/list.vue'),
                meta: {
                  title: '散件入库单列表',
                  icon: 'gold',
                  hidden: true,
                  permission: 'M_bulkWarehousingOrderList'
                }
              },
              {
                path: 'add/:id/:sn',
                name: 'bulkWarehousingOrderAdd',
                component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
                meta: {
                  title: '新增散件入库单',
                  icon: 'gold',
                  hidden: true
                }
              },
              {
                path: 'edit/:id/:sn',
                name: 'bulkWarehousingOrderEdit',
                component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
                meta: {
                  title: '编辑散件入库单',
                  icon: 'gold',
                  hidden: true
                }
              }
            ]
          }
        ]
      },
      // 财务管理
      {
        path: '/financialManagement',
        redirect: '/financialManagement/returnConfirmation',
        component: PageView,
        meta: {
          title: '财务管理',
          icon: 'property-safety',
          permission: 'M_financialManagement'
        },
        children: [
          {
            path: '/financialManagement/warehousingConfirmation',
            redirect: '/financialManagement/warehousingConfirmation/list',
            name: 'warehousingConfirmation',
            component: BlankLayout,
            meta: {
              title: '入库确认',
              icon: 'vertical-align-bottom',
              permission: 'M_warehousingConfirmationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'warehousingConfirmationList',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
                meta: {
                  title: '入库确认列表',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_warehousingConfirmationList'
                }
              }
            ]
          },
          {
            path: '/financialManagement/returnConfirmation',
            redirect: '/financialManagement/returnConfirmation/list',
            name: 'returnConfirmation',
            component: BlankLayout,
            meta: {
              title: '销售退货确认',
              icon: 'vertical-align-top',
              permission: 'M_returnConfirmationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'returnConfirmationList',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
                meta: {
                  title: '销售退货确认列表',
                  icon: 'vertical-align-top',
                  hidden: true,
                  permission: 'M_returnConfirmationList'
                }
              }
            ]
          },
          {
            path: '/financialManagement/allocateReturnConfirmation',
            redirect: '/financialManagement/allocateReturnConfirmation/list',
            name: 'allocateReturnConfirmation',
            component: BlankLayout,
            meta: {
              title: '调拨退货确认',
              icon: 'vertical-align-top',
              permission: 'M_allocateReturnConfirmationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'allocateReturnConfirmationList',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/allocateReturnConfirmation/list.vue'),
                meta: {
                  title: '调拨退货确认列表',
                  icon: 'vertical-align-top',
                  hidden: true,
                  permission: 'M_allocateReturnConfirmationList'
                }
              }
            ]
          },
          {
            path: '/financialManagement/inventoryConfirmation',
            redirect: '/financialManagement/inventoryConfirmation/list',
            name: 'inventoryConfirmation',
            component: BlankLayout,
            meta: {
              title: '盘点确认',
              icon: 'monitor',
              permission: 'M_inventoryConfirmationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'inventoryConfirmationList',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryConfirmation/list.vue'),
                meta: {
                  title: '盘点确认列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_inventoryConfirmationList'
                }
              },
              {
                path: 'detail/:sn',
                name: 'inventoryConfirmationDetail',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryConfirmation/detail.vue'),
                meta: {
                  title: '盘点确认详情',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'B_inventoryConfirmationDetail'
                }
              }
            ]
          },
          {
            path: '/financialManagement/financialCollection',
            redirect: '/financialManagement/financialCollection/list',
            name: 'financialCollection',
            component: BlankLayout,
            meta: {
              title: '财务收款',
              icon: 'pay-circle',
              permission: 'M_financialCollectionList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'financialCollectionList',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
                meta: {
                  title: '财务收款列表',
                  icon: 'pay-circle',
                  hidden: true,
                  permission: 'M_financialCollectionList'
                }
              },
              {
                path: 'detail/:sn',
                name: 'financialCollectionDetail',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/detail.vue'),
                meta: {
                  title: '财务收款详情',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'edit/:sn',
                name: 'financialCollectionEdit',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/edit.vue'),
                meta: {
                  title: '编辑财务收款',
                  icon: 'monitor',
                  hidden: true
                }
              }
            ]
          },
          {
            path: '/financialManagement/collectionDetailStatic',
            redirect: '/financialManagement/collectionDetailStatic/list',
            name: 'collectionDetailStatic',
            component: BlankLayout,
            meta: {
              title: '财务收款明细统计',
              icon: 'vertical-align-top',
              permission: 'M_FC_Details_list'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'collectionDetailStaticList',
                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/collectionDetailStatic/list.vue'),
                meta: {
                  title: '财务收款明细统计列表',
                  icon: 'vertical-align-top',
                  hidden: true,
                  permission: 'M_FC_Details_list'
                }
              }
            ]
          },
        ]
      },
      // 费用报销
      {
        path: '/expenseManagement',
        redirect: '/expenseManagement/expenseReimbursement',
        component: PageView,
        meta: {
          title: '费用报销',
          icon: 'account-book',
          permission: 'M_expenseManagement'
        },
        children: [
          {
            path: '/expenseManagement/expenseReimbursement',
            redirect: '/expenseManagement/expenseReimbursement/list',
            name: 'expenseReimbursement',
            component: BlankLayout,
            meta: {
              title: '费用报销单',
              icon: 'monitor',
              permission: 'M_expenseReimbursementList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'expenseReimbursementList',
                component: () => import(/* webpackChunkName: "expenseManagement" */ '@/views/expenseManagement/expenseReimbursement/list.vue'),
                meta: {
                  title: '费用报销单列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_expenseReimbursementList'
                }
              },
              {
                path: 'detail/:sn',
                name: 'expenseReimbursementListDetail',
                component: () => import(/* webpackChunkName: "expenseManagement" */ '@/views/expenseManagement/expenseReimbursement/detail.vue'),
                meta: {
                  title: '费用报销单详情',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'add',
                name: 'expenseReimbursementAdd',
                component: () => import(/* webpackChunkName: "expenseManagement" */ '@/views/expenseManagement/expenseReimbursement/add.vue'),
                meta: {
                  title: '新增费用报销单',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'edit/:sn',
                name: 'expenseReimbursementEdit',
                component: () => import(/* webpackChunkName: "expenseManagement" */ '@/views/expenseManagement/expenseReimbursement/add.vue'),
                meta: {
                  title: '编辑费用报销单',
                  icon: 'monitor',
                  hidden: true
                }
              }
            ]
          },
          {
            path: '/expenseManagement/expenseReimbursementDetail',
            redirect: '/expenseManagement/expenseReimbursementDetail/list',
            name: 'expenseReimbursementDetail',
            component: BlankLayout,
            meta: {
              title: '费用报销明细统计',
              icon: 'audit',
              permission: 'M_expenseReimbursementDetailList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'expenseReimbursementDetailList',
                component: () => import(/* webpackChunkName: "expenseManagement" */ '@/views/expenseManagement/expenseReimbursementDetail/list.vue'),
                meta: {
                  title: '费用报销明细统计列表',
                  icon: 'audit',
                  hidden: true,
                  permission: 'M_expenseReimbursementDetailList'
                }
              }
            ]
          }
        ]
      },
      // 库存管理
      {
        path: '/inventoryManagement',
        redirect: '/inventoryManagement/inventoryQuery',
        component: PageView,
        meta: {
          title: '库存管理',
          icon: 'shop',
          permission: 'M_inventoryManagement'
        },
        children: [
          {
            path: '/inventoryManagement/inventoryQuery',
            redirect: '/inventoryManagement/inventoryQuery/list',
            name: 'inventoryQuery',
            component: BlankLayout,
            meta: {
              title: '库存查询',
              icon: 'monitor',
              permission: 'M_inventoryQueryList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'inventoryQueryList',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
                meta: {
                  title: '库存列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_inventoryQueryList'
                }
              },
              {
                path: 'warehouseDetail/:sn',
                name: 'inventoryQueryWarehouseDetail',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
                meta: {
                  title: '出入库明细',
                  icon: 'monitor',
                  replaceTab: true,
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/inventoryManagement/inventoryCheck',
            redirect: '/inventoryManagement/inventoryCheck/list/0',
            name: 'inventoryCheck',
            component: BlankLayout,
            meta: {
              title: '库存盘点',
              icon: 'monitor',
              permission: 'M_inventoryCheckList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list/:type',
                name: 'inventoryCheckList',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryCheck/list.vue'),
                meta: {
                  title: '库存盘点列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_inventoryCheckList'
                }
              },
              {
                path: 'detail/:sn',
                name: 'inventoryCheckDetail',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryCheck/detail.vue'),
                meta: {
                  title: '库存盘点详情',
                  icon: 'monitor',
                  hidden: true,
                  replaceTab: true,
                  permission: 'B_inventoryCheckDetail'
                }
              }
            ]
          },
          {
            path: '/inventoryManagement/makeInventory',
            redirect: '/inventoryManagement/makeInventory/list',
            name: 'makeInventory',
            component: BlankLayout,
            meta: {
              title: '盘点人盘点',
              icon: 'monitor',
              permission: 'M_inventoryMakeInventoryList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'makeInventoryList',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/makeInventory/list.vue'),
                meta: {
                  title: '盘点人盘点列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_inventoryMakeInventoryList'
                }
              },
              {
                path: 'check/:sn',
                name: 'makeInventoryCheck',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/makeInventory/check.vue'),
                meta: {
                  title: '盘点人盘点',
                  icon: 'monitor',
                  hidden: true,
                  replaceTab: true,
                  permission: 'B_inventoryMakeInventoryCheck'
                }
              }
            ]
          },
          {
            path: '/inventoryManagement/supervisionDisk',
            redirect: '/inventoryManagement/supervisionDisk/list',
            name: 'supervisionDisk',
            component: BlankLayout,
            meta: {
              title: '监盘人盘点',
              icon: 'monitor',
              permission: 'M_supervisionDiskList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'supervisionDiskList',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/supervisionDisk/list.vue'),
                meta: {
                  title: '监盘人盘点列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_supervisionDiskList'
                }
              },
              {
                path: 'check/:sn',
                name: 'supervisionDiskCheck',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/supervisionDisk/check.vue'),
                meta: {
                  title: '监盘人监盘',
                  icon: 'monitor',
                  replaceTab: true,
                  hidden: true,
                  permission: 'B_supervisionDiskCheck'
                }
              }
            ]
          },
          {
            path: '/inventoryManagement/inventoryWarning',
            redirect: '/inventoryManagement/inventoryWarning/list',
            name: 'inventoryWarning',
            component: BlankLayout,
            meta: {
              title: '库存预警',
              icon: 'monitor',
              permission: 'M_inventoryWarningList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'inventoryWarningList',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
                meta: {
                  title: '库存预警列表',
                  icon: 'alert',
                  permission: 'M_inventoryWarningList'
                }
              },
            ]
          },
          {
            path: '/inventoryManagement/intelligentReplenishment',
            redirect: '/inventoryManagement/intelligentReplenishment/list',
            name: 'intelligentReplenishment',
            component: BlankLayout,
            meta: {
              title: '智能补货',
              icon: 'monitor',
              permission: 'M_intelligentReplenishmentList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'intelligentReplenishmentList',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/list.vue'),
                meta: {
                  title: '智能补货列表',
                  icon: 'monitor',
                  hidden: true,
                  permission: 'M_intelligentReplenishmentList'
                }
              },
              {
                path: 'add/:sn',
                name: 'intelligentReplenishmentAdd',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
                meta: {
                  title: '新增智能补货',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'edit/:sn',
                name: 'intelligentReplenishmentEdit',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
                meta: {
                  title: '编辑智能补货',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'set',
                name: 'intelligentReplenishmentSet',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/set.vue'),
                meta: {
                  title: '基础信息设置',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'import',
                name: 'intelligentReplenishmentImport',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/import.vue'),
                meta: {
                  title: '确认导入',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'explainXsbz',
                name: 'intelligentReplenishmentExplainXsbz',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/explainXsbz.vue'),
                meta: {
                  title: '销售保障法-说明',
                  icon: 'monitor',
                  hidden: true
                }
              },
              {
                path: 'explainQspj',
                name: 'intelligentReplenishmentExplainQspj',
                component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/explainQspj.vue'),
                meta: {
                  title: '趋势平均法-说明',
                  icon: 'monitor',
                  hidden: true
                }
              }
            ]
          }
        ]
      },
      // 调拨管理
      {
        path: '/allocationManagement',
        redirect: '/allocationManagement/transferOut',
        component: PageView,
        meta: {
          title: '调拨管理',
          icon: 'cluster',
          permission: 'M_allocationManagement'
        },
        children: [
          {
            path: '/allocationManagement/transferOut',
            redirect: '/allocationManagement/transferOut/list',
            name: 'transferOut',
            component: BlankLayout,
            meta: {
              title: '调拨列表',
              icon: 'pull-request',
              permission: 'M_transferOutList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'transferOutList',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/list.vue'),
                meta: {
                  title: '调拨列表',
                  icon: 'pull-request',
                  hidden: true,
                  permission: 'M_transferOutList'
                }
              },
              {
                path: 'add/:sn/:dealerLevel',
                name: 'transferOutAdd',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/edit.vue'),
                meta: {
                  title: '新增调拨单',
                  icon: 'pull-request',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'edit/:sn/:dealerLevel',
                name: 'transferOutEdit',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/edit.vue'),
                meta: {
                  title: '编辑调拨单',
                  icon: 'pull-request',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'detail/:sn',
                name: 'transferOutDetail',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/detail.vue'),
                meta: {
                  title: '调拨单详情',
                  icon: 'pull-request',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/allocationManagement/transfersPrint',
            redirect: '/allocationManagement/transfersPrint/list',
            name: 'transfersPrint',
            component: BlankLayout,
            meta: {
              title: '调拨打印',
              icon: 'pull-request',
              permission: 'M_transfersPrintList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'transfersPrintList',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transfersPrint/list.vue'),
                meta: {
                  title: '调拨打印',
                  icon: 'pull-request',
                  hidden: true,
                  permission: 'M_transfersPrintList'
                }
              },
            ]
          },
          {
            path: '/allocationManagement/matchSendOutOrder',
            redirect: '/allocationManagement/matchSendOutOrder/list',
            name: 'matchSendOutOrderAllocation',
            component: BlankLayout,
            meta: {
              title: '调拨发货对单',
              icon: 'vertical-align-bottom',
              permission: 'M_matchSendOutOrderAllocationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'matchSendOutOrderAllocationList',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/matchSendOutOrder/list.vue'),
                meta: {
                  title: '调拨发货对单',
                  icon: 'vertical-align-bottom',
                  hidden: true,
                  permission: 'M_matchSendOutOrderAllocationList'
                }
              },
            ]
          },
          {
            path: '/allocationManagement/transferReturn',
            redirect: '/allocationManagement/transferReturn/list',
            name: 'transferReturn',
            component: BlankLayout,
            meta: {
              title: '调拨退货列表',
              icon: 'pull-request',
              permission: 'M_transferReturnList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'transferReturnList',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferReturn/list.vue'),
                meta: {
                  title: '调拨退货列表',
                  icon: 'pull-request',
                  hidden: true,
                  permission: 'M_transferReturnList'
                }
              },
              {
                path: 'editGrap/:sn/:targetType',
                name: 'transferReturnGrpEdit',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferReturn/editGrp.vue'),
                meta: {
                  title: '编辑调拨退货单(抓单)',
                  icon: 'pull-request',
                  hidden: true
                }
              },
              {
                path: 'edit/:sn/:targetType/:dealerLevel',
                name: 'transferReturnEdit',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferReturn/edit.vue'),
                meta: {
                  title: '编辑调拨退货单(不抓单)',
                  icon: 'pull-request',
                  hidden: true
                }
              },
              {
                path: 'detail/:sn',
                name: 'transferReturnDetail',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferReturn/detail.vue'),
                meta: {
                  title: '调拨退货单详情',
                  icon: 'pull-request',
                  replaceTab: true,
                  hidden: true
                }
              },
              {
                path: 'check/:sn/:grabFlag',
                name: 'transferReturnCheck',
                component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferReturn/check.vue'),
                meta: {
                  title: '调拨退货品检',
                  icon: 'fund',
                  replaceTab: true,
                  hidden: true
                }
              }
            ]
          }
        ]
      },
      // 报表
      {
        path: '/reportData',
        redirect: '/reportData/salesOrderTotal',
        component: PageView,
        meta: {
          title: '报表',
          icon: 'project',
          permission: 'M_reportData'
        },
        children: [
          {
            path: '/reportData/salesOrderTotal',
            redirect: '/reportData/salesOrderTotal/list',
            name: 'salesOrderTotal',
            component: BlankLayout,
            meta: {
              title: '销售(开单统计)',
              icon: 'profile',
              permission: 'M_salesOrderTotalList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesOrderTotalList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesOrderTotal/list.vue'),
                meta: {
                  title: '销售(开单统计)列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_salesOrderTotalList'
                }
              }
            ]
          },
          {
            path: '/reportData/salesDetails',
            redirect: '/reportData/salesDetails/list',
            name: 'salesDetails',
            component: BlankLayout,
            meta: {
              title: '销售明细(开单统计)',
              icon: 'profile',
              permission: 'M_salesDetailsList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesDetailsList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesDetails/list.vue'),
                meta: {
                  title: '销售明细列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_salesDetailsList'
                }
              }
            ]
          },
          {
            path: '/reportData/actualSalesReport',
            redirect: '/reportData/actualSalesReport/list',
            name: 'actualSalesReport',
            component: BlankLayout,
            meta: {
              title: '实售销售报表',
              icon: 'profile',
              permission: 'M_actualSalesReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'actualSalesReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/actualSalesReport/list.vue'),
                meta: {
                  title: '实售销售列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_actualSalesReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/salesAmountReport',
            redirect: '/reportData/salesAmountReport/list',
            name: 'salesAmountReport',
            component: BlankLayout,
            meta: {
              title: '开单销售报表',
              icon: 'profile',
              permission: 'M_salesAmountReportList'
            },
            hideChildrenInMenu: true,
            children: [{
              path: 'list',
              name: 'salesAmountReportList',
              component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesAmountReport/list.vue'),
              meta: {
                title: '开单销售报表列表',
                icon: 'profile',
                hidden: true,
                permission: 'M_salesAmountReportList'
              }
            }]
          },
          {
            path: '/reportData/salesSlipReport',
            redirect: '/reportData/salesSlipReport/list',
            name: 'salesSlipReport',
            component: BlankLayout,
            meta: {
              title: '开单销售单报表',
              icon: 'profile',
              permission: 'M_salesSlipReportList'
            },
            hideChildrenInMenu: true,
            children: [{
              path: 'list',
              name: 'salesSlipReportList',
              component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesSlipReport/list.vue'),
              meta: {
                title: '开单销售单报表列表',
                icon: 'profile',
                hidden: true,
                permission: 'M_salesSlipReportList'
              }
            }]
          },
          {
            path: '/reportData/allocationOrderTotal',
            redirect: '/reportData/allocationOrderTotal/list',
            name: 'allocationOrderTotal',
            component: BlankLayout,
            meta: {
              title: '调拨开单统计',
              icon: 'profile',
              permission: 'M_allocationOrderTotalList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'allocationOrderTotalList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationOrderTotal/list.vue'),
                meta: {
                  title: '调拨开单列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_allocationOrderTotalList'
                }
              }
            ]
          },
          {
            path: '/reportData/allocationDetails',
            redirect: '/reportData/allocationDetails/list',
            name: 'allocationDetails',
            component: BlankLayout,
            meta: {
              title: '调拨明细',
              icon: 'profile',
              permission: 'M_allocationDetailsList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'allocationDetailsList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationDetails/list.vue'),
                meta: {
                  title: '调拨明细列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_allocationDetailsList'
                }
              }
            ]
          },
          {
            path: '/reportData/salesReturnsReport',
            redirect: '/reportData/salesReturnsReport/list',
            name: 'salesReturnsReport',
            component: BlankLayout,
            meta: {
              title: '销售退货单报表',
              icon: 'profile',
              permission: 'M_salesReturnsReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesReturnsReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnsReport/list.vue'),
                meta: {
                  title: '销售退货单报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_salesReturnsReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/salesReturnDetailReport',
            redirect: '/reportData/salesReturnDetailReport/list',
            name: 'salesReturnDetailReport',
            component: BlankLayout,
            meta: {
              title: '销售退货明细报表',
              icon: 'profile',
              permission: 'M_salesReturnDetailReportList'
            },
            hideChildrenInMenu: true,
            children: [{
              path: 'list',
              name: 'salesReturnDetailReportList',
              component: () => import(/* webpackChunkName: "reportData" */
                '@/views/reportData/salesReturnDetailReport/list.vue'),
              meta: {
                title: '销售退货明细报表列表',
                icon: 'profile',
                hidden: true,
                permission: 'M_salesReturnDetailReportList'
              }
            }]
          },
          {
            path: '/reportData/transferReturnReport',
            redirect: '/reportData/transferReturnReport/list',
            name: 'transferReturnReport',
            component: BlankLayout,
            meta: {
              title: '调拨退货单报表',
              icon: 'profile',
              permission: 'M_transferReturnReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'transferReturnReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/transferReturnReport/list.vue'),
                meta: {
                  title: '调拨退货单报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_transferReturnReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/transferReturnDetailReport',
            redirect: '/reportData/transferReturnDetailReport/list',
            name: 'transferReturnDetailReport',
            component: BlankLayout,
            meta: {
              title: '调拨退货单明细报表',
              icon: 'profile',
              permission: 'M_transferReturnDetailReportList'
            },
            hideChildrenInMenu: true,
            children: [{
              path: 'list',
              name: 'transferReturnDetailReportList',
              component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/transferReturnDetailReport/list.vue'),
              meta: {
                title: '调拨退货单明细报表列表',
                icon: 'profile',
                hidden: true,
                permission: 'M_transferReturnDetailReportList'
              }
            }]
          },
          {
            path: '/reportData/salesReturnReport',
            redirect: '/reportData/salesReturnReport/list',
            name: 'salesReturnReport',
            component: BlankLayout,
            meta: {
              title: '实售退货报表',
              icon: 'profile',
              permission: 'M_salesReturnReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesReturnReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnReport/list.vue'),
                meta: {
                  title: '实售退货列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_salesReturnReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/billingReturnReport',
            redirect: '/reportData/billingReturnReport/list',
            name: 'billingReturnReport',
            component: BlankLayout,
            meta: {
              title: '开单退货报表',
              icon: 'profile',
              permission: 'M_billingReturnReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'billingReturnReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/billingReturnReport/list.vue'),
                meta: {
                  title: '开单退货列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_billingReturnReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/returnSlipReport',
            redirect: '/reportData/returnSlipReport/list',
            name: 'returnSlipReport',
            component: BlankLayout,
            meta: {
              title: '开单退货单报表',
              icon: 'profile',
              permission: 'M_returnSlipReportList'
            },
            hideChildrenInMenu: true,
            children: [{
              path: 'list',
              name: 'returnSlipReportList',
              component: () => import(/* webpackChunkName: "reportData" */
                '@/views/reportData/returnSlipReport/list.vue'),
              meta: {
                title: '开单退货单报表列表',
                icon: 'profile',
                hidden: true,
                permission: 'M_returnSlipReportList'
              }
            }]
          },
          {
            path: '/reportData/hPriceDifferenceDetailReport',
            redirect: '/reportData/hPriceDifferenceDetailReport/list',
            name: 'hPriceDifferenceDetailReport',
            component: BlankLayout,
            meta: {
              title: '总部差价明细报表',
              icon: 'profile',
              permission: 'M_hPriceDifferenceDetailReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'hPriceDifferenceDetailReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/hPriceDifferenceDetailReport/list.vue'),
                meta: {
                  title: '总部差价明细列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_hPriceDifferenceDetailReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/priceDifferenceDetailReport',
            redirect: '/reportData/priceDifferenceDetailReport/list',
            name: 'priceDifferenceDetailReport',
            component: BlankLayout,
            meta: {
              title: '差价明细报表',
              icon: 'profile',
              permission: 'M_priceDifferenceDetailReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'priceDifferenceDetailReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/priceDifferenceDetailReport/list.vue'),
                meta: {
                  title: '差价明细列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_priceDifferenceDetailReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/regionTypeSalesReport',
            redirect: '/reportData/regionTypeSalesReport/list',
            name: 'regionTypeSalesReport',
            component: BlankLayout,
            meta: {
              title: '各省品类实售明细',
              icon: 'profile',
              permission: 'M_regionTypeSalesReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'regionTypeSalesReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/regionTypeSalesReport/list.vue'),
                meta: {
                  title: '各省品类实售明细',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_regionTypeSalesReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/warehousingOrder',
            redirect: '/reportData/warehousingOrder/list',
            name: 'warehousingOrder',
            component: BlankLayout,
            meta: {
              title: '入库单报表',
              icon: 'profile',
              permission: 'M_warehousingOrderList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'warehousingOrderList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/warehousingOrder/list.vue'),
                meta: {
                  title: '入库单报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_warehousingOrderList'
                }
              }
            ]
          },
          {
            path: '/reportData/warehousingOrderDetail',
            redirect: '/reportData/warehousingOrderDetail/list',
            name: 'warehousingOrderDetail',
            component: BlankLayout,
            meta: {
              title: '入库单明细报表',
              icon: 'profile',
              permission: 'M_warehousingOrderDetailList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'warehousingOrderDetailList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/warehousingOrderDetail/list.vue'),
                meta: {
                  title: '入库单明细报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_warehousingOrderDetailList'
                }
              }
            ]
          },
          {
            path: '/reportData/salesPresentation',
            redirect: '/reportData/salesPresentation/list',
            name: 'salesPresentation',
            component: BlankLayout,
            meta: {
              title: '销售交单报表',
              icon: 'profile',
              permission: 'M_salesPresentationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'salesPresentationList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesPresentation/list.vue'),
                meta: {
                  title: '销售交单报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_salesPresentationList'
                }
              }
            ]
          },
          {
            path: '/reportData/allocationPresentation',
            redirect: '/reportData/allocationPresentation/list',
            name: 'allocationPresentation',
            component: BlankLayout,
            meta: {
              title: '调拨交单报表',
              icon: 'profile',
              permission: 'M_allocationPresentationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'allocationPresentationList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationPresentation/list.vue'),
                meta: {
                  title: '调拨交单报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_allocationPresentationList'
                }
              }
            ]
          },
          {
            path: '/reportData/returnGoodsPresentation',
            redirect: '/reportData/returnGoodsPresentation/list',
            name: 'returnGoodsPresentation',
            component: BlankLayout,
            meta: {
              title: '退货交单报表',
              icon: 'profile',
              permission: 'M_returnGoodsPresentationList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'returnGoodsPresentationList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/returnGoodsPresentation/list.vue'),
                meta: {
                  title: '退货交单报表列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_returnGoodsPresentationList'
                }
              }
            ]
          },
          {
            path: '/reportData/expenseAccountBearerReport',
            redirect: '/reportData/expenseAccountBearerReport/list',
            name: 'expenseAccountBearerReport',
            component: BlankLayout,
            meta: {
              title: '费用汇总报表(按承担方)',
              icon: 'profile',
              permission: 'M_expenseAccountBearerReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'expenseAccountBearerReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/expenseAccountReport/bearerList.vue'),
                meta: {
                  title: '费用汇总报表(按承担方)',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_expenseAccountBearerReportList'
                }
              }
            ]
          },
          {
            path: '/reportData/expenseAccountCategoryReport',
            redirect: '/reportData/expenseAccountCategoryReport/list',
            name: 'expenseAccountCategoryReport',
            component: BlankLayout,
            meta: {
              title: '费用汇总报表(按品类)',
              icon: 'profile',
              permission: 'M_expenseAccountCategoryReportList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'expenseAccountCategoryReportList',
                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/expenseAccountReport/categoryList.vue'),
                meta: {
                  title: '费用汇总报表(按品类)',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_expenseAccountCategoryReportList'
                }
              }
            ]
          }
          // {
          //   path: '/reportData/allCountryCostReport',
          //   redirect: '/reportData/allCountryCostReport/list',
          //   name: 'allCountryCostReport',
          //   component: BlankLayout,
          //   meta: {
          //     title: '全国费用统计报表',
          //     icon: 'profile'
          //     // permission: 'M_nationalCustomerCostStatisticsList'
          //   },
          //   hideChildrenInMenu: true,
          //   children: [
          //     {
          //       path: 'list',
          //       name: 'allCountryCostReportList',
          //       component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allCountryCostReport/list.vue'),
          //       meta: {
          //         title: '全国费用统计报表',
          //         icon: 'profile',
          //         hidden: true
          //         // permission: 'M_nationalCustomerCostStatisticsList'
          //       }
          //     }
          //   ]
          // }
        ]
      },
      // 数据导出
      {
        path: '/dataExport',
        redirect: '/dataExport/exportCheck',
        component: PageView,
        meta: {
          title: '数据导出',
          icon: 'money-collect',
          permission: 'M_dataExport'
        },
        children: [
          {
            path: '/dataExport/exportSales',
            redirect: '/dataExport/exportSales/list',
            name: 'exportSales',
            component: BlankLayout,
            meta: {
              title: '导出销售',
              icon: 'gold',
              permission: 'M_exportSales'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'exportSalesList',
                component: () => import(/* webpackChunkName: "dataExport" */ '@/views/dataExport/exportSales/list.vue'),
                meta: {
                  title: '导出销售',
                  icon: 'gold',
                  hidden: true,
                  permission: 'M_exportSales'
                }
              }
            ]
          },
          {
            path: '/dataExport/exportCheck',
            redirect: '/dataExport/exportCheck/list',
            name: 'exportCheck',
            component: BlankLayout,
            meta: {
              title: '导出盘点',
              icon: 'gold',
              permission: 'M_exportCheck'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'exportCheckList',
                component: () => import(/* webpackChunkName: "dataExport" */ '@/views/dataExport/exportCheck/list.vue'),
                meta: {
                  title: '导出盘点',
                  icon: 'gold',
                  hidden: true,
                  permission: 'M_exportCheck'
                }
              }
            ]
          }
        ]
      },
      // 产品管理
      {
        path: '/productManagement',
        redirect: '/productManagement/productInfo',
        component: PageView,
        meta: {
          title: '产品管理',
          icon: 'shopping',
          permission: 'M_productManagement'
        },
        children: [
          {
            path: '/productManagement/productInfo',
            redirect: '/productManagement/productInfo/list',
            name: 'productInfo',
            component: BlankLayout,
            meta: {
              title: '产品列表',
              icon: 'gold',
              permission: 'M_productInfoList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productInfoList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/list.vue'),
                meta: {
                  title: '产品列表',
                  icon: 'gold',
                  hidden: true,
                  permission: 'M_productInfoList'
                }
              },
              {
                path: 'add',
                name: 'productInfoAdd',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
                meta: {
                  title: '新增产品',
                  icon: 'gold',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'edit/:id/:sn',
                name: 'productInfoEdit',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
                meta: {
                  title: '编辑产品',
                  icon: 'gold',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/productManagement/productPricing',
            redirect: '/productManagement/productPricing/list',
            name: 'productPricing',
            component: BlankLayout,
            meta: {
              title: '产品定价',
              icon: 'transaction',
              permission: 'M_productPricingList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productPricingList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productPricing/list.vue'),
                meta: {
                  title: '产品定价列表',
                  icon: 'transaction',
                  hidden: true,
                  permission: 'M_productPricingList'
                }
              }
            ]
          },
          {
            path: '/productManagement/productLaunchAudit',
            redirect: '/productManagement/productLaunchAudit/list',
            name: 'productLaunchAudit',
            component: BlankLayout,
            meta: {
              title: '产品上线审核',
              icon: 'rise',
              permission: 'M_productLaunchAuditList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productLaunchAuditList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLaunchAudit/list.vue'),
                meta: {
                  title: '产品上线审核列表',
                  icon: 'rise',
                  hidden: true,
                  permission: 'M_productLaunchAuditList'
                }
              }
            ]
          },
          {
            path: '/productManagement/productOfflineAudit',
            redirect: '/productManagement/productOfflineAudit/list',
            name: 'productOfflineAudit',
            component: BlankLayout,
            meta: {
              title: '产品下线审核',
              icon: 'fall',
              permission: 'M_productOfflineAuditList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productOfflineAuditList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productOfflineAudit/list.vue'),
                meta: {
                  title: '产品下线审核列表',
                  icon: 'fall',
                  hidden: true,
                  permission: 'M_productOfflineAuditList'
                }
              }
            ]
          },
          {
            path: '/productManagement/priceChangeRecord',
            redirect: '/productManagement/priceChangeRecord/list',
            name: 'priceChangeRecord',
            component: BlankLayout,
            meta: {
              title: '价格变更记录',
              icon: 'profile',
              permission: 'M_priceChangeRecordList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'priceChangeRecordList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/priceChangeRecord/list.vue'),
                meta: {
                  title: '价格变更记录列表',
                  icon: 'profile',
                  hidden: true,
                  permission: 'M_priceChangeRecordList'
                }
              }
            ]
          },
          {
            path: '/productManagement/productUniversal',
            redirect: '/productManagement/productUniversal/list',
            name: 'productUniversal',
            component: BlankLayout,
            meta: {
              title: '通用产品管理',
              icon: 'deployment-unit',
              permission: 'M_productUniversalList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productUniversalList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productUniversal/list.vue'),
                meta: {
                  title: '通用产品列表',
                  icon: 'deployment-unit',
                  hidden: true,
                  permission: 'M_productUniversalList'
                }
              }
            ]
          },
          {
            path: '/productManagement/productLevel',
            redirect: '/productManagement/productLevel/list',
            name: 'productLevel',
            component: BlankLayout,
            meta: {
              title: '产品级别管理',
              icon: 'fund',
              permission: 'M_productLevelList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productLevelList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLevel/list.vue'),
                meta: {
                  title: '产品级别列表',
                  icon: 'fund',
                  hidden: true,
                  permission: 'M_productLevelList'
                }
              }
            ]
          },
          {
            path: '/productManagement/productBrand',
            redirect: '/productManagement/productBrand/list',
            name: 'productBrand',
            component: BlankLayout,
            meta: {
              title: '产品品牌管理',
              icon: 'file-ppt',
              permission: 'M_productBrandList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productBrandList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productBrand/list.vue'),
                meta: {
                  title: '产品品牌列表',
                  icon: 'file-ppt',
                  hidden: true,
                  permission: 'M_productBrandList'
                }
              }
            ]
          },
          {
            path: '/productManagement/productCategory',
            redirect: '/productManagement/productCategory/list',
            name: 'productCategory',
            component: BlankLayout,
            meta: {
              title: '产品分类管理',
              icon: 'radar-chart',
              permission: 'M_productCategoryList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productCategoryList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productCategory/list.vue'),
                meta: {
                  title: '产品分类列表',
                  icon: 'radar-chart',
                  hidden: true,
                  permission: 'M_productCategoryList'
                }
              }
            ]
          },
          {
            path: '/productManagement/shelfNoManage',
            redirect: '/productManagement/shelfNoManage/list',
            name: 'shelfNoManage',
            component: BlankLayout,
            meta: {
              title: '货位编号管理',
              icon: 'radar-chart',
              permission: 'M_shelfNoManageList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'shelfNoManageList',
                component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/shelfNoManage/list.vue'),
                meta: {
                  title: '货位编号管理',
                  icon: 'radar-chart',
                  hidden: true,
                  permission: 'M_shelfNoManageList'
                }
              }
            ]
          }
        ]
      },
      // 经销商管理
      {
        path: '/dealerManagement',
        redirect: '/dealerManagement/marketingDivisionSet',
        component: PageView,
        meta: {
          title: '经销商管理',
          icon: 'idcard',
          permission: 'M_dealerManagement'
        },
        children: [
          {
            path: '/dealerManagement/merchantInfoManagement',
            redirect: '/dealerManagement/merchantInfoManagement/list',
            name: 'merchantInfoManagement',
            component: BlankLayout,
            meta: {
              title: '经销商资料管理',
              icon: 'file-text',
              permission: 'M_merchantInfoManagementList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'merchantInfoManagementList',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/list.vue'),
                meta: {
                  title: '经销商资料列表',
                  icon: 'file-text',
                  hidden: true,
                  permission: 'M_merchantInfoManagementList'
                }
              },
              {
                path: 'add',
                name: 'merchantInfoManagementAdd',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
                meta: {
                  title: '新增经销商',
                  icon: 'file-text',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'edit/:id',
                name: 'merchantInfoManagementEdit',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
                meta: {
                  title: '编辑经销商',
                  icon: 'file-text',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'permissionSetting/:sn',
                name: 'merchantInfoManagementSet',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/permissionSetting.vue'),
                meta: {
                  title: '经销权设置',
                  icon: 'file-text',
                  replaceTab: true,
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/dealerManagement/dealerAccountManagement',
            redirect: '/dealerManagement/dealerAccountManagement/list',
            name: 'dealerAccountManagement',
            component: BlankLayout,
            meta: {
              title: '经销商账号管理',
              icon: 'team',
              permission: 'M_dealerAccountManagementList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'dealerAccountManagementList',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
                meta: {
                  title: '经销商账号列表',
                  icon: 'team',
                  hidden: true,
                  permission: 'M_dealerAccountManagementList'
                }
              }
            ]
          },
          {
            path: '/dealerManagement/dealerRelationshipBinding',
            redirect: '/dealerManagement/dealerRelationshipBinding/list',
            name: 'dealerRelationshipBinding',
            component: BlankLayout,
            meta: {
              title: '经销商关系绑定',
              icon: 'share-alt',
              permission: 'M_dealerRelationshipBindingList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'dealerRelationshipBindingList',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
                meta: {
                  title: '经销商关系绑定列表',
                  icon: 'share-alt',
                  hidden: true,
                  permission: 'M_dealerRelationshipBindingList'
                }
              }
            ]
          },
          {
            path: '/dealerManagement/rebateSettings',
            redirect: '/dealerManagement/rebateSettings/list',
            name: 'rebateSettings',
            component: BlankLayout,
            meta: {
              title: '差价归属设置',
              icon: 'stock',
              permission: 'M_rebateSettingsList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'rebateSettingsList',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/rebateSettings/list.vue'),
                meta: {
                  title: '差价归属设置列表',
                  icon: 'stock',
                  hidden: true,
                  permission: 'M_rebateSettingsList'
                }
              }
            ]
          },
          {
            path: '/dealerManagement/marketingDivisionSet',
            redirect: '/dealerManagement/marketingDivisionSet/list',
            name: 'marketingDivisionSet',
            component: BlankLayout,
            meta: {
              title: '营销分区设置',
              icon: 'setting',
              permission: 'M_marketingDivisionSetList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'marketingDivisionSetList',
                component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
                meta: {
                  title: '营销分区列表',
                  icon: 'setting',
                  hidden: true,
                  permission: 'M_marketingDivisionSetList'
                }
              }
            ]
          }
        ]
      },
      //  供应商管理
      {
        path: '/supplierManagement',
        redirect: '/supplierManagement/supplierInfo',
        component: PageView,
        meta: {
          title: '供应商管理',
          icon: 'team',
          permission: 'M_supplierManagement'
        },
        children: [
          {
            path: '/supplierManagement/supplierInfo',
            redirect: '/supplierManagement/supplierInfo/list',
            name: 'supplierInfo',
            component: BlankLayout,
            meta: {
              title: '供应商列表',
              icon: 'team',
              permission: 'M_supplierInfoList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'supplierInfoList',
                component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
                meta: {
                  title: '供应商列表',
                  icon: 'team',
                  hidden: true,
                  permission: 'M_supplierInfoList'
                }
              },
              {
                path: 'add',
                name: 'supplierInfoAdd',
                component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
                meta: {
                  title: '新增供应商',
                  icon: 'team',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'edit/:id',
                name: 'supplierInfoEdit',
                component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
                meta: {
                  title: '编辑供应商',
                  icon: 'team',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'associatedProduct/:sn/:name',
                name: 'associatedProduct',
                component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProduct/add.vue'),
                meta: {
                  title: '关联产品',
                  icon: 'team',
                  replaceTab: true,
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/supplierManagement/associatedProductDetails',
            redirect: '/supplierManagement/associatedProductDetails/list',
            name: 'associatedProductDetails',
            component: BlankLayout,
            meta: {
              title: '关联产品明细表',
              icon: 'build',
              permission: 'M_associatedProductDetailsList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'associatedProductDetailsList',
                component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
                meta: {
                  title: '关联产品明细列表',
                  icon: 'build',
                  hidden: true,
                  permission: 'M_associatedProductDetailsList'
                }
              }
            ]
          }
        ]
      },
      // 促销管理
      {
        path: '/promotionRulesManagement',
        redirect: '/promotionRulesManagement/promotionRules',
        component: PageView,
        meta: {
          title: '促销管理',
          icon: 'rocket',
          permission: 'M_promotionRulesManagement'
        },
        children: [
          {
            path: '/promotionRulesManagement/promotionRules',
            redirect: '/promotionRulesManagement/promotionRules/list',
            name: 'promotionRules',
            component: BlankLayout,
            meta: {
              title: '促销规则管理',
              icon: 'thunderbolt',
              permission: 'M_promotionRulesList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'promotionRulesManagementList',
                component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
                meta: {
                  title: '促销规则列表',
                  icon: 'thunderbolt',
                  hidden: true,
                  permission: 'M_promotionRulesList'
                }
              },
              {
                path: 'detail/:id/:sn',
                name: 'promotionRulesManagementDetail',
                component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
                meta: {
                  title: '促销规则详情',
                  icon: 'thunderbolt',
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              },
              {
                path: 'rule/:id/:sn',
                name: 'promotionRulesManagementRule',
                component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
                meta: {
                  title: '促销规则设置',
                  icon: 'thunderbolt',
                  replaceTab: true,
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/promotionRulesManagement/orderStatistics',
            redirect: '/promotionRulesManagement/orderStatistics/list',
            name: 'orderStatistics',
            component: BlankLayout,
            meta: {
              title: '促销订单统计',
              icon: 'contacts',
              permission: 'M_orderStatisticsList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'orderStatisticsList',
                component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
                meta: {
                  title: '订单统计列表',
                  icon: 'contacts',
                  hidden: true,
                  permission: 'M_orderStatisticsList'
                }
              }
            ]
          },
          {
            path: '/promotionRulesManagement/productStatistics',
            redirect: '/promotionRulesManagement/productStatistics/list',
            name: 'productStatistics',
            component: BlankLayout,
            meta: {
              title: '促销产品统计',
              icon: 'file-ppt',
              permission: 'M_productStatisticsList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'productStatisticsList',
                component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
                meta: {
                  title: '产品统计列表',
                  icon: 'file-ppt',
                  hidden: true,
                  permission: 'M_productStatisticsList'
                }
              }
            ]
          }
        ]
      },
      // 基础设置
      {
        path: '/basicData',
        redirect: '/basicData/warehouse',
        component: PageView,
        meta: {
          title: '基础设置',
          icon: 'pushpin',
          permission: 'M_basicData'
        },
        children: [
          {
            path: '/basicData/warehouse',
            redirect: '/basicData/warehouse/list',
            name: 'warehouse',
            component: BlankLayout,
            meta: {
              title: '仓库管理',
              icon: 'deployment-unit',
              permission: 'M_warehouseList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'warehouseList',
                component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/warehouse/list.vue'),
                meta: {
                  title: '仓库列表',
                  icon: 'deployment-unit',
                  hidden: true,
                  permission: 'M_warehouseList'
                }
              },
              {
                path: '/basicData/storingLocation/:sn',
                name: 'storingLocationList',
                component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
                meta: {
                  title: '仓位列表',
                  icon: 'deployment-unit',
                  replaceTab: true,
                  hidden: true
                  // permission: 'B_goodsManage_edit'
                }
              }
            ]
          },
          {
            path: '/basicData/transferTypeManagement',
            redirect: '/basicData/transferTypeManagement/list',
            name: 'transferTypeManagement',
            component: BlankLayout,
            meta: {
              title: '调拨类型管理',
              icon: 'interaction',
              permission: 'M_transferTypeManagementList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'transferTypeManagementList',
                component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/transferTypeManagement/list.vue'),
                meta: {
                  title: '调拨类型列表',
                  icon: 'interaction',
                  hidden: true,
                  permission: 'M_transferTypeManagementList'
                }
              }
            ]
          }
        ]
      },
      // 权限管理
      {
        path: '/auth',
        redirect: '/auth/user',
        component: PageView,
        meta: {
          title: '权限管理',
          icon: 'lock',
          permission: 'M_auth_0'
        },
        children: [
          {
            path: '/auth/user',
            redirect: '/auth/user/list',
            name: 'powerUser',
            component: BlankLayout,
            meta: {
              title: '用户管理',
              icon: 'user',
              permission: 'M_userList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'powerUserList',
                component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
                meta: {
                  title: '用户管理',
                  icon: 'user',
                  hidden: true,
                  permission: 'M_userList'
                }
              },
            ]
          },
          {
            path: '/auth/role',
            redirect: '/auth/role/list',
            name: 'powerRole',
            component: BlankLayout,
            meta: {
              title: '角色管理',
              icon: 'solution',
              permission: 'M_roleList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'powerRoleList',
                component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
                meta: {
                  title: '角色管理',
                  icon: 'solution',
                  hidden: true,
                  permission: 'M_roleList'
                }
              },
            ]
          },
          {
            path: '/auth/adminMenus',
            redirect: '/auth/adminMenus/list',
            name: 'adminMenus',
            component: BlankLayout,
            meta: {
              title: '菜单管理',
              icon: 'appstore',
              permission: 'M_menuList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'adminMenusList',
                component: () => import(/* webpackChunkName: "auth" */ '@/views/bnSetting/menu/adminMenus.vue'),
                meta: {
                  title: '菜单管理',
                  icon: 'appstore',
                  hidden: true,
                  permission: 'M_menuList'
                }
              }
            ]
          }
        ]
      },
      // 系统设置
      {
        path: '/setting',
        redirect: '/setting/dataDictionary',
        component: PageView,
        meta: {
          title: '系统设置',
          icon: 'setting',
          permission: 'M_systemSet'
        },
        children: [
          {
            path: '/setting/dataDictionary',
            redirect: '/setting/dataDictionary/list',
            name: 'dataDictionary',
            component: BlankLayout,
            meta: {
              title: '数据字典管理',
              icon: 'database',
              permission: 'M_dataD_lookup'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'powerDD',
                component: () => import(/* webpackChunkName: "setting" */ '@/views/power/dataDictionary/dataDictionary.vue'),
                meta: {
                  title: '数据字典管理',
                  icon: 'database',
                  hidden: true,
                  permission: 'M_dataD_lookup'
                }
              }
            ]
          },
          {
            path: '/setting/OperateJournal',
            redirect: '/setting/OperateJournal/list',
            name: 'OperateJournal',
            component: BlankLayout,
            meta: {
              title: '操作日志',
              icon: 'read',
              permission: 'M_OperateJournalList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'powerOperateJournal',
                component: () => import(/* webpackChunkName: "setting" */ '@/views/power/OperateJournal/OperateJournal.vue'),
                meta: {
                  title: '操作日志',
                  icon: 'read',
                  permission: 'M_OperateJournalList'
                }
              },
            ]
          },
          {
            path: '/setting/noticeManagement',
            redirect: '/setting/noticeManagement/list',
            name: 'noticeManagement',
            component: BlankLayout,
            meta: {
              title: '公告管理',
              icon: 'sketch',
              permission: 'M_noticeManagementList'
            },
            hideChildrenInMenu: true,
            children: [
              {
                path: 'list',
                name: 'noticeManagementList',
                component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/noticeManagement/list.vue'),
                meta: {
                  title: '公告列表',
                  icon: 'sketch',
                  hidden: true,
                  permission: 'M_noticeManagementList'
                }
              }
            ]
          }
        ]
      },
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      }
    ]
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]
