index.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. getProjectDetailsList: (query?: object) => {
  35. return microRequest.postRequest(sciPath, 'SciProjectChange', 'GetProjectDetailsList', query);
  36. },
  37. // 获取项目变更详情
  38. getProjectChangeDetail: (query?: object) => {
  39. return microRequest.postRequest(sciPath, 'SciProjectChange', 'GetDetail', query);
  40. },
  41. // 中检任务列表
  42. getTaskList: (query?: object) => {
  43. return microRequest.postRequest(sciPath, 'SciProjectInspection', 'GetTaskList', query);
  44. },
  45. // 中检任务详情
  46. getTaskDetail: (query?: object) => {
  47. return microRequest.postRequest(sciPath, 'SciProjectInspection', 'GetTaskDetail', query);
  48. },
  49. // 横向项目中检详情
  50. getHorizontalInspTaskDetail: (query?: object) => {
  51. return microRequest.postRequest(sciPath, 'SciProjectInspection', 'GetHorizontalInspTaskDetail', query);
  52. },
  53. // 获取文件列表
  54. getFileList: (query?: object) => {
  55. return microRequest.postRequest(sciPath, 'SciProjectFileConfigure', 'GetFileList', query);
  56. },
  57. // 科研成果-学术论文
  58. getPaperByProject: (query?: object) => {
  59. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetPaperByProjectId', query);
  60. },
  61. // 科研成果-学术著作
  62. getWorkByProject: (query?: object) => {
  63. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetWorkByProjectId', query);
  64. },
  65. // 科研成果-学术专利
  66. getPatentByProject: (query?: object) => {
  67. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetPatentByProjectId', query);
  68. },
  69. // 科研成果-奖项荣誉
  70. getAwardsByProject: (query?: object) => {
  71. return microRequest.postRequest(sciPath, 'SciAchieve', 'GetAwardsByProjectId', query);
  72. },
  73. // 结题任务列表
  74. getConclusionTaskList: (query?: object) => {
  75. return microRequest.postRequest(sciPath, 'SciProjectConclusion', 'GetTaskList', query);
  76. },
  77. // 经费入账记录列表
  78. getRecordList: (query?: object) => {
  79. return microRequest.postRequest(sciPath, 'SciFundAllot', 'GetList', query);
  80. },
  81. // 经费外拨列表
  82. getOutBoundList: (query?: object) => {
  83. return microRequest.postRequest(sciPath, 'SciFundExternalAllot', 'GetList', query);
  84. },
  85. // 经费支出列表
  86. getExpenseList: (query?: object) => {
  87. return microRequest.postRequest(sciPath, 'SciFundExpense', 'GetProjectList', query);
  88. },
  89. // 经费统计
  90. getFundsStatistics: (query?: object) => {
  91. return microRequest.postRequest(sciPath, 'SciFundAllot', 'GetFundsStatistics', query);
  92. },
  93. // 伦理信息列表
  94. getEthicalReviewList: (query?: object) => {
  95. return microRequest.postRequest(sciPath, 'SciEthicalReview', 'GetList', query);
  96. }
  97. }
  98. }