shopConfig.js
3.89 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
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
135
136
137
138
139
140
141
142
143
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 分页查询店面配置列表
export function shopSettingList(data) {
data.method = `${path}serviceMerchant.shopSettingList`
return request(data)
}
// 店铺设置保存
export function shopSetting(data) {
data.method = `${path}serviceMerchant.shopSetting`
return request(data, RequestMethods.POST)
}
// 获取店铺设置
export function getShopSetting(data) {
data.method = `${path}serviceMerchant.getShopSetting`
return request(data)
}
// 根据商户号年份查询产值
export function listByMerchantIdAndYear(data) {
data.method = `${path}workbench.listByMerchantIdAndYear`
return request(data)
}
// 查询4s店关联各场景园区店
export function listYqRef(data) {
data.method = `${path}scenemerchantref.listYqRef`
return request(data)
}
// 查询4s店关联各场景园区店账户中心配置
export function listYqRefConfig(data) {
data.method = `${path}scenemerchantref.listYqRefConfig`
return request(data)
}
// 查询员工分页列表
export function findStaffByPage(data) {
data.method = `merchants.api.staff.findStaffByPageForDJ`
return request(data)
}
// 根据商户名称和渠道类型查询商户列表
export function findMerchantListByPage(data) {
data.method = `merchants.api.open.findMerchantListByPage`
return request(data)
}
// 查询字典数据列表
export function findDictData(data) {
data.method = `merchants.api.menu.findDictData`
return request(data)
}
// 更新员工标签
export function updateStaffBatch(data) {
data.method = `merchants.api.staff.updateStaffBatch`
return request(data)
}
// 查询业务负责人
export function findSellerMerchantStaffList(data) {
data.method = `${path}workbench.findSellerMerchantStaffList`
return request(data)
}
// 获取门店标签树
export function queryLabelGroupTree(data) {
data.method = `${path}serviceMerchant.queryLabelGroupTree`
return request(data)
}
// 门店标签详情
export function shopLabelDetail(data) {
data.method = `${path}serviceMerchant.shopLabelDetail`
return request(data)
}
// 修改门店标签
export function updateShopLabel(data) {
data.method = `${path}serviceMerchant.updateShopLabel`
return request(data)
}
// 店面配置主营品牌下拉列表
export function getBrandList(data) {
data.method = `${path}common.car.brand.list`
return request(data)
}
// 根据4s店或者园区店查询员工信息
export function getResidentStaffList(data) {
data.method = `${path}merchant.staff.list`
return request(data, "post")
}
// 查询门店录单设置
export function orderFieldSettingList(data) {
data.method = `${path}order.field.setting.list`
return request(data, "post")
}
// 更新门店录单设置
export function orderFieldSettingUpdate(data) {
data.method = `${path}order.field.setting.update`
return request(data, "post")
}
//员工注册码
export function employeeRegister(data) {
data.method = `${path}staff.register`
return request(data, RequestMethods.POST)
}
// 设置积分归属
export function setIntegralBelongApi(data) {
data.method = `${path}merchant.score.conf.update`
return request(data, "post")
}
// 获取积分归属
export function getIntegralBelongApi(data) {
data.method = `${path}merchant.score.conf.get`
return request(data, "post")
}
// 更新门店轻改录单配置
export function updateLightModifyOrderConfig(data) {
data.method = `${path}serviceMerchant.updateTrafficExpireFlag`
return request(data, "post")
}
//获取店铺阳光激励积分标记退款开关状态
export function getShopMerchantConfig(data) {
data.method = `dj.api.smartcarlife.shopMerchantConfig.get`
return request(data)
}
//设置店铺阳光激励积分标记退款开关
export function switchPointSign(data) {
data.method = `dj.api.smartcarlife.shopMerchantConfig.pointsRefundAvailable.switch`
return request(data)
}