shop.service.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. GetExpressInformation (data = {}) {
  35. return this.AjaxService.get({ url:'/supplier/scanLogistics', data, isLoading: false })
  36. }
  37. /* 小程序发货-确认发货 */
  38. ShopAddLogistics (data = {}) {
  39. return this.AjaxService.post({ url:'/supplier/addLogistics', data, isLoading: false })
  40. }
  41. }