
const FunName = 'BathroomQuotation'; 
const FunTitle = '报价单';
const AllRouters = 'BatchCreate,BatchDelete,BatchUpdate,Create,Detail,Delete,ExportExcel,FittingsBatchCreate,FittingsBatchDelete,FittingsBatchUpdate,FittingsCreate,FittingsDetail,FittingsDelete,FittingsExportExcel,FittingsImportExcel,FittingsList,FittingsUpdate,ImportExcel,LaborBatchCreate,LaborBatchDelete,LaborBatchUpdate,LaborCreate,LaborDetail,LaborDelete,LaborExportExcel,LaborImportExcel,LaborList,LaborUpdate,List,MaterialBatchCreate,MaterialBatchDelete,MaterialBatchUpdate,MaterialCreate,MaterialDetail,MaterialDelete,MaterialExportExcel,MaterialImportExcel,MaterialList,MaterialUpdate,OutsourcingBatchCreate,OutsourcingBatchDelete,OutsourcingBatchUpdate,OutsourcingCreate,OutsourcingDetail,OutsourcingDelete,OutsourcingExportExcel,OutsourcingImportExcel,OutsourcingList,OutsourcingUpdate,PackagingBatchCreate,PackagingBatchDelete,PackagingBatchUpdate,PackagingCreate,PackagingDetail,PackagingDelete,PackagingExportExcel,PackagingImportExcel,PackagingList,PackagingUpdate,PartsBatchCreate,PartsBatchDelete,PartsBatchUpdate,PartsCreate,PartsDetail,PartsDelete,PartsExportExcel,PartsImportExcel,PartsList,PartsUpdate,ProcessBatchCreate,ProcessBatchDelete,ProcessBatchUpdate,ProcessCreate,ProcessDetail,ProcessDelete,ProcessExportExcel,ProcessImportExcel,ProcessList,ProcessUpdate,Update,LogDetail,LogList,Settings,SettingsUpdate'.split(',')


// 视图组件
const view = {
  tabs: () => import('@/layouts/tabs'),
  blank: () => import('@/layouts/BlankView'),
  page: () => import('@/layouts/PageView')
}
 
// 路由组件注册
const routerMap = {
};
routerMap[FunName]= {
  name: FunTitle,
  icon: 'idcard',
  component: view.blank,
  meta: {
  },
  authority: {
    permission: [],
  } 
};

routerMap[FunName + 'List']= {
  name: FunTitle, 
  icon: 'idcard',
  path: `/${FunName}/${FunName}List`,
  meta:{
    page:{ cacheAble:false}
  },
  component: () => import(`@/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/List`),
  authority: {
    permission: [],
  }
}; 
  
routerMap[FunName + 'Create']= {
  name: FunTitle, 
  icon: 'idcard',
    path: `/${FunName}/${FunName}Add`,
    component: () => import(`@/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit`),
    meta: {
      invisible: true,
    },
    authority: {
      permission: [],
    }
};
routerMap[FunName + 'Update']= {
  name: FunTitle, 
  icon: 'idcard',
    path: `/${FunName}/${FunName}Update/:id`,
    component: () => import(`@/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit`),
    meta: {
      invisible: true 
    }, 
    authority: {
      permission: [],
    }
};
 
 
AllRouters.forEach(item => {
  let name = FunName + item;
  if (!(name in routerMap)) { 
    routerMap[name] = {
      meta: {
        invisible: true
      }
    }
  } 
})


export default routerMap