import service from '../service'
|
|
export class ProductListApi {
|
getList = (params, showLoading = true) => {
|
return service.get('/awl-product-service/ope/query/prod', { params, showLoading })
|
}
|
|
addInfo = (params) => {
|
return service.post('/awl-product-service/selfprod/release/atom/fixed/defaultspu', params)
|
}
|
|
updateInfo = (params) => {
|
return service.post('/awl-product-service/selfprod/update/atom/fixed/defaultspu', params)
|
}
|
|
/**
|
* 针对单品-->新增商品第一阶段
|
* @param {*} params
|
*/
|
skuAddInfoFirst = (params) => {
|
return service.post('/awl-product-service/selfprod/save/atom/spuBase', params)
|
}
|
|
/**
|
* 针对单品-->发布单个店铺-定价单品,二阶段发布
|
* @param {*} params
|
*/
|
skuAddInfoTwo = (params, showLoading = true) => {
|
return service.post('/awl-product-service/selfprod/release/fixed/sku', params, showLoading)
|
}
|
|
/**
|
* 针对单品-->修改商品第一阶段
|
* @param {*} params
|
*/
|
skuSaveInfoFirst = (params) => {
|
return service.post('/awl-product-service/selfprod/update/atom/spuBase', params)
|
}
|
|
/**
|
* 获取第二阶段详情
|
* @param {*} params
|
*/
|
getSkuMaintenance = (params) => {
|
return service.get('awl-product-service/prod/getSkuMaintenance', { params })
|
}
|
|
/**
|
* 商品详情
|
* @param {*} params
|
*/
|
detailsInfo = (params) => {
|
return service.get('/awl-product-service/prod/getSpuBaseInfo', { params, showLoading: true })
|
}
|
|
/**
|
* 上架
|
* @param {*} params
|
*/
|
puton = (params) => {
|
return service.post('/awl-product-service/selfprod/puton', params)
|
}
|
|
/**
|
* 下架
|
* @param {*} params
|
*/
|
pullOff = (params) => {
|
return service.post('/awl-product-service/selfprod/pullOff', params)
|
}
|
|
/**
|
* 删除商品
|
* @param {*} params
|
*/
|
deleteItem = (params) => {
|
return service.post('/awl-product-service/selfprod/delete/spuByIds', params)
|
}
|
|
/**
|
* 进入用户所在店铺
|
*/
|
saveUserShopRelation = (params) => {
|
return service.post('/awl-market-service/ecMarketShop/saveUserShopRelation', { shopId: params.shopId, showLoading: true })
|
}
|
|
/**
|
*查询用户所在店铺
|
*/
|
findShopByMerchantId = (params) => {
|
return service.get(`/awl-market-service/ecMarketShop/findShopByMerchantId?merchantId=${params}`, { showLoading: true })
|
}
|
|
/**
|
*修改店铺信息
|
*/
|
updateShop = (params, showLoading = true) => {
|
return service.post('/awl-market-service/ecMarketShop/manage/updateShop', params, showLoading)
|
}
|
|
getIntegralProductList = (params, showLoading = true) => {
|
return service.post('/awl-product-service/ecIntegralProduct/getPageEcIntegralProduct', params, showLoading)
|
}
|
|
/**
|
*判断是否有积分商品
|
* @param {*} params
|
* @returns
|
*/
|
isIntegralProdUp = (params) => {
|
return service.post('/awl-product-service/ecIntegralProduct/getBacthEcIntegralProductByIds', params)
|
}
|
|
// 联想查询主数据编码
|
queryStockSpuInfoByAssociate = (params) => {
|
return service.get('/wly-warehouse-service/stock/query/queryStockSpuInfoByAssociate', { params })
|
}
|
|
// 联想查询规格
|
querySpecsPropList = (params) => {
|
return service.get('/awl-product-service/prodSpuProp/querySpecsPropList', { params })
|
}
|
|
// 编辑虚拟组套
|
inventedGroupEdit = (params) => {
|
return service.post('/awl-product-service/selfprod/update/suite/fixed/defaultspu', params)
|
}
|
|
// 非单品---根据商品主编码获取红线价格
|
getRedLinePrice = (params) => {
|
return service.get('/awl-product-service/redLinePrice/getRedLinePrice', { params })
|
}
|
}
|
export default new ProductListApi()
|