index.ts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. import microRequest from '../../utils/micro_request';
  2. const sciPath = import.meta.env.VITE_SCIENTIFIC
  3. export function useProjectApi() {
  4. return {
  5. // 综合项目列表 (包含纵向横向校内等)
  6. getList: (query?: object) => {
  7. return microRequest.postRequest(sciPath, 'SciProject', 'GetList', query);
  8. },
  9. // 纵向项目
  10. getVerticalList: (query?: object) => {
  11. return microRequest.postRequest(sciPath, 'SciProjectVertical', 'GetSciProjectVerticalList', query);
  12. },
  13. // 获取纵向项目详情
  14. getVerticalEntityById: (query?: object) => {
  15. return microRequest.postRequest(sciPath, 'SciProjectVertical', 'GetSciProjectVerticalById', query);
  16. },
  17. // 横向项目
  18. getHorizontalList: (query?: object) => {
  19. return microRequest.postRequest(sciPath, 'SciProjectHorizontal', 'GetList', query);
  20. },
  21. // 获取横向项目详情
  22. getHoriEntityById: (query?: object) => {
  23. return microRequest.postRequest(sciPath, 'SciProjectHorizontal', 'GetEntityById', query);
  24. },
  25. // 校内项目
  26. getSpontaneityList: (query?: object) => {
  27. return microRequest.postRequest(sciPath, 'SciProjectSpontaneity', 'GetSciProjectSpontaneityList', query);
  28. },
  29. // 获取校内项目详情
  30. getSpontaneityEntityById: (query?: object) => {
  31. return microRequest.postRequest(sciPath, 'SciProjectSpontaneity', 'GetSciProjectSpontaneityById', query);
  32. },
  33. // 安评项目
  34. getSafetyList: (query?: object) => {
  35. return microRequest.postRequest(sciPath, 'SciProjectSafety', 'GetList', query);
  36. },
  37. // 安评项目详情
  38. getSafetyEntityById: (query?: object) => {
  39. return microRequest.postRequest(sciPath, 'SciProjectSafety', 'GetEntityById', query);
  40. },
  41. // 项目变更信息列表
  42. getProjectDetailsList: (query?: object) => {
  43. return microRequest.postRequest(sciPath, 'SciProjectChange', 'GetProjectDetailsList', query);
  44. },
  45. // 获取项目变更详情
  46. getProjectChangeDetail: (query?: object) => {
  47. return microRequest.postRequest(sciPath, 'SciProjectChange', 'GetDetail', query);
  48. },
  49. // 中检任务列表
  50. getTaskList: (query?: object) => {
  51. return microRequest.postRequest(sciPath, 'SciProjectInspection', 'GetTaskList', query);
  52. },
  53. // 中检任务详情
  54. getTaskDetail: (query?: object) => {
  55. return microRequest.postRequest(sciPath, 'SciProjectInspection', 'GetTaskDetail', query);
  56. },
  57. // 横向项目中检详情
  58. getHorizontalInspTaskDetail: (query?: object) => {
  59. return microRequest.postRequest(sciPath, 'SciProjectInspection', 'GetHorizontalInspTaskDetail', query);
  60. },
  61. // 获取文件列表
  62. getFileList: (query?: object) => {
  63. return microRequest.postRequest(sciPath, 'SciProjectFileConfigure', 'GetFileList', query);
  64. },
  65. // 科研成果-学术论文
  66. getPaperByProject: (query?: object) => {
  67. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetPaperByProjectId', query);
  68. },
  69. // 科研成果-学术著作
  70. getWorkByProject: (query?: object) => {
  71. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetWorkByProjectId', query);
  72. },
  73. // 科研成果-学术专利
  74. getPatentByProject: (query?: object) => {
  75. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetPatentByProjectId', query);
  76. },
  77. // 科研成果-奖项荣誉
  78. getAwardsByProject: (query?: object) => {
  79. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetAwardsByProjectId', query);
  80. },
  81. // 结题任务列表
  82. getConclusionTaskList: (query?: object) => {
  83. return microRequest.postRequest(sciPath, 'SciProjectConclusion', 'GetTaskList', query);
  84. },
  85. // 经费入账记录列表
  86. getRecordList: (query?: object) => {
  87. return microRequest.postRequest(sciPath, 'SciFundAllot', 'GetList', query);
  88. },
  89. // 经费外拨列表
  90. getOutBoundList: (query?: object) => {
  91. return microRequest.postRequest(sciPath, 'SciFundExternalAllot', 'GetList', query);
  92. },
  93. // 经费支出列表
  94. getExpenseList: (query?: object) => {
  95. return microRequest.postRequest(sciPath, 'SciFundExpense', 'GetProjectList', query);
  96. },
  97. // 经费统计
  98. getFundsStatistics: (query?: object) => {
  99. return microRequest.postRequest(sciPath, 'SciFundAllot', 'GetFundsStatistics', query);
  100. },
  101. // 伦理信息列表
  102. getEthicalReviewList: (query?: object) => {
  103. return microRequest.postRequest(sciPath, 'SciEthicalReview', 'GetList', query);
  104. },
  105. // 学术不端校验
  106. checkUserViolationStatus: (query?: object) => {
  107. return microRequest.postRequest(sciPath, 'SciAcademicMisconduct', 'CheckUserViolationStatus', query);
  108. }
  109. }
  110. }