store.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import http from '@/http/api.js'
  2. // 列表
  3. export function getList(data) {
  4. return http.request({
  5. url: '/gubersail-app/corpsDesc/list',
  6. method: 'GET',
  7. data
  8. })
  9. }
  10. // 详情
  11. export function getDetail(data) {
  12. return http.request({
  13. url: '/gubersail-app/corpsDesc/detail',
  14. method: 'GET',
  15. data
  16. })
  17. }
  18. // 保存
  19. export function submit(data) {
  20. return http.request({
  21. url: '/gubersail-app/corpsDesc/submit',
  22. method: 'POST',
  23. data
  24. })
  25. }
  26. // 通过/拒绝
  27. export function review(data) {
  28. return http.request({
  29. url: '/gubersail-app/corpsDesc/review',
  30. method: 'POST',
  31. data
  32. })
  33. }
  34. // 门店分类下拉
  35. export function selectType(data) {
  36. return http.request({
  37. url: '/gubersail-app/corpsDesc/selectType',
  38. method: 'GET',
  39. data
  40. })
  41. }
  42. // 门店标签下拉
  43. export function selectLabel(data) {
  44. return http.request({
  45. url: '/gubersail-app/corpsDesc/selectLabel',
  46. method: 'GET',
  47. data
  48. })
  49. }
  50. // 附件删除
  51. export function fileRemove(ids) {
  52. return http.request({
  53. url: '/gubersail-app/corpsDesc/removeFiles',
  54. method: 'POST',
  55. params:{
  56. ids
  57. }
  58. })
  59. }