| | |
| | | import type { PageParam, PageResult } from '../../../packages/effects/request/src'; |
| | | import type { PageParam, PageResult } from '@vben/request'; |
| | | |
| | | import type { CrmPermissionApi } from '#/api/crm/permission'; |
| | | |
| | |
| | | createTime: Date; // 创建时间 |
| | | updateTime: Date; // 更新时间 |
| | | poolDay?: number; // 距离进入公海天数 |
| | | customerType?: string; // 客户分类(政企/工业/居民等) |
| | | creditLevel?: string; // 当前信用等级 |
| | | creditScore?: number; // 当前信用分 |
| | | overdueAmount?: number; // 欠费金额(未回款+逾期) |
| | | overdueCount?: number; // 欠费笔数 |
| | | } |
| | | |
| | | /** 客户导入请求 */ |
| | |
| | | |
| | | /** 领取公海客户 */ |
| | | 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(',') }, |
| | | }); |
| | | } |
| | | |
| | | /** 分配公海给对应负责人 */ |