api.js
15.1 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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
// import api from './request.js'
import api from '~/utils/request/request.js'
module.exports = {
/**微信登录 */
wxLogin(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.jscode.login', data)
},
/**微信登录 */
ssoLogin(data) {
return api.post(
'scrm.api.sso.weapp.jscode.getOpenId',
data,
[],
'/rop-scrm-sso/router',
'scrm',
false
)
},
/**微信手机号登录 */
authPhone(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.auth.phone', data)
},
/**账号登录 */
accountAndPwd(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.login.accountAndPwd', data)
},
/**验证码 */
getSMS(data) {
return api.post('dj.api.smartcarlife.sms.get.code', data)
},
/** 免登录 */
noLogin(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.sms.not.code.login', data)
},
/** 免登录 */
loginLogAdd(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.login.log.add', data)
},
/** 记录登录设置类型 */
reNoSignIn(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.sms.noSignIn.login', data)
},
/**手机验证码登录 /1.0.0 */
smsLogin(data = {}) {
data.source = 'MINIAPP'
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.sms.login', data)
},
/**获取账号列表 */
getListSelectAccount() {
return api.post('dj.api.smartcarlife.workWechat.listSelectAccount')
},
selectAccountLogin(data) {
return api.post('dj.api.smartcarlife.workWechat.selectAccountLogin', data)
},
/** 车品牌 */
getBrandList(data) {
return api.post('dj.api.get.car.brandList', data)
},
/**获取当前登录账号能查看的园区店列表 */
getYQList() {
return api.post('dj.api.smartcarlife.serviceMerchant.curYqList')
},
/** 根据商户号获取员工列表信息(转化人员) */
getConversionEmployeeList(data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1]
return api.post('dj.api.smartcarlife.employee.getByMerchantId', data)
},
getEmployeeList(data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1]
return api.post(
'dj.api.smartcarlife.employee.onTheJob.getByMerchantId',
data
)
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
},
/** 根据园区店商户号获取绑定4S店列表 */
getServiceMerchantList(data) {
return api.post('dj.api.smartcarlife.serviceMerchant.list', data)
},
/** 根据4S店商户号获取二级流量方列表 */
getSubShopMerchantList(data) {
return api.post(
'dj.api.smartcarlife.diversionMerchant.getDiversionMerchantRef',
data
)
},
/**商品类型 */
getGoodsTypeList(data) {
return api.post('dj.api.goods.type.list', data)
},
/**客户优惠券 */
getCustomerCouponList(data) {
return api.post('dj.api.customer.coupon.list', data)
},
/**礼券列表 */
getCouponList(data) {
return api.post('dj.api.smartCarLife.merchant.coupon.list', data)
},
/**上传图片 /1.0.0*/
uploadImg(data) {
return api.post('dj.api.smartcarlife.common.uploadImg', data, ['file'])
},
/** ocr图片识别功能 */
ocr(data) {
return api.post('dj.api.common.ocr.recognition', data)
},
/** 不升级常用字符列表 */
getConfigList(data) {
return api.post('dj.api.smartcarlife.config.list', data)
},
/** 获取指定商户指定日期范围的邀约统计 */
getInviteDateList(data) {
return api.post('dj.api.smartcarlife.inviteStat.merchant.list', data)
},
/** 获取WebSocket地址 */
getWsUrl() {
return api.post('dj.api.smartcarlife.getWsUrl')
},
/**根据sceneId 查参数 */
getSceneById(data) {
return api.post('dj.api.smartcarlife.common.getSceneById', data)
},
// 生成生成小程序码
createQrcodeImage(data) {
// dj.api.smartcarlife.serviceMerchant.getByMerchantId
return api.post('dj.api.smartcarlife.common.createWeappQrcode', data)
},
/** 获取商户生效的财务结算规则 */
merchantSettleAccountRule(data) {
return api.post('dj.api.smartcarlife.merchantSettleAccountRule.get', data)
},
/** 获取商户业务指定生效日期的结算规则 */
merchantSettleAccountRuleGetByEffectDate(data) {
return api.post(
'dj.api.smartcarlife.merchantSettleAccountRule.getByEffectDate',
data
)
},
/** 获取商户订单设置 */
getMerchantRecordingSettings(data) {
return api.post(
'dj.api.smartcarlife.recordingSettings.getMerchantRecordingSettings',
data
)
},
/** 设置商户订单设置 */
setMerchantRecordingSettings(data) {
return api.post(
'dj.api.smartcarlife.recordingSettings.insertOrUpdateSettings',
data
)
},
/**补录订单 */
waitinputorder(data) {
data.inputStatus = 0
// data.payType = 1
return api.post('dj.api.smartcarlife.weapp.waitinputorder.page', data)
},
/** 获取转化员上一笔订单的销售顾问 */
getLastUserOrderInfo(data) {
return api.post('dj.api.smartcarlife.order.getLastUser', data)
},
// 获取订单信息
getWorkList(data) {
let params = data || {}
params.sceneType = 1
return api.post('dj.api.smartcarlife.order.search', params)
},
/**搜索订单(含套餐) */
getWorkPackageGoodsList(data) {
let params = data || {}
params.sceneType = 1
return api.post('dj.api.smartcarlife.order.search.containPackageGoods', {
pageSize: 10,
...params
})
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI(data) {
return api.post('dj.api.smartcarlife.select.openScene.info', data)
},
// 获取园区店下的4s店
getSceneMerchantRefStoreList(data) {
// 校验session
return api.post('dj.api.scenemerchantref.query4SRefByYqShopByLogin', data)
// 不校验session
// return api.post('dj.api.scenemerchantref.query4SRefByYqShop', data)
},
// 获取门店下的员工(推荐人)众筹场景
getStaffListByMerchantAPI(data) {
let params = data || {}
params.sceneList = [3]
return api.post('dj.api.smartcarlife.employee.getByMerchantId', params)
},
// 获取园区店配置
getYqStoreConfig(data) {
return api.get('dj.api.smarcarlife.yqMerchantConfig.detail', data)
},
//插入埋点记录
burialPointRecord(data) {
return api.get('dj.api.smartcarlife.common.insertRecord', data)
},
// 获取精品升级场景 太阳膜类商品部位数据
getPositionList(data) {
return api.post('dj.api.smartcarlife.goodsPosition.list', data)
},
// 选择4s店和场景
selectMerchantScene(data) {
return api.post('dj.api.smartcarlife.selectMerchantScene', data)
},
// 按客户查找门店工单/预约
searchOrderCustomer(data) {
return api.post('dj.api.smartcarlife.order.searchOrderCustomer', data)
},
// 获取服务商库存管理模式(是否使用膜卷号)
getServiceFilmRollSetting(data) {
return api.post('dj.api.smarcarlife.stock.management.mode', data)
},
/**退出*/
logout() {
return api.post('dj.api.smartcarlife.logout')
},
// 分页获取场景值关联园区店数据
getYqMerchantListPage(data) {
return api.post('dj.api.scenemerchantref.listYqShopByRef.page', data)
},
// 获取超管及区域督导账号侧边栏的4S店列表
serviceMerchantCurshopList(data) {
return api.post('dj.api.smartcarlife.serviceMerchant.curShopList', data)
},
// 分页获取场景值关联4s店数据
getMerchantListPage(data) {
return api.post('dj.api.scenemerchantref.listShop4sByRef.page', data)
},
/** 查询员工或园区店商户是否开启了工资绩效 */
isBusinessSchoolEnableCurrentUser(data) {
return api.post(
'dj.api.businessSchool.isBusinessSchoolEnable.currentUser',
data
)
},
/**
* 客户线索新增客户提醒 */
getCustomerClueRemind(params = {}) {
return api.post('dj.api.smartcarlife.customer.clue.tips.newCount', params)
},
/** 获取驻店员工目标任务 */
getStaffTargetTaskApi(data) {
return api.post('dj.api.smartcarlife.staffTargetCheck.getTargetCheck', data)
},
/** 查询员工待办事项列表 */
getStaffRemindList(data) {
return api.post('dj.api.smartcarlife.staff.reminder.list', data)
},
/** 分页查询事项列表(任务中心) */
getTaskCenterPage(data) {
return api.post(
'dj.staff.api.taskcenter.task.page',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 统计事项任务数量(待完成/已完成/全部,入参与列表一致) */
getTaskCenterCountStat(data) {
return api.post(
'dj.staff.api.taskcenter.task.count.stat',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 查询事项详情(传任务主键 id) */
getTaskCenterDetail(data) {
return api.post(
'dj.staff.api.taskcenter.task.detail',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 事项提交(任务主键 id + 专项任务回复) */
submitTaskCenter(data) {
return api.post(
'dj.staff.api.taskcenter.task.submit',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 带教申请分页列表 */
getTeachingApplicationPage(data) {
return api.post(
'dj.staff.api.strategy.teachingApplication.page',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 带教申请详情(传审批中心申请单 applicationId) */
getTeachingApplicationDetail(data) {
return api.post(
'dj.staff.api.strategy.teachingApplication.detail',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 带教申请提交 */
submitTeachingApplication(data) {
return api.post(
'dj.staff.api.strategy.teachingApplication.submit',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 带教申请-归属门店列表 */
getStrategyShopMerchantList(data) {
return api.post(
'dj.staff.api.strategy.shopMerchantList',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 带教申请-驻店人员列表 */
getStrategyShopMerchantStaffList(data) {
return api.post(
'dj.staff.api.strategy.shopMerchantStaffList',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 带教申请-区域督导 */
getStrategyShopMerchantSupervisor(data) {
return api.post(
'dj.staff.api.strategy.shopMerchantSupervisorGet',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 关闭员工待办事项 */
shutDownTaskApi(data) {
return api.post('dj.api.smartcarlife.staff.reminder.shutdown', data)
},
/** 将当前门店的员工目标任务弹窗标记为已弹起过 */
setTaskDialog(data) {
return api.post('dj.api.smartcarlife.staffTargetCheck.promptYes', data)
},
/**
* 获取客户档案列表
*/
getCustomerFileList(data) {
return api.post(
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page',
data
)
},
/**
* 员工登录日志记录保存
*/
loginRecordSave(data, name) {
// console.log(name, 'loginRecordSave');
// debugger
return api.post('dj.api.smartcarlife.staff.login.record.save', data)
//selectMerchantScene
},
// 获取侧边栏切换门店4s店列表
getCurShopList(data) {
return api.post('dj.api.smartcarlife.serviceMerchant.curShopList', data)
},
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return api.post('dj.api.smartcarlife.staff.daily.report.popup.need', data)
},
/** 校验手机号是否配置打卡和是否打卡 */
clockInConfigPhone(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return api.post('dj.api.smartcarlife.clock.in.config.phone', data)
},
// 获取积分审批列表数据
getPointsReviewListAPI(data) {
return api.post('dj.api.smartcarlife.staff.motivation.page', data)
},
// 积分审批通过
approvedPointsAPI(data) {
return api.post('dj.api.smartcarlife.staff.motivation.audit', data)
},
// 上传pdf
uploadPdfAPI(data) {
return api.post('dj.api.smartcarlife.common.uploadPdf', data, ['file'])
},
// 查询员工是否是导师
getStaffMentorFlag(data) {
return api.post('dj.api.smartcarlife.employee.isMentor', data)
},
// 查询店铺配置
getShopMerchantPointConfig(data) {
return api.post('dj.api.smartcarlife.shopMerchantPointConfig.get', data)
},
// 申请开票
createOrderCode(data) {
return api.post(
'dj.api.smartcarlife.vpt.invoiceIssueQrcode.createByOrder',
data
)
},
// 根据订单号查询二维码和发票信息
getOrderCode(data) {
return api.post(
'dj.api.smartcarlife.vpt.invoiceIssueQrcode.getByOrderCode',
data
)
},
// 作废开票二维码
cancelInvoiceQrcode(data) {
return api.post(
'dj.api.smartcarlife.vpt.invoiceIssueQrcode.cancelInvoiceQrcode',
data
)
},
// 获取退款申请待审批数目查询
getWaitAuditCountAPI(data) {
return api.post(
'dj.api.smartcarlife.refundApplyRecord.waitForAudit.count',
data
)
},
// 查询订单可展示按钮类型
getMoreBtnAPI(data) {
return api.post('dj.api.smartcarlife.refundApplyRecord.button.select', data)
},
// 退款申请时区域运营查询
areaSupervisionExistsAPI(data) {
return api.post(
'dj.api.smartcarlife.serviceMerchant.areaSupervision.exists',
data
)
},
// 退款详情列表查询
getRefundDetailListAPI(data) {
return api.post(
'dj.api.smartcarlife.refundApplyRecord.singleOrder.list',
data
)
},
/** 待处理招聘统计 */
waitstaffstateAPI(data) {
return api.post(
'dj.api.staff.miniprogram.recruitment.demand.stat',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 获取园区店配置技师数据 */
getQYTechnicianList(data) {
return api.post('dj.api.smartcarlife.roleTechnician.list', data)
},
/**人员权限 */
staffPermissions(data) {
return api.post('dj.api.smartcarlife.qdhc.staff.permissions', data)
},
// 查询订单是否支持状态变更
getOrderRefundStep(data) {
return api.post('dj.api.smartcarlife.refundApplyRecord.isExist', data)
},
// 获取员工日报/周报/月报模版
getStaffTemplate(data) {
return api.post('dj.api.carboutique.find.staff.good.news.template', data)
},
// 获取异常订单待审核数量
getOrderWaitForAudit(data) {
return api.post('dj.api.smartcarlife.goodsOrderApplyRecord.waitForAudit.count', data)
},
/** 带教申请列表 */
getMentorShipList(data) {
return api.post(
'dj.api.businessSchool.miniProgram.teachTask.page',
data,
[],
'/rop-dj-business-school-miniprogram/router'
)
},
// 获取潜客列表
getPotentialCustomersPage(data) {
return api.post('dj.api.staff.miniprogram.recruitment.demand.potentialCustomers.page', data)
},
}