businessSchool.js
2.4 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
import request from "./request"
const path = 'dj.api.businessSchool.'
// 根据场景值获取有关联关系的园区店
export function getYqMerchantListBySceneApi(data) {
data.method = 'dj.api.scenemerchantref.listYqShopByRef'
return request(data, 'post')
}
// 获取员工列表
export function getListApi(data) {
data.method = `${path}staff.performance.page`
return request(data, 'post')
}
// 获取启用工资绩效员工数量
export function getEnableStaffNumApi(data) {
data.method = `${path}performanceEnable.number`
return request(data, 'post')
}
// 导入员工
export function importStaffApi(data) {
data.method = `${path}staff.performanceConfig.import`
return request(data, "post", ["file"])
}
// 禁用启用工资绩效
export function enableOrDisableApi(data) {
data.method = `${path}performanceEnable.update`
return request(data, 'post')
}
// 查看员工业绩详情
export function getPerDetailListApi(data) {
data.method = `${path}staff.orderPerformance.page`
return request(data, 'post')
}
// 重置员工查看绩效密码
export function resetStaffPasswordApi(data) {
data.method = `${path}staff.performancePassword.reset`
return request(data, 'post')
}
// 员工绩效配置详情
export function getPerformanceInfoApi(data) {
data.method = `${path}staff.performanceConfig.get`
return request(data, 'post')
}
// 配置员工绩效
export function setPerformanceApi(data) {
data.method = `${path}staff.performanceConfig.save`
return request(data, 'post')
}
// 员工导师配置详情
export function getMentorInfoApi(data) {
data.method = `${path}staff.mentorPerformanceConfig`
return request(data, 'post')
}
// 配置导师
export function setMentorApi(data) {
data.method = `${path}staff.mentorPerformanceConfig.save`
return request(data, 'post')
}
// 获取未关联导师的初级驻店零售员工数据
export function getNoRelateStaffListApi(data) {
data.method = `${path}staff.mentorPerformanceConfig.listAvailableStudent`
return request(data, 'post')
}
// 根据场景值和园区店查询服务商下的所有4s店
export function getMerchantStoreByServiceApi(data) {
data.method = "dj.api.scenemerchantref.listShopMerchantByYqMerchantId"
return request(data, "post")
}
// 根据场景值获取园区店下所有4s店
export function getMerchantStoreApi(data) {
data.method = "dj.api.scenemerchantref.query4SRefByYqShop"
return request(data, "post")
}