Commit Graph
26 Commits
Author SHA1 Message Date
郭庆泰 7386168789 refactor(sponsor/account): 重写为与 manager/Accounts.vue 完全一致
裁掉 sponsor 专属功能:
- 头像上传 (avatar-circle / uploadToOss)
- 修改手机号 dialog (短信验证 / phoneSmsUuid)
- 所属公司 (主账号/子账号/isOwner)
- Tab 切换 (改单页 form)
- EditPen icon / useAsyncLock / useUserStore

保留:
- breadcrumb '首页 / 账号管理'
- 姓名 + 手机号 (form.nickName / phonenumber)
- 原密码 + 新密码 + 确认密码
- 保存 + 取消
- '密码长度 6-20 位' 提示
- 调 /system/user/profile + /system/user/profile/updatePwd

UI 100% 对齐 manager/Accounts.vue:
- page-card max-width 1200px
- form class='account-form' max-width 600px
- filter-tip padding-left 120px 跟 el-input 对齐
2026-08-18 01:23:08 +08:00
郭庆泰 dd39fdba5c style(manager/accounts): 对齐 SKILL — page-card max-width 1200px + form class 限宽
- page-card 加 max-width: 1200px (表单页标准)
- form 上 inline style='max-width:600px' → class='account-form' (避 SKILL 禁忌 inline style)
- CSS 加 .account-form { max-width: 600px } (跟 admin/Account.vue 同款)
2026-08-18 01:20:12 +08:00
郭庆泰 a112ecbbbb style(manager/accounts): filter-tip 加 padding-left:120px 跟 el-input 对齐 2026-08-18 01:18:57 +08:00
郭庆泰 8bf5264ea8 refactor(manager/accounts): 删两个 section-title + 删邮箱字段
template:
- 删 '修改个人信息' / '修改密码' 两个 section-title
- 删邮箱 form-item
- 个人信息只剩:姓名 + 手机号

script:
- form 删 email 字段
- rules 删 email 校验
- loadProfile 不再读 email
- onSave 提交 data 删 email
- onCancel 不再重置 email

style:
- 删 .section-title CSS (不再用)
2026-08-18 01:18:05 +08:00
郭庆泰 6d38a262dc refactor(manager/accounts): 彻底删 page-sub 副标题 (跟 el-descriptions 一起清理) 2026-08-18 01:17:07 +08:00
郭庆泰 675421619d refactor(manager/accounts): 删 el-descriptions (账号信息展示), 改 page-sub 文案 2026-08-18 01:16:55 +08:00
郭庆泰 5711e9cd7a refactor(manager/plans): 删操作列下载按钮 (跟设计文件列下载重复)
- 表格操作列 width 240 → 200
- 删 el-button onDownload (操作列里)
- downloadFile() 函数保留 (设计文件列仍用)
2026-08-18 01:14:55 +08:00
郭庆泰 81e91ee808 refactor(manager/plans): 设计文件查看改 OSS 代理 + 新窗口打开 (与 PublicityDetail 一致)
PDF 体验问题:
- 旧: Preview dialog iframe 内嵌 PDF (70vh 矮, OSS attachment 头让 iframe 强制下载)
- 新: window.open 浏览器原生 PDF viewer (Chrome 工具栏/缩放/分页/搜索全有)

实现:
- 加 proxyUrl() 函数: OSS URL 走 /common/oss/proxy 后端代理重写 inline + #toolbar=0&zoom=page-width
- 加 openDesign(): window.open(proxyUrl(row.designFileUrl), '_blank')
- 删 Preview 组件 import + onFile + previewOpen/Url/Title refs + <Preview> 标签
- 表格"查看"按钮 @click 改 openDesign(row)
- '下载'按钮保留 (downloadFile() 仍用 OSS 原始 URL)
2026-08-18 01:13:35 +08:00
郭庆泰 55f3147463 refactor(manager/plans): 删表格项目ID 列 (不在页面上展示)
planId 仍保留在 auditForm (后端 WHERE 用), 只是表格不渲染
2026-08-18 01:11:09 +08:00
郭庆泰 8bee167704 feat(manager/plans + biz-project): 审核 dialog 项目编号改远程 el-select
后端 (BizProjectController):
- 新增 GET /business/project/projectNoOptions
- 返回 [{projectNo, projectName}], 仅 project_no 非空, 按 projectNo 倒序
- 不加 @PreAuthorize (manager 是业务角色, 与 specialPlan/options 一致)

