zlwu and Cursor
5a011926d7
fix(qc): 我的质检任务关键词与工单列表口径对齐
...
抽取共用关键词条件,mine 接口在保留任务号/检测项外,按工单号、
协议号、入库编码、母亲姓名、出库申请字段等检索,避免占位符失效。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-21 06:52:36 +08:00
zlwu and Cursor
2bc20e695f
fix(qc): 科研捐赠协议状态空选不限制,mine 请求带上过滤
...
空协议状态改为不限制而非无结果,避免搜索像失效;我的质检任务
mine 接口与前端请求补传 protocolStatus,与质检工单列表语义对齐。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-21 06:33:51 +08:00
zlwu and Cursor
f3672d3cc2
feat(production): 临床科研出库细胞改由生产确认
...
市场出库交接对 basic_experiment 保留细胞只读并不改库存;生产工单新增确认出库细胞 API/弹窗,从细胞产品库勾选并联动已售状态。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 17:03:45 +08:00
zlwu and Cursor
9242ed0538
feat(pilot): 临床科研申请单增加必填渠道
...
开通 showChannel,保存校验并回写 channel_id/name;表单/列表/详情展示渠道,不绑定服务订单。用户确认免除 Figma。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 16:05:05 +08:00
zlwu and Cursor
6b1bf8a1d2
feat(pilot): 临床科研申请单新增业务类型字段
...
在申请单信息中增加 researchCategory(生物新技术临床科研/临床课题联合申报/生物制药研发),贯通 SQL、后端校验与 Web 表单/列表/详情;用户确认免除 Figma。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 15:51:19 +08:00
cykj and Cursor
f7890f5560
Merge pull request 'refactor: 将基础实验展示名统一改为临床科研' ( #155 ) from codex/issue-rename-basic-experiment-96cc7a73d023 into V2.0
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 15:05:02 +08:00
zlwu and Cursor
77cdeede15
fix(web-admin): 下线市场侧栏中试服务菜单
...
超管在 frontend 模式下走静态路由全量展示,仅解绑 sys_role_menu 无效;同步移除 sqxp/STATIC_MENU_TREE 并软删对应 sys_menu。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 14:33:31 +08:00
zlwu and Cursor
c5f26912bd
fix(sql): 解除市场中试服务菜单与角色绑定
...
软删市场→中试服务目录及其全部子菜单/按钮在 sys_role_menu 上的有效授权,菜单本身保留,避免误伤其他业务线下的同名菜单。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 14:24:39 +08:00
zlwu and Cursor
e85645a649
refactor: 将基础实验展示名统一改为临床科研
...
保留 basic_experiment 等内部编码与业务逻辑,全量替换用户可见及源码中文;新增 sys_menu REPLACE 迁移(不改 perms/path)。Gitea 工单因凭据 401 待补关联。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 13:51:27 +08:00
zlwu and Cursor
9b6228860f
feat(qc): 检测结果默认已完成/通过并记录修改历史
...
填写弹窗未落结论时默认任务状态已完成、结论通过(实验室与第三方);
每次保存追加操作留痕,卡片可查看修改时间线。关联 #148 #149。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-20 11:34:18 +08:00
zlwu and Cursor
12cf373a49
fix(protocol): 列表 sampleItems 返回样本作废原因
...
协议审核/捐赠列表与样本信息列表此前未带回样本 voidDesc,导致已作废问号显示暂无作废原因。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 15:31:26 +08:00
zlwu and Cursor
f40d33b07a
fix(qc): 样本接收废弃时将备注写入作废原因
...
接收结论为废弃时同步样本 yzf,并把接收备注写入 void_desc,改回接收时一并清空。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 15:17:29 +08:00
zlwu and Cursor
034a4da1ad
fix(market): 催缴/运费/实验室处理列表返回样本状态
...
Web 三处列表 CRUD 补齐 sampleStatus/voidDesc,与缴费信息修复同类缺口(#138)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 14:59:56 +08:00
zlwu and Cursor
b59c921b50
fix(payment): 缴费信息列表返回样本状态与作废原因
...
Web 列表走 list_sample_payments_page,补齐 sampleStatus/voidDesc(#136)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 14:51:29 +08:00
cykj
af02e2cdd2
Merge pull request 'feat(sample): 展示样本状态并支持样本废弃与作废原因 ( #131 )' ( #133 )
...
feat(sample): 展示样本状态并支持样本废弃与作废原因 (#131 )
2026-11-19 06:26:05 +00:00
zlwu and Cursor
0b4c8dfda8
feat(sample): 展示样本状态并支持样本废弃与作废原因
...
生产/质检入库卡片展示样本状态并支持【样本废弃】;市场 Web 列表与移动市场部卡片补充样本状态及问号查看作废原因;样本表新增 void_desc,人工作废不联动接收但全部作废时自动作废协议(#131)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 14:25:24 +08:00
zlwu and Cursor
f9aa16ef31
feat(oa): 评论@人员优先展示同部门用户
...
OA 评论选人列表改为请求 users/options 时按当前登录用户部门优先排序,Web 与移动 OA 共用后端稳定排序,便于先选到同部门同事。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 14:24:21 +08:00
zlwu and Cursor
0346bc0b1d
fix(qc): 样本接收废弃同步该样本状态为已作废
...
单条接收结论为废弃时仅将该样本置 yzf;改回接收且协议仍有效时清空作废状态;全部废弃仍自动作废协议。补充历史回刷 SQL(#129)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 13:14:10 +08:00
zlwu and Cursor
3f16a8ab3e
fix(protocol): 协议作废/属地废弃同步样本状态为已作废
...
协议变为 yzf 或 sdfq 时,除样本接收废弃联动外,将下属有效样本 sample_status 置为 yzf 并写入 void_date;补充历史回刷 SQL 与单测(#127)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 12:31:57 +08:00
zlwu and Cursor
02811197c6
feat(qc): 质检工单卡片展示协议母血采集时间
...
入库细胞存储/科研捐赠质检列表从协议采集信息补齐 maternalBloodCollectTime,
卡片 meta 与协议组摘要同步展示,未录入显示 —(#122)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-19 11:19:15 +08:00
zlwu and Cursor
50679fa75e
fix(production): UC 入库编码自动派发脐带MSC五步任务
...
样本接收 UC… 此前无内置匹配规则导致工单空任务;新增 5 步原代培养模版与回补脚本,且不影响 BC 六步模版。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-13 11:01:48 +08:00
zlwu and Cursor
2124ce9208
fix(lab-sample): 剔除导出自存伪数据并补齐间充质采集字段
...
过滤导出自存占位协议与无接收间充质行;科研捐献行从捐赠采集表取采集时间,运输温度回落到接收温度。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-12 17:38:33 +08:00
zlwu and Cursor
e7b3876db6
fix(lab-sample): 恢复 Excel 真菌等补充字段并同步质检
...
纠正入库编码被误软删问题,恢复可关联样本的补充字段;列表接入质检填空,并补充间充质科研捐献接收行。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-12 17:32:09 +08:00
zlwu and Cursor
c0aba421da
fix(lab-sample): 新旧实验室样本台账补录双向联动
...
新模块读取旧台账补录并映射字段;旧台账保存时同步到新补充表与生产传染四项,新模块保存时回写旧补录。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-12 17:19:19 +08:00
zlwu and Cursor
2aecb69cc4
fix(lab-sample): 细胞编码、母血等字段与传染四项显示
...
列表细胞编码改展示实验室入库编码;从母血采集时间、协议附件与收样检查推导是否有母血等列;传染四项 zc/bzc 显示为正常/不正常。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-12 17:01:05 +08:00
zlwu and Cursor
5698a9dfc4
fix(lab-sample): 台账改聚合真实市场生产质检数据
...
去掉 Excel 演示独有行,源表字段优先于补充表;按协议样本与科研捐献接收关联已发生业务数据,并修复导出分页超限。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-12 15:41:26 +08:00
zlwu
5fe1193a2c
feat(lab-sample): 实验室样本处理三表台账与部门字段 ACL
...
按造血/单个核/间充质聚合展示,部门员工只改本部门、主管可改全部,并支持筛选与 Excel 导出;同步纠正采集接受人串权与严格菜单守卫。
2026-11-12 12:48:05 +08:00
zlwu and Cursor
acb81cadd5
feat(qc): 新增实验室样本处理数据台账(4 Tab + 补录 + 导出)
...
在质检管理下增加按来源×样本类型展示的台账页,聚合接收/生产/质检参数,
补录按实验室入库编码关联,支持 Excel 导出与中文时间格式。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-12 12:11:57 +08:00
zlwu and Cursor
4654678231
fix(cell-storage): 储存证 ACL 保存避免 collation 混用 503
...
ACL 表与 sys_user JOIN/条件比较统一 utf8mb4_unicode_ci,并补建表 COLLATE 与 CONVERT 修复脚本(#97)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-11 16:56:58 +08:00
zlwu and Cursor
529f36eac6
feat(cell-storage): 储存证质检字段级质检/生产权限
...
按方案 A 增加租户级 ACL(字段+人员),详情返回可编辑字段,保存改为服务端 merge;弹窗 footer 提供权限配置入口。关联 #93。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-11 16:13:20 +08:00
zlwu and Cursor
15a20db725
fix(cell-storage): 脐带间充质储存证隐藏母血三项核酸
...
脐带间充质干细胞填写/查看储存证质检时不展示、不预填、不落库
HBV DNA / HCV RNA / HIV-1RNA;围产期造血干细胞保持原字段。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-11 15:15:01 +08:00
zlwu and Cursor
476f744ee9
fix(backend): 协议列表从 V2 样本缴费补齐已收金额
...
自存表导出依赖 paymentSummary.receivedAmount,原先仅汇总 V1
biz_protocol_payment;现对 include_sample_payment_modes 路径补齐
合同额、已收、分期明细与退费,避免已缴/退款列为空。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-11 14:15:02 +08:00
zlwu and Cursor
77473a1738
fix(web-admin): 恢复预签约导出并校准刷卡时间与表头样式
...
预签约列表重新显示导出按钮;刷卡时间仅统计已确认到账;Excel 标题行黄底居中并加边框。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-11 12:02:30 +08:00
zlwu and Cursor
5109d8b3e5
fix(backend): 计划开始时间筛选不再内置工单状态限制
...
去掉 EXISTS 中对工单/任务/步骤活跃态的硬编码,日期条件与前端勾选的状态等检索项组合生效,修复区间内有步骤日期却查空的问题。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-11 10:20:59 +08:00
zlwu and Cursor
a214a35f4f
feat(web-admin): 按采集大表导出预签约、自存、科研和客服表
...
市场人员需要把四张列表按采集大表对应工作表导出为 Excel 文本。补预签约列表的地区、医院、样本类型和转账时间,并沿用现有工具栏导出。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-06 10:05:11 +08:00
zlwu and Cursor
c40feab76a
fix(web-admin): 样本接收展示协议知情同意书等附件
...
质检样本接收列表与弹窗需查看采集协议侧附件。后端待接收/已接收列表补齐协议附件字段;前端列表增加知情同意书缩略图,接收弹窗右侧改为上运输、下协议附件分组展示。
关联 #43
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 21:53:56 +08:00
zlwu and Cursor
a4defb2c94
fix(mobile): 协议单列表项目筛选下移并补齐科研捐赠筛选
...
将项目筛选并入搜索框下方的 van-dropdown 行,与协议状态样式一致;科研捐赠 Tab 同步展示两项筛选,并修复捐赠列表按 protocolStatus 过滤 donation_status。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 17:13:15 +08:00
zlwu and Cursor
6cba55f5c8
feat(project): 项目组变更写入版本历史快照
...
每次创建/编辑/软删除项目组时追加 biz_project_team_history,
用完整 serialize 快照保留负责人、成员、地区与医院等信息,便于追溯。
Refs: #50
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 15:05:44 +08:00
zlwu and Cursor
e895daf8fc
feat(project): 项目编号支持新增编辑自由填写
...
项目管理弹窗增加项目编号输入;后端保存改为接收客户端编号并校验租户内唯一,不再自动生成。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 14:41:41 +08:00
zlwu and Cursor
9e3a67a8e4
fix(qc): 调整检测清空重配不再误标工单已完成
...
try_complete 在无活跃任务时也会把已配置打成已完成;清空全部后再添加会踩中。
现要求至少有一条活跃任务且全部完成后才自动完成,并强制全量重建时清理旧批次,前后端均校验批次须含检测项目。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 12:18:30 +08:00
zlwu and Cursor
ac9db561a4
fix(web-admin): 补齐捐赠查看操作日志接线并保留审核动作语义
...
修复 DonationViewDialog 缺失的操作日志状态与加载调用,清理误插入的重置语句,并避免显式 audit 动作被状态映射覆盖。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 12:15:10 +08:00
zlwu and Cursor
4a12d92631
feat(protocol): 记录协议单操作前后快照便于责任追溯
...
为细胞存储与科研捐赠协议增加 append-only 操作日志,覆盖 Web/小程序 create/update/delete/状态类动作,并在查看弹窗与移动详情提供操作日志入口(Issue #24)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 12:11:34 +08:00
zlwu and Cursor
e2e9059c17
fix(backend): sync protocol void with sample reception discard
...
When a cell-storage or research-donation protocol is voided, mark all
related sample receptions as discarded; when every sample is discarded,
auto-void the protocol as 实验室废弃 (sysfq). Covers issue #31 .
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-11-05 11:37:58 +08:00
zlwu
79ca01ac0d
feat(project): show presign counts as a statistics column
...
Group presign counts by project and team, include totals and unassigned rows, and reuse count drill-down. Remove the standalone footer while retaining presignTotal compatibility and the four formal business types.
Related to issue #13 . Independent source review completed; no tests or builds run under user self-test arrangement.
2026-11-04 14:53:07 +08:00
zlwu
fa5efa9629
feat(project): show business fields in statistics details
...
Reuse assignment business columns and keyword searches in the four statistics drill-down lists. Add a statistics-permission read endpoint sharing tenant-scoped detail queries without granting assignment access.
Related to issue #13 . Independent static review completed. User self-test arrangement: regression cases authored, no tests or builds executed.
2026-11-04 14:40:04 +08:00
zlwu
6e682f8d18
fix(project): identify storage and donation assignments by sample codes
...
Replace order number columns with batched sample codes and support sample keyword searches without duplicating parent records. Preserve tenant and soft-delete boundaries, existing assignment writes and preview identifiers.
Related to issue #13 . Independent static review completed; tests authored but not run under user self-test arrangement.
2026-11-04 14:27:57 +08:00
zlwu
29f9866a24
feat(project): group assignment records by business type
...
Add four business tabs and identifying fields so users can locate orders before assigning projects. Introduce a permission-scoped detail query with child EXISTS searches and batched enrichment, preserving statistics and assignment writes.
Approved Figma v2; independent source review completed. Tests authored but not executed under the user self-test arrangement. Related to issue #13 .
2026-11-04 14:14:50 +08:00
zlwu
0bddf38e52
feat(project): enforce team-scoped selection with explicit all-project permission
...
Separate cross-team selection from attribution maintenance and apply the same scope to options, history filters and writes. Add an opt-in tenant permission without granting existing roles.
Protect authorization mutation paths against self-grants, validate tenant targets and links, and include menu ancestors atomically. Cover role union, revocation, mobile writes and administration boundaries with regression tests.
2026-11-02 17:09:20 +08:00
zlwu
a4c4028144
fix(projects): resolve runtime permissions and migration compatibility
...
Use existing menu permissions for management actions, preserve shared list styles in teleported detail dialogs, and align project attribution column collations with the project primary key. Record isolated MySQL and browser validation while retaining the real-device acceptance gate.
2026-11-02 16:04:31 +08:00
zlwu
bd62416263
feat(project): add team attribution and business statistics
...
Add tenant-scoped teams and projects, order attribution across four businesses, conversion inheritance, scoped statistics and audited reassignment. Reuse existing Web and mobile UI patterns; team regions and hospitals remain informational.
Include incremental SQL and isolated regression coverage. Actual MySQL and browser/WebView integration validation remains pending; relates to issue #13 .
2026-11-02 15:29:43 +08:00