groupon.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. import request from "@/utils/request.js";
  2. //获取用户售后详情
  3. export function getUserAfterSalesDetail(afterSalesId) {
  4. return request.get("/v1/after-sales/user/detail?afterSalesId=" +afterSalesId,null);
  5. }
  6. //获取用户售后列表
  7. export function getUserAfterSalesList(data) {
  8. return request.post("/v1/after-sales/user/list?state="+data.state,data);
  9. }
  10. //获取售后原因列表
  11. export function reasonList() {
  12. return request.get("/v1/after-sales/reason/list",null);
  13. }
  14. //获取售后原因列表
  15. export function afterSalesSubmit(data) {
  16. return request.post("/v1/after-sales/submit",data);
  17. }
  18. //同意售后
  19. export function agreeAfterSales(data) {
  20. let url = "?afterSalesNo="+data.afterSalesNo
  21. return request.post("/v1/after-sales/agree" + url,data);
  22. }
  23. //绑定物流单号
  24. export function bindLogisticsNo(data) {
  25. let url = "?afterSalesNo="+data.afterSalesNo + "&logisticsNo="+data.logisticsNo
  26. return request.post("/v1/after-sales/bindLogisticsNo" + url,data);
  27. }
  28. // 新增意见反馈
  29. export function saveFilecontent(data) {
  30. return request.post("/v1/filecontent/saveFilecontent",data);
  31. }
  32. // 绑定上级
  33. export function bindParentId(parentId) {
  34. return request.post("/v1/commission/bindParentId?parentId="+parentId,null);
  35. }
  36. // 查询分佣列表
  37. export function commissionList(data) {
  38. return request.post("/v1/commission/list",data);
  39. }
  40. // 查询我的客户列表
  41. export function commissionUserList(data) {
  42. return request.post("/v1/commission/commissionUser/list",data);
  43. }
  44. // 查询我的分佣统计
  45. export function commissionStatistics() {
  46. return request.post("/v1/commission/statistics",null,{
  47. noAuth : true,
  48. });
  49. }
  50. // 获取核销订单商品
  51. export function getOrderGoodsList(orderId) {
  52. return request.post("/v1/order/getOrderGoodsList?orderId="+orderId);
  53. }
  54. // 取货核销
  55. export function getConfirmOrderList(data) {
  56. return request.post("/v1/order/getConfirmOrderList",data);
  57. }
  58. // 取货核销
  59. export function confirmOrder(pickupCode) {
  60. return request.post("/v1/order/confirmOrder?pickupCode="+pickupCode);
  61. }
  62. // 团长相关履约核销
  63. export function commitAppoint(id) {
  64. return request.post("/v1/commitAppoint?appointId="+id);
  65. }
  66. // 团长相关履约单列表
  67. export function appointList(data) {
  68. return request.post("/v1/appointList?type="+data.type,data);
  69. }
  70. // 查询系统消息
  71. export function getNotice(data) {
  72. return request.post("/v1/getNotice",data);
  73. }
  74. // 查询个人消息
  75. export function getMyMessage(data) {
  76. return request.post("/v1/getMyMessage",data);
  77. }
  78. // 查询团购统计数据
  79. export function grouponMngStatis() {
  80. return request.get("/v1/groupon/statis");
  81. }
  82. // 查询团购详情
  83. export function grouponMngDetail(id) {
  84. return request.get("/v1/groupon-mng/detail?groupId="+id);
  85. }
  86. // 查询团购列表
  87. export function grouponMngList(index,data) {
  88. return request.get("/v1/groupon-mng/list?state="+index,data);
  89. }
  90. // 查询最新团购列表
  91. export function latestGroupon(data) {
  92. return request.get("/v1/groupon/latest",data,{
  93. noAuth : true, //noAut 为true时前端不校验登录
  94. });
  95. }
  96. // 查询历史团购数据
  97. export function historyGroupon(data) {
  98. return request.get("/v1/groupon/history",data,{
  99. noAuth : true,
  100. });
  101. }
  102. // 团购详情
  103. export function detailGroupon(data) {
  104. return request.get("/v1/groupon/detail",data,{
  105. noAuth : true,
  106. });
  107. }
  108. // 商品详情接口
  109. export function goodsDetail(data) {
  110. return request.get("/v1/goods/detail",data);
  111. }
  112. // 发布团购
  113. export function publishGroupon(data) {
  114. return request.post("/v1/groupon/publish",data);
  115. }
  116. // 查询团购自提点
  117. export function getGrouponSelfTakeList(data) {
  118. return request.get("/v1/self-take/list",data);
  119. }
  120. // 分页查询所有自提点
  121. export function getAllSelfTake(data) {
  122. return request.get("/v1/selfTake/all", data);
  123. }