/*
 * 供应商审核路由表
 * */

import layout from '@/components/layout/layout'
export const supplierAudit = [{
  path: '/supperManagement',
  component: layout,
  children: [
    /* ================================供应商审核=================================*/
    // 审核人-供应商管理-供应商代办任务列表
    {
      path: 'supplierAuditList',
      meta: { path: 'supplierAuditList' },
      component: () => import('@/views/supplier/supplierAudit/supplierOur/supplierAudit-list')
      // component: () => import('@/views/supplier/supplierAudit/supplierAuditTodo/supplierAudit-list')
    },
    // 审核人-供应商管理-供应商初审审核
    {
      path: 'editorDeclarationAudit-detail',
      name: 'EditorDeclarationAuditDetail',
      meta: {
        path: 'supplierAuditList',
        type: 'audit'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/editorDeclarationAudit/editorDeclarationAudit-detail')
    },
    // 审核人-供应商管理-审批历史列表
    {
      path: 'supplierAuditHistoryList',
      meta: { path: 'supplierAuditHistoryList' },
      component: () => import('@/views/supplier/supplierAudit/supplierAuditHistory/supplierAuditHistory-list')
    },
    // 审核人-供应商管理-不合格供应商审核
    {
      path: 'reviewUnqualifiedAudit-detail',
      name: 'ReviewUnqualifiedAuditDetail',
      meta: {
        path: 'supplierAuditList',
        type: 'reviewAudit'
      },
      component: () => import('@/views/supplier/reviewUnqualifiedAudit/reviewUnqualifiedAudit-detail')
    },
    /* ================================供应商本单位审核=================================*/
    // 审核人-供应商管理-供应商本单位代办任务列表
    {
      path: 'supplierOurCompanyAudit-list',
      meta: { path: 'supplierOurCompanyAudit-list' },
      component: () => import('@/views/supplier/supplierAudit/supplierAuditTodo/supplierAudit-list')
    },
    // 审核人-供应商管理-供应商本单位初审审核
    {
      path: 'editorDeclarationOurCompanyAudit-detail',
      name: 'EditorDeclarationOurCompanyAuditDetail',
      meta: {
        path: 'supplierOurCompanyAudit-list',
        type: 'audit'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/editorDeclarationAudit/editorDeclarationAudit-detail')
    }
  ]
}]
// 供应商申报入库工作流
export const supplierDecWork = [
  {
    path: 'supplierWorkDecDetail',
    component: () => import('@/views/supplier/supplierAudit/supplierWork/supplierWork-detail.vue')
  }
]
export default [
  ...supplierAudit,
  ...supplierDecWork
]
