shop.service.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * 这是与购物有关的业务逻辑的服务
  3. */
  4. export default class ShopService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'ShopService'
  8. }
  9. /* 小程序发货-权限控制 */
  10. MiniShipments (data = {}) {
  11. return this.AjaxService.post({ url:'/supplier/miniShipments', data, isLoading: true })
  12. }
  13. /* 小程序发货-查询供应商子订单详情 */
  14. GetShopOrderDetails (data = {}) {
  15. return this.AjaxService.get({ url:'/supplier/shopOrderDetails', data, isLoading: true })
  16. }
  17. /* 小程序发货-绑供应商运营人员 */
  18. BindShopOperator (data = {}) {
  19. return this.AjaxService.post({ url:'/supplier/shopBindingWx', data, isLoading: true })
  20. }
  21. /* 小程序发货-供应商订单详情获取订单分享码 */
  22. ShopOrderShareCode (data = {}) {
  23. return this.AjaxService.post({ url:'/supplier/shopShareShipments', data, isLoading: false })
  24. }
  25. /* 小程序发货-供应商订单发货商品查询 */
  26. ShopOrderShipmentsInfo (data = {}) {
  27. return this.AjaxService.get({ url:'/supplier/shipmentsInfo', data, isLoading: true })
  28. }
  29. /* 小程序发货-物流公司查询 */
  30. GetLogisticsCompany (data = {}) {
  31. return this.AjaxService.get({ url:'/supplier/logisticsCompany', data, isLoading: true })
  32. }
  33. /* 小程序发货-查看发货记录物流信息 */
  34. GetLogisticsInfo (data = {}) {
  35. return this.AjaxService.get({ url:'/supplier/logisticsInfo', data, isLoading: true })
  36. }
  37. /* 小程序发货-查看发货记录-添加物流 */
  38. ShopAddLogisticsInfo (data = {}) {
  39. return this.AjaxService.post({ url:'/supplier/addLogisticsInfo', data, isLoading: true })
  40. }
  41. /* 小程序发货-扫码获取物流公司信息 */
  42. GetExpressInformation (data = {}) {
  43. return this.AjaxService.get({ url:'/supplier/scanLogistics', data, isLoading: false })
  44. }
  45. /* 小程序发货-确认发货 */
  46. ShopAddLogistics (data = {}) {
  47. return this.AjaxService.post({ url:'/supplier/addLogistics', data, isLoading: true })
  48. }
  49. /* 小程序发货-发货记录 */
  50. ShopShipmentsRecord (data = {}) {
  51. return this.AjaxService.get({ url:'/supplier/shipmentsRecord', data, isLoading: true })
  52. }
  53. /* 小程序发货-撤销发货 */
  54. ShopCancelShipment (data = {}) {
  55. return this.AjaxService.post({ url:'/supplier/cancelShipment', data, isLoading: true })
  56. }
  57. }