boutique.js
11.7 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
/*
* @Description:
* @Author: huyue
* @Date: 2024-09-05 14:05:25
* @LastEditors: huyue
* @LastEditTime: 2024-09-13 11:08:55
*/
import http from '../request/http'
module.exports = {
/**获取APP更新 */
findSoureList(data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: 'boutique',
...data
})
},
/** 查询可发放礼券-分页查询商户券列表 */
findCouponList(data) {
return http.post({
method: 'dj.api.smartcarlife.merchantCoupon.pageForZYApp',
projectName: 'boutique',
onlyUsable: true,
currentPage: 1,
pageSize: 99999,
...data
})
},
/**查询用户是否领券 */
findCustomerReceivedStatus(data) {
return http.post({
method: 'dj.api.smartcarlife.customerCoupon.pageForZYApp',
projectName: 'boutique',
...data,
currentPage: 1,
pageSize: 99999,
statusList: [0, 1]
})
},
/**历史成交客户 */
historyDealOrderPage(data) {
return http.post({
method: 'dj.api.smartcarlife.order.historyDealOrder.page',
projectName: 'boutique',
...data
})
},
// 历史订单列表
getQuotationList(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
...data
})
},
// 历史订单列表
getOrderList(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.for.pad.page',
projectName: 'boutique',
...data
})
},
// 新历史订单列表
getOrderListPage(data) {
return http.post({
method: 'dj.pad.api.history.order.page',
projectName: 'pad',
...data
})
},
// 查询延保类类目列表
getGoodsCategoryList(data) {
return http.post({
method: 'dj.pad.api.goodsCategoryConfiguration.extendedWarranty',
projectName: 'pad',
...data
})
},
/**客户邀约记录 */
customerInviteRecordPage(data) {
return http.post({
method: 'dj.api.smartcarlife.customerInviteRecord.page',
projectName: 'boutique',
...data
})
},
/**轻改素材配置 */
getBoutiqueMaterialConfig(data) {
return http.post({
method: 'dj.api.boutique.recepiton.material.merchant.detail',
projectName: 'boutique',
...data
})
},
/** 案例视频 */
getCaseList(data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.material.case.find',
projectName: 'boutique',
...data
})
},
/** 获取类目 */
getCategory(data) {
return http.post({
method: 'dj.api.boutique.recepiton.material.merchant.category',
projectName: 'boutique',
...data
})
},
/**
* 客户邀约记录-邀约类型数目统计
*/
getInviteRecordCount(data) {
return http.post({
method: 'dj.api.smartcarlife.customerInviteRecord.inviteStatus.count',
projectName: 'boutique',
...data
})
},
// 案例视频中心埋点
caseVideoCenter(data) {
return http.post({
method: 'dj.api.boutique.reception.material.point.insert',
projectName: 'boutique',
...data
})
},
// 权益提单相关接口
// 查询店铺配置
getShopMerchantPointConfig(data) {
return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique',
...data
})
},
/** 根据订单状态统计订单数*/
statByStatus(data) {
return http.post({
method: 'dj.api.smartcarlife.order.statByStatus',
projectName: 'boutique',
...data
})
},
// 根据4s店商户好获取二级流浪方列表
getSubShopMerchantList(data) {
return http.post({
method: 'dj.api.smartcarlife.diversionMerchant.getDiversionMerchantRef',
projectName: 'boutique',
...data
})
},
/**搜索订单(含套餐) */
getWorkPackageGoodsList(data) {
return http.post({
method: 'dj.api.smartcarlife.order.search.containPackageGoods',
projectName: 'boutique',
...data
})
},
// 获取商户订单设置
getMerchantRecordingSettings(data) {
return http.post({
// method: 'dj.api.smartcarlife.recordingSettings.getMerchantRecordingSettings',
method: 'dj.api.smartcarlife.order.field.lightChange.setting.list',
projectName: 'boutique',
...data
})
},
// 获取园区店配置
getYqStoreConfig(data) {
return http.post({
method: 'dj.api.smarcarlife.yqMerchantConfig.detail',
projectName: 'boutique',
...data
})
},
/**补录订单数 */
waitinputorder(data) {
return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.count',
projectName: 'boutique',
...{ ...data, inputStatus: 0 }
})
},
/**交易流水号 */
transactionSerialNumber(data) {
return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.page',
projectName: 'boutique',
...data
})
},
// 根据商户号获取可选商品列表
getSelectOrderGoodsList(data) {
return http.post({
method: 'dj.api.smartcarlife.selectOrderGoods.list',
projectName: 'boutique',
...data
})
},
/**战败商品列表- upradeFlag(N为基础,Y为升级) */
getOrderBaseGoodsList(data) {
return http.post({
method: 'dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId',
projectName: 'boutique',
...data
})
},
/** 选择支付方式下单 */
createWithPay(data) {
console.log(data)
return http.post({
method: 'dj.api.smartcarlife.order.createWithPay',
projectName: 'boutique',
...data
})
},
/** 订单补录 */
supplementOrder(data) {
return http.post({
method: 'dj.api.smartcarlife.order.supplementOrder',
projectName: 'boutique',
...data
})
},
// 获取精品升级场景 太阳膜类商品部位数据
getPositionList(data) {
return http.post({
method: 'dj.api.smartcarlife.goodsPosition.list',
projectName: 'boutique',
...data
})
},
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return http.post({ method: 'dj.api.smartcarlife.staff.daily.report.popup.need', projectName: 'boutique', ...data })
},
/** 校验手机号是否配置打卡和是否打卡 */
clockInConfigPhone(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return http.post({ method: 'dj.api.smartcarlife.clock.in.config.phone', projectName: 'boutique', ...data })
},
/** 获取商户基本信息 */
getServiceBaseInfo(data) {
return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', projectName: 'boutique', ...data })
},
/** 查询园区店是否开启签名配置 */
getSignatureSwitch(data) {
return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getSignatureSwitch', projectName: 'boutique', ...data })
},
// 获取服务商库存管理模式(是否使用膜卷号)
getServiceFilmRollSetting(data) {
return http.post({ method: 'dj.api.smarcarlife.stock.management.mode', projectName: 'boutique', ...data })
},
/** 获取转化员上一笔订单的销售顾问 */
getLastUserOrderInfo(data) {
return http.post({
method: 'dj.api.smartcarlife.order.getLastUser',
projectName: 'boutique',
...data
})
},
/**根据订单号获取订单详情(含套餐) */
getPackageGoodsDetail(data) {
return http.post({ method: 'dj.api.smartcarlife.order.packageGoodsDetail', projectName: 'boutique', ...data })
},
/**
* 查询日报门店主营品牌
*/
getDailyReportCarBrand(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.car.brand',
projectName: 'boutique',
...data
})
},
/**
* 查询员工日报是否填写列表
*
*/
getStaffDailyReportDetailWeeklyList(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.weekly.list',
projectName: 'boutique',
...data
})
},
/**
* 查询日报详情
*/
getStaffDailyReportDetail(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.detail',
projectName: 'boutique',
...data
})
},
/** 修改订单备注 */
updateOrderRemark(data) {
return http.post({ method: 'dj.api.smartcarlife.order.updateRemark', projectName: 'boutique', ...data })
},
/** 修改工单时间 */
updateOrderTime(data) {
return http.post({ method: 'dj.api.smartcarlife.order.updateOrderTime', projectName: 'boutique', ...data })
},
/** 获取企微活码 */
getWorkWechatLiveQRCode(data) {
return http.post({ method: 'dj.api.smartcarlife.order.getWorkWechatLiveQRCode', projectName: 'boutique', ...data })
},
/** 升级商品生成条形码 */
createBarCode(data) {
return http.post({ method: 'dj.api.smartcarlife.common.createBarCode', projectName: 'boutique', ...data })
},
/**撤销工单 */
revokeOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.order.revoke', projectName: 'boutique', ...data })
},
/** 获取园区店配置技师数据 */
getQYTechnicianList(data) {
return http.post({ method: 'dj.api.smartcarlife.roleTechnician.list', projectName: 'boutique', ...data })
},
// 生成生成小程序码
createQrcodeImage(data) {
// dj.api.smartcarlife.serviceMerchant.getByMerchantId
return http.post({ method: 'dj.api.smartcarlife.common.createWeappQrcode', projectName: 'boutique', ...data })
},
/**
* 保存日报
*/
saveStaffDailyReport(data) {
data.dailyReportSource = 2
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.save',
projectName: 'boutique',
...data
})
},
/** 不升级常用字符列表 */
getConfigList(data) {
return http.post({ method: 'dj.api.smartcarlife.config.list', projectName: 'boutique', ...data })
},
/** 战败订单批量补录 */
notUpgradeOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.order.notUpgrade.batchInsert', projectName: 'boutique', ...data })
},
/**改变支付订单状态 */
createPayOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.payOrder.create', projectName: 'boutique', ...data })
},
/** 质保价格编辑接口 */
modifyWarrantyPrice(data) {
return http.post({
method: 'dj.api.smartcarlife.customer.warrantyCard.modifyWarrantyPrice',
projectName: 'boutique',
...data
})
},
/** 退款中拦截 */
refundApplyRecordIsExist(data) {
return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique',
...data
})
},
/**
* 查询商户套餐推荐配置列表
*/
getBoutiquePackageList(data) {
return http.post({
method: 'dj.api.smartcarlife.receptionMaterialRecommendPackageConfig.getByMerchantId',
projectName: 'boutique',
...data
})
},
/**
* 日报填报前参数校验
*/
dailyReportCheck(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.data.check',
projectName: 'boutique',
...data
})
},
/**
* 活动产品列表
*/
getActivityProductList(data) {
return http.post({ method: 'dj.pad.api.active.marketing.activity.product.list', projectName: 'pad', ...data })
}
}