.umirc.ts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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-07 17:34:18
  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. path: '/costAccounting/:calcPageKey',
  107. component: './costAccounting/calcPageTemplate/index',
  108. }
  109. ],
  110. },
  111. {
  112. path: '/reportExport',
  113. name: '报表输出',
  114. routes: [
  115. {
  116. path: '/reportExport/report/:reportCode',
  117. component: './reportCheck/report',
  118. },
  119. ],
  120. },
  121. {
  122. path: '/operationalAnalysis',
  123. name: '运营分析',
  124. routes: [
  125. {}
  126. ],
  127. },
  128. {
  129. path: '/costLibraryManagement',
  130. name: '成本库管理',
  131. routes: [
  132. {
  133. path: '/costLibraryManagement/basicCostManagement',
  134. name: '基础成本管理',
  135. routes: [
  136. {
  137. path: '/costLibraryManagement/basicCostManagement/personnelClassificationMana',
  138. name: '人事分类管理',
  139. component: './costLibraryManagement/basicCostManagement/personnelClassificationMana/index',
  140. },
  141. {
  142. path: '/costLibraryManagement/basicCostManagement/drugCostManagement',
  143. name: '药品成本管理',
  144. component: './costLibraryManagement/basicCostManagement/drugCostManagement/index',
  145. },
  146. {
  147. path: '/costLibraryManagement/basicCostManagement/materialCostManagement',
  148. name: '材料成本管理',
  149. component: './costLibraryManagement/basicCostManagement/materialCostManagement/index',
  150. },
  151. {
  152. path: '/costLibraryManagement/basicCostManagement/equipmentCostManagement',
  153. name: '设备成本管理',
  154. component: './costLibraryManagement/basicCostManagement/equipmentCostManagement/index',
  155. },
  156. ],
  157. },
  158. {
  159. path: '/costLibraryManagement/projectCostManagement',
  160. name: '项目成本管理',
  161. routes: [
  162. {}
  163. ],
  164. },
  165. {
  166. path: '/costLibraryManagement/diseaseCostManagement',
  167. name: '病种成本管理',
  168. routes: [
  169. {}
  170. ],
  171. },
  172. {
  173. path: '/costLibraryManagement/clinicalPathwayCostManagement',
  174. name: '临床路径成本管理',
  175. routes: [
  176. {}
  177. ],
  178. },
  179. {
  180. path: '/costLibraryManagement/reportMana',
  181. name: '报表管理',
  182. routes: [
  183. {
  184. path: '/costLibraryManagement/reportMana/reportColumnMana',
  185. name: '报表列管理',
  186. component: './costLibraryManagement/reportMana/reportColumnMana/index',
  187. },
  188. {
  189. path: '/costLibraryManagement/reportMana/reportListMana',
  190. name: '报表管理',
  191. component: './costLibraryManagement/reportMana/reportListMana/index',
  192. },
  193. {
  194. path: '/costLibraryManagement/reportMana/reportNavSet',
  195. name: '报表跳转',
  196. component: './costLibraryManagement/reportMana/reportNavSet/index',
  197. },
  198. ],
  199. },
  200. ],
  201. },
  202. ],
  203. npmClient: 'yarn',
  204. });