resident.js
13.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
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
import request from "./request"
const path = "dj.api.mindworkplate."
const path2 = "dj.api.smartcarlife."
// 质检管理
export function getReclistWithPage(data) {
data.method = `${path}badge.employeeBadgeReclistWithPage`
return request(data, "post")
}
// 质检统计
export function receptionStaffStatic(data) {
data.method = `${path}badge.receptionStaffStatic`
return request(data, "post")
}
// 安心包明细
export function findAxbByBatchId(data) {
data.method = `${path2}inspection.defence.findAxbByBatchId`
return request(data, "post")
}
// 分页查询接待批次列表
export function conversationPage(data) {
data.method = `${path2}inspection.conversation.batch.page`
return request(data, "post")
}
// 质检点管理-分页列表
export function conversationPointPage(data) {
data.method = `${path2}inspection.conversation.point.page`
return request(data, "post")
}
// 工牌管理
export function employeeBadgelistWithPage(data) {
data.method = `${path}badge.employeeBadgelistWithPage`
return request(data, "post")
}
// 同步数据
export function syncBadge(data = {}) {
data.method = `${path}badge.syncBadge`
return request(data, "post")
}
// 工牌统计管理
export function statisticsEmployeeBadge(data) {
data.method = `${path}badge.statisticsEmployeeBadge`
return request(data, "post")
}
// 质检详情-质检分析
export function conversationCheckList(data) {
data.method = `${path2}inspection.conversation.check.detail`
return request(data, "post")
}
// 质检详情-分页查询对话列表
export function conversationDetailPage(data) {
data.method = `${path2}inspection.conversation.detail.page`
return request(data, "post")
}
// 获取一级二级分类
export function getPointCategory(data = {}) {
data.method = `${path2}inspection.conversation.point.category`
return request(data, "post")
}
// 获取品牌方/供应方
export function getBrandSupplyMerchant(data) {
data.method = `${path}goods.type.queryGoodsRelatedParty`
return request(data, "post")
}
// 新增供应方
export function addBrandSupplyMerchant(data) {
data.method = `${path}goods.type.addGoodsRelatedParty`
return request(data, "post")
}
// 编辑/删除供应方
export function editBrandSupplyMerchant(data) {
data.method = `${path}goods.type.editGoodsRelatedParty`
return request(data, "post")
}
// 获取素材详情
export function getProductInfo(data) {
data.method = `${path}goodsinfo.get.byId`
return request(data, "post")
}
// 登录日志-日志列表
export function loginRecordPage(data) {
data.method = `${path2}staff.login.record.page`
return request(data, "post")
}
// 员工审核-列表
export function staffAuditPage(data) {
data.method = `${path2}staff.audit.page`
return request(data, "post")
}
// 员工审核-审核/驳回
export function staffAuditUpdate(data) {
data.method = `${path2}staff.audit.update`
return request(data, "post")
}
/** 导出 */
export function exportReclistList(data) {
data.method = "dj.api.mindworkplate.badge.employeeBadgeReclistExport"
return request(data, "post")
}
/** 攻防明细*/
export function defenceDetail(data) {
data.method = "dj.api.smartcarlife.inspection.defence.detail"
return request(data, "post")
}
/** 质检埋点*/
export function reportTrack(data) {
data.method = "clue.api.burial.point.record.batch.insert"
return request(data, "post")
}
// 获取门店工资绩效列表
export function getStoreSalaryListApi(data) {
data.method = `${path2}merchantPerformanceConfig.pageByMerchant`
// data.method = `${path2}merchantPerformanceConfig.page`
return request(data, "post")
}
// 编辑进入页面获取最新配置的绩效数据
export function getStoreLastDetailApi(data) {
data.method = `${path2}merchantPerformanceConfig.getLatestConfigDetailByMerchantId`
return request(data, "post")
}
// 禁用/启用门店工资绩效
export function editStoreSalaryStatusApi(data) {
// data.method = `${path2}merchantPerformanceConfig.updateStatus`
data.method = `${path2}merchantPerformanceConfig.updateStatusByMerchant`
return request(data, "post")
}
// 删除门店工资绩效
export function deleteStoreSalaryApi(data) {
data.method = `${path2}merchantPerformanceConfig.delete`
return request(data, "post")
}
// 新增/编辑绩效方案
export function configPerformancePlanApi(data) {
data.method = `${path2}merchantPerformanceConfig.batchConfig`
return request(data, "post")
}
// 获取绩效方案详情
export function getPerformancePlanDetailApi(data) {
data.method = `${path2}merchantPerformanceConfig.getLatestConfigDetail`
return request(data, "post")
}
// 获取分发门店列表
export function getDistributeStoreListApi(data) {
data.method = `${path2}merchantPerformanceConfig.pageDistributeMerchant`
return request(data, "post")
}
// 获取应用商品
export function getAppGoodsApi(data) {
data.method = `${path2}merchantPerformanceConfig.pageMerchantGoods`
return request(data, "post")
}
// 获取激励池存入列表
export function getIncentivePoolDepositListApi(data) {
data.method = `${path2}incentivePool.pageIncome`
return request(data, "post")
}
// 获取激励池支出列表
export function getIncentivePoolExpendListApi(data) {
data.method = `${path2}incentivePool.pageExpenses`
return request(data, "post")
}
// 获取激励池统计信息
export function getIncentivePoolStatisticsApi(data) {
data.method = `${path2}incentivePool.total`
return request(data, "post")
}
// 获取激励池存入明细
export function getIncentivePoolDetailApi(data) {
data.method = `${path2}incentivePool.getIncomeById`
return request(data, "post")
}
// 激励池新增支出
export function addIncentivePoolApi(data) {
data.method = `${path2}incentivePool.addExpenses`
return request(data, "post")
}
// 获取已配置职级的所有员工数据
export function getLevelStaffListApi(data) {
data.method = `${path2}incentivePool.hasJobStaffPage`
return request(data, "post")
}
// 获取激励池支出详情(备注记录)
export function getIncentivePoolRemarkRecordApi(data) {
data.method = `${path2}incentivePool.getExpensesById`
return request(data, "post")
}
// 激励池支出修改备注
export function editIncentivePoolRemarkApi(data) {
data.method = `${path2}incentivePool.updateExpensesRemark`
return request(data, "post")
}
// 获取驻店管理列表
export function getResidentListApi(data) {
data.method = `${path2}staffBaseInfo.pageList`
return request(data, "post")
}
// 导入员工修订工资
export function importStaffSalaryApi(data) {
data.method = `${path2}staffMonthSalary.correctSalary.byImport`
return request(data, "post", ["file"])
}
// 获取帮带导师数据
export function getResidentTeacherListApi(data) {
data.method = `${path2}staffBaseInfo.Mentor.list`
return request(data, "post")
}
// 根据场景获取门店列表
export function getStoreListBySceneApi(data) {
data.method = `dj.smartcarlife.api.scene.shopMerchant.pageList`
return request(data, "post")
}
// 根据门店反查管理的园区店列表
export function getStoreParkListApi(data) {
data.method = `dj.smartcarlife.api.scene.yqMerchant.pageList`
return request(data, "post")
}
// 创建员工
export function createStaffApi(data) {
data.method = `${path2}staffBaseInfo.account.add`
return request(data, "post")
}
// 编辑员工
export function editStaffApi(data) {
data.method = `${path2}staffBaseInfo.staffDetailInfo.update`
return request(data, "post")
}
// 编辑员工扣款项配置数据
export function editStaffDeductionApi(data) {
data.method = `${path2}staffConfig.update`
return request(data, "post")
}
// 员工分配门店账号
export function assignStoreAccountApi(data) {
data.method = `${path2}staffBaseInfo.account.other.add`
return request(data, "post")
}
// 获取员工详情信息
export function getStaffDetailApi(data) {
data.method = `${path2}staffBaseInfo.selectStaffDetailInfo`
return request(data, "post")
}
// 获取员工历史业绩
export function getStaffHistoryApi(data) {
data.method = `${path2}staffMonthSalary.page`
return request(data, "post")
}
// 获取员工工资统计数据
export function getStaffSalaryStatisticsApi(data) {
data.method = `${path2}staffMonthSalary.stat`
return request(data, "post")
}
// 获取提成门店数据
export function getCommissionLogicApi(data) {
data.method = `${path2}staffBaseInfo.listStaffOrderMerchant`
return request(data, "post")
}
// 获取员工历史订单列表
export function getStaffHistoryOrderListApi(data) {
data.method = `${path2}staffBaseInfo.listStaffDailyPerformancePage`
return request(data, "post")
}
// 修订应发工资
export function reviseSalaryApi(data) {
data.method = `${path2}staffMonthSalary.correctSalary`
return request(data, "post")
}
// 修订工资操作记录
export function getSalaryRecordApi(data) {
data.method = `${path2}staffSalaryCorrectRecord.page`
return request(data, "post")
}
// 获取工资明细
export function getSalaryDetailApi(data) {
data.method = `${path2}staffMonthSalary.detail`
return request(data, "post")
}
// 查询日报模板类型列表
export function getTemplateList(data = {}) {
data.method = 'dj.api.smartcarlife.digital.management.template.type.list'
return request(data, 'post')
}
// 督导
export function getStaffList(data) {
data.method = 'dj.api.smartcarlife.digital.management.template.staff.ref.list'
return request(data, 'post')
}
// 分页查询日报列表,表格数据
export function getRecordPage(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.page'
return request(data, 'post')
}
// 查询模板详情, 表头数据
export function getTemplateDetail(data) {
data.method = 'dj.api.smartcarlife.digital.management.template.detail'
return request(data, 'post')
}
// 查询日报统计总览
export function getSummary(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.summary'
return request(data, 'post')
}
// 查询未提交明细列表
export function getSummaryStaff(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.staff.summary'
return request(data, 'post')
}
// 更新模版绑定员工
export function updateStaff(data) {
data.method = 'dj.api.smartcarlife.digital.management.template.staff.ref.update'
return request(data, 'post')
}
// 导出未提交明细列表
export function exportSummary(data) {
data.method = 'dj.api.smartcarlife.digital.management.record.staff.summary.export'
return request(data, 'post')
}
// 所有督导
export function getAllStaff(data) {
// data.method = 'dj.api.smartcarlife.staff.specificBusinessRolePerson.areaSupervision.pageConfigured'
// data.method = 'dj.api.smartcarlife.staff.specificBusinessRolePerson.areaSupervision.listConfigured'
data.method = 'dj.api.smartcarlife.digital.management.supervision.staff.list'
return request(data, 'post')
}
// 收入测算-白名单员工分页
export function getWhiteStaff(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.white.staff.list'
return request(data, 'post')
}
// 收入测算-查询收入测算配置开关
export function getSwitchConfig(data = {}) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.switch.config.get'
return request(data, 'post')
}
// 收入测算-添加白名单员工
export function addWhiteStaff(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.white.staff.add'
return request(data, 'post')
}
// 收入测算配置开关更新
export function addSwitchConfig(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.switch.config.add'
return request(data, 'post')
}
// 收入测算-删除白名单员工
export function delWhiteStaff(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.white.staff.del'
return request(data, 'post')
}
// 查询员工详情
export function getStaffInfo(data) {
data.method = 'dj.smartcarlife.api.incomeMeasurement.staff.info.get'
return request(data, 'post')
}
// 职级介绍配置查询
export function getRankConfig(data) {
data.method = 'dj.smartcarlife.api.job.rank.config.get'
return request(data, 'post')
}
// 职级介绍配置更新
export function addRankConfig(data) {
data.method = 'dj.smartcarlife.api.job.rank.config.add'
return request(data, 'post')
}
// 员工收入测算
export function getIncomePage(data) {
data.method = 'dj.api.smartcarlife.staff.incomeCalculation.page'
return request(data, 'post')
}
// 获取商品信息列表
export function listGoodsType(data = {}) {
data.method = 'dj.api.smartcarlife.staff.incomeCalculation.listGoodsType'
return request(data, 'post')
}
// 复制绩效方案
export function copyPerformanceApi(data) {
data.method = `${path2}merchantPerformanceConfig.copyConfig`
return request(data, 'post')
}
// 获取员工是否是可查看工资白名单
export function staffWhiteListFlagApi(data) {
data.method = `${path2}staffBaseInfo.whiteList.select`
return request(data, 'post')
}
// 根据员工手机号获取员工所在园区店
export function yqMerchantListByStaffPhoneApi(data) {
data.method = `${path2}staffBaseInfo.yqMerchantInfo.list`
return request(data, 'post')
}
// 根据园区店商户号获取1.1和2.1场景下4S店列表
export function merchantListByYqMerchantApi(data) {
data.method = `${path2}scene.shopMerchant.list`
return request(data, 'post')
}
// 员工调店分配新增
export function addStaffDailyReportConfigApi(data) {
data.method = `${path2}staffDailyReportConfig.add`
return request(data, 'post')
}
// 员工调店分配配置修改
export function updateStaffDailyReportConfigApi(data) {
data.method = `${path2}staffDailyReportConfig.update`
return request(data, 'post')
}
// 员工调店分配配置删除
export function deleteStaffDailyReportConfigApi(data) {
data.method = `${path2}staffDailyReportConfig.delete`
return request(data, 'post')
}