.umirc.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2024-07-17 15:38:48
  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. import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
  11. const { REACT_APP_ENV } = process.env;
  12. const path = require('path');
  13. export default defineConfig({
  14. antd: {
  15. configProvider: {
  16. prefixCls: 'cost-ant',
  17. },
  18. },
  19. // alias:{
  20. // 'ace-builds': path.resolve(__dirname, './node_modules/ace-builds/src-noconflict'),
  21. // },
  22. qiankun: {
  23. slave: {},
  24. },
  25. mfsu: false,
  26. lessLoader: {
  27. modifyVars: {
  28. '@ant-prefix': 'cost-ant',
  29. '@primary-color': '#3377FF',
  30. '@border-color-base': '#dae2f2'
  31. },
  32. javascriptEnabled: true,
  33. }, //对应修改生成的 antd 样式类名
  34. chainWebpack(config, { webpack }) {
  35. config.plugin('monaco-editor').use(MonacoWebpackPlugin, [
  36. {
  37. // 指定需要加载的语言和特性
  38. languages: ['sql', 'javascript', 'typescript']
  39. }
  40. ]);
  41. },
  42. access: {},
  43. model: {},
  44. initialState: {},
  45. request: {},
  46. layout: {
  47. title: '成本核算系统',
  48. layout: 'side',
  49. menuProps: {
  50. theme: 'light',
  51. }
  52. },
  53. manifest: {
  54. basePath: '/',
  55. },
  56. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/costAccount/',
  57. proxy: {
  58. '/gateway': {
  59. target: 'http://120.27.235.181:5000/gateway',//开发
  60. //target:'http://47.96.149.190:5000/gateway', //演示
  61. changeOrigin: true,
  62. // pathRewrite: { '^/gateway': '' },
  63. }
  64. },
  65. routes: [
  66. {
  67. path: '/',
  68. redirect: '/baseSetting/otherItemSet',
  69. },
  70. {
  71. path: '/noAccess',
  72. component: './noAccess',
  73. },
  74. {
  75. path: '/home',
  76. component: './Home/index',
  77. },
  78. {
  79. path: '/baseSetting',
  80. name: '基础设置',
  81. routes: [
  82. {
  83. path: '/baseSetting/responsibilityCenterSet',
  84. name: '责任中心设置',
  85. routes: [
  86. {
  87. path: '/baseSetting/responsibilityCenterSet/responsibilityCenter',
  88. name: '责任中心管理',
  89. component: './baseSetting/responsibilityCenterSet/responsibilityCenter/index',
  90. wrappers: ['@/authWrapper'],
  91. },
  92. {
  93. path: '/baseSetting/responsibilityCenterSet/responsibilityCenterConnect',
  94. name: '责任中心对应',
  95. component: './baseSetting/responsibilityCenterSet/responsibilityCenterConnect/index',
  96. wrappers: ['@/authWrapper'],
  97. },
  98. ],
  99. },
  100. {
  101. path: '/baseSetting/accountingAccountSet',
  102. name: '会计科目设置',
  103. routes: [
  104. {
  105. path: '/baseSetting/accountingAccountSet/costIncomeProjectMana',
  106. name: '会计收入项目管理',
  107. component: './baseSetting/accountingAccountSet/costIncomeProjectMana/index',
  108. wrappers: ['@/authWrapper'],
  109. },
  110. {
  111. path: '/baseSetting/accountingAccountSet/accountingSubMana',
  112. name: '会计科目管理',
  113. component: './baseSetting/accountingAccountSet/accountingSubMana/index',
  114. wrappers: ['@/authWrapper'],
  115. },
  116. {
  117. path: '/baseSetting/accountingAccountSet/accountingSubMap',
  118. name: '会计科目对应',
  119. component: './baseSetting/accountingAccountSet/accountingSubMap/index',
  120. wrappers: ['@/authWrapper'],
  121. },
  122. {
  123. path: '/baseSetting/accountingAccountSet/chargeItemMap',
  124. name: '收费项目对应',
  125. component: './baseSetting/accountingAccountSet/chargeItemMap/index',
  126. wrappers: ['@/authWrapper'],
  127. },
  128. ],
  129. },
  130. {
  131. path: '/baseSetting/costAllocationSet',
  132. name: '成本分摊设置',
  133. routes: [
  134. {
  135. path: '/baseSetting/costAllocationSet/allocationLevelSet',
  136. name: '分摊层级设置',
  137. component: './baseSetting/costAllocationSet/allocationLevelSet/index',
  138. wrappers: ['@/authWrapper'],
  139. },
  140. {
  141. path: '/baseSetting/costAllocationSet/idleCostSetting',
  142. name: '闲置成本设置',
  143. component: './baseSetting/costAllocationSet/idleCostSetting/index',
  144. wrappers: ['@/authWrapper'],
  145. },
  146. {
  147. path: '/baseSetting/costAllocationSet/costAllocationParamsSet',
  148. name: '成本分摊参数设置',
  149. component: './baseSetting/costAllocationSet/costAllocationParamsSet/index',
  150. wrappers: ['@/authWrapper'],
  151. },
  152. {
  153. path: '/baseSetting/costAllocationSet/costAllocationParamsDeal',
  154. name: '成本分摊参数处理',
  155. component: './baseSetting/costAllocationSet/costAllocationParamsDeal/index',
  156. wrappers: ['@/authWrapper'],
  157. },
  158. {
  159. path: '/baseSetting/costAllocationSet/allocationParamsMap',
  160. name: '分摊参数对应',
  161. component: './baseSetting/costAllocationSet/allocationParamsMap/index',
  162. wrappers: ['@/authWrapper'],
  163. },
  164. {
  165. path: '/baseSetting/costAllocationSet/revenueImputationSet',
  166. name: '收入归集设置',
  167. component: './baseSetting/costAllocationSet/revenueImputationSet/index',
  168. wrappers: ['@/authWrapper'],
  169. },
  170. ],
  171. },
  172. {
  173. path: '/baseSetting/otherItemSet',
  174. name: '其它设置',
  175. icon: 'tool',
  176. routes: [
  177. {
  178. path: '/baseSetting/otherItemSet/diySqlMana',
  179. name: '自定义SQl管理',
  180. component: './baseSetting/otherItemSet/diySqlMana/index',
  181. wrappers: ['@/authWrapper'],
  182. },
  183. {
  184. path: '/baseSetting/otherItemSet/reportItemSet',
  185. name: '报表项目设置',
  186. component: './baseSetting/otherItemSet/reportItemSet/index',
  187. wrappers: ['@/authWrapper'],
  188. },
  189. {
  190. path: '/baseSetting/otherItemSet/departmentCostCalc',
  191. name: '科室损益计算',
  192. component: './baseSetting/otherItemSet/departmentCostCalc/index',
  193. wrappers: ['@/authWrapper'],
  194. },
  195. {
  196. path: '/baseSetting/otherItemSet/visitsAndBedDayCostSetting',
  197. name: '诊次/床日成本设置',
  198. component: './baseSetting/otherItemSet/visitsAndBedDayCostSetting/index',
  199. wrappers: ['@/authWrapper'],
  200. },
  201. {
  202. path: '/baseSetting/otherItemSet/wholeHospCostAndIncomeSet',
  203. name: '全院其他收支设置',
  204. component: './baseSetting/otherItemSet/wholeHospCostAndIncomeSet/index',
  205. wrappers: ['@/authWrapper'],
  206. },
  207. ],
  208. },
  209. ],
  210. },
  211. {
  212. path:'/monthlyInfoCollection',
  213. name: '月度信息采集2',
  214. component:'./monthlyInfoCollection/index',
  215. wrappers: ['@/authWrapper'],
  216. },
  217. {
  218. path:'/specialDataImport',
  219. name: '填报数据导入',
  220. component:'./specialDataImport/index',
  221. wrappers: ['@/authWrapper'],
  222. },
  223. {
  224. path:'/incomeCollectionAction',
  225. name: '收入归集',
  226. component:'./incomeCollectionAction/index',
  227. wrappers: ['@/authWrapper'],
  228. },
  229. {
  230. path: '/monthlyInfoSearch',
  231. name: '月度信息采集',
  232. routes: [
  233. {
  234. path: '/monthlyInfoSearch/wholeHospIncomeAndCost',
  235. name: '全院其他收支',
  236. component: './monthlyInfoSearch/wholeHospIncomeAndCost/index',
  237. wrappers: ['@/authWrapper'],
  238. },
  239. {
  240. path: '/monthlyInfoSearch/empCostDataImport',
  241. name: '人事成本数据导入',
  242. component: './monthlyInfoSearch/empCostDataImport/index',
  243. wrappers: ['@/authWrapper'],
  244. },
  245. {
  246. path: '/monthlyInfoSearch/patientChargeItemsImport',
  247. name: '患者收费项目导入',
  248. component: './monthlyInfoSearch/patientChargeItemsImport/index',
  249. wrappers: ['@/authWrapper'],
  250. },
  251. {
  252. path: '/monthlyInfoSearch/patientInfoImport',
  253. name: '患者信息导入',
  254. component: './monthlyInfoSearch/patientInfoImport/index',
  255. wrappers: ['@/authWrapper'],
  256. },
  257. {
  258. path: '/monthlyInfoSearch/incomeCostDataImport',
  259. name: '收入成本数据导入',
  260. component: './monthlyInfoSearch/incomeCostDataImport/index',
  261. wrappers: ['@/authWrapper'],
  262. },
  263. ],
  264. },
  265. {
  266. path: '/costAccounting',
  267. name: '成本核算',
  268. routes: [
  269. {
  270. path: '/costAccounting/:calcPageKey',
  271. component: './costAccounting/calcPageTemplate/index',
  272. wrappers: ['@/authWrapper'],
  273. }
  274. ],
  275. },
  276. {
  277. path: '/reportExport',
  278. name: '报表输出',
  279. routes: [
  280. {
  281. path: '/reportExport/:reportType',
  282. routes: [
  283. {
  284. path: '/reportExport/:reportType/:reportCode',
  285. component: './reportExport/report',
  286. wrappers: ['@/authWrapper'],
  287. },
  288. ]
  289. }
  290. ],
  291. },
  292. {
  293. path: '/operationalAnalysis',
  294. name: '运营分析',
  295. routes: [
  296. {}
  297. ],
  298. },
  299. {
  300. path: '/costLibraryManagement',
  301. name: '成本库管理',
  302. routes: [
  303. {
  304. path: '/costLibraryManagement/basicCostManagement',
  305. name: '基础成本管理',
  306. routes: [
  307. {
  308. path: '/costLibraryManagement/basicCostManagement/personnelClassificationMana',
  309. name: '人事分类管理',
  310. component: './costLibraryManagement/basicCostManagement/personnelClassificationMana/index',
  311. wrappers: ['@/authWrapper'],
  312. },
  313. {
  314. path: '/costLibraryManagement/basicCostManagement/drugCostManagement',
  315. name: '药品成本管理',
  316. component: './costLibraryManagement/basicCostManagement/drugCostManagement/index',
  317. wrappers: ['@/authWrapper'],
  318. },
  319. {
  320. path: '/costLibraryManagement/basicCostManagement/materialCostManagement',
  321. name: '材料成本管理',
  322. component: './costLibraryManagement/basicCostManagement/materialCostManagement/index',
  323. wrappers: ['@/authWrapper'],
  324. },
  325. {
  326. path: '/costLibraryManagement/basicCostManagement/equipmentCostManagement',
  327. name: '设备成本管理',
  328. component: './costLibraryManagement/basicCostManagement/equipmentCostManagement/index',
  329. wrappers: ['@/authWrapper'],
  330. },
  331. {
  332. path: '/costLibraryManagement/basicCostManagement/spaceCostManagement',
  333. name: '空间成本管理',
  334. component: './costLibraryManagement/basicCostManagement/spaceCostManagement/index',
  335. wrappers: ['@/authWrapper'],
  336. },
  337. ],
  338. },
  339. {
  340. path: '/costLibraryManagement/projectCostManagement',
  341. name: '项目成本管理',
  342. routes: [
  343. {
  344. path: '/costLibraryManagement/projectCostManagement/chargeItemsMana',
  345. name: '收费项目管理',
  346. component: './costLibraryManagement/projectCostManagement/chargeItemsMana/index',
  347. wrappers: ['@/authWrapper'],
  348. },
  349. {
  350. path: '/costLibraryManagement/projectCostManagement/standardProjectMana',
  351. name: '标准项目管理',
  352. component: './costLibraryManagement/projectCostManagement/standardProjectMana/index',
  353. wrappers: ['@/authWrapper'],
  354. },
  355. {
  356. path: '/costLibraryManagement/projectCostManagement/projectShareParamsSet',
  357. name: '项目分摊参数设置',
  358. component: './costLibraryManagement/projectCostManagement/projectShareParamsSet/index',
  359. wrappers: ['@/authWrapper'],
  360. },
  361. {
  362. path: '/costLibraryManagement/projectCostManagement/projectCostShareSet',
  363. name: '项目成本分摊设置',
  364. component: './costLibraryManagement/projectCostManagement/projectCostShareSet/index',
  365. wrappers: ['@/authWrapper'],
  366. },
  367. ],
  368. },
  369. {
  370. path: '/costLibraryManagement/medicalOrderProject',
  371. name: '医嘱项目',
  372. routes: [
  373. {
  374. path: '/costLibraryManagement/medicalOrderProject/medicalOrderProjectMana',
  375. name: '收费项目管理',
  376. component: './costLibraryManagement/medicalOrderProject/medicalOrderProjectMana/index',
  377. wrappers: ['@/authWrapper'],
  378. },
  379. ],
  380. },
  381. {
  382. path: '/costLibraryManagement/diseaseCostManagement',
  383. name: '病种成本管理',
  384. routes: [
  385. {
  386. path: '/costLibraryManagement/diseaseCostManagement/diseaseMana',
  387. name: '病种管理',
  388. component: './costLibraryManagement/diseaseCostManagement/diseaseMana/index',
  389. wrappers: ['@/authWrapper'],
  390. },
  391. {
  392. path: '/costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison',
  393. name: '病种诊断对照',
  394. component: './costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison/index',
  395. wrappers: ['@/authWrapper'],
  396. },
  397. ],
  398. },
  399. {
  400. path: '/costLibraryManagement/clinicalPathwayCostManagement',
  401. name: '临床路径成本管理',
  402. routes: [
  403. {}
  404. ],
  405. },
  406. {
  407. path: '/costLibraryManagement/reportMana',
  408. name: '报表管理',
  409. routes: [
  410. {
  411. path: '/costLibraryManagement/reportMana/reportColumnMana',
  412. name: '报表列管理',
  413. component: './costLibraryManagement/reportMana/reportColumnMana/index',
  414. wrappers: ['@/authWrapper'],
  415. },
  416. {
  417. path: '/costLibraryManagement/reportMana/reportListMana',
  418. name: '报表管理',
  419. wrappers: ['@/authWrapper'],
  420. component: './costLibraryManagement/reportMana/reportListMana/index',
  421. },
  422. {
  423. path: '/costLibraryManagement/reportMana/reportNavSet',
  424. name: '报表跳转',
  425. wrappers: ['@/authWrapper'],
  426. component: './costLibraryManagement/reportMana/reportNavSet/index',
  427. },
  428. ],
  429. },
  430. ],
  431. },
  432. ],
  433. npmClient: 'yarn',
  434. });