Commit Graph

141 Commits

Author SHA1 Message Date
v6ole e14308b757 feat: 新增 minimal-dark 和 tech-dark 两套暗色 CSS 变量
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:48:14 +08:00
v6ole ce24937ba0 feat: 改造 theme store 支持暗黑模式双选架构
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:45:56 +08:00
v6ole 6fd9cfbff9 chore: 更新 components.d.ts 自动生成文件
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:34:03 +08:00
v6ole ee3f76d960 docs: 更新 CLAUDE.md — 个人用户+移动端导航+我的数据优化决策
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:29:27 +08:00
v6ole a9344eadae fix: 日期选择框和搜索框统一宽度240px; 搜索按钮改为文字
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:27:55 +08:00
v6ole 392380ab51 fix: 日期选择合并为daterange; 搜索框+日期选择移至标题行
- 两个独立month picker合并为一个daterange选择器
- 日期选择+搜索框移至我的工作数据标题同行
- 搜索框增加搜索按钮
- 移除新建按钮

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:25:52 +08:00
v6ole 7699e88578 feat: 我的数据页面日期筛选改为月度选择器+新建按钮移至筛选栏
- 替换固定周期(本周/本月/本年)为 el-date-picker type=month
- 支持任意月份筛选,选完自动刷新
- 新建按钮移至筛选栏最右侧,与搜索框同行
- 各Tab内移除独立的创建按钮

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:12:05 +08:00
v6ole f89638b3f0 feat: 桌面端工作计划/商机/要客列表新增搜索框
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:06:56 +08:00
v6ole 04f701b27c fix: 移动端列表页搜索框和按钮去掉size=small,使用默认大小
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 01:02:35 +08:00
v6ole 07c6f65378 fix: 商机跟单/要客拜访搜索框漏传params参数
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:59:53 +08:00
v6ole cdbe59e97f feat: 5个列表API新增搜索参数支持
- visits: search沟通内容/客户需求/拜访人/客户名
- daily_notes: search内容
- work_plans: search计划内容/客户名
- mini_business: search产品/跟进/客户名
- key_visits: search描述/拜访人/客户名

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:55:43 +08:00
v6ole e7125ff930 docs: 更新 CLAUDE.md — 个人用户决策
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:50:22 +08:00
v6ole 72d869bafb feat: 移动端列表页支持搜索+分页(25条/页);历史移至请假后
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:49:43 +08:00
v6ole 3059f0e7e4 feat: 移动端工作中心新增历史拜访+历史纪要
- 工作中心新增两个卡片入口:历史拜访 / 历史纪要
- VisitsList.vue: 拜访历史记录列表,点击进入编辑
- NotesList.vue: 纪要历史记录列表,点击进入编辑
- 复用已有编辑表单(VisitForm/DailyNoteForm edit mode)
- 网格改为3列布局容纳6个卡片

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:32:16 +08:00
v6ole d6dec7f9af feat: 我的数据页面新增日期筛选+搜索+分页
- 本周/本月/本年/全部 四个时间范围筛选(默认本月)
- 关键词搜索所有内容
- el-pagination 分页(25/50/100条每页)
- 每个Tab独立分页状态

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:25:21 +08:00
v6ole ff07e9c470 fix: 图片上传改用 POST + axios.put,与ManagerWorkspace一致
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:17:33 +08:00
v6ole c55ea18aaf feat: 个人用户拜访编辑新增照片查看/删除/上传功能
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:14:40 +08:00
v6ole 32ca029580 fix: 个人用户编辑弹窗与我的数据保持一致—补全四模块全部字段
- 拜访: 客户经理/日期/方式/时间/拜访人/电话/相关人员/内容/需求
- 计划: 客户经理/计划日期/内容/状态
- 商机: 客户经理/产品/金额/跟进/状态/预计列收(月选择器)
- 要客: 客户经理/紧急度/描述/进展/时间/拜访人/对象

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:12:09 +08:00
v6ole ae29a17825 fix: 个人用户拜访编辑弹窗补全所有字段
客户经理/日期/方式/时间/拜访人/电话/沟通内容/客户需求

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:08:13 +08:00
v6ole 1fddc35119 feat: 个人用户视图表格新增编辑按钮+编辑弹窗
4个Tab的表格均添编辑按钮,点击弹窗可编辑关键字段并保存/删除

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:04:32 +08:00
v6ole 9a39b96316 fix: 客户类型Tab改为自定义按钮样式,匹配整体设计风格
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-13 00:01:02 +08:00
v6ole 83c87cad3d fix: 个人用户Tab禁用新建客户按钮
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 23:58:38 +08:00
v6ole 9f3067b412 fix: 单位客户列表API请求加上 customer_type 筛选参数
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 23:52:26 +08:00
v6ole 7c75164323 feat: 个人用户拜访记录新增拜访人+客户经理列
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 22:19:14 +08:00
v6ole 6504a393e3 feat: 个人用户聚合视图 — 客户管理双Tab+四模块数据聚合
- customers 表新增 customer_type 列 (unit/individual)
- 客户管理页:单位客户 | 个人用户 Tab 切换
- 个人用户 Tab: 直接内嵌4 Tab 显示所有个人用户的聚合数据
- 个人用户通过业务模块快速新建产生 (customer_type=individual)
- 4个业务API新增 customer_type 筛选参数(JOIN customers)
- 客户列表排序: 个人用户置顶

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 22:14:44 +08:00
v6ole 835e5d38fd Revert "feat: 客户管理新增个人用户类型,双Tab分离管理"
This reverts commit 03198557f7.
2026-07-12 21:45:23 +08:00
v6ole 03198557f7 feat: 客户管理新增个人用户类型,双Tab分离管理
- customers 表新增 customer_type 列 (unit/individual)
- 列表按个人优先排序,支持 customer_type 筛选
- PC端 el-radio-group 切换:单位客户 | 个人用户
- 个人用户表单: 仅姓名+备注,隐藏行业/地址/业务/月费/客户经理/联系人
- 所有业务模块客户搜索下拉中个人用户置顶

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 21:43:08 +08:00
v6ole 98a0d4f7c8 fix: 客户详情顶部信息区用卡片样式区分Tab区域
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 21:09:58 +08:00
v6ole 05d33d518f feat: 客户详情弹窗新增拜访/计划/商机/要客四个关联数据Tab
点击客户名 → 800px 弹窗,顶部显示基本信息,下方 el-tabs 切换:
- 拜访记录 / 工作计划 / 商机跟单 / 要客拜访
- 各 Tab 并行加载对应 customer_id 筛选数据

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 21:03:10 +08:00
v6ole 9354752b89 fix: 商机改为已流失时前端自动清空列收时间再提交
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:56:03 +08:00
v6ole 82755e14a1 fix: 桌面端支局长/领导新建记录时客户经理栏显示UUID
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:50:07 +08:00
v6ole 20f5b01987 feat: 商机跟单默认筛选跟进中 + 已流失置底 + 清空列收
- 后端: 状态改为已流失时自动清空 expected_revenue_date
- PC端: 默认筛选跟进中,排序 跟进中→已签约→已流失
- 移动端: 列表自动排序,已流失在最底部

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:49:01 +08:00
v6ole 78962e45d7 feat: 移动端商机跟单新增跟进记录时间线+添加功能
编辑模式下表单底部显示跟进时间线 + 新增跟进入口
与PC端一致的体验:方式chip选择 + 日期 + 内容

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:42:22 +08:00
v6ole fade9e62e2 fix: 支局长/领导新建记录时客户经理栏显示UUID
manager_id 初始值: director/leader 设为空让用户选择,manager 仍用自身ID
编辑模式保留原记录的 manager_id

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:38:51 +08:00
v6ole 7b91cb4230 fix: 移动端编辑表单自动补充客户到选项列表,避免显示UUID
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:34:34 +08:00
v6ole 6c76b34d1b fix: 移动端刷新页面后主题回退的问题
在 index.html 添加内联 script,Vue 启动前从 localStorage 读取主题
并设置 data-theme 属性,消除 Pinia store 初始化时序导致的闪烁

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:32:31 +08:00
v6ole 1e0f77d4e6 feat: 桌面端表单必填项标记 * + 提交校验
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:30:43 +08:00
v6ole ff0a38a369 feat: 移动端表单必填项标记红色 * 号 + 提交校验
- 客户单位/日期/纪要内容/计划拜访时间 标记 *
- 缺失必填项时 ElMessage.warning 提示
- CSS: .required-star { color: var(--vermilion); }

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:28:54 +08:00
v6ole 6d1ccbb246 fix: 删除按钮移至标题栏右侧,与标题水平对齐
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:23:31 +08:00
v6ole 216406326a fix: 添加单条记录GET端点,修复移动端编辑表单数据加载
- work-plans/mini-business/key-visits 均新增 GET /{id} 端点
- 三个移动端编辑表单改用单条端点加载数据
- 修复点击卡片进入编辑时空白的 bug

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:20:07 +08:00
v6ole 33fb6a63c0 fix: 移动端列表卡片去掉编辑按钮,点击卡片直接进入编辑
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:17:03 +08:00
v6ole 637a0949a8 fix: 移动端列表页删除按钮改为编辑按钮
卡片底部按钮从 🗑 删除改为 ✏️ 编辑,编辑表单内保留删除功能

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:13:39 +08:00
v6ole aed9182dbe fix: 移动端列表页移除 v-loading 遮罩,修复卡片点击无反应
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:12:14 +08:00
v6ole 24fb5f8f71 feat: 移动端工作计划/商机跟单/要客拜访支持编辑和删除
- 三个表单均支持 create+edit 双模式(通过 route.params.id 判断)
- 编辑模式: 加载已有数据 → 修改 → PUT 更新
- 编辑模式增加删除按钮
- 列表页卡片点击跳转编辑页
- 新增 6 条编辑路由

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:06:47 +08:00
v6ole bc6c7076fe feat: 移动端导航重构 — 4 Tab + 工作中心 + 模块列表
- TabBar 新增「工作」标签(首页/工作/拜访/纪要)
- 新增工作中心页(/m/work),四卡片入口显示各模块记录数
- 新增三个列表页:工作计划/商机跟单/要客拜访(卡片流+删除)
- 首页精简:移除快捷 chip,入口统一到工作中心
- 路由新增: /m/work, /m/plans, /m/mini-biz, /m/key-visits

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 19:58:01 +08:00
v6ole e06574df38 fix: 移动端相关人员提示更新为同访人周报显示说明
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 19:53:00 +08:00
v6ole 10835ef15c feat: 消除同访草案机制,改为查询时通过 companions 数组覆盖
- 删除 POST /visits 中的草案创建逻辑(不再创建空拜访记录)
- 周报查询:manager 角色也显示同访的拜访记录
- 亮灯表覆盖:同访人也算客户拜访覆盖(UNION companions)
- 填报进度:同访人也算今日已填报
- 清理已有 2 条空草案记录

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 19:40:49 +08:00
v6ole 3ce77ed606 feat: 拜访记录创建时自动联动商机跟进
- POST /visits 创建拜访后,自动查询同客户下「跟进中」的商机
- 为每个匹配商机追加一条跟进记录(mini_business_log)
- 内容: 沟通内容 + 客户需求拼接
- 方式: 拜访方式自动映射(上门→上门/电话→电话/微信→微信/出差→其他)
- 仅创建时触发,更新/导入不联动

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 19:22:40 +08:00
v6ole 9eae965858 fix: 跟进记录日期选择器添加 value-format 避免 422 错误
el-date-picker 默认返回 Date 对象,JSON 序列化为 ISO 格式,
Pydantic date 字段不接受,需显式指定 value-format="YYYY-MM-DD"

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 19:04:21 +08:00
v6ole 87876f11fd fix: MiniBusiness.vue 缺少 miniBusinessApi 导入
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 18:57:48 +08:00