.umirc.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-10-26 13:19: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. 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. icon: 'tool',
  65. routes: [
  66. {
  67. path: '/baseSetting/otherItemSet',
  68. name: '其它设置',
  69. icon: 'tool',
  70. routes: [
  71. {
  72. path: '/baseSetting/otherItemSet/reportItemSet',
  73. name: '报表项目设置',
  74. component: './baseSetting/otherItemSet/reportItemSet/index',
  75. },
  76. ],
  77. },
  78. ],
  79. },
  80. {
  81. path: '/monthlyInfoSearch',
  82. name: '月度信息采集',
  83. routes: [
  84. {
  85. path: '/monthlyInfoSearch/empCostDataImport',
  86. name: '人事成本数据导入',
  87. component: './monthlyInfoSearch/empCostDataImport/index',
  88. },
  89. {
  90. path: '/monthlyInfoSearch/patientChargeItemsImport',
  91. name: '患者收费项目导入',
  92. component: './monthlyInfoSearch/patientChargeItemsImport/index',
  93. },
  94. {
  95. path: '/monthlyInfoSearch/patientInfoImport',
  96. name: '患者信息导入',
  97. component: './monthlyInfoSearch/patientInfoImport/index',
  98. },
  99. ],
  100. },
  101. {
  102. path: '/costAccounting',
  103. name: '成本核算',
  104. routes: [
  105. ],
  106. },
  107. {
  108. path: '/reportExport',
  109. name: '报表输出',
  110. routes: [
  111. {
  112. path: '/reportExport/costAnalysisReport',
  113. name: '成本分析报表',
  114. routes: [
  115. ],
  116. },
  117. ],
  118. },
  119. {
  120. path: '/operationalAnalysis',
  121. name: '运营分析',
  122. routes: [
  123. ],
  124. },
  125. {
  126. path: '/costLibraryManagement',
  127. name: '成本库管理',
  128. routes: [
  129. {
  130. path: '/costLibraryManagement/basicCostManagement',
  131. name: '基础成本管理',
  132. routes: [
  133. ],
  134. },
  135. {
  136. path: '/costLibraryManagement/projectCostManagement',
  137. name: '项目成本管理',
  138. routes: [
  139. ],
  140. },
  141. {
  142. path: '/costLibraryManagement/diseaseCostManagement',
  143. name: '病种成本管理',
  144. routes: [
  145. ],
  146. },
  147. {
  148. path: '/costLibraryManagement/clinicalPathwayCostManagement',
  149. name: '临床路径成本管理',
  150. routes: [
  151. ],
  152. },
  153. ],
  154. },
  155. {
  156. path: '/reportMana',
  157. name: '报表管理',
  158. routes: [
  159. ],
  160. },
  161. ],
  162. npmClient: 'yarn',
  163. });