/*
 * 供应商-申报合格供应商路由表
 * */
import layout from '@/components/layout/layout'
// 供应商申报材料-新增
export const supplierDeclaration = [{
  path: 'supplier',
  meta: {
    path: 'supplier',
    type: 'declarationFirst'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
  },
  component: () => import('@/views/supplier/editorDeclaration/editorDeclarationContent/editorDeclarationContent'),
  redirect: '/supplierDeclaration/supplier/essentialInformation',
  children: [
    // 基本信息
    {
      path: 'essentialInformation',
      meta: {
        step: 1,
        type: 'declarationFirst'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/essentialInformation/essentialInformation-add')
    },
    // 业务经办人
    {
      path: 'businessManagerInfo',
      meta: {
        step: 2,
        type: 'declarationFirst'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/businessManagerInfo/businessManagerInfo-add')
    },
    // 企业资质
    {
      path: 'enterpriseQualification',
      meta: {
        step: 3,
        type: 'declarationFirst'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/enterpriseQualification/enterpriseQualification-add')
    },
    // 供货情况
    {
      path: 'supplYrecord',
      meta: {
        step: 4,
        type: 'declarationFirst'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/supplYrecord/supplYrecord-add')
    },
    // 财务状况
    {
      path: 'financialSituation',
      meta: {
        step: 5,
        type: 'declarationFirst'// declarationFirst 编辑申报材料查看 declarationChange 申报材料变更时 audit 初审审核时
      },
      component: () => import('@/views/supplier/editorDeclaration/financialSituation/financialSituation-add')
    }
  ]
}]
// 申报记录
export const declarationRecord = [
  // 申报记录列表
  {
    path: 'declarationRecord',
    meta: { path: 'declarationRecord' },
    component: () => import('@/views/supplier/declaraTionrecord/declaraTionrecord-list')
    // component: () => import('@/views/supplier/supplierEvaluation/supplierYearAudit/supplierCollectionStore/supplierCollStoreContent')
  },
  // 供应商申报
  {
    path: 'supplierReport',
    meta: { path: 'supplierReport' },
    component: () => import('@/views/supplier/supplierReport/supplierReport-list')
    // component: () => import('@/views/supplier/supplierEvaluation/supplierYearAudit/supplierCollectionStore/supplierCollStoreContent')
  }
]

export default [{
  path: '/supplierDeclaration',
  component: layout,
  children: [
    ...supplierDeclaration,
    ...declarationRecord
  ]
}]
