home.js
4.24 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
import request from "@/utils/request";
// 获取集团下的要展示的数据
export function getAccountConfiguredApi(data) {
return request({
url: `/report/reportChart/getConfiguredCharts`,
method: "get",
data
});
}
// 获取门店下要展示的数据
export function getStoreConfiguredApi(data) {
return request({
url: `/report/reportChart/getCharts`,
method: "get",
data
});
}
// 获取门店下的基础数据
export function getStoreBasicDataApi(data) {
return request({
url: `/report/new/report/month/mall/head`,
method: "get",
data
});
}
// 获取门店的营业时间
export function getStoreHoursDateApi(data) {
return request({
url: `/report/b-mall-business-hours/date`,
method: "get",
data
});
}
// 获取集团下的所有门店
export function getAccountStoreApi(data) {
return request({
url: `/report/malls`,
method: "get",
data
});
}
// 获取集团下所有的大区
export function getAccountGroupApi(data) {
return request({
url: `/report/groups`,
method: "get",
data
});
}
// 获取集团下所有的大区,包含门店数量
export function getUserAccountGroupApi(data) {
return request({
url: `/report/b-group/userGroups`,
method: "get",
data
});
}
// 获取集团下的所有品类和标签
export function getLabelByAccountIdApi(data) {
return request({
url: `/report/mallLabel/getLabelByAccountId`,
method: "get",
data
});
}
// 根据标签获取所有门店
export function getMallByGroupAndLabelApi(data) {
return request({
url: `/report/b-group/getMallByGroupAndLabel`,
method: "post",
data
});
}
// 根据标签获取所有门店
// 获取集团卡片列表
export function getAccountCardListApi(data) {
return request({
url: `/report/report/account/overview/card`,
method: "get",
data
});
}
// 获取门店详情
export function getStoreInfoApi(id) {
return request({
url: `/report/b-mall/${id}`,
method: "get"
});
}
// 获取近期客流趋势
export function getFlowTrendApi(data) {
return request({
url: `/report/basePassengerFlow${data.orgId?'':'/account'}/passengerFlow`,
method: "get",
data
});
}
// 获取停留时长分布
export function getResidenceTimeApi(data) {
return request({
url: `/report/basePassengerFlow/residenceTime`,
method: "get",
data
});
}
// 获取分区顾客流向
export function getGateFlowDirectionNewApi(data) {
return request({
url: `/report/mall/gateFlowDirectionNew`,
method: "get",
data
});
}
// 获取门店客群画像
export function getFaceAnalyzeStaMallApi(data) {
return request({
url: `/report/report/faceAnalyzeSta/mall`,
method: "get",
data
});
}
// 获取性别分布
export function getFaceGenderApi(data) {
return request({
url: `/report/account/faceAnalyze/faceGender`,
method: "get",
data
});
}
// 获取年龄分布
export function getFaceAgeApi(data) {
return request({
url: `/report/account/faceAnalyze/faceAge`,
method: "get",
data
});
}
// 门店客流热力
export function getThermodynamicMallApi(data) {
return request({
url: `/report/report/thermodynamic/mall`,
method: "get",
data
});
}
// 门店客流热力
export function getTrafficConversionMallApi(data) {
return request({
url: `/report/traffic/conversion/mall`,
method: "get",
data
});
}
// 区域统计
export function getGateStatisticsApi(data) {
return request({
url: `/report/gate/analyse/statistics`,
method: "get",
data
});
}
// 门店排行
export function getStoreRankApi(data, type = 'month') {
return request({
url: `/report/new/report/${type}/account/body`,
method: "get",
data
});
}
// 获取门店能用的指标
export function getStoreIndicatorsApi(id) {
return request({
url: `/report/b-mall-index/indexConfig/${id}`,
method: "get",
});
}
// 获取集团能用的指标
export function getAccountIndicatorsApi(id) {
return request({
url: `/report/b-mall-index/account/indexConfig/${id}?accountId=${id}`,
method: "get",
});
}
// 获取用户门店数量、设备总量
export function getUserStoreEquipmentNumApi(data) {
return request({
url: `/patrol/app/overview`,
method: "get",
data
})
}
// 获取用户集团待办任务
export function getUserTaskNumApi(data) {
return request({
url: `/patrol/statistics/personPlan`,
method: "get",
data
})
}