index.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. import {
  2. httpGet,
  3. httpPost
  4. } from "@/utils/request.js"
  5. /**
  6. * 接受活动
  7. * @param {int} RsCalendarId
  8. * @param {int} RsCalendarResearcherId
  9. */
  10. export const acceptActivity = params => {
  11. return httpPost('/roadshow/accept', params)
  12. }
  13. /**
  14. * 拒绝活动
  15. * @param
  16. * RefuseReason RsCalendarId RsCalendarResearcherId
  17. */
  18. export const refuseActivity = params => {
  19. return httpPost('/roadshow/refuse', params)
  20. }
  21. /**
  22. * 撤回活动
  23. * @param
  24. * RsCalendarId RsCalendarResearcherId
  25. */
  26. export const backActivity = params => {
  27. return httpPost('/roadshow/back', params)
  28. }
  29. /**
  30. * 新增活动
  31. * @param
  32. */
  33. export const addActivity = params => {
  34. return httpPost('/roadshow/add', params)
  35. }
  36. /**
  37. * 编辑活动 "RsCalendarId": 0,"RsCalendarResearcherId": 0,
  38. * @param
  39. */
  40. export const editActivity = params => {
  41. return httpPost('/roadshow/edit', params)
  42. }
  43. /**
  44. * 删除活动 "DeleteReason": "string","RsCalendarId": 0,"RsCalendarResearcherId": 0
  45. * @param
  46. */
  47. export const delActivity = params => {
  48. return httpPost('/roadshow/delete', params)
  49. }
  50. /**
  51. * 新增事项
  52. * @param "EndDate": "string",
  53. "EndTime": "string",
  54. "EndWeek": "string",
  55. "MatterContent": "string",
  56. "StartDate": "string",
  57. "StartTime": "string",
  58. "StartWeek": "string"
  59. */
  60. export const addMatter = params => {
  61. return httpPost('/roadshow/matters/add', params)
  62. }
  63. /**
  64. * 删除事项
  65. * @param RsMattersId
  66. */
  67. export const delMatter = params => {
  68. return httpPost('/roadshow/matters/delete', params)
  69. }
  70. /**
  71. * 修改事项
  72. * @param
  73. * "EndDate": "string",
  74. "EndTime": "string",
  75. "EndWeek": "string",
  76. "MatterContent": "string",
  77. "RsMattersId": 0,
  78. "StartDate": "string",
  79. "StartTime": "string",
  80. "StartWeek": "string"
  81. */
  82. export const editMatter = params => {
  83. return httpPost('/roadshow/matters/update', params)
  84. }
  85. /**
  86. * 活动列表 路演、公开会议
  87. * @param
  88. * PageSize CurrentIndex Status
  89. */
  90. export const calendarList = params => {
  91. return httpGet('/roadshow/calendar/list', params)
  92. }
  93. /**
  94. * 活动列表 内部会议 电话会
  95. * @param
  96. * PageSize CurrentIndex CalendarType 1:内部会议,2:报告电话会
  97. */
  98. export const calendarTypeList = params => {
  99. return httpGet('/roadshow/calendar/type/list', params)
  100. }
  101. /**
  102. * 事项列表
  103. * @param
  104. * PageSize CurrentIndex
  105. */
  106. export const matterList = params => {
  107. return httpGet('/roadshow/matters/list', params)
  108. }
  109. /**
  110. * 活动详情
  111. * @param
  112. * RsCalendarId RsCalendarResearcherId
  113. */
  114. export const calendarDetail = params => {
  115. return httpGet('/roadshow/calendar/detail', params)
  116. }
  117. /**
  118. * 研究员列表
  119. */
  120. export const researcherList = params => {
  121. return httpGet('/roadshow/researcher/list', params)
  122. }
  123. /**
  124. * 电话会类别
  125. */
  126. export const telTypes = params => {
  127. return httpGet('/roadshow/activity/type/list', params)
  128. }
  129. /**
  130. * 搜索客户 KeyWord
  131. */
  132. export const companySearch = params => {
  133. return httpGet('/roadshow/company/search', params)
  134. }
  135. /**
  136. * 客户信息 CompanyId
  137. */
  138. export const companyInfo = params => {
  139. return httpGet('/roadshow/company/detail', params)
  140. }
  141. /**
  142. * 研究员日历日程 StartDate EndDate ResearcherId
  143. */
  144. export const researchEvents = params => {
  145. return httpGet('/roadshow/researcher/calendar/detail', params)
  146. }
  147. /**
  148. * 我的日历日程 StartDate EndDate
  149. */
  150. export const myEvents = params => {
  151. return httpGet('/roadshow/my/calendar/detail', params)
  152. }