| | |
| | | ownerUserDept?: string; // 负责人的部门名称 |
| | | ownerUserDeptName?: string; // 负责人的部门名称 |
| | | lockStatus?: boolean; |
| | | dealStatus?: boolean; |
| | | autoPoolEnabled?: boolean; // 是否流入公海,关闭时取消公海可见度 |
| | | mobile: string; // 手机号 |
| | | telephone: string; // 电话 |
| | | qq: string; // QQ |
| | |
| | | createTime: Date; // 创建时间 |
| | | updateTime: Date; // 更新时间 |
| | | poolDay?: number; // 距离进入公海天数 |
| | | contractCount?: number; // 已签订合同数量(审批状态为审核通过),没有则为 0 |
| | | contractTotalPrice?: null | number; // 已签订合同金额合计(审核通过),没有则为 null |
| | | } |
| | | |
| | | /** 客户导入请求 */ |
| | |
| | | ownerUserId: number; |
| | | file: File; |
| | | updateSupport: boolean; |
| | | } |
| | | |
| | | /** 客户导入结果 */ |
| | | export interface CustomerImportRespVO { |
| | | createCustomerNames?: string[]; // 新增成功的客户名 |
| | | updateCustomerNames?: string[]; // 更新成功的客户名 |
| | | failureCustomerNames?: Record<string, string>; // 导入失败的客户名及原因 |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | /** 导入客户 */ |
| | | export function importCustomer(data: CrmCustomerApi.CustomerImportReqVO) { |
| | | return requestClient.upload('/crm/customer/import', data); |
| | | return requestClient.upload<CrmCustomerApi.CustomerImportRespVO>( |
| | | '/crm/customer/import', |
| | | data, |
| | | ); |
| | | } |
| | | |
| | | /** 获取客户精简信息列表 */ |
| | |
| | | |
| | | /** 领取公海客户 */ |
| | | export function receiveCustomer(ids: number[]) { |
| | | return requestClient.put('/crm/customer/receive', { ids: ids.join(',') }); |
| | | return requestClient.put('/crm/customer/receive', null, { |
| | | params: { ids: ids.join(',') }, |
| | | }); |
| | | } |
| | | |
| | | /** 分配公海给对应负责人 */ |
| | |
| | | /** 客户放入公海 */ |
| | | export function putCustomerPool(id: number) { |
| | | return requestClient.put(`/crm/customer/put-pool?id=${id}`); |
| | | } |
| | | |
| | | /** 更新客户的成交状态 */ |
| | | export function updateCustomerDealStatus(id: number, dealStatus: boolean) { |
| | | return requestClient.put( |
| | | `/crm/customer/update-deal-status?id=${id}&dealStatus=${dealStatus}`, |
| | | ); |
| | | } |
| | | |
| | | /** 进入公海客户提醒的客户列表 */ |