shop.service.js 2.7 KB

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