.umirc.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-11-21 10:50:25
  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 { REACT_APP_ENV } = process.env;
  11. export default defineConfig({
  12. antd: {
  13. configProvider: {
  14. prefixCls: 'cost-ant',
  15. },
  16. },
  17. qiankun: {
  18. slave: {},
  19. },
  20. mfsu: false,
  21. lessLoader: {
  22. modifyVars: {
  23. '@ant-prefix': 'cost-ant',
  24. '@primary-color': '#3377FF',
  25. '@border-color-base': '#dae2f2'
  26. },
  27. javascriptEnabled: true,
  28. }, //对应修改生成的 antd 样式类名
  29. access: {},
  30. model: {},
  31. initialState: {},
  32. request: {},
  33. layout: {
  34. title: '成本核算系统',
  35. layout: 'side',
  36. menuProps: {
  37. theme: 'light',
  38. }
  39. },
  40. manifest: {
  41. basePath: '/',
  42. },
  43. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/costAccount/',
  44. proxy: {
  45. '/gateway': {
  46. target: 'http://120.27.235.181:5000/gateway',//开发
  47. //target:'http://47.96.149.190:5000/gateway', //演示
  48. changeOrigin: true,
  49. // pathRewrite: { '^/gateway': '' },
  50. }
  51. },
  52. routes: [
  53. {
  54. path: '/',
  55. redirect: '/baseSetting/otherItemSet',
  56. },
  57. {
  58. path: '/home',
  59. component: './Home/index',
  60. },
  61. {
  62. path: '/baseSetting',
  63. name: '基础设置',
  64. routes: [
  65. {
  66. path: '/baseSetting/responsibilityCenterSet',
  67. name: '责任中心设置',
  68. routes: [
  69. {
  70. path: '/baseSetting/responsibilityCenterSet/responsibilityCenter',
  71. name: '责任中心管理',
  72. component: './baseSetting/responsibilityCenterSet/responsibilityCenter/index',
  73. },
  74. {
  75. path: '/baseSetting/responsibilityCenterSet/responsibilityCenterConnect',
  76. name: '责任中心对应',
  77. component: './baseSetting/responsibilityCenterSet/responsibilityCenterConnect/index',
  78. },
  79. ],
  80. },
  81. {
  82. path: '/baseSetting/accountingAccountSet',
  83. name: '会计科目设置',
  84. routes: [
  85. {
  86. path: '/baseSetting/accountingAccountSet/costIncomeProjectMana',
  87. name: '会计收入项目管理',
  88. component: './baseSetting/accountingAccountSet/costIncomeProjectMana/index',
  89. },
  90. {
  91. path: '/baseSetting/accountingAccountSet/accountingSubMana',
  92. name: '会计科目管理',
  93. component: './baseSetting/accountingAccountSet/accountingSubMana/index',
  94. },
  95. {
  96. path: '/baseSetting/accountingAccountSet/accountingSubMap',
  97. name: '会计科目对应',
  98. component: './baseSetting/accountingAccountSet/accountingSubMap/index',
  99. },
  100. ],
  101. },
  102. {
  103. path: '/baseSetting/costAllocationSet',
  104. name: '成本分摊设置',
  105. routes: [
  106. {
  107. path: '/baseSetting/costAllocationSet/allocationLevelSet',
  108. name: '分摊层级设置',
  109. component: './baseSetting/costAllocationSet/allocationLevelSet/index',
  110. },
  111. {
  112. path: '/baseSetting/costAllocationSet/costAllocationParamsSet',
  113. name: '成本分摊参数设置',
  114. component: './baseSetting/costAllocationSet/costAllocationParamsSet/index',
  115. },
  116. {
  117. path: '/baseSetting/costAllocationSet/allocationParamsMap',
  118. name: '分摊参数对应',
  119. component: './baseSetting/costAllocationSet/allocationParamsMap/index',
  120. },
  121. {
  122. path: '/baseSetting/costAllocationSet/revenueImputationSet',
  123. name: '收入归集设置',
  124. component: './baseSetting/costAllocationSet/revenueImputationSet/index',
  125. },
  126. ],
  127. },
  128. {
  129. path: '/baseSetting/otherItemSet',
  130. name: '其它设置',
  131. icon: 'tool',
  132. routes: [
  133. {
  134. path: '/baseSetting/otherItemSet/reportItemSet',
  135. name: '报表项目设置',
  136. component: './baseSetting/otherItemSet/reportItemSet/index',
  137. },
  138. {
  139. path: '/baseSetting/otherItemSet/visitsAndBedDayCostSetting',
  140. name: '诊次/床日成本设置',
  141. component: './baseSetting/otherItemSet/visitsAndBedDayCostSetting/index',
  142. },
  143. {
  144. path: '/baseSetting/otherItemSet/wholeHospCostAndIncomeSet',
  145. name: '全院其他收支设置',
  146. component: './baseSetting/otherItemSet/wholeHospCostAndIncomeSet/index',
  147. },
  148. ],
  149. },
  150. ],
  151. },
  152. {
  153. path: '/monthlyInfoSearch',
  154. name: '月度信息采集',
  155. routes: [
  156. {
  157. path: '/monthlyInfoSearch/empCostDataImport',
  158. name: '人事成本数据导入',
  159. component: './monthlyInfoSearch/empCostDataImport/index',
  160. },
  161. {
  162. path: '/monthlyInfoSearch/patientChargeItemsImport',
  163. name: '患者收费项目导入',
  164. component: './monthlyInfoSearch/patientChargeItemsImport/index',
  165. },
  166. {
  167. path: '/monthlyInfoSearch/patientInfoImport',
  168. name: '患者信息导入',
  169. component: './monthlyInfoSearch/patientInfoImport/index',
  170. },
  171. ],
  172. },
  173. {
  174. path: '/costAccounting',
  175. name: '成本核算',
  176. routes: [
  177. {
  178. path: '/costAccounting/:calcPageKey',
  179. component: './costAccounting/calcPageTemplate/index',
  180. }
  181. ],
  182. },
  183. {
  184. path: '/reportExport',
  185. name: '报表输出',
  186. routes: [
  187. {
  188. path: '/reportExport/:reportType',
  189. routes: [
  190. {
  191. path: '/reportExport/:reportType/:reportCode',
  192. component: './reportExport/report',
  193. },
  194. ]
  195. }
  196. ],
  197. },
  198. {
  199. path: '/operationalAnalysis',
  200. name: '运营分析',
  201. routes: [
  202. {}
  203. ],
  204. },
  205. {
  206. path: '/costLibraryManagement',
  207. name: '成本库管理',
  208. routes: [
  209. {
  210. path: '/costLibraryManagement/basicCostManagement',
  211. name: '基础成本管理',
  212. routes: [
  213. {
  214. path: '/costLibraryManagement/basicCostManagement/personnelClassificationMana',
  215. name: '人事分类管理',
  216. component: './costLibraryManagement/basicCostManagement/personnelClassificationMana/index',
  217. },
  218. {
  219. path: '/costLibraryManagement/basicCostManagement/drugCostManagement',
  220. name: '药品成本管理',
  221. component: './costLibraryManagement/basicCostManagement/drugCostManagement/index',
  222. },
  223. {
  224. path: '/costLibraryManagement/basicCostManagement/materialCostManagement',
  225. name: '材料成本管理',
  226. component: './costLibraryManagement/basicCostManagement/materialCostManagement/index',
  227. },
  228. {
  229. path: '/costLibraryManagement/basicCostManagement/equipmentCostManagement',
  230. name: '设备成本管理',
  231. component: './costLibraryManagement/basicCostManagement/equipmentCostManagement/index',
  232. },
  233. {
  234. path: '/costLibraryManagement/basicCostManagement/spaceCostManagement',
  235. name: '空间成本管理',
  236. component: './costLibraryManagement/basicCostManagement/spaceCostManagement/index',
  237. },
  238. ],
  239. },
  240. {
  241. path: '/costLibraryManagement/projectCostManagement',
  242. name: '项目成本管理',
  243. routes: [
  244. {
  245. path: '/costLibraryManagement/projectCostManagement/chargeItemsMana',
  246. name: '收费项目管理',
  247. component: './costLibraryManagement/projectCostManagement/chargeItemsMana/index',
  248. },
  249. {
  250. path: '/costLibraryManagement/projectCostManagement/standardProjectMana',
  251. name: '标准项目管理',
  252. component: './costLibraryManagement/projectCostManagement/standardProjectMana/index',
  253. },
  254. ],
  255. },
  256. {
  257. path: '/costLibraryManagement/medicalOrderProject',
  258. name: '医嘱项目',
  259. routes: [
  260. {
  261. path: '/costLibraryManagement/medicalOrderProject/medicalOrderProjectMana',
  262. name: '收费项目管理',
  263. component: './costLibraryManagement/medicalOrderProject/medicalOrderProjectMana/index',
  264. },
  265. ],
  266. },
  267. {
  268. path: '/costLibraryManagement/diseaseCostManagement',
  269. name: '病种成本管理',
  270. routes: [
  271. {
  272. path: '/costLibraryManagement/diseaseCostManagement/diseaseMana',
  273. name: '病种管理',
  274. component: './costLibraryManagement/diseaseCostManagement/diseaseMana/index',
  275. },
  276. {
  277. path: '/costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison',
  278. name: '病种诊断对照',
  279. component: './costLibraryManagement/diseaseCostManagement/diseaseDiagnosisComparison/index',
  280. },
  281. ],
  282. },
  283. {
  284. path: '/costLibraryManagement/clinicalPathwayCostManagement',
  285. name: '临床路径成本管理',
  286. routes: [
  287. {}
  288. ],
  289. },
  290. {
  291. path: '/costLibraryManagement/reportMana',
  292. name: '报表管理',
  293. routes: [
  294. {
  295. path: '/costLibraryManagement/reportMana/reportColumnMana',
  296. name: '报表列管理',
  297. component: './costLibraryManagement/reportMana/reportColumnMana/index',
  298. },
  299. {
  300. path: '/costLibraryManagement/reportMana/reportListMana',
  301. name: '报表管理',
  302. component: './costLibraryManagement/reportMana/reportListMana/index',
  303. },
  304. {
  305. path: '/costLibraryManagement/reportMana/reportNavSet',
  306. name: '报表跳转',
  307. component: './costLibraryManagement/reportMana/reportNavSet/index',
  308. },
  309. ],
  310. },
  311. ],
  312. },
  313. ],
  314. npmClient: 'yarn',
  315. });