store.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 salerList(data) {
  52. return http.request({
  53. url: '/blade-user/salerList',
  54. method: 'GET',
  55. data
  56. })
  57. }
  58. // 仓库
  59. export function storageList(data) {
  60. return http.request({
  61. url: '/gubersail-app/corpsDesc/selectStorage',
  62. method: 'GET',
  63. data
  64. })
  65. }
  66. // 品牌
  67. export function brandDesc(data) {
  68. return http.request({
  69. url: '/gubersail-app/corpsDesc/selectBrand',
  70. method: 'GET',
  71. data
  72. })
  73. }
  74. // 附件删除
  75. export function fileRemove(ids) {
  76. return http.request({
  77. url: '/gubersail-app/corpsDesc/removeFiles',
  78. method: 'POST',
  79. params:{
  80. ids
  81. }
  82. })
  83. }
  84. // 附件删除
  85. export function remove(ids) {
  86. return http.request({
  87. url: '/gubersail-app/corpsDesc/remove',
  88. method: 'POST',
  89. params:{
  90. ids
  91. }
  92. })
  93. }