grounding.js
2.79 KB
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
import request from "./request"
const path = "dj.api.smartcarlife."
// 获取上架管理 列表数据
export function getGroundingManageList(data) {
data.method = `${path}merchantGoodsInfo.page`
return request(data)
}
// 获取上架商品详情
export function getMerchantGoodsInfo(data) {
data.method = `${path}merchantGoodsInfo.getById`
return request(data)
}
// 删除
export function delGroundingById(data) {
data.method = `${path}merchantGoodsInfo.deleteById`
return request(data)
}
// 批量审核
export function batchReviewAPI(data) {
data.method = `${path}merchantGoodsInfo.updateBatchWaitAudit`
return request(data, "post")
}
// 上下架
export function updateGoodsStatus(data) {
data.method = `${path}merchantGoodsInfo.updateStatus`
return request(data)
}
// 添加编辑上架信息
export function addOrUpdateAPI(data) {
data.method = `${path}merchantGoodsInfo.insertOrUpdate`
return request(data, "post")
}
// 获取门店开通的场景
export function getSceneTypeListByMerchantId(data) {
data.method = `${path}scenemerchantref.listScene`
return request(data)
}
// 获取类目商品两级选择框数据
export function getAllGroupByCategory(data) {
data.method = `${path}productManager.getAllGroupByCategory`
return request(data)
}
// 获取所有上架商品
export function getAllGoodsList(data) {
data.method = `${path}productManager.search`
return request(data, "post")
}
// 获取所有上架商品 替换新接口
// export function getAllGoodsListPage(data) {
// data.method = `${path}merchantGoodsInfo.upgradeGoods.page`
// return request(data, "post")
// }
export function getAllGoodsListPage(data) {
data.method = `${path}productManager.search`
return request(data, "post")
}
// 批量下架
export function batchUpdateStatus(data) {
data.method = `${path}merchantGoodsInfo.updateBatchOffShelf`
return request(data, "post")
}
// 批量复制
export function batchUpdateBatchCopy(data) {
// data.method = `${path}merchantGoodsInfo.updateBatchCopy`
data.method = `${path}merchantGoodsInfo.addBatchCopy`
return request(data, "post")
}
// 校验上架记录中是否已存在
export function checkGroundingLog(data) {
data.method = `${path}merchantGoodsInfo.existsCount`
return request(data, "post")
}
// 分页查询套餐管理记录
export function merchantPackageGoodsInfoPage(data) {
data.method = `${path}merchantPackageGoodsInfo.page`
return request(data, "post")
}
// return request(data, 'post')
// }
// 批量设置是否校验最低价
export function batchSetValidMinSellPrice(data) {
data.method = `${path}merchantGoodsInfo.updateBatchValidMinSellPrice`
return request(data, "post")
}
// 批量导入
export function groundingImport(data) {
data.method = `${path}merchantGoodsInfo.import`
return request(data, "post", ["file"])
}