groupon.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import request from "@/utils/request.js";
  2. // 查询分佣列表
  3. export function saveFilecontent(data) {
  4. return request.post("/v1/filecontent/saveFilecontent",data);
  5. }
  6. // 查询分佣列表
  7. export function commissionList(data) {
  8. return request.post("/v1/commission/list",data);
  9. }
  10. // 查询我的客户列表
  11. export function commissionUserList(data) {
  12. return request.post("/v1/commission/commissionUser/list",data);
  13. }
  14. // 查询我的分佣统计
  15. export function commissionStatistics() {
  16. return request.post("/v1/commission/statistics");
  17. }
  18. // 获取核销订单商品
  19. export function getOrderGoodsList(orderId) {
  20. return request.post("/v1/order/getOrderGoodsList?orderId="+orderId);
  21. }
  22. // 取货核销
  23. export function getConfirmOrderList(data) {
  24. return request.post("/v1/order/getConfirmOrderList",data);
  25. }
  26. // 取货核销
  27. export function confirmOrder(pickupCode) {
  28. return request.post("/v1/order/confirmOrder?pickupCode="+pickupCode);
  29. }
  30. // 团长相关履约核销
  31. export function commitAppoint(id) {
  32. return request.post("/v1/commitAppoint?appointId="+id);
  33. }
  34. // 团长相关履约单列表
  35. export function appointList(data) {
  36. return request.post("/v1/appointList?type="+data.type,data);
  37. }
  38. // 查询系统消息
  39. export function getNotice(data) {
  40. return request.post("/v1/getNotice",data);
  41. }
  42. // 查询个人消息
  43. export function getMyMessage(data) {
  44. return request.post("/v1/getMyMessage",data);
  45. }
  46. // 查询团购统计数据
  47. export function grouponMngStatis() {
  48. return request.get("/v1/groupon/statis");
  49. }
  50. // 查询团购详情
  51. export function grouponMngDetail(id) {
  52. return request.get("/v1/groupon-mng/detail?groupId="+id);
  53. }
  54. // 查询团购列表
  55. export function grouponMngList(index,data) {
  56. return request.get("/v1/groupon-mng/list?state="+index,data);
  57. }
  58. // 查询最新团购列表
  59. export function latestGroupon(data) {
  60. return request.get("/v1/groupon/latest",data);
  61. }
  62. // 查询历史团购数据
  63. export function historyGroupon(data) {
  64. return request.get("/v1/groupon/history",data);
  65. }
  66. // 团购详情
  67. export function detailGroupon(data) {
  68. return request.get("/v1/groupon/detail",data);
  69. }
  70. // 商品详情接口
  71. export function goodsDetail(data) {
  72. return request.get("/v1/goods/detail",data);
  73. }
  74. // 发布团购
  75. export function publishGroupon(data) {
  76. return request.post("/v1/groupon/publish",data);
  77. }
  78. // 查询团购自提点
  79. export function getGrouponSelfTakeList(data) {
  80. return request.get("/v1/self-take/list",data);
  81. }
  82. // 分页查询所有自提点
  83. export function getAllSelfTake(data) {
  84. return request.get("/v1/selfTake/all", data);
  85. }