From d26274d89d377067c1e2648192cffbf89464b361 Mon Sep 17 00:00:00 2001
From: wsj <593216709@qq.com>
Date: Wed, 28 Oct 2026 23:34:32 +0800
Subject: [PATCH] feat: 拆包

---
 src/pages/customers/list/types.ts |   64 +++++++++++++++++++++++++++----
 1 files changed, 55 insertions(+), 9 deletions(-)

diff --git a/src/pages/customers/list/types.ts b/src/pages/customers/list/types.ts
index 9b98499..40b57ee 100644
--- a/src/pages/customers/list/types.ts
+++ b/src/pages/customers/list/types.ts
@@ -1,3 +1,5 @@
+import type { PageResult } from '@/types/api';
+
 /** 客户类型。 */
 export type CustomerType = 'ENTERPRISE' | 'PERSONAL';
 
@@ -52,6 +54,8 @@
   tags?: string;
   orgId?: number;
   ownerId?: number;
+  /** 归属销售员姓名。 */
+  ownerName?: string;
   stage?: CustomerStage;
   lastFollowAt?: string;
   nextFollowAt?: string;
@@ -60,18 +64,60 @@
   lostReason?: string;
 }
 
-/** 通用分页响应(PageResult)。 */
-export interface PageResult<T> {
-  page: number;
-  size: number;
-  total: number;
-  totalPages: number;
-  records: T[];
-}
-
 /** 客户列表响应数据(ResultPageResultCustomerVO 的 data)。 */
 export type TenantCustomerPageResult = PageResult<CustomerVO>;
 
+/** 客户详情请求参数。 */
+export interface TenantCustomerDetailRequest {
+  id: number;
+}
+
+/** 客户详情响应数据(ResultCustomerVO 的 data)。 */
+export type TenantCustomerDetailResponse = CustomerVO;
+
+/** 跟进方式。 */
+export type FollowMethod = 'PHONE' | 'WECHAT' | 'VISIT' | 'EMAIL' | 'MEETING';
+
+/** 跟进状态。 */
+export type FollowStatus = 'DONE' | 'PENDING' | 'OVERDUE';
+
+/** 跟进记录类型。 */
+export type FollowRecordType = 'FOLLOW' | 'PLAN' | 'STAGE_CHANGE';
+
+/** 跟进记录(FollowUpVO)。 */
+export interface FollowUpVO {
+  id: number;
+  customerId?: number;
+  followerId?: number;
+  /** 记录创建时间(后端实际返回,时间轴按此展示)。 */
+  createdAt?: string;
+  followAt?: string;
+  followMethod?: FollowMethod;
+  content?: string;
+  nextFollowAt?: string;
+  nextFollowPlan?: string;
+  followStatus?: FollowStatus;
+  recordType?: FollowRecordType;
+  stageFrom?: CustomerStage;
+  stageTo?: CustomerStage;
+}
+
+/** 客户跟进历史查询参数(FollowUpPageQuery)。 */
+export interface FollowUpPageQuery {
+  page?: number;
+  size?: number;
+  sortBy?: string;
+  sortDir?: string;
+}
+
+/** 客户跟进历史请求参数:路径 id + 分页。 */
+export interface TenantCustomerFollowUpListRequest extends FollowUpPageQuery {
+  id: number;
+}
+
+/** 客户跟进历史响应数据(ResultPageResultFollowUpVO 的 data)。 */
+export type TenantCustomerFollowUpListResponse = PageResult<FollowUpVO>;
+
 /** ProTable 搜索表单参数,字段与请求参数中可筛选的字段保持一致。 */
 export interface CustomerListQuery {
   ownerId?: number;

--
Gitblit v1.9.3