巴青农资商城

merchantEntryApply.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/utils/request'
  2. // 查询入驻申请列表
  3. export function listMerchantEntryApply(query) {
  4. return request({
  5. url: '/agri/merchantEntryApply/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询待审核数量
  11. export function getPendingCount() {
  12. return request({
  13. url: '/agri/merchantEntryApply/pendingCount',
  14. method: 'get'
  15. })
  16. }
  17. // 查询入驻申请详情
  18. export function getMerchantEntryApply(applyId) {
  19. return request({
  20. url: '/agri/merchantEntryApply/' + applyId,
  21. method: 'get'
  22. })
  23. }
  24. // 审核通过
  25. export function approveMerchantEntryApply(applyId, data) {
  26. return request({
  27. url: '/agri/merchantEntryApply/approve/' + applyId,
  28. method: 'put',
  29. data: data
  30. })
  31. }
  32. // 审核驳回
  33. export function rejectMerchantEntryApply(data) {
  34. return request({
  35. url: '/agri/merchantEntryApply/reject',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 完成公示(公示期满后建档商户/店铺)
  41. export function completeMerchantEntryPublicity(applyId) {
  42. return request({
  43. url: '/agri/merchantEntryApply/completePublicity/' + applyId,
  44. method: 'put'
  45. })
  46. }