云
3 天以前 a241b66efcc41e973290a6722fb7a4d79b833ea1
src/api/crm/customer/index.ts
@@ -44,6 +44,13 @@
    file: File;
    updateSupport: boolean;
  }
  /** 客户导入结果 */
  export interface CustomerImportRespVO {
    createCustomerNames?: string[]; // 新增成功的客户名
    updateCustomerNames?: string[]; // 更新成功的客户名
    failureCustomerNames?: Record<string, string>; // 导入失败的客户名及原因
  }
}
/** 查询客户列表 */
@@ -88,7 +95,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 +120,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(',') },
  });
}
/** 分配公海给对应负责人 */