water.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. import request from '@/utils/request'
  2. // 送水列表
  3. export function waterList(data) {
  4. return request({
  5. url: '/api/certificate/list',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 送水详情
  11. export function waterDetail(data) {
  12. return request({
  13. url: '/api/certificate/detail/'+data.id,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 获取商品二级分类
  19. export function category_layer(data) {
  20. return request({
  21. url: '/api/category_layer',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 获取二级分类下商品
  27. export function category_goods(data) {
  28. return request({
  29. url: '/api/category_goods',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 获取水票
  35. export function certificate(data) {
  36. return request({
  37. url: '/api/user/certificate',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 水票使用记录
  43. export function use_certificate(data) {
  44. return request({
  45. url: '/api/user/use_certificate',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 获取门店可用时间段
  51. export function storeday(data) {
  52. return request({
  53. url: '/api/order/storeday',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 创建押桶订单
  59. export function createPledge(data) {
  60. return request({
  61. url: '/api/pledge/create',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. // 还桶
  67. export function delPledge(data) {
  68. return request({
  69. url: '/api/pledge/refund',
  70. method: 'post',
  71. data
  72. });
  73. }
  74. // 配送订单
  75. export function adminStatistics(data) {
  76. return request({
  77. url: '/api/admin/order/statistics',
  78. method: 'get',
  79. data
  80. });
  81. }
  82. // 获取送货人员
  83. export function adminkf(data) {
  84. return request({
  85. url: '/api/admin/kf',
  86. method: 'get',
  87. data
  88. });
  89. }
  90. // 会员列表
  91. export function storeMember(data) {
  92. return request({
  93. url: '/api/store/member',
  94. method: 'get',
  95. data
  96. });
  97. }
  98. //配送员订单
  99. export function GetAdminOrderList(data) {
  100. return request({
  101. url: '/api/admin/order/list',
  102. method: 'get',
  103. data
  104. });
  105. }
  106. //送货
  107. export function deliveryKeep(data) {
  108. return request({
  109. url: '/api/admin/order/delivery/keep',
  110. method: 'post',
  111. data
  112. });
  113. }
  114. //确认送达
  115. export function take_delivery(data) {
  116. return request({
  117. url: '/api/admin/order/take_delivery/'+data.id,
  118. method: 'get',
  119. data
  120. });
  121. }
  122. //确认支付
  123. export function offlinePay(data) {
  124. return request({
  125. url: '/api/admin/order/offline',
  126. method: 'post',
  127. data
  128. });
  129. }
  130. //店员定位
  131. export function staff_location(data) {
  132. return request({
  133. url: '/api/store/staff_location',
  134. method: 'post',
  135. data
  136. });
  137. }
  138. //空桶管理
  139. export function admin_certificate(data) {
  140. return request({
  141. url: '/api/admin/certificate',
  142. method: 'get',
  143. data
  144. });
  145. }
  146. //回收桶
  147. export function pledge_recovery(data) {
  148. return request({
  149. url: '/api/admin/pledge/recovery',
  150. method: 'post',
  151. data
  152. });
  153. }