IndexApi.js
2.68 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
import api from '~/utils/request/request'
const { appId } = wx.getAccountInfoSync().miniProgram
const CODE = {
platformEntrance: 'SALES_ASSISTANT',
productCode: 'PC00c3'
}
class IndexApi {
/**退出登录 */
logout() {
return api.post(
{
method: 'dj.api.sale.login.logout'
},
true
)
}
/**首页-门店待跟进数据统计 */
getTotal(data) {
return api.post(
{
method: 'dj.api.sale.home.total',
...data
},
true
)
}
/**首页-KPI完成进度 */
getKpiProgress(data) {
return api.post(
{
method: 'dj.api.sale.home.kpi.progress',
...data
},
true
)
}
/**首页-我的团队 */
getMyTeam(data = {}) {
return api.post(
{
method: 'dj.api.sale.home.myTeam',
...data
},
true
)
}
/**首页-指标预警门店列表 */
getWarningStores(data = {}) {
return api.post(
{
method: 'dj.api.sale.home.warning',
...data
},
true
)
}
// 数据总览-产值筛选数量统计
outputCount(data = {}) {
return api.post(
{
method: 'dj.api.sale.data.overview.output.count',
...data
},
true
)
}
// 大区看板-产值排序
outputRanking(data = {}) {
return api.post(
{
method: 'dj.api.sale.region.output.ranking',
...data
},
true
)
}
// 大区看板-拓店排行榜
storeExpansionRanking(data = {}) {
return api.post(
{
method: 'dj.api.sale.region.store.expansion.ranking',
...data
},
true
)
}
// 数据总览-拓店筛选数量统计,销售漏斗
storeExpansionCount(data = {}) {
return api.post(
{
method: 'dj.api.sale.data.overview.store.expansion.count',
...data
},
true
)
}
// 数据总览-拓店排行榜
overviewStoreExpansionRanking(data = {}) {
return api.post(
{
method: 'dj.api.sale.data.overview.store.expansion.ranking',
...data
},
true
)
}
// 数据总览-门店产值排行榜
storeOutputRanking(data = {}) {
return api.post(
{
method: 'dj.api.sale.data.overview.store.output.ranking',
...data
},
true
)
}
// 销售小结
summaryMonthShow(data = {}) {
return api.post(
{
method: 'dj.api.sale.summary.month.show',
...data
},
true
)
}
// 销售小结人员详情列表
summaryMonthShowPersonList(data = {}) {
return api.post(
{
method: 'dj.api.sale.summary.month.show.person.list',
...data
},
true
)
}
}
export default IndexApi