fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
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()