index.ts 1.2 KB

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