前端 (manager/Plans.vue):
- 模板: 项目编号 el-input → el-select (filterable, 显示 projectNo / projectName)
- script: 加 projectNoOptions ref + loadProjectNoOptions() 函数
- onAudit: 每次打开 dialog 调 loadProjectNoOptions 拿最新 options
2026-08-18 01:08:28 +08:00
郭庆泰 1d288fbe6c feat(manager/plans): 加项目ID列 + 项目编号debounce搜索 + 审核dialog动态规则
表格:
- 加项目ID 列 (width=80, 居中)
- 项目编号 input 加 @input/@clear 触发 onProjectNoSearch (debounce 300ms)

审核 dialog:
- 加项目编号 input (v-if result==='2' 通过时显示, 退回时隐藏)
- 审核意见去掉 prop='opinion' (永远非必填, placeholder 改'可选')
- auditForm 加 projectNo 字段
- auditRules 改 reactive + watch result 切换 projectNo 校验 (通过必填, 退回清校验状态)
- onAudit 重置 projectNo
- submitAudit: isPass 时 payload 加 projectNo
2026-08-18 01:05:22 +08:00
郭庆泰 6eccc6eab2 feat(manager/plans): 审核 dialog 支持通过/退回 (不再固定退回)
- template: 删"投稿ID"行(冗余); "审核结果"改 el-radio-group (通过 '2' / 退回 '3')
- auditForm: 加 result 字段 (默认 '2')
- auditRules: 加 result 必选校验; opinion 文案改为'请填写审核意见'
- onAudit: 重置 result='2'
- submitAudit: 用 auditForm.result 替换硬编码 '3'; 成功消息根据 result 显示'已通过'/'已退回'
2026-08-18 01:01:36 +08:00
郭庆泰 396a631880 refactor(submissions): 删操作列下载按钮 (跟设计文件列下载重复)
- 表格操作列 width 220 → 180
- 删 el-button onDownload
- 删 onDownload() 函数 (window.open designFileUrl)
2026-08-18 00:58:20 +08:00
郭庆泰 ada60e3b23 style(submission-detail): breadcrumb margin-bottom 16px → 20px (再宽一点) 2026-08-18 00:56:58 +08:00
郭庆泰 3d5cd87441 style(submission-detail): breadcrumb margin-bottom 12px → 16px (留白) 2026-08-18 00:56:37 +08:00
郭庆泰 b6428dc5c8 style(submission-detail): 回退 el-descriptions 改回 el-form readonly
- template: el-descriptions → el-form + el-input readonly + readonly-cell
- script: 恢复 fmt / display computed
- style: 恢复 readonly-form / readonly-cell CSS
- 保留: page-card + 标准 breadcrumb + max-width 1200px
2026-08-18 00:55:45 +08:00
郭庆泰 3de26199b1 style(submission-detail): 对齐 People.vue 风格 — page-card + el-descriptions + max-width 1200px
- template: 1 层 page-card 包全部, 删 el-card 嵌套
- template: 标准 breadcrumb (首页 / 分类 / 当前页), 删 inline <a> 链接
- template: 只读信息改用 el-descriptions (column=2, border), 删 el-input readonly 那一坨
- template: el-link 下载 (上一提交已加, 保留)
- script: 删 fmt/display (el-descriptions 内联 {{ xxx || '-' }})
- style: 3 行 (max-width 1200px / breadcrumb / detail-actions), 删 readonly-form/readonly-cell/.detail-card/:deep(.el-button) 全部
2026-08-18 00:54:49 +08:00
郭庆泰 ad3aac0e68 refactor(submission-detail): 设计文件改 el-link + 下载 (删 Preview 组件) 2026-08-18 00:53:02 +08:00
郭庆泰 67be5345ad refactor(submissions): 方案A — mapper submitter_name + 页面样式对齐 + 紧急迁移
- mapper: selectFields 加 COALESCE(bp.name, u.user_name), LEFT JOIN biz_person (uk_person_user_id 防笛卡尔积)
- mapper: insert 补 7 字段 (plan_name/plan_direction/plan_category/project_form/design_file_url/is_settled/project_no), plan_name NOT NULL 缺默认
- SQL: 紧急迁移脚本 add submitter_id + idx + biz_person UNIQUE (ALTER, 不 DROP)
- SubmissionNew: page-card + breadcrumb + max-width 1200px, accept=.pdf/.png/.jpg/.jpeg, __silentError 防双 toast
- SubmissionNew: el-upload drag 模式 A (对齐 Meetings.vue, 删 design-uploader 自定义 CSS)
- SubmissionDetail: 删状态/投稿人/投稿时间/审计, 改 Preview 组件展示设计文件
2026-08-18 00:51:53 +08:00
郭庆泰 b52a334184 chore: biz_org 合并 / BizProject 重构 / 各角色页面调整 (上次重构遗留)
涵盖改动范围:
- 后端 BizOrg / BizProject / BizProjectRating / BizSpecialPlan controller + domain + mapper + service
- 前端 admin (BizSpecialPlanAdmin, ProjectCategory) / executor / leader / manager / sponsor 多页调整
- api/dict.js + AdminLayout.vue 同步
2026-08-18 00:30:34 +08:00
郭庆泰 c9fc6ebdb8 refactor(doctor/submissions): 合并到 biz_project_plan + 删除 biz_submission 死代码
- /doctor/submissions 改走 biz_project_plan,与 /manager/plans 字段/组件/状态字典完全对齐
- BizProjectPlan 加 submitter_id (BIGINT) + submitter_name (LEFT JOIN 查询字段)
- mapper 改 LEFT JOIN biz_person + sys_user,COALESCE(bp.name, u.user_name) 兜底
- biz_person.user_id 加 UNIQUE 索引 (1:1 LEFT JOIN 无笛卡尔积)
- controller 加 doctor 角色自动过滤: list 按 submitter_id, add/edit 强制 submitter_id
- 删除 7 个 BizSubmission 死代码 (Controller/Service/Mapper/Domain/XML/Enum) + 1 utils
- 路由参数 :subId → :planId (路径名 submission 保留产品文案)
- 新增 migration_submission_to_projectPlan_2026_08_18.sql
2026-08-18 00:28:40 +08:00
郭庆泰 b41cf77cac feat(publicity): 公示页支持/执行意向 (匿名提交 + 管理审核)
- 新增 biz_publicity_support_intent / biz_publicity_execution_intent 两张独立表
  (与已登录视角的 biz_support_intent / biz_execution_intent 解耦, 避免匿名数据污染强绑表)
