crm-客户:公海抽离,完善跟进

(cherry picked from commit 5151824110)
This commit is contained in:
puhui999
2024-01-14 20:57:06 +08:00
committed by shizhong
parent bb694349f1
commit 7a8f9b3742
10 changed files with 428 additions and 102 deletions

View File

@ -36,6 +36,11 @@ export const getBusiness = async (id: number) => {
return await request.get({ url: `/crm/business/get?id=` + id })
}
// 获得 CRM 商机列表(精简)
export const getSimpleBusinessList = async () => {
return await request.get({ url: `/crm/business/simple-all-list` })
}
// 新增 CRM 商机
export const createBusiness = async (data: BusinessVO) => {
return await request.post({ url: `/crm/business/create`, data })
@ -63,5 +68,5 @@ export const getBusinessPageByContact = async (params) => {
// 获得 CRM 商机列表
export const getBusinessListByIds = async (val: number[]) => {
return await request.get({ url: '/crm/business/list-by-ids', params: { ids: val } })
return await request.get({ url: '/crm/business/list-by-ids', params: { ids: val.join(',') } })
}