CRM:增加回款的待办事项逻辑

This commit is contained in:
YunaiV
2024-02-26 12:24:47 +08:00
parent 154f84a89e
commit d220ffae6a
18 changed files with 456 additions and 339 deletions

View File

@ -1,22 +0,0 @@
import request from '@/config/axios'
// TODO 芋艿:融合下
// 5. 获得待审核合同数量
export const getCheckContractCount = async () => {
return await request.get({ url: '/crm/contract/check-contract-count' })
}
// 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' })
}

View File

@ -64,3 +64,8 @@ export const exportReceivable = async (params) => {
export const submitReceivable = async (id: number) => {
return await request.put({ url: `/crm/receivable/submit?id=${id}` })
}
// 获得待审核回款数量
export const getAuditReceivableCount = async () => {
return await request.get({ url: '/crm/receivable/audit-count' })
}

View File

@ -67,3 +67,8 @@ export const deleteReceivablePlan = async (id: number) => {
export const exportReceivablePlan = async (params) => {
return await request.download({ url: `/crm/receivable-plan/export-excel`, params })
}
// 获得待回款提醒数量
export const getReceivablePlanRemindCount = async () => {
return await request.get({ url: '/crm/receivable-plan/remind-count' })
}