.umirc.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2024-01-15 16:02:02
  6. * @FilePath: /BudgetManaSystem/.umirc.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. import { defineConfig } from '@umijs/max';
  10. const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
  11. const { REACT_APP_ENV } = process.env;
  12. export default defineConfig({
  13. antd: {
  14. configProvider: {
  15. prefixCls: 'bms-ant',
  16. },
  17. },
  18. qiankun: {
  19. slave: {},
  20. },
  21. chainWebpack(config, { webpack }) {
  22. config.plugin('monaco-editor').use(MonacoWebpackPlugin, [
  23. {
  24. // 你可以在这里指定需要加载的语言和特性
  25. languages: ['sql', 'javascript', 'typescript']
  26. }
  27. ]);
  28. },
  29. mfsu: false,
  30. lessLoader: {
  31. modifyVars: {
  32. '@ant-prefix': 'bms-ant',
  33. '@primary-color': '#3377FF',
  34. '@border-color-base': '#dae2f2'
  35. },
  36. javascriptEnabled: true,
  37. }, //对应修改生成的 antd 样式类名
  38. access: {},
  39. model: {},
  40. initialState: {},
  41. request: {},
  42. layout: {
  43. title: '前瞻性绩效管理',
  44. layout: 'side',
  45. menuProps: {
  46. theme: 'light',
  47. }
  48. },
  49. manifest: {
  50. basePath: '/',
  51. },
  52. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/perform/',
  53. proxy: {
  54. '/gateway': {
  55. target: 'http://120.27.235.181:5000/gateway',//开发
  56. //target:'http://47.96.149.190:5000/gateway', //演示
  57. changeOrigin: true,
  58. // pathRewrite: { '^/gateway': '' },
  59. }
  60. },
  61. routes: [
  62. {
  63. path: '/',
  64. redirect: '/home',
  65. },
  66. {
  67. name: '首页',
  68. path: '/home',
  69. component: './Home',
  70. },
  71. // {
  72. // name: '静态测试',
  73. // path: '/static',
  74. // component: './static',
  75. // },
  76. {
  77. name: '系统设置',
  78. path: '/setting',
  79. routes: [
  80. {
  81. name: '基础设置',
  82. path: '/setting/baseSetting',
  83. routes: [
  84. {
  85. name: '业务字典分类管理',
  86. path: '/setting/baseSetting/dicClassfication',
  87. component: './setting/baseSetting/dicClassfication',
  88. },
  89. {
  90. name: '业务字典管理',
  91. path: '/setting/baseSetting/businessDicMana',
  92. component: './setting/baseSetting/businessDicMana',
  93. },
  94. {
  95. name: '参数管理',
  96. path: '/setting/baseSetting/paramsMana',
  97. component: './setting/baseSetting/paramsMana',
  98. },
  99. {
  100. name: '职类基础设定',
  101. path: '/setting/baseSetting/jobCateBaseSet',
  102. component: './setting/baseSetting/jobCateBaseSet',
  103. },
  104. {
  105. name: '岗位等级系数设定',
  106. path: '/setting/baseSetting/positionLevelRateSet',
  107. component: './setting/baseSetting/positionLevelRateSet',
  108. },
  109. ]
  110. },
  111. {
  112. name: '项目设置',
  113. path: '/setting/projectSetting',
  114. routes: [
  115. {
  116. name: '收费项目管理',
  117. path: '/setting/projectSetting/bilingProjectMana',
  118. component: './setting/projectSetting/bilingProjectMana',
  119. },
  120. {
  121. name: '静态测试',
  122. path: '/setting/projectSetting/static/:pageCode',
  123. component: './setting/projectSetting/bilingProjectMana',
  124. },
  125. {
  126. name: '指标项目管理',
  127. path: '/setting/projectSetting/indicProjectMana',
  128. component: './setting/projectSetting/indicProjectMana',
  129. },
  130. {
  131. name: '二次分配项目管理',
  132. path: '/setting/projectSetting/secondaryProjectDistribute',
  133. component: './setting/projectSetting/secondaryProjectDistribute',
  134. },
  135. {
  136. name: '非考核项目管理',
  137. path: '/setting/projectSetting/nonAssessmentProjectMana',
  138. component: './setting/projectSetting/nonAssessmentProjectMana',
  139. },
  140. {
  141. name: '职类二次分配设定',
  142. path: '/setting/projectSetting/occupationsSecondaryDistriSet',
  143. component: './setting/projectSetting/occupationsSecondaryDistriSet',
  144. },
  145. {
  146. name: '核算单元项目设定',
  147. path: '/setting/projectSetting/checkUnitProjectSet',
  148. component: './setting/projectSetting/checkUnitProjectSet',
  149. },
  150. {
  151. name: '成本收入项目设定',
  152. path: '/setting/projectSetting/costIncomeProjectSet',
  153. component: './setting/projectSetting/costIncomeProjectSet',
  154. },
  155. {
  156. name: '二次分配分组设定',
  157. path: '/setting/projectSetting/secondaryDistriGroupSet',
  158. component: './setting/projectSetting/secondaryDistriGroupSet',
  159. },
  160. ]
  161. },
  162. {
  163. name: '管理绩效设置',
  164. path: '/setting/manaPerformanceSet',
  165. routes: [
  166. {
  167. name: '管理指标项目设定',
  168. path: '/setting/manaPerformanceSet/manaIndicItemSet',
  169. component: './setting/manaPerformanceSet/manaIndicItemSet',
  170. },
  171. {
  172. name: '职类考核分级设定',
  173. path: '/setting/manaPerformanceSet/classAssessAndGradeSet',
  174. component: './setting/manaPerformanceSet/classAssessAndGradeSet',
  175. },
  176. {
  177. name: '指标分组权重设定',
  178. path: '/setting/manaPerformanceSet/indicGroupWeightSet',
  179. component: './setting/manaPerformanceSet/indicGroupWeightSet',
  180. },
  181. {
  182. name: '单元指标目标设定',
  183. path: '/setting/manaPerformanceSet/unitIndicTargetSet',
  184. component: './setting/manaPerformanceSet/unitIndicTargetSet',
  185. },
  186. ]
  187. },
  188. {
  189. name: '报表设置',
  190. path: '/setting/reportSet',
  191. routes: [
  192. {
  193. name: '报表列管理',
  194. path: '/setting/reportSet/reportListMana',
  195. component: './setting/reportSet/reportListMana',
  196. },
  197. {
  198. name: '报表设置',
  199. path: '/setting/reportSet/reportSetting',
  200. component: './setting/reportSet/reportSetting',
  201. },
  202. {
  203. name: '报表跳转管理',
  204. path: '/setting/reportSet/reportNavSet',
  205. component: './setting/reportSet/reportNavSet',
  206. },
  207. {
  208. name: '自定义SQL管理',
  209. path: '/setting/reportSet/diySqlMana',
  210. component: './setting/reportSet/diySqlMana',
  211. }
  212. ]
  213. },
  214. {
  215. name: '核算单元设置',
  216. path: '/setting/checkUnitSet',
  217. routes: [
  218. {
  219. name: '核算单元分类管理',
  220. path: '/setting/checkUnitSet/checkUnitClassMana',
  221. component: './setting/checkUnitSet/checkUnitClassMana',
  222. },
  223. {
  224. name: '核算单元管理',
  225. path: '/setting/checkUnitSet/checkUnitMana',
  226. component: './setting/checkUnitSet/checkUnitMana',
  227. },
  228. {
  229. name: '核算单元科室对照',
  230. path: '/setting/checkUnitSet/checkUnitDepMap',
  231. component: './setting/checkUnitSet/checkUnitDepMap',
  232. },
  233. {
  234. name: '核算单元人员设定',
  235. path: '/setting/checkUnitSet/checkUnitEmpSet',
  236. component: './setting/checkUnitSet/checkUnitEmpSet',
  237. },
  238. {
  239. name: '医疗组设定',
  240. path: '/setting/checkUnitSet/medicalGroupSet',
  241. component: './setting/checkUnitSet/medicalGroupSet',
  242. },
  243. {
  244. name: '检视单元权限设定',
  245. path: '/setting/checkUnitSet/viewUnitPermSet',
  246. component: './setting/checkUnitSet/viewUnitPermSet',
  247. }
  248. ]
  249. },
  250. ]
  251. },
  252. {
  253. name: '绩校管理',
  254. path: '/budgetMana',
  255. routes: [
  256. {
  257. name: '月度结转',
  258. path: '/budgetMana/monthlySet',
  259. component: './budgetMana/monthlySet'
  260. },
  261. {
  262. name: '月度设置信息核对',
  263. path: '/budgetMana/monthlyInfoCheck',
  264. component: './budgetMana/monthlyInfoCheck'
  265. },
  266. {
  267. name: '月度绩效数据核对',
  268. path: '/budgetMana/monthlyDataCheck',
  269. component: './budgetMana/monthlyDataCheck'
  270. },
  271. {
  272. name: '人事薪酬预算',
  273. path: '/budgetMana/personnelSalaryBudget',
  274. component: './budgetMana/personnelSalaryBudget'
  275. },
  276. {
  277. name: '一次分配',
  278. path: '/budgetMana/oneBatch',
  279. component: './budgetMana/oneBatch'
  280. },
  281. {
  282. name: '特殊数据导入',
  283. path: '/budgetMana/specialDataImport',
  284. component: './budgetMana/specialDataImport'
  285. }
  286. ]
  287. },
  288. {
  289. name: '报表查询',
  290. path: '/reportCheck',
  291. routes: [
  292. {
  293. path: '/reportCheck/report/:reportCode',
  294. component: './reportCheck/report',
  295. },
  296. ]
  297. },
  298. {
  299. name: '二次分配',
  300. path: '/secondaryDistribute',
  301. routes: [
  302. {
  303. name: '人员信息核对',
  304. path: '/secondaryDistribute/employeeInfoCheck',
  305. component: './secondaryDistribute/employeeInfoCheck',
  306. },
  307. {
  308. name: '非考核项目核定',
  309. path: '/secondaryDistribute/nonCheckProjectApprove',
  310. component: './secondaryDistribute/nonCheckProjectApprove',
  311. },
  312. {
  313. name: '单元考核项目评分',
  314. path: '/secondaryDistribute/unitCheckProjectScore',
  315. component: './secondaryDistribute/unitCheckProjectScore',
  316. },
  317. {
  318. name: '二次分配计算',
  319. path: '/secondaryDistribute/secondaryDitriComputed',
  320. component: './secondaryDistribute/secondaryDitriComputed',
  321. },
  322. {
  323. name: '二次分配审核',
  324. path: '/secondaryDistribute/secondaryDitriCheck',
  325. component: './secondaryDistribute/secondaryDitriComputed',
  326. },
  327. ]
  328. },
  329. {
  330. name: '交叉分析',
  331. path: '/crosstabReport',
  332. routes: [
  333. {
  334. name: '国考指标',
  335. path: '/crosstabReport/nationalIndicator',
  336. routes: [{}]
  337. },
  338. {
  339. name: '经营分析',
  340. path: '/crosstabReport/businessAnalysis',
  341. routes: [
  342. {
  343. name: '大屏-全院分析',
  344. path: '/crosstabReport/businessAnalysis/hospitalAnalysis',
  345. routes: [{}]
  346. },
  347. {
  348. name: '大屏-住院分析',
  349. path: '/crosstabReport/businessAnalysis/inpAnalysis',
  350. routes: [{}]
  351. },
  352. {
  353. name: '大屏-门诊分析',
  354. path: '/crosstabReport/businessAnalysis/opdAnalysis',
  355. routes: [{}]
  356. },
  357. {
  358. name: '收入分析',
  359. path: '/crosstabReport/businessAnalysis/incomeAnalysis',
  360. routes: [{}]
  361. },
  362. ]
  363. },
  364. {
  365. name: '成本分析',
  366. path: '/crosstabReport/costAnalysis',
  367. routes: [{}]
  368. },
  369. {
  370. name: '财务报表分析',
  371. path: '/crosstabReport/financialReportAnalysis',
  372. routes: [{}]
  373. },
  374. ]
  375. },
  376. ],
  377. npmClient: 'yarn',
  378. });