mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-20 13:55:07 +08:00
✨ CRM:完善 CRM 跟进记录(商机的展示、添加)
This commit is contained in:
@ -92,11 +92,6 @@ export const getBusinessPageByContact = async (params) => {
|
||||
return await request.get({ url: `/crm/business/page-by-contact`, params })
|
||||
}
|
||||
|
||||
// 获得 CRM 商机列表
|
||||
export const getBusinessListByIds = async (val: number[]) => {
|
||||
return await request.get({ url: '/crm/business/list-by-ids', params: { ids: val.join(',') } })
|
||||
}
|
||||
|
||||
// 商机转移
|
||||
export const transferBusiness = async (data: TransferReqVO) => {
|
||||
return await request.put({ url: '/crm/business/transfer', data })
|
||||
|
@ -11,7 +11,17 @@ export interface FollowUpRecordVO {
|
||||
fileUrls: string[] // 附件
|
||||
nextTime: Date // 下次联系时间
|
||||
businessIds: number[] // 关联的商机编号数组
|
||||
businesses: {
|
||||
id: number
|
||||
name: string
|
||||
}[] // 关联的商机数组
|
||||
contactIds: number[] // 关联的联系人编号数组
|
||||
contacts: {
|
||||
id: number
|
||||
name: string
|
||||
}[] // 关联的联系人数组
|
||||
creator: string
|
||||
creatorName?: string
|
||||
}
|
||||
|
||||
// 跟进记录 API
|
||||
@ -21,28 +31,13 @@ export const FollowUpRecordApi = {
|
||||
return await request.get({ url: `/crm/follow-up-record/page`, params })
|
||||
},
|
||||
|
||||
// 查询跟进记录详情
|
||||
getFollowUpRecord: async (id: number) => {
|
||||
return await request.get({ url: `/crm/follow-up-record/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增跟进记录
|
||||
createFollowUpRecord: async (data: FollowUpRecordVO) => {
|
||||
return await request.post({ url: `/crm/follow-up-record/create`, data })
|
||||
},
|
||||
|
||||
// 修改跟进记录
|
||||
updateFollowUpRecord: async (data: FollowUpRecordVO) => {
|
||||
return await request.put({ url: `/crm/follow-up-record/update`, data })
|
||||
},
|
||||
|
||||
// 删除跟进记录
|
||||
deleteFollowUpRecord: async (id: number) => {
|
||||
return await request.delete({ url: `/crm/follow-up-record/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出跟进记录 Excel
|
||||
exportFollowUpRecord: async (params) => {
|
||||
return await request.download({ url: `/crm/follow-up-record/export-excel`, params })
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user