reportApi.js
1.03 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
const url = '/rop-scrm-carlife/router'
const customer = '/rop-scrm-entmicro/router'
// const customer = 'http://192.168.2.90:8064/rop-scrm-entmicro/router'
/**获取当前门店周报月报产值统计 */
export function getReportData(data) {
data.method = 'scrm.api.carlife.weekly.report.get'
return window.$HTTP({
url,
data,
returnAll: true
})
}
/**获取当前门店周报月报客户统计 */
export function getCumerchantReportData(data) {
data.method = 'entmicro.api.customer.merchant.report'
return window.$HTTP({
url: customer,
data,
returnAll: true //true获取所有 fasle:只返回data
})
}
/**获取当前集团周报月报客户统计 */
export function getCugroupReportData(data) {
data.method = 'entmicro.api.customer.group.report'
return window.$HTTP({
url: customer,
data,
returnAll: true
})
}
export function scriptData(data={}) {
data.method ='entmicro.api.customer.merchant.report.script'
return window.$HTTP({
url: customer,
data,
returnAll: true
})
}