diff --git a/src/api/crm/backlog/index.ts b/src/api/crm/backlog/index.ts index e9494aa84ca957cf20cffaad9ae4e77d7d82c26d..6ff03e3f215a9c1e15424b24d4a9bf10c2718dce 100644 --- a/src/api/crm/backlog/index.ts +++ b/src/api/crm/backlog/index.ts @@ -1,17 +1,41 @@ import request from '@/config/axios' -import { type CustomerVO } from '../customer' -import { type ClueVO } from '../clue' +// 1. 获得今日需联系客户数量 +export const getTodayCustomerCount = async () => { + return await request.get({ url: '/crm/customer/today-customer-count' }) +} + +// 2. 获得分配给我的线索数量 +export const getFollowLeadsCount = async () => { + return await request.get({ url: '/crm/clue/follow-leads-count' }) +} + +// 3. 获得分配给我的客户数量 +export const getFollowCustomerCount = async () => { + return await request.get({ url: '/crm/customer/follow-customer-count' }) +} -// 查询客户列表 -// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里; -export const getTodayCustomerPage = async (params) => { - return await request.get({ url: `/crm/backlog/today-customer-page`, params }) +// 4. 获得待进入公海的客户数量 +export const getPutInPoolCustomerRemindCount = async () => { + return await request.get({ url: '/crm/customer/put-in-pool-remind-count' }) } -// 查询线索列表 -export const getFollowLeadsPage = async (params) => { - return await request.get({ url: `/crm/backlog/page`, params }) +// 5. 获得待审核合同数量 +export const getCheckContractCount = async () => { + return await request.get({ url: '/crm/contract/check-contract-count' }) } -export { type CustomerVO, type ClueVO } +// 6. 获得待审核回款数量 +export const getCheckReceivablesCount = async () => { + return await request.get({ url: '/crm/receivable/check-receivables-count' }) +} + +// 7. 获得待回款提醒数量 +export const getRemindReceivablePlanCount = async () => { + return await request.get({ url: '/crm/receivable-plan/remind-receivable-plan-count' }) +} + +// 8. 获得即将到期的合同数量 +export const getEndContractCount = async () => { + return await request.get({ url: '/crm/contract/end-contract-count' }) +} diff --git a/src/views/crm/backlog/index.vue b/src/views/crm/backlog/index.vue index 5fb539609c31889d401ce43637d51d6b08d59824..bf5a96081bab2a041f19a42ae0cbb5eab27dd65d 100644 --- a/src/views/crm/backlog/index.vue +++ b/src/views/crm/backlog/index.vue @@ -29,6 +29,7 @@ +