.umirc.ts 14 KB

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