123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- /*
- * @Author: code4eat awesomedema@gmail.com
- * @Date: 2022-12-14 14:14:32
- * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2024-12-05 17:33:15
- * @FilePath: /BudgetManaSystem/.umirc.ts
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- import { defineConfig } from '@umijs/max';
- import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
- const { REACT_APP_ENV } = process.env;
- const path = require('path');
- export default defineConfig({
- hash:true,
- antd: {
- configProvider: {
- prefixCls: 'cost-ant',
- },
- },
- // alias:{
- // 'ace-builds': path.resolve(__dirname, './node_modules/ace-builds/src-noconflict'),
- // },
- qiankun: {
- slave: {},
- },
- mfsu: false,
- lessLoader: {
- modifyVars: {
- '@ant-prefix': 'cost-ant',
- '@primary-color': '#3377FF',
- '@border-color-base': '#dae2f2'
- },
- javascriptEnabled: true,
- }, //对应修改生成的 antd 样式类名
- chainWebpack(config, { webpack }) {
- config.plugin('monaco-editor').use(MonacoWebpackPlugin, [
- {
- // 指定需要加载的语言和特性
- languages: ['sql', 'javascript', 'typescript']
- }
- ]);
- },
- access: {},
- model: {},
- initialState: {},
- request: {},
- layout: {
- title: '成本核算系统',
- layout: 'side',
- menuProps: {
- theme: 'light',
- }
- },
- manifest: {
- basePath: '/',
- },
- publicPath: REACT_APP_ENV == 'dev' ? '/' : '/costAccount/',
- 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',
- },
- { path: '*', component: '@/pages/404' },
- {
- path: '/noAccess',
- component: './noAccess',
- },
- {
- path: '/home',
- component: './Home/index',
- },
- {
- path: '/baseSetting',
- name: '基础设置',
- routes: [
- {
- path: '/baseSetting/responsibilityCenterSet',
- name: '责任中心设置',
- routes: [
- {
- path: '/baseSetting/responsibilityCenterSet/responsibilityCenter',
- name: '责任中心管理',
- component: './baseSetting/responsibilityCenterSet/responsibilityCenter/index',
- },
- {
- path: '/baseSetting/responsibilityCenterSet/responsibilityCenterConnect',
- name: '责任中心对应',
- component: './baseSetting/responsibilityCenterSet/responsibilityCenterConnect/index',
- },
- ],
- },
- {
- path: '/baseSetting/accountingAccountSet',
- name: '会计科目设置',
- routes: [
- {
- path: '/baseSetting/accountingAccountSet/costIncomeProjectMana',
- name: '会计收入项目管理',
- component: './baseSetting/accountingAccountSet/costIncomeProjectMana/index',
- },
- {
- path: '/baseSetting/accountingAccountSet/accountingSubMana',
- name: '会计科目管理',
- component: './baseSetting/accountingAccountSet/accountingSubMana/index',
- },
- {
- path: '/baseSetting/accountingAccountSet/accountingSubMap',
- name: '会计科目对应',
- component: './baseSetting/accountingAccountSet/accountingSubMap/index',
- },
- {
- path: '/baseSetting/accountingAccountSet/chargeItemMap',
- name: '收费项目对应',
- component: './baseSetting/accountingAccountSet/chargeItemMap/index',
- },
- ],
- },
- {
- path: '/baseSetting/costAllocationSet',
-
- name: '成本分摊设置',
- routes: [
- {
- path: '/baseSetting/costAllocationSet/allocationLevelSet',
- name: '分摊层级设置',
- component: './baseSetting/costAllocationSet/allocationLevelSet/index',
- },
- {
- path: '/baseSetting/costAllocationSet/idleCostSetting',
- name: '闲置成本设置',
- component: './baseSetting/costAllocationSet/idleCostSetting/index',
- },
- {
- path: '/baseSetting/costAllocationSet/costAllocationParamsSet',
- name: '成本分摊参数设置',
- component: './baseSetting/costAllocationSet/costAllocationParamsSet/index',
- },
- {
- path: '/baseSetting/costAllocationSet/costAllocationParamsDeal',
- name: '成本分摊参数处理',
- component: './baseSetting/costAllocationSet/costAllocationParamsDeal/index',
- },
- {
- path: '/baseSetting/costAllocationSet/allocationParamsMap',
- name: '分摊参数对应',
- component: './baseSetting/costAllocationSet/allocationParamsMap/index',
- },
- {
- path: '/baseSetting/costAllocationSet/revenueImputationSet',
- name: '收入归集设置',
- component: './baseSetting/costAllocationSet/revenueImputationSet/index',
- },
- ],
- },
- {
- path: '/baseSetting/otherItemSet',
- name: '其它设置',
- icon: 'tool',
- routes: [
- {
- path: '/baseSetting/otherItemSet/diySqlMana',
- name: '自定义SQl管理',
- component: './baseSetting/otherItemSet/diySqlMana/index',
- },
- {
- path: '/baseSetting/otherItemSet/reportItemSet',
- name: '报表项目设置',
- component: './baseSetting/otherItemSet/reportItemSet/index',
- },
- {
- path: '/baseSetting/otherItemSet/departmentCostCalc',
- name: '科室损益计算',
- component: './baseSetting/otherItemSet/departmentCostCalc/index',
- },
- {
- path: '/baseSetting/otherItemSet/visitsAndBedDayCostSetting',
- name: '诊次/床日成本设置',
- component: './baseSetting/otherItemSet/visitsAndBedDayCostSetting/index',
- },
- {
- path: '/baseSetting/otherItemSet/wholeHospCostAndIncomeSet',
- name: '全院其他收支设置',
- component: './baseSetting/otherItemSet/wholeHospCostAndIncomeSet/index',
- },
- ],
- },
- ],
- },
- {
- path:'/monthlyInfoCollection',
- name: '月度信息采集2',
- component:'./monthlyInfoCollection/index',
- },
- {
- path:'/departmentCostCheck',
- name: '科室损益查询',
- component:'./departmentCostCheck/index',
- },
- {
- path:'/departmentMzCostCalc',
- name: '科室门住损益计算',
- component:'./departmentMenzhuCostCalc/index',
- },
- {
- path:'/specialDataImport',
- name: '填报数据导入',
- component:'./specialDataImport/index',
- },
- {
- path:'/incomeCollectionAction',
- name: '收入归集',
- component:'./incomeCollectionAction/index',
- },
- {
- path: '/monthlyInfoSearch',
- name: '月度信息采集',
- routes: [
- {
- path: '/monthlyInfoSearch/wholeHospIncomeAndCost',
- name: '全院其他收支',
- component: './monthlyInfoSearch/wholeHospIncomeAndCost/index',
- },
- {
- path: '/monthlyInfoSearch/empCostDataImport',
- name: '人事成本数据导入',
- component: './monthlyInfoSearch/empCostDataImport/index',
- },
- {
- path: '/monthlyInfoSearch/patientChargeItemsImport',
- name: '患者收费项目导入',
- component: './monthlyInfoSearch/patientChargeItemsImport/index',
- },
- {
- path: '/monthlyInfoSearch/patientInfoImport',
- name: '患者信息导入',
- component: './monthlyInfoSearch/patientInfoImport/index',
- },
- {
- path: '/monthlyInfoSearch/incomeCostDataImport',
- name: '收入成本数据导入',
- component: './monthlyInfoSearch/incomeCostDataImport/index',
- },
- ],
- },
- {
- path: '/costAccounting',
- name: '成本核算',
- routes: [
- {
- path: '/costAccounting/:calcPageKey',
- component: './costAccounting/calcPageTemplate/index',
- }
- ],
- },
- {
- path: '/reportExport',
- name: '报表输出',
- routes: [
- {
- path: '/reportExport/:reportType',
- routes: [
- {
- path: '/reportExport/:reportType/:reportCode',
- component: './reportExport/report',
- },
- ]
- }
-
- ],
- },
- {
- path: '/operationalAnalysis',
- name: '运营分析',
- routes: [
- {}
- ],
- },
- {
- path: '/costLibraryManagement',
- name: '成本库管理',
- routes: [
- {
- path: '/costLibraryManagement/basicCostManagement',
- name: '基础成本管理',
- routes: [
- {
- path: '/costLibraryManagement/basicCostManagement/personnelClassificationMana',
- name: '人事分类管理',
- component: './costLibraryManagement/basicCostManagement/personnelClassificationMana/index',
- },
- {
- path: '/costLibraryManagement/basicCostManagement/drugCostManagement',
- name: '药品成本管理',
- component: './costLibraryManagement/basicCostManagement/drugCostManagement/index',
- },
- {
- path: '/costLibraryManagement/basicCostManagement/materialCostManagement',
- name: '材料成本管理',
- component: './costLibraryManagement/basicCostManagement/materialCostManagement/index',
- },
- {
- path: '/costLibraryManagement/basicCostManagement/equipmentCostManagement',
- name: '设备成本管理',
- component: './costLibraryManagement/basicCostManagement/equipmentCostManagement/index',
- },
- {
- path: '/costLibraryManagement/basicCostManagement/spaceCostManagement',
- name: '空间成本管理',
- component: './costLibraryManagement/basicCostManagement/spaceCostManagement/index',
- },
- ],
- },
- {
- path: '/costLibraryManagement/projectCostManagement',
- name: '项目成本管理',
- routes: [
- {
- path: '/costLibraryManagement/projectCostManagement/chargeItemsMana',
- name: '收费项目管理',
- component: './costLibraryManagement/projectCostManagement/chargeItemsMana/index',
- },
- {
- path: '/costLibraryManagement/projectCostManagement/standardProjectMana',
- name: '标准项目管理',
- component: './costLibraryManagement/projectCostManagement/standardProjectMana/index',
- },
- {
- path: '/costLibraryManagement/projectCostManagement/projectShareParamsSet',
- name: '项目分摊参数设置',
- component: './costLibraryManagement/projectCostManagement/projectShareParamsSet/index',
- },
- {
- path: '/costLibraryManagement/projectCostManagement/projectCostShareSet',
- name: '项目成本分摊设置',
- component: './costLibraryManagement/projectCostManagement/projectCostShareSet/index',
- },
- ],
- },
- {
- path: '/costLibraryManagement/medicalOrderProject',
- name: '医嘱项目',
- routes: [
- {
- path: '/costLibraryManagement/medicalOrderProject/medicalOrderProjectMana',
- name: '收费项目管理',
- component: './costLibraryManagement/medicalOrderProject/medicalOrderProjectMana/index',
- },
- ],
- },
- {
- path: '/costLibraryManagement/diseaseCostManagement',
- name: '病种成本管理',
- routes: [
- {
- path: '/costLibraryManagement/diseaseCostManagement/diseaseMana',
- name: '病种管理',
- component: './costLibraryManagement/diseaseCostManagement/diseaseMana/index',
- },
- {
- path: '/costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison',
- name: '病种诊断对照',
- component: './costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison/index',
- },
- ],
- },
- {
- path: '/costLibraryManagement/clinicalPathwayCostManagement',
- name: '临床路径成本管理',
- routes: [
- {}
- ],
- },
- {
- path: '/costLibraryManagement/reportMana',
- name: '报表管理',
- routes: [
- {
- path: '/costLibraryManagement/reportMana/reportColumnMana',
- name: '报表列管理',
- component: './costLibraryManagement/reportMana/reportColumnMana/index',
- },
- {
- path: '/costLibraryManagement/reportMana/reportListMana',
- name: '报表管理',
- component: './costLibraryManagement/reportMana/reportListMana/index',
- },
- {
- path: '/costLibraryManagement/reportMana/reportNavSet',
- name: '报表跳转',
- component: './costLibraryManagement/reportMana/reportNavSet/index',
- },
- ],
- },
- ],
- },
- ],
- npmClient: 'yarn',
- });
|