- 后端 BizPublicityIntentController: 公开提交 + 公开查重 (按 project_id+phone+source) + 管理 CRUD
  已登录直接取 user_id, 未登录但 phone 命中 sys_user 仍自动关联 user_id (不回强制登录)
- /business/publicity/** 加 Spring Security permitAll
- 前端 PublicityDetail.vue: 右侧 2 个意向按钮 (已登录/匿名都弹 dialog 填 5 字段),
  已提交状态用 hasPublicityIntent 按 phonenumber 持久化查回
- 重写 manager/SupportIntent.vue + manager/ExecIntent.vue: 列表/筛选/CSV导出/状态变更/批量删除
2026-08-17 01:15:16 +08:00
郭庆泰 ccfd03a6eb 批量推送 2026-08-16 21:24:53 +08:00
郭庆泰 0c093076a4 批量推送 2026-08-16 13:42:26 +08:00
郭庆泰 c612d4297a feat: 统一角色枚举 (meetingExecutor/supervisor) + 子账号数据隔离 + Login 读取后端 role_type
后端:
- SysUser 加 roleType 字段 (entity + mapper selectUserVo + service 接口/实现)
- SysUserMapper 新增 selectUserIdsByParent (按 parent_user_id 取子账号列表)
- BizPersonController.list 自动注入 MAIN 业务用户可见性: 仅查 user_id IN (子账号列表)
- BizPersonMapper 加 params.subUserIds foreach 过滤
- BizPerson/BizPersonServiceImpl 配合 getParams().put

前端:
- Login.vue 改用后端 sys_user.roleType 替代 username 前缀 autoRole, 修复 exe01 错入 leader 菜单
- utils/roleMap.js 新增: meetingExecutor->会议执行, supervisor->监察员
- executor/People.vue / sponsor/NewPerson.vue / sponsor/Projects.vue / sponsor/SponsorProjects.vue /
  manager/ManagerProjectDetail.vue / manager/{Executor,Sponsor}PersonNew.vue /
  admin/{Executor,Sponsor}PersonNew.vue 全部改为 enum key

SQL:
- migration_unify_role_type_2026_08_16.sql 清洗 biz_person.role 从中文到 enum key
2026-08-16 13:41:42 +08:00
郭庆泰 cf5790229a refactor: 合并 biz_support_unit/biz_execution_unit/biz_service_org 为 biz_org, 删除 2 张孤儿表, 改 biz_person.work_unit → org_id FK
主要改动:
- SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org
- SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type
- SQL: biz_meeting.support_unit_name → org_name
- SQL: biz_person.work_unit → org_id (FK)
- 后端: 新 BizOrg entity/mapper/service/controller
- 后端: BizProject/BizMeeting 字段重命名
- 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件
- 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id)
- 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub)
- 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits)
- 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步)
- 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名
- 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商)
- 前端: 全工程 execution → executor (company type / role / person unit_type)
2026-08-15 12:41:10 +08:00