groupon.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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",null,{
  17. noAuth : true,
  18. });
  19. }
  20. // 获取核销订单商品
  21. export function getOrderGoodsList(orderId) {
  22. return request.post("/v1/order/getOrderGoodsList?orderId="+orderId);
  23. }
  24. // 取货核销
  25. export function getConfirmOrderList(data) {
  26. return request.post("/v1/order/getConfirmOrderList",data);
  27. }
  28. // 取货核销
  29. export function confirmOrder(pickupCode) {
  30. return request.post("/v1/order/confirmOrder?pickupCode="+pickupCode);
  31. }
  32. // 团长相关履约核销
  33. export function commitAppoint(id) {
  34. return request.post("/v1/commitAppoint?appointId="+id);
  35. }
  36. // 团长相关履约单列表
  37. export function appointList(data) {
  38. return request.post("/v1/appointList?type="+data.type,data);
  39. }
  40. // 查询系统消息
  41. export function getNotice(data) {
  42. return request.post("/v1/getNotice",data);
  43. }
  44. // 查询个人消息
  45. export function getMyMessage(data) {
  46. return request.post("/v1/getMyMessage",data);
  47. }
  48. // 查询团购统计数据
  49. export function grouponMngStatis() {
  50. return request.get("/v1/groupon/statis");
  51. }
  52. // 查询团购详情
  53. export function grouponMngDetail(id) {
  54. return request.get("/v1/groupon-mng/detail?groupId="+id);
  55. }
  56. // 查询团购列表
  57. export function grouponMngList(index,data) {
  58. return request.get("/v1/groupon-mng/list?state="+index,data);
  59. }
  60. // 查询最新团购列表
  61. export function latestGroupon(data) {
  62. return request.get("/v1/groupon/latest",data,{
  63. noAuth : true, //noAut 为true时前端不校验登录
  64. });
  65. }
  66. // 查询历史团购数据
  67. export function historyGroupon(data) {
  68. return request.get("/v1/groupon/history",data,{
  69. noAuth : true,
  70. });
  71. }
  72. // 团购详情
  73. export function detailGroupon(data) {
  74. return request.get("/v1/groupon/detail",data,{
  75. noAuth : true,
  76. });
  77. }
  78. // 商品详情接口
  79. export function goodsDetail(data) {
  80. return request.get("/v1/goods/detail",data);
  81. }
  82. // 发布团购
  83. export function publishGroupon(data) {
  84. return request.post("/v1/groupon/publish",data);
  85. }
  86. // 查询团购自提点
  87. export function getGrouponSelfTakeList(data) {
  88. return request.get("/v1/self-take/list",data);
  89. }
  90. // 分页查询所有自提点
  91. export function getAllSelfTake(data) {
  92. return request.get("/v1/selfTake/all", data);
  93. }