meetingApply.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const getApplyField = (meetingId) => {
  4. return new request({
  5. url: './meeting/meetingBasicInfos/getApplyField',
  6. method: 'get',
  7. params: {
  8. meetingId: meetingId
  9. }
  10. });
  11. }
  12. export const getMeetingApplys = (params) => {
  13. return new request({
  14. url: './meeting/meetingApplys/',
  15. method: 'get',
  16. params: params
  17. });
  18. }
  19. export const get = (id) => {
  20. return new request({
  21. url: './meeting/meetingApplys/' + id,
  22. method: 'get',
  23. });
  24. }
  25. export function saveOrUpdate(meetingApply, approver, taskComment, token, activityIds) {
  26. return new request({
  27. url: './meeting/meetingApplys',
  28. method: (meetingApply.id ? 'put' : 'post'),
  29. headers: {
  30. token
  31. },
  32. data: {
  33. meetingApply,
  34. approver,
  35. taskComment,
  36. activityIds
  37. }
  38. });
  39. }
  40. export function saveActivityOrUpdate(formLabelAlign, approver, taskComment, token,activityIds) {
  41. return new request({
  42. url: './meeting/meetingApplys/saveActivityOrUpdate',
  43. method: 'put',
  44. headers: {
  45. token
  46. },
  47. data: {
  48. formLabelAlign,
  49. approver,
  50. taskComment,
  51. activityIds
  52. }
  53. });
  54. }
  55. export function del(id) {
  56. return new request({
  57. url: './meeting/meetingApplys/' + id,
  58. method: 'delete',
  59. });
  60. }
  61. export const getApproverId = (invitationCode) => {
  62.     return new request({
  63.         url: './meeting/meetingApplys/getApproverId',
  64.        method: 'get',
  65. params: {
  66. invitationCode
  67. }
  68.     });
  69. }
  70. export const getApplyHistory = (params) => {
  71.     return new request({
  72.       url: './meeting/meetingApplys/meetingApplyHistory',
  73.       method: 'get',
  74. params: params
  75.     });
  76. }
  77. export function getMeetingInfo() {
  78. return new request({
  79. url: './meeting/meetingBasicInfos/',
  80. method: 'get'
  81. });
  82. }
  83. //补录行程信息
  84. export function updateItineraryInfo(meetingApply, token) {
  85. return new request({
  86. url: './meeting/meetingApplys/updateItineraryInfo',
  87. method:'put',
  88. headers: {
  89. token
  90. },
  91. data: {
  92. meetingApply
  93. }
  94. });
  95. }
  96. //网络会议报名
  97. export function registerOnline(meetingApplyOnline, token, activityIds) {
  98. return new request({
  99. url: './meeting/meetingApplyOnlines',
  100. method: (meetingApplyOnline.id ? 'put' : 'post'),
  101. headers: {
  102. token
  103. },
  104. data: {
  105. meetingApplyOnline,
  106. activityIds
  107. }
  108. });
  109. }
  110. export const getMeetingApproveHistory = (businessKey) => {
  111. return new request({
  112. url: '/workflow/approval/history?processKey=MEETING_APPROVE&businessKey=' + businessKey,
  113. method: 'get'
  114. });
  115. }
  116. export const addSpeakMaterial = (speakMaterial, token) => {
  117. return new request({
  118. url: './meeting/meetingMaterials/addSpeakMaterial',
  119. method: 'post',
  120. headers: {
  121. token
  122. },
  123. data: {
  124. data: JSON.stringify(speakMaterial)
  125. }
  126. });
  127. }
  128. export const getOnlineApplyHistory = (params) => {
  129. return new request({
  130. url: './meeting/meetingApplyOnlines',
  131. method: 'get',
  132. params: params
  133. });
  134. }
  135. export const getActivityInfo = (meetingApplyId) => {
  136. return new request({
  137. url: './meeting/meetingApplys/getActivityInfo',
  138. method: 'get',
  139. params: {
  140. meetingApplyId
  141. }
  142. });
  143. }
  144. export function updateActivityInfo(meetingApplyId, travelPointIds, token) {
  145. return new request({
  146. url: './meeting/meetingApplys/updateActivityInfo',
  147. method: 'post',
  148. headers: {
  149. token
  150. },
  151. params: {
  152. meetingApplyId,
  153. travelPointIds
  154. }
  155. });
  156. }
  157. export const getMeetingApplyActivityInfos = (meetingId) => {
  158. return new request({
  159. url: './meeting/meetingApplyOnlines/getActivityInfo',
  160. method: 'get',
  161. params: {
  162. meetingId
  163. }
  164. });
  165. }
  166. export const getApplyHistoryInfosByLoginAccount = (applyWay) => {
  167. return new request({
  168. url: './meeting/meetingApplys/getApplyHistoryInfosByLoginAccount',
  169. method: 'get',
  170. params: {
  171. "applyWay":applyWay
  172. }
  173. });
  174. }
  175. export const getOlApplyHistoryInfosByLoginAccount = (applyWay) => {
  176. return new request({
  177. url: './meeting/meetingApplyOnlines/getOlApplyHistoryInfosByLoginAccount',
  178. method: 'get',
  179. params: {
  180. "applyWay":applyWay
  181. }
  182. });
  183. }
  184. export const getActivityApplyByIdForWeb = (applyWay) => {
  185. return new request({
  186. url: './meeting/meetingApplys/getActivityApplyByIdForWeb',
  187. method: 'get',
  188. params: applyWay
  189. });
  190. }
  191. export const getActivityApplyById = (applyWay) => {
  192. return new request({
  193. url: './meeting/meetingApplys/getActivityApplyById',
  194. method: 'get',
  195. params: applyWay
  196. });
  197. }
  198. export const getMyActivityByIdForWeb = (applyWay) => {
  199. return new request({
  200. url: './meeting/meetingApplys/getMyActivityByIdForWeb',
  201. method: 'get',
  202. params: applyWay
  203. });
  204. }
  205. export const getActivityByIdForWeb = (applyWay) => {
  206. return new request({
  207. url: './project/committeeActivityInfos/getActivityByIdForWeb',
  208. method: 'get',
  209. params: applyWay,
  210. });
  211. }