云
6 天以前 48e9b7d100ddd91a13e79e09bb5d992a62ffd026
src/api/crm/customer/index.ts
@@ -19,6 +19,7 @@
    ownerUserDeptName?: string; // 负责人的部门名称
    lockStatus?: boolean;
    dealStatus?: boolean;
    autoPoolEnabled?: boolean; // 是否流入公海,关闭时取消公海可见度
    mobile: string; // 手机号
    telephone: string; // 电话
    qq: string; // QQ
@@ -43,6 +44,13 @@
    ownerUserId: number;
    file: File;
    updateSupport: boolean;
  }
  /** 客户导入结果 */
  export interface CustomerImportRespVO {
    createCustomerNames?: string[]; // 新增成功的客户名
    updateCustomerNames?: string[]; // 更新成功的客户名
    failureCustomerNames?: Record<string, string>; // 导入失败的客户名及原因
  }
}
@@ -88,7 +96,10 @@
/** 导入客户 */
export function importCustomer(data: CrmCustomerApi.CustomerImportReqVO) {
  return requestClient.upload('/crm/customer/import', data);
  return requestClient.upload<CrmCustomerApi.CustomerImportRespVO>(
    '/crm/customer/import',
    data,
  );
}
/** 获取客户精简信息列表 */
@@ -110,7 +121,9 @@
/** 领取公海客户 */
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(',') },
  });
}
/** 分配公海给对应负责人 */