.umirc.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2024-08-23 11:20:10
  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: '/home',
  69. },
  70. { path: '*', component: '@/pages/404' },
  71. {
  72. path: '/noAccess',
  73. component: './noAccess',
  74. },
  75. {
  76. path: '/home',
  77. component: './Home/index',
  78. },
  79. {
  80. path: '/baseSetting',
  81. name: '基础设置',
  82. routes: [
  83. {
  84. path: '/baseSetting/responsibilityCenterSet',
  85. name: '责任中心设置',
  86. routes: [
  87. {
  88. path: '/baseSetting/responsibilityCenterSet/responsibilityCenter',
  89. name: '责任中心管理',
  90. component: './baseSetting/responsibilityCenterSet/responsibilityCenter/index',
  91. },
  92. {
  93. path: '/baseSetting/responsibilityCenterSet/responsibilityCenterConnect',
  94. name: '责任中心对应',
  95. component: './baseSetting/responsibilityCenterSet/responsibilityCenterConnect/index',
  96. },
  97. ],
  98. },
  99. {
  100. path: '/baseSetting/accountingAccountSet',
  101. name: '会计科目设置',
  102. routes: [
  103. {
  104. path: '/baseSetting/accountingAccountSet/costIncomeProjectMana',
  105. name: '会计收入项目管理',
  106. component: './baseSetting/accountingAccountSet/costIncomeProjectMana/index',
  107. },
  108. {
  109. path: '/baseSetting/accountingAccountSet/accountingSubMana',
  110. name: '会计科目管理',
  111. component: './baseSetting/accountingAccountSet/accountingSubMana/index',
  112. },
  113. {
  114. path: '/baseSetting/accountingAccountSet/accountingSubMap',
  115. name: '会计科目对应',
  116. component: './baseSetting/accountingAccountSet/accountingSubMap/index',
  117. },
  118. {
  119. path: '/baseSetting/accountingAccountSet/chargeItemMap',
  120. name: '收费项目对应',
  121. component: './baseSetting/accountingAccountSet/chargeItemMap/index',
  122. },
  123. ],
  124. },
  125. {
  126. path: '/baseSetting/costAllocationSet',
  127. name: '成本分摊设置',
  128. routes: [
  129. {
  130. path: '/baseSetting/costAllocationSet/allocationLevelSet',
  131. name: '分摊层级设置',
  132. component: './baseSetting/costAllocationSet/allocationLevelSet/index',
  133. },
  134. {
  135. path: '/baseSetting/costAllocationSet/idleCostSetting',
  136. name: '闲置成本设置',
  137. component: './baseSetting/costAllocationSet/idleCostSetting/index',
  138. },
  139. {
  140. path: '/baseSetting/costAllocationSet/costAllocationParamsSet',
  141. name: '成本分摊参数设置',
  142. component: './baseSetting/costAllocationSet/costAllocationParamsSet/index',
  143. },
  144. {
  145. path: '/baseSetting/costAllocationSet/costAllocationParamsDeal',
  146. name: '成本分摊参数处理',
  147. component: './baseSetting/costAllocationSet/costAllocationParamsDeal/index',
  148. },
  149. {
  150. path: '/baseSetting/costAllocationSet/allocationParamsMap',
  151. name: '分摊参数对应',
  152. component: './baseSetting/costAllocationSet/allocationParamsMap/index',
  153. },
  154. {
  155. path: '/baseSetting/costAllocationSet/revenueImputationSet',
  156. name: '收入归集设置',
  157. component: './baseSetting/costAllocationSet/revenueImputationSet/index',
  158. },
  159. ],
  160. },
  161. {
  162. path: '/baseSetting/otherItemSet',
  163. name: '其它设置',
  164. icon: 'tool',
  165. routes: [
  166. {
  167. path: '/baseSetting/otherItemSet/diySqlMana',
  168. name: '自定义SQl管理',
  169. component: './baseSetting/otherItemSet/diySqlMana/index',
  170. },
  171. {
  172. path: '/baseSetting/otherItemSet/reportItemSet',
  173. name: '报表项目设置',
  174. component: './baseSetting/otherItemSet/reportItemSet/index',
  175. },
  176. {
  177. path: '/baseSetting/otherItemSet/departmentCostCalc',
  178. name: '科室损益计算',
  179. component: './baseSetting/otherItemSet/departmentCostCalc/index',
  180. },
  181. {
  182. path: '/baseSetting/otherItemSet/visitsAndBedDayCostSetting',
  183. name: '诊次/床日成本设置',
  184. component: './baseSetting/otherItemSet/visitsAndBedDayCostSetting/index',
  185. },
  186. {
  187. path: '/baseSetting/otherItemSet/wholeHospCostAndIncomeSet',
  188. name: '全院其他收支设置',
  189. component: './baseSetting/otherItemSet/wholeHospCostAndIncomeSet/index',
  190. },
  191. ],
  192. },
  193. ],
  194. },
  195. {
  196. path:'/monthlyInfoCollection',
  197. name: '月度信息采集2',
  198. component:'./monthlyInfoCollection/index',
  199. },
  200. {
  201. path:'/specialDataImport',
  202. name: '填报数据导入',
  203. component:'./specialDataImport/index',
  204. },
  205. {
  206. path:'/incomeCollectionAction',
  207. name: '收入归集',
  208. component:'./incomeCollectionAction/index',
  209. },
  210. {
  211. path: '/monthlyInfoSearch',
  212. name: '月度信息采集',
  213. routes: [
  214. {
  215. path: '/monthlyInfoSearch/wholeHospIncomeAndCost',
  216. name: '全院其他收支',
  217. component: './monthlyInfoSearch/wholeHospIncomeAndCost/index',
  218. },
  219. {
  220. path: '/monthlyInfoSearch/empCostDataImport',
  221. name: '人事成本数据导入',
  222. component: './monthlyInfoSearch/empCostDataImport/index',
  223. },
  224. {
  225. path: '/monthlyInfoSearch/patientChargeItemsImport',
  226. name: '患者收费项目导入',
  227. component: './monthlyInfoSearch/patientChargeItemsImport/index',
  228. },
  229. {
  230. path: '/monthlyInfoSearch/patientInfoImport',
  231. name: '患者信息导入',
  232. component: './monthlyInfoSearch/patientInfoImport/index',
  233. },
  234. {
  235. path: '/monthlyInfoSearch/incomeCostDataImport',
  236. name: '收入成本数据导入',
  237. component: './monthlyInfoSearch/incomeCostDataImport/index',
  238. },
  239. ],
  240. },
  241. {
  242. path: '/costAccounting',
  243. name: '成本核算',
  244. routes: [
  245. {
  246. path: '/costAccounting/:calcPageKey',
  247. component: './costAccounting/calcPageTemplate/index',
  248. }
  249. ],
  250. },
  251. {
  252. path: '/reportExport',
  253. name: '报表输出',
  254. routes: [
  255. {
  256. path: '/reportExport/:reportType',
  257. routes: [
  258. {
  259. path: '/reportExport/:reportType/:reportCode',
  260. component: './reportExport/report',
  261. },
  262. ]
  263. }
  264. ],
  265. },
  266. {
  267. path: '/operationalAnalysis',
  268. name: '运营分析',
  269. routes: [
  270. {}
  271. ],
  272. },
  273. {
  274. path: '/costLibraryManagement',
  275. name: '成本库管理',
  276. routes: [
  277. {
  278. path: '/costLibraryManagement/basicCostManagement',
  279. name: '基础成本管理',
  280. routes: [
  281. {
  282. path: '/costLibraryManagement/basicCostManagement/personnelClassificationMana',
  283. name: '人事分类管理',
  284. component: './costLibraryManagement/basicCostManagement/personnelClassificationMana/index',
  285. },
  286. {
  287. path: '/costLibraryManagement/basicCostManagement/drugCostManagement',
  288. name: '药品成本管理',
  289. component: './costLibraryManagement/basicCostManagement/drugCostManagement/index',
  290. },
  291. {
  292. path: '/costLibraryManagement/basicCostManagement/materialCostManagement',
  293. name: '材料成本管理',
  294. component: './costLibraryManagement/basicCostManagement/materialCostManagement/index',
  295. },
  296. {
  297. path: '/costLibraryManagement/basicCostManagement/equipmentCostManagement',
  298. name: '设备成本管理',
  299. component: './costLibraryManagement/basicCostManagement/equipmentCostManagement/index',
  300. },
  301. {
  302. path: '/costLibraryManagement/basicCostManagement/spaceCostManagement',
  303. name: '空间成本管理',
  304. component: './costLibraryManagement/basicCostManagement/spaceCostManagement/index',
  305. },
  306. ],
  307. },
  308. {
  309. path: '/costLibraryManagement/projectCostManagement',
  310. name: '项目成本管理',
  311. routes: [
  312. {
  313. path: '/costLibraryManagement/projectCostManagement/chargeItemsMana',
  314. name: '收费项目管理',
  315. component: './costLibraryManagement/projectCostManagement/chargeItemsMana/index',
  316. },
  317. {
  318. path: '/costLibraryManagement/projectCostManagement/standardProjectMana',
  319. name: '标准项目管理',
  320. component: './costLibraryManagement/projectCostManagement/standardProjectMana/index',
  321. },
  322. {
  323. path: '/costLibraryManagement/projectCostManagement/projectShareParamsSet',
  324. name: '项目分摊参数设置',
  325. component: './costLibraryManagement/projectCostManagement/projectShareParamsSet/index',
  326. },
  327. {
  328. path: '/costLibraryManagement/projectCostManagement/projectCostShareSet',
  329. name: '项目成本分摊设置',
  330. component: './costLibraryManagement/projectCostManagement/projectCostShareSet/index',
  331. },
  332. ],
  333. },
  334. {
  335. path: '/costLibraryManagement/medicalOrderProject',
  336. name: '医嘱项目',
  337. routes: [
  338. {
  339. path: '/costLibraryManagement/medicalOrderProject/medicalOrderProjectMana',
  340. name: '收费项目管理',
  341. component: './costLibraryManagement/medicalOrderProject/medicalOrderProjectMana/index',
  342. },
  343. ],
  344. },
  345. {
  346. path: '/costLibraryManagement/diseaseCostManagement',
  347. name: '病种成本管理',
  348. routes: [
  349. {
  350. path: '/costLibraryManagement/diseaseCostManagement/diseaseMana',
  351. name: '病种管理',
  352. component: './costLibraryManagement/diseaseCostManagement/diseaseMana/index',
  353. },
  354. {
  355. path: '/costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison',
  356. name: '病种诊断对照',
  357. component: './costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison/index',
  358. },
  359. ],
  360. },
  361. {
  362. path: '/costLibraryManagement/clinicalPathwayCostManagement',
  363. name: '临床路径成本管理',
  364. routes: [
  365. {}
  366. ],
  367. },
  368. {
  369. path: '/costLibraryManagement/reportMana',
  370. name: '报表管理',
  371. routes: [
  372. {
  373. path: '/costLibraryManagement/reportMana/reportColumnMana',
  374. name: '报表列管理',
  375. component: './costLibraryManagement/reportMana/reportColumnMana/index',
  376. },
  377. {
  378. path: '/costLibraryManagement/reportMana/reportListMana',
  379. name: '报表管理',
  380. component: './costLibraryManagement/reportMana/reportListMana/index',
  381. },
  382. {
  383. path: '/costLibraryManagement/reportMana/reportNavSet',
  384. name: '报表跳转',
  385. component: './costLibraryManagement/reportMana/reportNavSet/index',
  386. },
  387. ],
  388. },
  389. ],
  390. },
  391. ],
  392. npmClient: 'yarn',
  393. });