📖 CRM:线索的跟进逻辑

This commit is contained in:
YunaiV
2024-02-19 22:47:35 +08:00
parent 0ae6139e92
commit 04a42bc6d4
6 changed files with 153 additions and 70 deletions

View File

@ -6,11 +6,6 @@ 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' })

View File

@ -68,6 +68,11 @@ export const transferClue = async (data: TransferReqVO) => {
}
// 线索转化为客户
export const transformClue = async (ids: number[]) => {
return await request.put({ url: '/crm/clue/transform?ids=' + ids.join(',') })
export const transformClue = async (id: number) => {
return await request.put({ url: '/crm/clue/transform', params: { id } })
}
// 获得分配给我的、待跟进的线索数量
export const getFollowClueCount = async () => {
return await request.get({ url: '/crm/clue/follow-count' })
}