.umirc.ts 13 KB

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