whole.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import request from '@/utils/request'
  2. // 获取批发时间段
  3. export function getWholeTimeArea(data) {
  4. return request({
  5. url: '/api/whole/index',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取批发商品列表
  11. export function getWholeList(data,id) {
  12. return request({
  13. url: '/api/whole/list/' + id,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 获取批发商品详情
  19. export function getWholeDetai(data,id,time,status,is_new) {
  20. return request({
  21. url: '/api/whole/detail/' + id + '/' + time + '/' + status + '/' + is_new,
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 预约包
  27. export function reservePackage(data) {
  28. return request({
  29. url: '/api/package/reserve',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 我的包
  35. export function getMyPackage(data) {
  36. return request({
  37. url: '/api/package/mylist',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 上传评证
  43. export function upEvaluation(data) {
  44. return request({
  45. url: '/api/package/evaluation',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 获取审核列表
  51. export function getMySellout(data) {
  52. return request({
  53. url: '/api/package/order',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 获取新人礼包
  59. export function getNewList(data) {
  60. return request({
  61. url: '/api/whole/news',
  62. method: 'get',
  63. data
  64. });
  65. }
  66. // 拒绝
  67. export function packageAudit(data) {
  68. return request({
  69. url: '/api/package/audit',
  70. method: 'post',
  71. data
  72. });
  73. }
  74. //获取普通批发商品详情
  75. export function getWholeInfo(data,id) {
  76. return request({
  77. url: '/api/package/info/' + id,
  78. method: 'get',
  79. data
  80. });
  81. }
  82. //提货package/take_delivery/:id
  83. export function delivery(data,id) {
  84. return request({
  85. url: '/api/package/take_delivery/' + id,
  86. method: 'get',
  87. data
  88. });
  89. }