// 路由配置文件
export default [
    {
        path: '/',
        component: '../layouts/BlankLayout',
        routes: [
            {
                path: '/user',
                component: '../layouts/UserLayout',
                routes: [
                    {
                        path: '/user/login',
                        name: '用户登录',
                        component: './User/login',
                    },
                    {
                        path: '/user/register',
                        name: '用户注册',
                        component: './User/register',
                    },
                    {
                        path: '/user/forgetPassword',
                        name: '忘记密码',
                        component: './User/ForgetPassword',
                    },
                ],
            },
            {
                path: '/',
                component: '../layouts/SecurityLayout',
                routes: [
                    {
                        path: '/',
                        component: '../layouts/BasicLayout',
                        authority: ['1000', '2000', '3000'],
                        routes: [
                            {
                                path: '/',
                                redirect: '/dashboard/analysis',
                            },
                            {
                                path: 'dashboard',
                                name: 'dashboard',
                                icon: 'DashboardOutlined',
                                routes: [

                                ],
                            },
                            {
                                path: '/ahjgMenu',
                                name: 'ahjgMenu',
                                routes: [
                                    {
                                        path: 'servicePartAudit',
                                        name: 'servicePartAudit',
                                        component: './ahjgPage/servicePartAudit/index',
                                    },
                                    // 商品采购查询
                                    {
                                        path: 'shopProcurement',
                                        name: 'shopProcurement',
                                        component: './ahjgPage/shopProcurement/index',
                                    },
                                    // 调拨流程查询
                                    {
                                        path: 'transferProcess',
                                        name: 'transferProcess',
                                        component: './ahjgPage/transferProcess/index',
                                    },
                                    // 退货流程查询
                                    {
                                        path: 'returnProcess',
                                        name: 'returnProcess',
                                        component: './ahjgPage/returnProcess/index',
                                    },
                                    // 领用流程查询
                                    {
                                        path: 'receivingProcess',
                                        name: 'receivingProcess',
                                        component: './ahjgPage/receivingProcess/index',
                                    },
                                    // 采购入库统计表  入库退货统计表
                                    {
                                        path: 'purchaseReceiving',
                                        name: 'purchaseReceiving',
                                        component: './ahjgPage/purchaseReceiving/index',
                                    },
                                    // 商品退货统计表
                                    {
                                        path: 'productReturn',
                                        name: 'productReturn',
                                        component: './ahjgPage/productReturn/index',
                                    },
                                    // 库存信息查询
                                    {
                                        path: 'inventoryInformation',
                                        name: 'inventoryInformation',
                                        component: './ahjgPage/inventoryInformation/index',
                                    },
                                    // 进销存类别报表
                                    {
                                        path: 'InventoryCategory',
                                        name: 'InventoryCategory',
                                        component: './ahjgPage/InventoryCategory/index',
                                    },
                                    // 进销存明细报表
                                    {
                                        path: 'InventoryDetails',
                                        name: 'InventoryDetails',
                                        component: './ahjgPage/InventoryDetails/index',
                                    },
                                    // 一品多码进销存报表
                                    {
                                        path: 'oneProductMultipleSizes',
                                        name: 'oneProductMultipleSizes',
                                        component: './ahjgPage/oneProductMultipleSizes/index',
                                    },

                                ]
                            },
                            {
                                path: '/baseinfo',
                                name: 'baseinfo',
                                icon: 'ReadOutlined',
                                routes: [
                                    // 新增商品流程
                                    {
                                        path: 'NewProductApproval',
                                        name: 'NewProductApproval',
                                        component: './reports/productControl/NewProductApproval',
                                    },
                                    // 商品调价审批
                                    {
                                        path: 'ProductChangePriceApproval',
                                        name: 'ProductChangePriceApproval',
                                        component: './reports/productControl/ProductChangePriceApproval',
                                    },
                                    // 商品信息修改审批
                                    {
                                        path: 'ProductChangeInfoApproval',
                                        name: 'ProductChangeInfoApproval',
                                        component: './reports/productControl/ProductChangeInfoApproval',
                                    },
                                    // 商品审批流程查询
                                    {
                                        path: 'ProductApprovalProcess',
                                        name: 'ProductApprovalProcess',
                                        component: './reports/productControl/ProductApprovalProcess',
                                    },
                                    // 便利店商品审核
                                    {
                                        path: 'ConvenienceStoreProductReview',
                                        name: 'ConvenienceStoreProductReview',
                                        component: './reports/productControl/ConvenienceStoreProductReview',
                                    },
                                    // 商品类别管理
                                    {
                                        path: 'commodityType',
                                        name: 'commodityType',
                                        component: './reports/productControl/commodityType',
                                    },
                                    // 商品信息管理	
                                    {
                                        path: 'commodityInfo',
                                        name: 'commodityInfo',
                                        component: './reports/productControl/commodityInfo',
                                    },
                                    // 商品信息查询	
                                    {
                                        path: 'commoditySearch',
                                        name: 'commoditySearch',
                                        component: './reports/productControl/commoditySearch',
                                    },
                                    // 门店商品查询	
                                    {
                                        path: 'shopCommodity',
                                        name: 'shopCommodity',
                                        component: './reports/productControl/shopCommodity',
                                    },
                                    // 商品快捷键管理		
                                    {
                                        path: 'hotkeyset',
                                        name: 'hotkeyset',
                                        component: './reports/productControl/hotkeyset',
                                    },
                                    // 商品自定义类别
                                    {
                                        path: 'userDefinedType',
                                        name: 'userDefinedType',
                                        component: './reports/productControl/userDefinedType',
                                    },
                                    // 商品自定义归类
                                    {
                                        path: 'setUserDefinedType',
                                        name: 'setUserDefinedType',
                                        component: './reports/productControl/setUserDefinedType',
                                    },
                                    // 经营品牌管理
                                    {
                                        path: 'operatingBrand',
                                        name: 'operatingBrand',
                                        component: './basicManage/operatingBrand/index',
                                        icon: 'ShoppingOutlined',
                                    },
                                    // 经营业态管理
                                    {
                                        path: 'businesstrade',
                                        name: 'businesstrade',
                                        component: './basicManage/BusinessTrade/index',
                                        icon: 'ShoppingOutlined',
                                    },
                                    // 服务区门店管理
                                    {
                                        path: 'serviceArea',
                                        name: 'serviceArea',
                                        component: './basicManage/serviceArea/index',
                                    }
                                ],
                            },

                            {
                                path: '/newDataAnalysis',
                                name: 'newDataAnalysis',
                                icon: 'ReadOutlined',
                                routes: [
                                    // 组织架构设置
                                    {
                                        path: 'panoramaConfig',
                                        name: 'panoramaConfig',
                                        component: './newDataAnalysis/panoramaConfig/index',
                                    },
                                    // 服务区信息管理
                                    {
                                        path: 'basicServiceInformation',
                                        name: 'basicServiceInformation',
                                        component: './newDataAnalysis/basicServiceInformation/index',
                                    },
                                    // 服务区人员管理
                                    {
                                        path: 'serviceAreaPersonnel',
                                        name: 'serviceAreaPersonnel',
                                        component: './newDataAnalysis/serviceAreaPersonnel/index',
                                    },
                                    // 车流客流分析
                                    {
                                        path: 'trafficAnalysis',
                                        name: 'trafficAnalysis',
                                        component: './newDataAnalysis/trafficAnalysis/index',
                                    }
                                ]
                            },
                            {
                                path: '/dataVerification',
                                name: 'dataVerification',
                                icon: 'FileDoneOutlined',
                                routes: [
                                    // 结账数据校验	
                                    {
                                        path: '/dataVerification/list',
                                        name: 'list',
                                        component: './DataVerification/list/list',
                                    },
                                    // 结账数据审核	
                                    {
                                        path: '/dataVerification/dataExamine',
                                        name: 'list',
                                        component: './DataVerification/dataExamine/list',
                                    },
                                    // 结账数据管理	
                                    {
                                        path: '/dataVerification/checkDataManager',
                                        name: 'list',
                                        component: './DataVerification/checkDataManager/list',
                                    },
                                    // 异常日结处理	
                                    {
                                        path: '/dataVerification/handleDailyError',
                                        name: 'list',
                                        component: './DataVerification/handleDailyError/list',
                                    },
                                    // 历史账期查询		
                                    {
                                        path: '/dataVerification/HistoricalAccounting',
                                        name: 'list',
                                        component: './DataVerification/HistoricalAccounting/index',
                                    },
                                    // 历史账期查询
                                    {
                                        path: '/dataVerification/additionalRecord',
                                        name: 'additionalRecord',
                                        component: './DataVerification/additionalRecord/index',
                                    },
                                ],
                            },
                            {
                                path: '/audit',
                                name: 'audit',
                                icon: 'UserOutlined',
                                hideInMenu: true,
                                routes: [
                                    // 销售过程异常
                                    {
                                        path: 'abnormalSale',
                                        name: 'abnormalSale',
                                        component: './reports/audit/abnormalSale',
                                    },
                                    // 销售金额异常	
                                    {
                                        path: 'abnormalAmount',
                                        name: 'abnormalAmount',
                                        component: './reports/audit/abnormalAmount',
                                    },
                                    // 稽核联动查询
                                    {
                                        path: 'abnormalExamine',
                                        name: 'abnormalExamine',
                                        component: './reports/audit/abnormalExamine',
                                    },
                                    // 实时稽核校验	
                                    {
                                        path: 'curVerify',
                                        name: 'curVerify',
                                        component: './reports/audit/curVerify',
                                    },
                                    // 当日营收报表	
                                    {
                                        path: 'curDailyReport',
                                        name: 'curDailyReport',
                                        component: './reports/audit/curDailyReport',
                                    },
                                    // 现场稽核反馈		
                                    {
                                        path: 'feedback',
                                        name: 'feedback',
                                        component: './reports/audit/feedback',
                                    },
                                    // 远程稽核管理		
                                    {
                                        path: 'auditTasks',
                                        name: 'auditTasks',
                                        component: './reports/audit/auditTasks',
                                    },
                                    // 现场稽核管理	
                                    {
                                        path: 'checkAcount',
                                        name: 'checkAcount',
                                        component: './reports/audit/checkAcount',
                                    },
                                    // 异常稽核检查	
                                    {
                                        path: 'abnormalAudit',
                                        name: 'abnormalAudit',
                                        component: './reports/audit/abnormalAudit',
                                    },
                                    // 异常日结校验
                                    {
                                        path: 'checkDataManager',
                                        name: 'checkDataManager',
                                        component: './reports/audit/checkDataManager/list',
                                    }
                                ]
                            },
                            {
                                path: '/analysis',
                                name: 'analysis',
                                icon: 'UserOutlined',
                                hideInMenu: true,
                                routes: [
                                    // 稽核情况汇总
                                    {
                                        path: 'audit/checkAccountReport',
                                        name: 'audit/checkAccountReport',
                                        component: './reports/audit/checkAccountReport',
                                    },
                                    // 服务区异常稽核报表
                                    {
                                        path: 'audit/spAbnormalReport',
                                        name: 'audit/spAbnormalReport',
                                        component: './reports/audit/spAbnormalReport',
                                    },
                                    // 特殊行为占比
                                    {
                                        path: 'audit/specialReport',
                                        name: 'audit/specialReport',
                                        component: './reports/audit/specialReport',
                                    },
                                    // 异常占比汇总
                                    {
                                        path: 'audit/abnormalReport',
                                        name: 'audit/abnormalReport',
                                        component: './reports/audit/abnormalReport',
                                    },
                                    // 营收汇总报表
                                    {
                                        path: 'sp/business/revenueReport',
                                        name: 'sp/business/revenueReport',
                                        component: './reports/BusinessAnalysis/RevenueReport',
                                    },
                                    // 销售单品报表
                                    {
                                        path: 'sp/business/saleReport',
                                        name: 'sp/business/saleReport',
                                        component: './reports/BusinessAnalysis/saleReport',
                                    },
                                    // 销售类别报表
                                    {
                                        path: 'sp/business/saleTypeReport',
                                        name: 'sp/business/saleTypeReport',
                                        component: './reports/BusinessAnalysis/saleTypeReport',
                                    },
                                    // 商品销售排名
                                    {
                                        path: 'sp/business/saleRankReport',
                                        name: 'sp/business/saleRankReport',
                                        component: './reports/BusinessAnalysis/saleRankReport',
                                    },
                                    // 收银员统计表
                                    {
                                        path: 'sp/business/personSellReport',
                                        name: 'sp/business/personSellReport',
                                        component: './reports/BusinessAnalysis/personSellReport',
                                    },
                                    // 销售流水查询
                                    {
                                        path: 'sp/business/saleFlow',
                                        name: 'sp/business/saleFlow',
                                        component: './reports/BusinessAnalysis/saleFlow',
                                    },
                                    // 香烟营收报表
                                    {
                                        path: 'sp/business/cigaretteReport',
                                        name: 'sp/business/cigaretteReport',
                                        component: './reports/BusinessAnalysis/cigaretteReport',
                                    },
                                    // // 营收分润报表
                                    // {
                                    //     path: 'sp/business/revenueDistributionReport',
                                    //     name: 'sp/business/revenueDistributionReport',
                                    //     component: './reports/BusinessAnalysis/revenueDistributionReport',
                                    // },
                                    // 历史销售单品报表
                                    {
                                        path: 'sp/business/saleHisReport',
                                        name: 'sp/business/saleHisReport',
                                        component: './reports/BusinessAnalysis/saleHisReport',
                                    },
                                    // 历史销售类别报表
                                    {
                                        path: 'sp/business/saleTypeHisReport',
                                        name: 'sp/business/saleTypeHisReport',
                                        component: './reports/BusinessAnalysis/saleTypeHisReport',
                                    },
                                    // 区域营收汇总报表	
                                    {
                                        path: 'region/business/revenueReport',
                                        name: 'region/business/revenueReport',
                                        component: './reports/BusinessAnalysis/RevenueReport',
                                    },
                                    // 区域销售环比分析	
                                    {
                                        path: 'region/business/revenueQOQReport',
                                        name: 'region/business/revenueQOQReport',
                                        component: './reports/BusinessAnalysis/revenueQOQReport',
                                    },
                                    // 区域客单交易分析	
                                    {
                                        path: 'region/business/transactionAnalysis',
                                        name: 'region/business/transactionAnalysis',
                                        component: './reports/BusinessAnalysis/transactionAnalysis',
                                    },
                                    // 区域销售单品报表	
                                    {
                                        path: 'region/business/saleReport',
                                        name: 'region/business/saleReport',
                                        component: './reports/BusinessAnalysis/saleReport',
                                    },
                                    // 区域销售类别报表	
                                    {
                                        path: 'region/business/saleTypeReport',
                                        name: 'region/business/saleTypeReport',
                                        component: './reports/BusinessAnalysis/saleTypeReport',
                                    },
                                    // 区域销售流水查询	
                                    {
                                        path: 'region/business/saleFlow',
                                        name: 'region/business/saleFlow',
                                        component: './reports/BusinessAnalysis/saleFlow',
                                    },
                                    // 区域香烟营收报表	
                                    {
                                        path: 'region/business/cigaretteReport',
                                        name: 'region/business/cigaretteReport',
                                        component: './reports/BusinessAnalysis/cigaretteReport',
                                    },
                                    // 营收分润报表	
                                    // {
                                    //     path: 'region/business/revenueDistributionReport',
                                    //     name: 'region/business/revenueDistributionReport',
                                    //     component: './reports/BusinessAnalysis/revenueDistributionReport',
                                    // },
                                    // 历史销售单品报表	
                                    {
                                        path: 'region/business/saleHisReport',
                                        name: 'region/business/saleHisReport',
                                        component: './reports/BusinessAnalysis/saleHisReport',
                                    },
                                    // 历史销售类别报表	
                                    {
                                        path: 'region/business/saleTypeHisReport',
                                        name: 'region/business/saleTypeHisReport',
                                        component: './reports/BusinessAnalysis/saleTypeHisReport',
                                    },
                                    // 营收汇总报表	
                                    {
                                        path: 'business/revenueReport',
                                        name: 'business/revenueReport',
                                        component: './reports/BusinessAnalysis/RevenueReport',
                                    },
                                    // 同环比分析表
                                    {
                                        path: 'business/revenueYOYQOQReport',
                                        name: 'business/revenueYOYQOQReport',
                                        component: './reports/BusinessAnalysis/revenueYOYQOQReport',
                                    },
                                    // 销售环比分析
                                    {
                                        path: 'business/revenueQOQReport',
                                        name: 'business/revenueQOQReport',
                                        component: './reports/BusinessAnalysis/revenueQOQReport',
                                    },
                                    // 客单交易分析
                                    {
                                        path: 'business/transactionAnalysis',
                                        name: 'business/transactionAnalysis',
                                        component: './reports/BusinessAnalysis/transactionAnalysis',
                                    },
                                    // 销售单品报表
                                    {
                                        path: 'business/saleReport',
                                        name: 'business/saleReport',
                                        component: './reports/BusinessAnalysis/saleReport',
                                    },
                                    // 销售类别报表
                                    {
                                        path: 'business/saleTypeReport',
                                        name: 'business/saleTypeReport',
                                        component: './reports/BusinessAnalysis/saleTypeReport',
                                    },
                                    // 销售流水查询	
                                    {
                                        path: 'business/saleFlow',
                                        name: 'business/saleFlow',
                                        component: './reports/BusinessAnalysis/saleFlow',
                                    },
                                    // 香烟营收报表	
                                    {
                                        path: 'business/cigaretteReport',
                                        name: 'business/cigaretteReport',
                                        component: './reports/BusinessAnalysis/cigaretteReport',
                                    },
                                    // 营收分润报表	
                                    // {
                                    //     path: 'business/revenueDistributionReport',
                                    //     name: 'business/revenueDistributionReport',
                                    //     component: './reports/BusinessAnalysis/revenueDistributionReport',
                                    // },
                                    // 历史销售单品报表	
                                    {
                                        path: 'business/saleHisReport',
                                        name: 'business/saleHisReport',
                                        component: './reports/BusinessAnalysis/saleHisReport',
                                    },
                                    // 历史销售类别报表	
                                    {
                                        path: 'business/saleTypeHisReport',
                                        name: 'business/saleTypeHisReport',
                                        component: './reports/BusinessAnalysis/saleTypeHisReport',
                                    },
                                ]
                            },
                            {
                                path: '/setting',
                                name: 'setting',
                                icon: 'setting',
                                routes: [
                                    // 角色管理
                                    {
                                        path: '/setting/roles',
                                        name: 'roles',
                                        component: './Setting/Roles/index',
                                    },
                                    // 账号管理
                                    {
                                        path: '/setting/users',
                                        name: 'users',
                                        component: './Setting/Users/index',
                                    },
                                    // 商户管理
                                    {
                                        path: '/setting/merchantManagement',
                                        name: 'merchantManagement',
                                        component: './Setting/merchantManagement/index',
                                    },
                                    // 账号部门管理
                                    {
                                        path: '/setting/department/userstype',
                                        name: 'userstype',
                                        component: './Setting/UserType/index',
                                    },
                                    // 操作日志
                                    {
                                        path: 'OperationLog',
                                        name: 'OperationLog',
                                        component: './Setting/OperationLog/index',
                                    },
                                    // 登录日志
                                    {
                                        path: 'LoginLog',
                                        name: 'LoginLog',
                                        component: './Setting/LoginLog/index',
                                    },
                                    // 业务环节配置
                                    {
                                        path: '/setting/serviceConfig',
                                        name: 'serviceConfig',
                                        component: './Setting/serviceConfig/index',
                                    },
                                    // 菜单管理
                                    {
                                        path: 'menu',
                                        name: 'moduleCate',
                                        component: './Setting/Module/index',
                                    }
                                ],
                            },
                            {
                                path: '/account',
                                name: 'account',
                                icon: 'UserOutlined',
                                hideInMenu: true,
                                routes: [
                                    {
                                        path: 'center',
                                        name: 'center',
                                        component: './account/center',
                                    },
                                    {
                                        path: 'settings',
                                        name: 'settings',
                                        component: './account/setting',
                                    },
                                ],
                            },
                            {
                                path: '/merchantManagement',
                                name: 'merchantManagement',
                                icon: 'UserOutlined',
                                hideInMenu: true,
                                routes: [
                                    {
                                        path: 'company/create',
                                        name: '完善商户资料',
                                        component: './account/company',
                                    }
                                ],
                            },
                            {
                                component: './404',
                            },
                        ],
                    },
                    {
                        component: './404',
                    },
                    {
                        component: './500',
                    },
                ],
            },
        ],
    },
    {
        component: './404',
    },
    {
        component: './500',
    },
];
