|
@@ -92,89 +92,160 @@ export default class ShopService {
|
|
|
/* 发货-添加商品资质初始化查询商品 */
|
|
|
GetSupplierLogisticsRecord (data = {}) {
|
|
|
return this.AjaxService.get({
|
|
|
- url:'/supplier/logisticsRecord',
|
|
|
+ url:'/order/shop/ship/logistics/record',
|
|
|
data,
|
|
|
- isLoading: false
|
|
|
+ isLoading: false ,
|
|
|
+ isHost:true
|
|
|
})
|
|
|
}
|
|
|
/* 发货-商品资质回显 */
|
|
|
GetSupplierQualificationData (data = {}) {
|
|
|
return this.AjaxService.get({
|
|
|
- url:'/supplier/qualification/data',
|
|
|
+ url:'/order/shop/qualification/list',
|
|
|
data,
|
|
|
- isLoading: false
|
|
|
+ isLoading: false ,
|
|
|
+ isHost:true
|
|
|
})
|
|
|
}
|
|
|
/* 发货-保存商品资质 */
|
|
|
GetSupplierQualificationUpdata (data = {}) {
|
|
|
return this.AjaxService.post({
|
|
|
- url:'/supplier/qualification',
|
|
|
+ url:'/order/shop/qualification/save',
|
|
|
data,
|
|
|
- isLoading: false
|
|
|
+ isLoading: false ,
|
|
|
+ isHost:true
|
|
|
})
|
|
|
}
|
|
|
/* 小程序供应商我的订单 */
|
|
|
GetSupplierMyOrderList (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/myOrderList', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/list',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-权限控制 */
|
|
|
MiniShipments (data = {}) {
|
|
|
- return this.AjaxService.post({ url:'/supplier/miniShipments', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/share/code/check',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-查询供应商子订单详情 */
|
|
|
GetShopOrderDetails (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/shopOrderDetails', data, isLoading: true })
|
|
|
- }
|
|
|
- /* 小程序发货-绑供应商运营人员 */
|
|
|
- BindShopOperator (data = {}) {
|
|
|
- return this.AjaxService.post({ url:'/supplier/shopBindingWx', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/detail',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-供应商订单详情获取订单分享码 */
|
|
|
ShopOrderShareCode (data = {}) {
|
|
|
- return this.AjaxService.post({ url:'/supplier/shopShareShipments', data, isLoading: false })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/share/code',
|
|
|
+ data,
|
|
|
+ isLoading: false ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-供应商订单发货商品查询 */
|
|
|
ShopOrderShipmentsInfo (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/shipmentsInfo', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/ship/info',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-物流公司查询 */
|
|
|
GetLogisticsCompany (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/logisticsCompany', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/ship/company',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-查看发货记录物流信息 */
|
|
|
GetLogisticsInfo (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/logisticsInfo', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/ship/logistics/info',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-查看发货记录-添加物流 */
|
|
|
ShopAddLogisticsInfo (data = {}) {
|
|
|
- return this.AjaxService.post({ url:'/supplier/addLogisticsInfo', data, isLoading: true })
|
|
|
+ return this.AjaxService.post({
|
|
|
+ url:'/order/shop/ship/logistics/add',
|
|
|
+ data,
|
|
|
+ isLoading: true,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-扫码获取物流公司信息 */
|
|
|
GetExpressInformation (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/scanLogistics', data, isLoading: false })
|
|
|
+ return this.AjaxService.post({
|
|
|
+ url:'/order/shop/ship/logistics/scan',
|
|
|
+ data,
|
|
|
+ isLoading: false,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-确认发货 */
|
|
|
ShopAddLogistics (data = {}) {
|
|
|
- return this.AjaxService.post({ url:'/supplier/addLogistics', data, isLoading: true })
|
|
|
+ return this.AjaxService.post({
|
|
|
+ url:'/order/shop/ship/delivery',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-发货记录 */
|
|
|
ShopShipmentsRecord (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/shipmentsRecord', data, isLoading: true })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/order/shop/ship/delivery/record',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 小程序发货-撤销发货 */
|
|
|
ShopCancelShipment (data = {}) {
|
|
|
- return this.AjaxService.post({ url:'/supplier/cancelShipment', data, isLoading: true })
|
|
|
+ return this.AjaxService.post({
|
|
|
+ url:'/order/shop/ship/delivery/cancel',
|
|
|
+ data,
|
|
|
+ isLoading: true ,
|
|
|
+ isHost:true
|
|
|
+ })
|
|
|
}
|
|
|
/* 一级分类 */
|
|
|
GetPrimaryClassification (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/primaryClassification', data, isLoading: false })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/supplier/primaryClassification',
|
|
|
+ data,
|
|
|
+ isLoading: false ,
|
|
|
+ })
|
|
|
}
|
|
|
/* 二级级分类 */
|
|
|
GetPrimarySecondaryClassification (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/secondaryClassification', data, isLoading: false })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/supplier/secondaryClassification',
|
|
|
+ data,
|
|
|
+ isLoading: false ,
|
|
|
+ })
|
|
|
}
|
|
|
/* 三级分类 */
|
|
|
GetPrimaryThreeLevelClassification (data = {}) {
|
|
|
- return this.AjaxService.get({ url:'/supplier/threeLevelClassification', data, isLoading: false })
|
|
|
+ return this.AjaxService.get({
|
|
|
+ url:'/supplier/threeLevelClassification',
|
|
|
+ data,
|
|
|
+ isLoading: false ,
|
|
|
+ })
|
|
|
}
|
|
|
}
|