rank.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import request from '@/config/axios'
  2. export interface StatisticsRankRespVO {
  3. count: number
  4. nickname: string
  5. deptName: string
  6. }
  7. // 排行 API
  8. export const StatisticsRankApi = {
  9. // 获得合同排行榜
  10. getContractPriceRank: (params: any) => {
  11. return request.get({
  12. url: '/crm/statistics-rank/get-contract-price-rank',
  13. params
  14. })
  15. },
  16. // 获得回款排行榜
  17. getReceivablePriceRank: (params: any) => {
  18. return request.get({
  19. url: '/crm/statistics-rank/get-receivable-price-rank',
  20. params
  21. })
  22. },
  23. // 签约合同排行
  24. getContractCountRank: (params: any) => {
  25. return request.get({
  26. url: '/crm/statistics-rank/get-contract-count-rank',
  27. params
  28. })
  29. },
  30. // 产品销量排行
  31. getProductSalesRank: (params: any) => {
  32. return request.get({
  33. url: '/crm/statistics-rank/get-product-sales-rank',
  34. params
  35. })
  36. },
  37. // 新增客户数排行
  38. getCustomerCountRank: (params: any) => {
  39. return request.get({
  40. url: '/crm/statistics-rank/get-customer-count-rank',
  41. params
  42. })
  43. },
  44. // 新增联系人数排行
  45. getContactsCountRank: (params: any) => {
  46. return request.get({
  47. url: '/crm/statistics-rank/get-contacts-count-rank',
  48. params
  49. })
  50. },
  51. // 跟进次数排行
  52. getFollowCountRank: (params: any) => {
  53. return request.get({
  54. url: '/crm/statistics-rank/get-follow-count-rank',
  55. params
  56. })
  57. },
  58. // 跟进客户数排行
  59. getFollowCustomerCountRank: (params: any) => {
  60. return request.get({
  61. url: '/crm/statistics-rank/get-follow-customer-count-rank',
  62. params
  63. })
  64. }
  65. }