import {
  HelloWorld,
  WmsSetting,
  GradeDefinition,
  GeneratePosition,
  InventoryPrint,
  InventoryPrintScan,
  StockOutPrepareLine,
  PickingCar,
  StockOutPrepareApproved,
  StockOutPrepateTemplate,
  StockOutPrepateTemplateRecording,
  StockOutPrepareTemplateApproved,
  StockOutPrepareLineAddProject,
  StockOutPrepareLineProjectReceivingAddress,
  StockOutPrepareLineProjectShippingAddress,
  PurchaseOrderLinePrint,
  PositionPrint,
  PurchaseOrderPrint,
  QueryPurchaseOrderLine,
  PackInventoryInstance,
  NeedPrint,
  Printed,
  PrintInventoryInstance,
  CheckProfit,
  CheckLoss,
  StockInLineInstance,
  StockOutLineInstance,
  PurchaseOrderLineTraceEdit,
  CurrentStock,
  StockLedger,
  GenerateToolRequest,
  AutoGenerateInventorySafeStock,
  AutoGenerateInventoryClassSafeStock,
  ProjectItemAdjust,
  InvoiceGenerate,
  BalanceInventory,
  VouchCheck,
  ExpressInquiry,
  RepertoryCheck,
  InventorySearchDetail,
  GenerateDocumentTool,
  InventoryCheckLoss,
  AdjustPositions,
  CurrentStockProjectItemManger,
  UploadTrainingVideo,
  SynchronousMaintenanceForm,
  QueryMaintenancePlan,
  LightSetting,
  LightStockInOrOut,
  ShelfBoard,
} from 'client-wms-cf/dist/client-wms-v5.js';



