You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm_web/src/api/bi/ranking.js

251 lines
4.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import request from '@/utils/request'
/**
* 合同金额
* @param {*} data
* year 年
* status 1销售目标2回款目标
* user_id 员工ID
* structure_id 部门ID
*/
export function biRankingContractAPI(data) {
return request({
url: 'bi/ranking/contract',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingContractExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 回款金额排行
* @param {*} data
*/
export function biRankingReceivablesAPI(data) {
return request({
url: 'bi/ranking/receivables',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingReceivablesExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 签约合同排行
* @param {*} data
*/
export function biRankingSigningAPI(data) {
return request({
url: 'bi/ranking/signing',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingSigningExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 产品销量排行
* @param {*} data
*/
export function biRankingProductAPI(data) {
return request({
url: 'bi/ranking/product',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingProductExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 新增客户数排行
* @param {*} data
*/
export function biRankingAddCustomerAPI(data) {
return request({
url: 'bi/ranking/addCustomer',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingAddCustomerExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 新增联系人数排行
* @param {*} data
*/
export function biRankingAddContactsAPI(data) {
return request({
url: 'bi/ranking/addContacts',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingAddContactsExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 跟进次数排行
* @param {*} data
*/
export function biRankingRecordNunAPI(data) {
return request({
url: 'bi/ranking/recordNun',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingRecordNunExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 跟进客户数排行
* @param {*} data
*/
export function biRankingRecordCustomerAPI(data) {
return request({
url: 'bi/ranking/recordCustomer',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingRecordCustomerExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
/**
* 出差次数排行
* @param {*} data
*/
export function biRankingExamineAPI(data) {
return request({
url: 'bi/ranking/examine',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
export function biRankingExamineExportAPI(data) {
return request({
url: 'bi/ranking/excelExport',
method: 'post',
data: data,
responseType: 'blob',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}