📖 CRM:线索的转化逻辑

This commit is contained in:
YunaiV
2024-02-19 20:40:37 +08:00
parent 1047c5b097
commit 0ae6139e92
10 changed files with 309 additions and 11 deletions

View File

@ -20,11 +20,16 @@ export interface ClueVO {
wechat: string // wechat
email: string // email
areaId: number // 所在地
areaName?: string // 所在地名称
detailAddress: string // 详细地址
industryId: number // 所属行业
level: number // 客户等级
source: number // 客户来源
remark: string // 备注
creator: string // 创建人
creatorName?: string // 创建人名称
createTime: Date // 创建时间
updateTime: Date // 更新时间
}
// 查询线索列表
@ -61,3 +66,8 @@ export const exportClue = async (params) => {
export const transferClue = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/clue/transfer', data })
}
// 线索转化为客户
export const transformClue = async (ids: number[]) => {
return await request.put({ url: '/crm/clue/transform?ids=' + ids.join(',') })
}

View File

@ -19,7 +19,7 @@ export interface PermissionVO {
* @author HUIHUI
*/
export enum BizTypeEnum {
CRM_LEADS = 1, // 线索
CRM_CLUE = 1, // 线索
CRM_CUSTOMER = 2, // 客户
CRM_CONTACT = 3, // 联系人
CRM_BUSINESS = 4, // 商机