feat(customer): 优化客户状态筛选和统计功能

- 新增状态映射函数,实现数字状态和字符串状态的互相转换
- 在 API 层面实现状态筛选,提高数据处理效率
- 重构客户数据获取逻辑,支持按状态筛选
- 优化状态统计功能,使用异步请求并行获取各状态数量
- 调整前端渲染逻辑,适应新的数据处理方式
This commit is contained in:
2025-09-03 12:09:04 +08:00
parent 3600c1dfba
commit 70d539b186
3 changed files with 91 additions and 47 deletions

View File

@@ -48,4 +48,5 @@ export interface ShopDealerApplyParam extends PageParam {
mobile?: string;
userId?: number;
keywords?: string;
applyStatus?: number; // 申请状态筛选 (10待审核 20审核通过 30驳回)
}