index.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import request from '@/config/axios'
  2. // 1. 获得今日需联系客户数量
  3. export const getTodayCustomerCount = async () => {
  4. return await request.get({ url: '/crm/customer/today-customer-count' })
  5. }
  6. // 2. 获得分配给我的线索数量
  7. export const getFollowLeadsCount = async () => {
  8. return await request.get({ url: '/crm/clue/follow-leads-count' })
  9. }
  10. // 3. 获得分配给我的客户数量
  11. export const getFollowCustomerCount = async () => {
  12. return await request.get({ url: '/crm/customer/follow-customer-count' })
  13. }
  14. // 4. 获得待进入公海的客户数量
  15. export const getPutInPoolCustomerRemindCount = async () => {
  16. return await request.get({ url: '/crm/customer/put-in-pool-remind-count' })
  17. }
  18. // 5. 获得待审核合同数量
  19. export const getCheckContractCount = async () => {
  20. return await request.get({ url: '/crm/contract/check-contract-count' })
  21. }
  22. // 6. 获得待审核回款数量
  23. export const getCheckReceivablesCount = async () => {
  24. return await request.get({ url: '/crm/receivable/check-receivables-count' })
  25. }
  26. // 7. 获得待回款提醒数量
  27. export const getRemindReceivablePlanCount = async () => {
  28. return await request.get({ url: '/crm/receivable-plan/remind-receivable-plan-count' })
  29. }
  30. // 8. 获得即将到期的合同数量
  31. export const getEndContractCount = async () => {
  32. return await request.get({ url: '/crm/contract/end-contract-count' })
  33. }