/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2022-12-14 14:14:32
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2023-08-01 10:36:35
 * @FilePath: /BudgetManaSystem/.umirc.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from '@umijs/max';


const { REACT_APP_ENV } = process.env;


export default defineConfig({
  antd: {
    configProvider: {
      prefixCls: 'bms-ant',
    },
  },
  qiankun: {
    slave: {},
  },
  mfsu:false,
  lessLoader: {
    modifyVars: { 
      '@ant-prefix': 'bms-ant',
      '@primary-color': '#3377FF',
      '@border-color-base':'#dae2f2'
    },  
    javascriptEnabled: true,
  }, //对应修改生成的 antd 样式类名



  access: {},
  model: {},

  initialState: {},
  request: {},
  layout: {
    title: '前瞻性绩效管理',
    layout: 'side',
    menuProps: {
      theme: 'light',
    }
  },
  manifest: {
    basePath: '/',
  },
  publicPath: REACT_APP_ENV == 'dev' ? '/' : '/perform/',
  proxy: {

    '/gateway': {
      target: 'http://120.27.235.181:5000/gateway',//开发
      //target:'http://47.96.149.190:5000/gateway', //演示
      changeOrigin: true,
      // pathRewrite: { '^/gateway': '' },

    }
  },
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      name: '首页',
      path: '/home',
      component: './Home',
    },
    // {
    //   name: '静态测试',
    //   path: '/static',
    //   component: './static',
    // },
    {
      name: '系统设置',
      path: '/setting',
      routes: [
        {
          name: '基础设置',
          path: '/setting/baseSetting',
          routes: [
            {
              name: '业务字典分类管理',
              path: '/setting/baseSetting/dicClassfication',
              component: './setting/baseSetting/dicClassfication',
            },
            {
              name: '业务字典管理',
              path: '/setting/baseSetting/businessDicMana',
              component: './setting/baseSetting/businessDicMana',
            },
            {
              name: '参数管理',
              path: '/setting/baseSetting/paramsMana',
              component: './setting/baseSetting/paramsMana',
            },
            {
              name: '职类基础设定',
              path: '/setting/baseSetting/jobCateBaseSet',
              component: './setting/baseSetting/jobCateBaseSet',
            },
            {
              name: '岗位等级系数设定',
              path: '/setting/baseSetting/positionLevelRateSet',
              component: './setting/baseSetting/positionLevelRateSet',
            },
          ]
        },
        {
          name: '项目设置',
          path: '/setting/projectSetting',
          routes: [
            {
              name: '收费项目管理',
              path: '/setting/projectSetting/bilingProjectMana',
              component: './setting/projectSetting/bilingProjectMana',
            },
            {
              name: '静态测试',
              path: '/setting/projectSetting/static/:pageCode',
              component: './setting/projectSetting/bilingProjectMana',
            },
            {
              name: '指标项目管理',
              path: '/setting/projectSetting/indicProjectMana',
              component: './setting/projectSetting/indicProjectMana',
            },
            {
              name: '二次分配项目管理',
              path: '/setting/projectSetting/secondaryProjectDistribute',
              component: './setting/projectSetting/secondaryProjectDistribute',
            },
            {
              name: '非考核项目管理',
              path: '/setting/projectSetting/nonAssessmentProjectMana',
              component: './setting/projectSetting/nonAssessmentProjectMana',
            },
            {
              name: '职类二次分配设定',
              path: '/setting/projectSetting/occupationsSecondaryDistriSet',
              component: './setting/projectSetting/occupationsSecondaryDistriSet',
            },
            {
              name: '核算单元项目设定',
              path: '/setting/projectSetting/checkUnitProjectSet',
              component: './setting/projectSetting/checkUnitProjectSet',
            },
            {
              name: '成本收入项目设定',
              path: '/setting/projectSetting/costIncomeProjectSet',
              component: './setting/projectSetting/costIncomeProjectSet',
            },
            {
              name: '二次分配分组设定',
              path: '/setting/projectSetting/secondaryDistriGroupSet',
              component: './setting/projectSetting/secondaryDistriGroupSet',
            },
          ]
        },
        {
          name: '管理绩效设置',
          path: '/setting/manaPerformanceSet',
          routes: [
            {
              name: '管理指标项目设定',
              path: '/setting/manaPerformanceSet/manaIndicItemSet',
              component: './setting/manaPerformanceSet/manaIndicItemSet',
            },
            {
              name: '职类考核分级设定',
              path: '/setting/manaPerformanceSet/classAssessAndGradeSet',
              component: './setting/manaPerformanceSet/classAssessAndGradeSet',
            },
            {
              name: '指标分组权重设定',
              path: '/setting/manaPerformanceSet/indicGroupWeightSet',
              component: './setting/manaPerformanceSet/indicGroupWeightSet',
            },
            {
              name: '单元指标目标设定',
              path: '/setting/manaPerformanceSet/unitIndicTargetSet',
              component: './setting/manaPerformanceSet/unitIndicTargetSet',
            },
          ]
        },
        {
          name: '报表设置',
          path: '/setting/reportSet',
          routes: [
            {
              name: '报表列管理',
              path: '/setting/reportSet/reportListMana',
              component: './setting/reportSet/reportListMana',
            },
            {
              name: '报表设置',
              path: '/setting/reportSet/reportSetting',
              component: './setting/reportSet/reportSetting',
            },
            {
              name: '报表跳转管理',
              path: '/setting/reportSet/reportNavSet',
              component: './setting/reportSet/reportNavSet',
            },
            {
              name: '自定义SQL管理',
              path: '/setting/reportSet/diySqlMana',
              component: './setting/reportSet/diySqlMana',
            }
          ]
        },
        {
          name: '核算单元设置',
          path: '/setting/checkUnitSet',
          routes: [
            {
              name: '核算单元分类管理',
              path: '/setting/checkUnitSet/checkUnitClassMana',
              component: './setting/checkUnitSet/checkUnitClassMana',
            },
            {
              name: '核算单元管理',
              path: '/setting/checkUnitSet/checkUnitMana',
              component: './setting/checkUnitSet/checkUnitMana',
            },
            {
              name: '核算单元科室对照',
              path: '/setting/checkUnitSet/checkUnitDepMap',
              component: './setting/checkUnitSet/checkUnitDepMap',
            },
            {
              name: '核算单元人员设定',
              path: '/setting/checkUnitSet/checkUnitEmpSet',
              component: './setting/checkUnitSet/checkUnitEmpSet',
            },
            {
              name: '医疗组设定',
              path: '/setting/checkUnitSet/medicalGroupSet',
              component: './setting/checkUnitSet/medicalGroupSet',
            },
            {
              name: '检视单元权限设定',
              path: '/setting/checkUnitSet/viewUnitPermSet',
              component: './setting/checkUnitSet/viewUnitPermSet',
            }
          ]
        },

      ]
    },
    {
      name: '绩校管理',
      path: '/budgetMana',
      routes: [
        {
          name: '月度结转',
          path: '/budgetMana/monthlySet',
          component: './budgetMana/monthlySet'
        },
        {
          name: '月度设置信息核对',
          path: '/budgetMana/monthlyInfoCheck',
          component: './budgetMana/monthlyInfoCheck'
        },
        {
          name: '月度绩效数据核对',
          path: '/budgetMana/monthlyDataCheck',
          component: './budgetMana/monthlyDataCheck'
        },
        {
          name: '人事薪酬预算',
          path: '/budgetMana/personnelSalaryBudget',
          component: './budgetMana/personnelSalaryBudget'
        },
        {
          name: '一次分配',
          path: '/budgetMana/oneBatch',
          component: './budgetMana/oneBatch'
        },
        {
          name: '特殊数据导入',
          path: '/budgetMana/specialDataImport',
          component: './budgetMana/specialDataImport'
        }
      ]
    },
    {
      name: '报表查询',
      path: '/reportCheck',
      routes: [
        {
          path: '/reportCheck/report/:reportCode',
          component: './reportCheck/report',
        },
      ]
    },
    {
      name: '二次分配',
      path: '/secondaryDistribute',
      routes: [
        {
          name: '人员信息核对',
          path: '/secondaryDistribute/employeeInfoCheck',
          component: './secondaryDistribute/employeeInfoCheck',
        },
        {
          name: '非考核项目核定',
          path: '/secondaryDistribute/nonCheckProjectApprove',
          component: './secondaryDistribute/nonCheckProjectApprove',
        },
        {
          name: '单元考核项目评分',
          path: '/secondaryDistribute/unitCheckProjectScore',
          component: './secondaryDistribute/unitCheckProjectScore',
        },
        {
          name: '二次分配计算',
          path: '/secondaryDistribute/secondaryDitriComputed',
          component: './secondaryDistribute/secondaryDitriComputed',
        },
        {
          name: '二次分配审核',
          path: '/secondaryDistribute/secondaryDitriCheck',
          component: './secondaryDistribute/secondaryDitriComputed',
        },
        
      ]
    },
    {
      name: '交叉分析',
      path: '/crosstabReport',
      routes: [
        {
          name: '国考指标',
          path: '/crosstabReport/nationalIndicator',
          routes:[{}]
        },
        {
          name: '经营分析',
          path: '/crosstabReport/businessAnalysis',
          routes:[
            {
              name: '大屏-全院分析',
              path: '/crosstabReport/businessAnalysis/hospitalAnalysis',
              routes:[{}]
            },
            {
              name: '大屏-住院分析',
              path: '/crosstabReport/businessAnalysis/inpAnalysis',
              routes:[{}]
            },
            {
              name: '大屏-门诊分析',
              path: '/crosstabReport/businessAnalysis/opdAnalysis',
              routes:[{}]
            },
            {
              name: '收入分析',
              path: '/crosstabReport/businessAnalysis/incomeAnalysis',
              routes:[{}]
            },
          ]
        },
        {
          name: '成本分析',
          path: '/crosstabReport/costAnalysis',
          routes:[{}]
        },
        {
          name: '财务报表分析',
          path: '/crosstabReport/financialReportAnalysis',
          routes:[{}]
        },
      ]
    },
  ],
  npmClient: 'yarn',
});