const routes = [

  { path: '/wms/hello-world', component: HelloWorld },

  // 仓库设置
  {
    path: '/wms/wmsSetting', component: WmsSetting,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095118',
          'itemNo': '1',
        },
      ],
    },
  },

  // 编码定义
  {
    path: '/wms/gradeDefinition', component: GradeDefinition,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095118',
          'itemNo': '1',
        },
      ],
    },
  },

  // 生成货位
  { path: '/wms/generatePosition/:uuid', component: GeneratePosition },

  // 采购入库打印
  {
    path: '/wms/inventoryPrint', component: InventoryPrint,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095118',
          'itemNo': '1',
        },
      ],
    },
  },

  // 扫描入库打印
  {
    path: '/wms/inventoryPrintScan', component: InventoryPrintScan,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095118',
          'itemNo': '1',
        },
      ],
    },
  },

  // 领用界面
  {
    path: '/wms/stockOutPrepareLine', component: StockOutPrepareLine,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 领料车界面
  {
    path: '/wms/pickingCar', component: PickingCar,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 领用记录，审批意见完成
  {
    path: '/wms/stockOutPrepareApproved', component: StockOutPrepareApproved,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 需求模板领料
  {
    path: '/wms/stockOutPrepateTemplate', component: StockOutPrepateTemplate,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 需求模板领料待提交记录
  {
    path: '/wms/stockOutPrepateTemplateRecording', component: StockOutPrepateTemplateRecording,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 需求模板领料已提交记录
  {
    path: '/wms/stockOutPrepareTemplateApproved', component: StockOutPrepareTemplateApproved,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 领料跳转添加项目
  {
    path: '/wms/stockOutPrepareLineAddProject', component: StockOutPrepareLineAddProject,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 项目事件收货信息
  // eslint-disable-next-line
    {
    path: '/wms/stockOutPrepareLineProjectReceivingAddress', component: StockOutPrepareLineProjectReceivingAddress,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 项目事件发货信息
  // eslint-disable-next-line
    {
    path: '/wms/stockOutPrepareLineProjectShippingAddress', component: StockOutPrepareLineProjectShippingAddress,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '5',
        },
      ],
    },
  },

  // 采购订单明细打印
  { path: '/wms/purchaseOrderLinePrint', component: PurchaseOrderLinePrint },

  // 货位打印
  { path: '/wms/positionPrint/:uuid', component: PositionPrint },

  // 采购订单打印改
  { path: '/wms/purchaseOrderPrint', component: PurchaseOrderPrint },

  //采购订单打印
  { path: '/wms/queryPurchaseOrderLine', component: QueryPurchaseOrderLine },

  { path: '/wms/packInventoryInstance', component: PackInventoryInstance },

  { path: '/wms/needPrint', component: NeedPrint },

  { path: '/wms/printed', component: Printed },
  {
    path: '/wms/printInventoryInstance', component: PrintInventoryInstance,
    children: [
      {
        path: '/',
        redirect: 'needPrint',
      },
      {
        path: 'needPrint',
        component: NeedPrint,
      },
      {
        path: 'printed',
        component: Printed,
      }],
  },

  // 盘点单盘盈数据处理
  {
    path: '/wms/checkProfit/:uuid', component: CheckProfit,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '4',
        },
      ],
    },
  },

  // 盘点单盘亏数据处理
  {
    path: '/wms/checkLoss/:uuid', component: CheckLoss,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '4',
        },
      ],
    },
  },

  // 入库单指定存货实例
  { path: '/wms/stockInLineInstance/:uuid', component: StockInLineInstance },

  // 出库单指定存货实例
  { path: '/wms/stockOutLineInstance/:uuid', component: StockOutLineInstance },

  { path: '/wms/purchaseOrderLine-trace-edit', component: PurchaseOrderLineTraceEdit },

  // 西门字库存查询
  {
    path: '/wms/currentStock', component: CurrentStock,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '7',
        },
      ],
    },
  },

  // 仓库库存台账
  {
    path: '/wms/stockLedger', component: StockLedger,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '7',
        },
      ],
    },
  },

  // 根据工具安全库存生成通用工具月度需求
  // eslint-disable-next-line
    { path: '/wms/generateToolRequest/:uuid', component: GenerateToolRequest },

  // 自动生成存货安全库存
  // eslint-disable-next-line
    { path: '/wms/autoGenerateInventorySafeStock/:uuid', component: AutoGenerateInventorySafeStock },

  // 自动生成存货分类安全库存
  // eslint-disable-next-line
    { path: '/wms/autoGenerateInventoryClassSafeStock/:uuid', component: AutoGenerateInventoryClassSafeStock },

  // 调拨单
  { path: '/wms/projectItemAdjust', component: ProjectItemAdjust },

  // 发货单
  {
    path: '/wms/invoiceGenerate', component: InvoiceGenerate,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '6',
        },
      ],
    },
  },

  // 结存
  {
    path: '/wms/balanceInventory', component: BalanceInventory,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '7',
        },
      ],
    },
  },

  // 生成明细
  {
    path: '/wms/vouchCheck/:uuid', component: VouchCheck,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '4',
        },
      ],
    },
  },

  // 快递物流信息查询
  { path: '/wms/expressInquiry/:uuid', component: ExpressInquiry },

  // 生成明细
  {
    path: '/wms/repertoryCheck/:uuid', component: RepertoryCheck,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '4',
        },
      ],
    },
  },

  // 物料查询存货详情
  // eslint-disable-next-line
    { path: '/wms/inventorySearchDetail', component: InventorySearchDetail },

  // 生单组件
  // eslint-disable-next-line
    { path: '/wms/generate-document/:type/:infoWindowNo/:uuid', component: GenerateDocumentTool },

  { path: '/wms/asset-inventory-check-lose/:uuid', component: InventoryCheckLoss },

  {
    path: '/wms/adjustPositions', component: AdjustPositions,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220328_095537',
          'itemNo': '7',
        },
      ],
    },
  },


  // 我管理项目的库存查询
  {
    path: '/wms/currentStockProjectItemManger', component: CurrentStockProjectItemManger,
    meta: {
      'loginRequired': true,
      'functionAccessArray': [
        {
          'functionNo': '20220518_142645',
          'itemNo': '3',
        },
      ],
    },
  },

  { path: '/wms/uploadTrainingVideo', component: UploadTrainingVideo },
  { path: '/wms/synchronousMaintenanceForm', component: SynchronousMaintenanceForm },
  { path: '/wms/queryMaintenancePlan', component: QueryMaintenancePlan },
  { path: '/wms/lightSetting', component: LightSetting },
  { path: '/wms/lightStockInOrOut', component: LightStockInOrOut },
  { path: '/wms/shelfBoard', component: ShelfBoard },
];


export default routes;