zlwu 5 meses atrás
pai
commit
e6b4b9a8d7
28 arquivos alterados com 1478 adições e 977 exclusões
  1. 1 1
      backend/app.pid
  2. 74 8
      backend/app/api/basic_info.py
  3. 75 4
      backend/app/crud/collection_protocol_no.py
  4. 22 17
      backend/app/crud/collection_region.py
  5. 61 3
      backend/app/crud/sample_code.py
  6. 0 0
      backend/app/graphify-out/cache/ast/1fcc34558e2478e1280bd8804f5fb1d00566ad67ef3873c97b1e43dabe099ee0.json
  7. 0 0
      backend/app/graphify-out/cache/ast/817d7661a826c906bfacc1512518716c07d84469f63ebd109de4548710c8fb01.json
  8. 0 0
      backend/app/graphify-out/cache/ast/c4699802ecc40b6f703d7b51463222f20ba498019e1a7495143a218c6ae89295.json
  9. 0 0
      backend/app/graphify-out/cache/ast/c848bd4d6f2af3e11a624dfa9be09c541d9c492d4112aaf8f6081c33771eaace.json
  10. 0 0
      backend/app/graphify-out/cache/ast/d9545d09b1f92a4c0a231db5082f4e3e20f182baa85b36824e067bd5a3f571b0.json
  11. 0 0
      backend/app/graphify-out/cache/ast/e4af093d77bf9dd9e2c5ec1d7f2ab97d36f4aee3bbb557ae0556ff88d44c002a.json
  12. 0 0
      backend/app/graphify-out/cache/ast/ed074c92fae584d5b2ceb0906a05eab3ea656b686f4674a12b1c09baa65f76cd.json
  13. 451 488
      backend/graphify-out/.graphify_analysis.json
  14. 209 106
      backend/graphify-out/.graphify_extract.json
  15. 102 97
      backend/graphify-out/GRAPH_REPORT.md
  16. 1 1
      backend/graphify-out/graph.html
  17. 112 112
      backend/graphify-out/graph.json
  18. 3 3
      backend/graphify-out/manifest.json
  19. 79 79
      web-admin/graphify-out/.graphify_extract.json
  20. 1 1
      web-admin/graphify-out/GRAPH_REPORT.md
  21. 2 2
      web-admin/graphify-out/manifest.json
  22. 28 2
      web-admin/src/api/admin.ts
  23. 1 0
      web-admin/src/graphify-out/cache/ast/00e0b519c591e0f9df151e210eb3f85746437cc782dc0fe741d4ff534cee9e3a.json
  24. 0 0
      web-admin/src/graphify-out/cache/ast/0e07cd0d4909eec177213e18d0ba0286c3035d61a39526be0999dc341f5f109d.json
  25. 96 21
      web-admin/src/views/basic-info/collection-protocol-no/index.vue
  26. 45 10
      web-admin/src/views/basic-info/collection-region/index.vue
  27. 2 2
      web-admin/src/views/basic-info/customer/index.vue
  28. 113 20
      web-admin/src/views/basic-info/sample-code/index.vue

+ 1 - 1
backend/app.pid

@@ -1 +1 @@
-33472
+51733

+ 74 - 8
backend/app/api/basic_info.py

@@ -3,6 +3,7 @@ from typing import Any, List, Optional
 
 from fastapi import APIRouter, Depends, Query
 from pydantic import BaseModel, ConfigDict, Field
+from sqlalchemy import or_
 from sqlalchemy.orm import Session
 
 from app.core.data_scope import apply_data_scope
@@ -82,7 +83,17 @@ async def list_customers(
         BizCustomer.tenant_no == tenant_no,
     )
     if keyword:
-        query = query.filter(BizCustomer.customer_name.like(f"%{keyword}%"))
+        kw = keyword.strip()
+        if kw:
+            like = f"%{kw}%"
+            query = query.filter(
+                or_(
+                    BizCustomer.customer_name.like(like),
+                    BizCustomer.phone_no.like(like),
+                    BizCustomer.id_card_no.like(like),
+                    BizCustomer.customer_tags.like(like),
+                )
+            )
     query = apply_data_scope(query, BizCustomer, user, db, tenant_no)
     total = query.count()
     items = query.order_by(BizCustomer.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
@@ -201,7 +212,15 @@ async def list_cell_sample_types(
         BizCellSampleType.tenant_no == tenant_no,
     )
     if keyword:
-        query = query.filter(BizCellSampleType.type_name.like(f"%{keyword}%"))
+        kw = keyword.strip()
+        if kw:
+            like = f"%{kw}%"
+            query = query.filter(
+                or_(
+                    BizCellSampleType.type_code.like(like),
+                    BizCellSampleType.type_name.like(like),
+                )
+            )
     query = apply_data_scope(query, BizCellSampleType, user, db, tenant_no)
     total = query.count()
     items = query.order_by(BizCellSampleType.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
@@ -314,7 +333,11 @@ async def list_collection_regions(
     query = apply_data_scope(query, BizCollectionRegion, user, db, tenant_no)
     total = query.count()
     items = query.order_by(BizCollectionRegion.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
-    result_list = [region_svc._region_to_dict(r) for r in items]
+    region_ids = [r.id for r in items]
+    hospital_map = region_svc._hospital_names_by_region_ids(db, region_ids)
+    result_list = [
+        region_svc._region_to_dict(r, hospital_names=hospital_map.get(r.id, [])) for r in items
+    ]
     tp = region_svc.total_pages(total, pageSize)
     return success_response({"list": result_list, "total": total, "page": page, "pageSize": pageSize, "totalPages": tp})
 
@@ -500,6 +523,9 @@ class ProtocolNoCreateBody(BaseModel):
     issued: int = 0
     order_num: Optional[int] = Field(0, alias="orderNum")
     remark: Optional[str] = None
+    issued_user_id: Optional[str] = Field(None, alias="issuedUserId")
+    issued_user_name: Optional[str] = Field(None, alias="issuedUserName")
+    issued_time: Optional[str] = Field(None, alias="issuedTime")
 
 
 class ProtocolNoUpdateBody(BaseModel):
@@ -519,6 +545,7 @@ async def list_protocol_nos(
     page: int = Query(1, ge=1),
     pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
     keyword: Optional[str] = None,
+    issued_user_id: Optional[str] = Query(None, alias="issuedUserId"),
     user: dict = Depends(require_menu_code("biz:collectionProtocolNo:list")),
     db: Session = Depends(get_db),
 ):
@@ -527,12 +554,23 @@ async def list_protocol_nos(
         BizCollectionProtocolNo.del_flag == 0,
         BizCollectionProtocolNo.tenant_no == tenant_no,
     )
-    if keyword:
-        query = query.filter(BizCollectionProtocolNo.protocol_no.like(f"%{keyword}%"))
+    kw = (keyword or "").strip()
+    if kw:
+        like = f"%{kw}%"
+        query = query.filter(
+            or_(
+                BizCollectionProtocolNo.protocol_no.like(like),
+                BizCollectionProtocolNo.remark.like(like),
+            )
+        )
+    uid = (issued_user_id or "").strip()
+    if uid:
+        query = query.filter(BizCollectionProtocolNo.issued_user_id == uid)
     query = apply_data_scope(query, BizCollectionProtocolNo, user, db, tenant_no)
     total = query.count()
     items = query.order_by(BizCollectionProtocolNo.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
     result_list = [protocol_no_svc._row_to_dict(r) for r in items]
+    protocol_no_svc.enrich_issued_user_names(db, result_list)
     used_nos = collection_protocol_svc.get_protocol_nos_used_in_protocols(
         db,
         tenant_no=tenant_no,
@@ -656,8 +694,13 @@ async def create_protocol_no(
             order_num=body.order_num,
             remark=body.remark,
             user_id=user.get("user_id"),
+            issued_user_id=body.issued_user_id,
+            issued_user_name=body.issued_user_name,
+            issued_time=body.issued_time,
         )
-        return success_response(protocol_no_svc._row_to_dict(obj), message="创建成功")
+        row = protocol_no_svc._row_to_dict(obj)
+        protocol_no_svc.enrich_issued_user_names(db, [row])
+        return success_response(row, message="创建成功")
     except ValueError as e:
         return error_response(400, str(e))
 
@@ -713,9 +756,13 @@ class SampleCodeCreateBody(BaseModel):
     model_config = ConfigDict(populate_by_name=True)
 
     sample_code: str = Field(..., alias="sampleCode")
+    sample_code_type: Optional[str] = Field(None, alias="sampleCodeType")
     issued: int = 0
     order_num: Optional[int] = Field(0, alias="orderNum")
     remark: Optional[str] = None
+    issued_user_id: Optional[str] = Field(None, alias="issuedUserId")
+    issued_user_name: Optional[str] = Field(None, alias="issuedUserName")
+    issued_time: Optional[str] = Field(None, alias="issuedTime")
 
 
 class SampleCodeUpdateBody(BaseModel):
@@ -831,6 +878,8 @@ async def list_sample_codes(
     page: int = Query(1, ge=1),
     pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
     keyword: Optional[str] = None,
+    sample_code_type: Optional[str] = Query(None, alias="sampleCodeType"),
+    issued_user_id: Optional[str] = Query(None, alias="issuedUserId"),
     user: dict = Depends(require_menu_code("biz:sampleCode:list")),
     db: Session = Depends(get_db),
 ):
@@ -839,8 +888,21 @@ async def list_sample_codes(
         BizSampleCode.del_flag == 0,
         BizSampleCode.tenant_no == tenant_no,
     )
-    if keyword:
-        query = query.filter(BizSampleCode.sample_code.like(f"%{keyword}%"))
+    kw = (keyword or "").strip()
+    if kw:
+        like = f"%{kw}%"
+        query = query.filter(
+            or_(
+                BizSampleCode.sample_code.like(like),
+                BizSampleCode.remark.like(like),
+            )
+        )
+    code_type = (sample_code_type or "").strip()
+    if code_type:
+        query = query.filter(BizSampleCode.sample_code_type == code_type)
+    uid = (issued_user_id or "").strip()
+    if uid:
+        query = query.filter(BizSampleCode.issued_user_id == uid)
     query = apply_data_scope(query, BizSampleCode, user, db, tenant_no)
     total = query.count()
     items = query.order_by(BizSampleCode.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
@@ -867,11 +929,15 @@ async def create_sample_code(
         obj = sample_code_svc.create_sample_code(
             db,
             sample_code=body.sample_code,
+            sample_code_type=body.sample_code_type,
             issued=body.issued,
             tenant_no=tenant_no,
             order_num=body.order_num,
             remark=body.remark,
             user_id=user.get("user_id"),
+            issued_user_id=body.issued_user_id,
+            issued_user_name=body.issued_user_name,
+            issued_time=body.issued_time,
         )
         return success_response(sample_code_svc._row_to_dict(obj), message="创建成功")
     except ValueError as e:

+ 75 - 4
backend/app/crud/collection_protocol_no.py

@@ -9,7 +9,46 @@ from sqlalchemy import and_, func, or_
 from sqlalchemy.orm import Session
 
 from app.core.utils import generate_uuid
-from app.models.models import BizCollectionProtocolNo
+from app.models.models import BizCollectionProtocolNo, SysUser
+
+
+def _resolve_issued_user_display_name(
+    db: Session,
+    user_id: Optional[str],
+    fallback_name: Optional[str] = None,
+) -> Optional[str]:
+    """issued_user_name 为空时,按 issued_user_id 从用户表补全展示名。"""
+    name = (fallback_name or "").strip()
+    if name:
+        return name
+    uid = (user_id or "").strip()
+    if not uid:
+        return None
+    u = db.query(SysUser).filter(SysUser.id == uid, SysUser.del_flag == 0).first()
+    if not u:
+        return None
+    return (u.nick_name or u.user_no or "").strip() or None
+
+
+def enrich_issued_user_names(db: Session, rows: List[Dict[str, Any]]) -> None:
+    """列表/详情:issuedUserName 为空但 issuedUserId 有值时补全展示名(原地修改)。"""
+    missing_uids = {
+        (r.get("issuedUserId") or "").strip()
+        for r in rows
+        if (r.get("issuedUserId") or "").strip() and not (r.get("issuedUserName") or "").strip()
+    }
+    if not missing_uids:
+        return
+    users = (
+        db.query(SysUser.id, SysUser.nick_name, SysUser.user_no)
+        .filter(SysUser.id.in_(missing_uids), SysUser.del_flag == 0)
+        .all()
+    )
+    name_map = {(u.id or ""): ((u.nick_name or u.user_no or "").strip()) for u in users}
+    for r in rows:
+        uid = (r.get("issuedUserId") or "").strip()
+        if uid and not (r.get("issuedUserName") or "").strip():
+            r["issuedUserName"] = name_map.get(uid, "")
 
 
 def _row_to_dict(r: BizCollectionProtocolNo) -> Dict[str, Any]:
@@ -82,6 +121,18 @@ def get_protocol_no(db: Session, row_id: str, tenant_no: Optional[str] = None) -
     return q.first()
 
 
+def _parse_issued_time(value: Optional[str]) -> Optional[datetime]:
+    raw = (value or "").strip()
+    if not raw:
+        return None
+    for fmt in ("%Y-%m-%d %H:%M:%S", "%Y-%m-%d %H:%M"):
+        try:
+            return datetime.strptime(raw, fmt)
+        except ValueError:
+            continue
+    return None
+
+
 def create_protocol_no(
     db: Session,
     *,
@@ -91,16 +142,32 @@ def create_protocol_no(
     order_num: Optional[int] = None,
     remark: Optional[str] = None,
     user_id: Optional[str] = None,
+    issued_user_id: Optional[str] = None,
+    issued_user_name: Optional[str] = None,
+    issued_time: Optional[str] = None,
 ) -> BizCollectionProtocolNo:
     pn = (protocol_no or "").strip()
     if not pn:
         raise ValueError("采集协议号不能为空")
     if protocol_no_exists(db, pn, tenant_no):
         raise ValueError("采集协议号已存在")
+    is_issued = 1 if issued else 0
+    issue_uid: Optional[str] = None
+    issue_uname: Optional[str] = None
+    issue_time: Optional[datetime] = None
+    if is_issued:
+        issue_uid = (issued_user_id or "").strip() or None
+        if not issue_uid:
+            raise ValueError("请选择下发用户")
+        issue_uname = _resolve_issued_user_display_name(db, issue_uid, issued_user_name)
+        issue_time = _parse_issued_time(issued_time) or datetime.now()
     obj = BizCollectionProtocolNo(
         id=generate_uuid(),
         protocol_no=pn,
-        issued=1 if issued else 0,
+        issued=is_issued,
+        issued_user_id=issue_uid,
+        issued_user_name=issue_uname,
+        issued_time=issue_time,
         tenant_no=tenant_no,
         order_num=order_num if order_num is not None else 0,
         remark=(remark or "").strip() or None,
@@ -151,8 +218,12 @@ def update_protocol_no(
         obj.issued_user_id = issued_user_id or None
     if issued_user_name is not None:
         obj.issued_user_name = issued_user_name or None
+    if obj.issued == 1 and obj.issued_user_id and not (obj.issued_user_name or "").strip():
+        obj.issued_user_name = _resolve_issued_user_display_name(db, obj.issued_user_id)
     if issued_time is not None:
-        obj.issued_time = issued_time or None
+        obj.issued_time = _parse_issued_time(issued_time) if (issued_time or "").strip() else None
+    if obj.issued == 1 and obj.issued_user_id and not obj.issued_time:
+        obj.issued_time = datetime.now()
     obj.update_by = user_id
     obj.update_time = datetime.now()
     db.add(obj)
@@ -278,7 +349,7 @@ def batch_issue_protocol_nos(
             continue
         obj.issued = 1
         obj.issued_user_id = uid
-        obj.issued_user_name = (issued_user_name or "").strip() or None
+        obj.issued_user_name = _resolve_issued_user_display_name(db, uid, issued_user_name)
         obj.issued_time = now
         obj.update_by = user_id
         obj.update_time = now

+ 22 - 17
backend/app/crud/collection_region.py

@@ -25,6 +25,27 @@ def _region_to_dict(r: BizCollectionRegion, hospital_names: Optional[List[str]]
     }
 
 
+def _hospital_names_by_region_ids(db: Session, region_ids: List[str]) -> Dict[str, List[str]]:
+    """批量查询地区下属医院名称,按 order_num、create_time 排序。"""
+    hospital_map: Dict[str, List[str]] = {}
+    if not region_ids:
+        return hospital_map
+    hosp_rows = (
+        db.query(BizCollectionHospital.region_id, BizCollectionHospital.hospital_name)
+        .filter(
+            and_(
+                BizCollectionHospital.region_id.in_(region_ids),
+                BizCollectionHospital.del_flag == 0,
+            )
+        )
+        .order_by(BizCollectionHospital.order_num.asc(), BizCollectionHospital.create_time.desc())
+        .all()
+    )
+    for h in hosp_rows:
+        hospital_map.setdefault(h.region_id, []).append(h.hospital_name)
+    return hospital_map
+
+
 def _hospital_to_dict(h: BizCollectionHospital) -> Dict[str, Any]:
     return {
         "id": h.id,
@@ -67,24 +88,8 @@ def list_collection_regions(
         .all()
     )
 
-    # 批量查询所有 region 的医院名称,避免 N+1
     region_ids = [r.id for r in rows]
-    hospital_map: Dict[str, List[str]] = {}
-    if region_ids:
-        hosp_rows = (
-            db.query(BizCollectionHospital.region_id, BizCollectionHospital.hospital_name)
-            .filter(
-                and_(
-                    BizCollectionHospital.region_id.in_(region_ids),
-                    BizCollectionHospital.del_flag == 0,
-                )
-            )
-            .order_by(BizCollectionHospital.order_num.asc(), BizCollectionHospital.create_time.desc())
-            .all()
-        )
-        for h in hosp_rows:
-            hospital_map.setdefault(h.region_id, []).append(h.hospital_name)
-
+    hospital_map = _hospital_names_by_region_ids(db, region_ids)
     return [_region_to_dict(x, hospital_names=hospital_map.get(x.id, [])) for x in rows], int(total)
 
 

+ 61 - 3
backend/app/crud/sample_code.py

@@ -9,7 +9,36 @@ from sqlalchemy import and_, func, or_
 from sqlalchemy.orm import Session
 
 from app.core.utils import generate_uuid
-from app.models.models import BizSampleCode
+from app.models.models import BizSampleCode, SysUser
+
+
+def _resolve_issued_user_display_name(
+    db: Session,
+    user_id: Optional[str],
+    fallback_name: Optional[str] = None,
+) -> Optional[str]:
+    name = (fallback_name or "").strip()
+    if name:
+        return name
+    uid = (user_id or "").strip()
+    if not uid:
+        return None
+    u = db.query(SysUser).filter(SysUser.id == uid, SysUser.del_flag == 0).first()
+    if not u:
+        return None
+    return (u.nick_name or u.user_no or "").strip() or None
+
+
+def _parse_issued_time(value: Optional[str]) -> Optional[datetime]:
+    raw = (value or "").strip()
+    if not raw:
+        return None
+    for fmt in ("%Y-%m-%d %H:%M:%S", "%Y-%m-%d %H:%M"):
+        try:
+            return datetime.strptime(raw, fmt)
+        except ValueError:
+            continue
+    return None
 
 
 def _row_to_dict(r: BizSampleCode) -> Dict[str, Any]:
@@ -83,21 +112,42 @@ def create_sample_code(
     db: Session,
     *,
     sample_code: str,
+    sample_code_type: Optional[str] = None,
     issued: int = 0,
     tenant_no: str = "zkxw",
     order_num: Optional[int] = None,
     remark: Optional[str] = None,
     user_id: Optional[str] = None,
+    issued_user_id: Optional[str] = None,
+    issued_user_name: Optional[str] = None,
+    issued_time: Optional[str] = None,
 ) -> BizSampleCode:
     sc = (sample_code or "").strip()
     if not sc:
         raise ValueError("样本编码不能为空")
     if sample_code_exists(db, sc, tenant_no):
         raise ValueError("样本编码已存在")
+    code_type = (sample_code_type or "").strip() or None
+    if code_type and code_type not in ("zxbm", "qdbm"):
+        raise ValueError("样本编码类型无效,仅支持 zxbm/qdbm")
+    is_issued = 1 if issued else 0
+    issue_uid: Optional[str] = None
+    issue_uname: Optional[str] = None
+    issue_time: Optional[datetime] = None
+    if is_issued:
+        issue_uid = (issued_user_id or "").strip() or None
+        if not issue_uid:
+            raise ValueError("请选择下发用户")
+        issue_uname = _resolve_issued_user_display_name(db, issue_uid, issued_user_name)
+        issue_time = _parse_issued_time(issued_time) or datetime.now()
     obj = BizSampleCode(
         id=generate_uuid(),
         sample_code=sc,
-        issued=1 if issued else 0,
+        sample_code_type=code_type,
+        issued=is_issued,
+        issued_user_id=issue_uid,
+        issued_user_name=issue_uname,
+        issued_time=issue_time,
         tenant_no=tenant_no,
         order_num=order_num if order_num is not None else 0,
         remark=(remark or "").strip() or None,
@@ -140,6 +190,10 @@ def update_sample_code(
         obj.sample_code = sc
     if issued is not None:
         obj.issued = 1 if issued else 0
+        if not obj.issued:
+            obj.issued_user_id = None
+            obj.issued_user_name = None
+            obj.issued_time = None
     if order_num is not None:
         obj.order_num = order_num
     if remark is not None:
@@ -148,8 +202,12 @@ def update_sample_code(
         obj.issued_user_id = issued_user_id or None
     if issued_user_name is not None:
         obj.issued_user_name = issued_user_name or None
+    if obj.issued == 1 and obj.issued_user_id and not (obj.issued_user_name or "").strip():
+        obj.issued_user_name = _resolve_issued_user_display_name(db, obj.issued_user_id)
     if issued_time is not None:
-        obj.issued_time = issued_time or None
+        obj.issued_time = _parse_issued_time(issued_time) if (issued_time or "").strip() else None
+    if obj.issued == 1 and obj.issued_user_id and not obj.issued_time:
+        obj.issued_time = datetime.now()
     obj.update_by = user_id
     obj.update_time = datetime.now()
     db.add(obj)

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/1fcc34558e2478e1280bd8804f5fb1d00566ad67ef3873c97b1e43dabe099ee0.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/817d7661a826c906bfacc1512518716c07d84469f63ebd109de4548710c8fb01.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/c4699802ecc40b6f703d7b51463222f20ba498019e1a7495143a218c6ae89295.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/c848bd4d6f2af3e11a624dfa9be09c541d9c492d4112aaf8f6081c33771eaace.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/d9545d09b1f92a4c0a231db5082f4e3e20f182baa85b36824e067bd5a3f571b0.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/e4af093d77bf9dd9e2c5ec1d7f2ab97d36f4aee3bbb557ae0556ff88d44c002a.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
backend/app/graphify-out/cache/ast/ed074c92fae584d5b2ceb0906a05eab3ea656b686f4674a12b1c09baa65f76cd.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 451 - 488
backend/graphify-out/.graphify_analysis.json


Diferenças do arquivo suprimidas por serem muito extensas
+ 209 - 106
backend/graphify-out/.graphify_extract.json


+ 102 - 97
backend/graphify-out/GRAPH_REPORT.md

@@ -1,12 +1,12 @@
 # Graph Report - app  (2026-05-20)
 
 ## Corpus Check
-- 135 files · ~114,357 words
+- 135 files · ~114,728 words
 - Verdict: corpus is large enough that graph structure adds value.
 
 ## Summary
-- 2322 nodes · 9035 edges · 55 communities detected
-- Extraction: 42% EXTRACTED · 58% INFERRED · 0% AMBIGUOUS · INFERRED: 5232 edges (avg confidence: 0.63)
+- 2329 nodes · 9061 edges · 56 communities detected
+- Extraction: 42% EXTRACTED · 58% INFERRED · 0% AMBIGUOUS · INFERRED: 5245 edges (avg confidence: 0.63)
 - Token cost: 0 input · 0 output
 
 ## Community Hubs (Navigation)
@@ -59,17 +59,18 @@
 - [[_COMMUNITY_Community 46|Community 46]]
 - [[_COMMUNITY_Community 47|Community 47]]
 - [[_COMMUNITY_Community 48|Community 48]]
-- [[_COMMUNITY_Community 51|Community 51]]
+- [[_COMMUNITY_Community 49|Community 49]]
 - [[_COMMUNITY_Community 52|Community 52]]
 - [[_COMMUNITY_Community 53|Community 53]]
 - [[_COMMUNITY_Community 54|Community 54]]
 - [[_COMMUNITY_Community 55|Community 55]]
 - [[_COMMUNITY_Community 56|Community 56]]
+- [[_COMMUNITY_Community 57|Community 57]]
 
 ## God Nodes (most connected - your core abstractions)
 1. `success_response()` - 370 edges
 2. `error_response()` - 296 edges
-3. `SysUser` - 205 edges
+3. `SysUser` - 209 edges
 4. `BizQcTaskResult` - 193 edges
 5. `BizQcMaterialUsage` - 190 edges
 6. `BizMaterialStockLog` - 189 edges
@@ -94,91 +95,91 @@
 
 ### Community 0 - "Community 0"
 Cohesion: 0.02
-Nodes (371): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, ExpressCompanyCreateBody (+363 more)
+Nodes (386): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+378 more)
 
 ### Community 1 - "Community 1"
-Cohesion: 0.02
-Nodes (378): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+370 more)
+Cohesion: 0.01
+Nodes (371): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, ExpressCompanyCreateBody (+363 more)
 
 ### Community 2 - "Community 2"
-Cohesion: 0.05
-Nodes (274): CellSampleTypeCreateBody, CellSampleTypeUpdateBody, CollectionRegionCreateBody, CollectionRegionUpdateBody, CustomerCreateBody, CustomerUpdateBody, HospitalCreateBody, HospitalUpdateBody (+266 more)
+Cohesion: 0.06
+Nodes (212): AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody, 运营支撑 API(洁净室、进出记录、仓储设施、储位、展厅预约), StorageFacilityCreateBody (+204 more)
 
 ### Community 3 - "Community 3"
 Cohesion: 0.03
-Nodes (132): list_collection_regions(), list_protocol_nos(), _persist_protocol_sub_resources(), list_ethnics_for_select(), list_access_logs(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id() (+124 more)
+Nodes (121): generate_uuid(), _code_exists(), create_material(), _dec(), _fmt_dt(), get_material(), list_materials(), options_list() (+113 more)
 
 ### Community 4 - "Community 4"
-Cohesion: 0.03
-Nodes (120): generate_uuid(), _code_exists(), create_material(), _dec(), _fmt_dt(), get_material(), list_materials(), options_list() (+112 more)
+Cohesion: 0.09
+Nodes (126): CellSampleTypeCreateBody, CellSampleTypeUpdateBody, CollectionRegionCreateBody, CollectionRegionUpdateBody, CustomerCreateBody, CustomerUpdateBody, HospitalCreateBody, HospitalUpdateBody (+118 more)
 
 ### Community 5 - "Community 5"
-Cohesion: 0.05
-Nodes (85): _format_attachment_file_size(), urls_to_attachment_list(), complete_production_work_order(), create_production_work_order_from_reception(), _fmt_dt(), _generate_work_order_no(), get_production_work_order(), list_production_work_orders() (+77 more)
+Cohesion: 0.03
+Nodes (96): list_ethnics_for_select(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id(), _resolve_user_role_scopes(), list_ethnics(), 民族码表 CRUD(全局 sys_ethnic), _row_to_dict() (+88 more)
 
 ### Community 6 - "Community 6"
 Cohesion: 0.04
-Nodes (64): _avatar_url_field(), _build_user_info_payload(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/zkxw.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。, 获取当前用户菜单权限标识(sys_menu.perms,经角色继承)。 (+56 more)
+Nodes (98): list_collection_regions(), _persist_protocol_sub_resources(), delete(), get_multi_with_filters(), _add_months_yyyymmdd(), align_fq_payment_details_payload(), _apply_submit_receipt_finance(), _apply_submit_refund_finance() (+90 more)
 
 ### Community 7 - "Community 7"
-Cohesion: 0.04
-Nodes (80): activate_channel_agreement(), cell_product_price_code_exists(), cell_product_spec_code_exists(), cell_product_type_code_exists(), _channel_agreement_price_exists(), _channel_agreement_price_item_key(), checkup_package_code_exists(), create_cell_product_price() (+72 more)
+Cohesion: 0.03
+Nodes (58): get_designer_data(), BaseStorage, convert_heic_to_jpeg(), get_storage(), LocalStorage, MinIOStorage, OSSStorage, process_image_content() (+50 more)
 
 ### Community 8 - "Community 8"
-Cohesion: 0.04
-Nodes (33): BusinessException, InvalidStatusTransitionException, log_delivery_operation(), log_operation(), log_order_operation(), log_settlement_operation(), log_user_operation(), OrderLockedException (+25 more)
+Cohesion: 0.05
+Nodes (83): _format_attachment_file_size(), get_protocol_nos_used_in_protocols(), urls_to_attachment_list(), complete_production_work_order(), create_production_work_order_from_reception(), _fmt_dt(), _generate_work_order_no(), get_production_work_order() (+75 more)
 
 ### Community 9 - "Community 9"
-Cohesion: 0.07
-Nodes (66): AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody, list_storage_slots(), 运营支撑 API(洁净室、进出记录、仓储设施、储位、展厅预约) (+58 more)
+Cohesion: 0.04
+Nodes (61): list_roles_for_select(), _avatar_url_field(), _build_user_info_payload(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/zkxw.sql 基线), 登出:吊销 Redis 会话(若已配置 REDIS_HOST)。 (+53 more)
 
 ### Community 10 - "Community 10"
-Cohesion: 0.08
-Nodes (59): _parse_datetime_fields(), AuditSubmitBody, batch_delete_research_donations(), BatchDeleteBody, change_donation_status(), convert_from_storage(), convert_to_storage(), ConvertFromStorageBody (+51 more)
+Cohesion: 0.09
+Nodes (40): _parse_datetime_fields(), generate_id(), parse_datetime(), camel_to_snake(), get_model_attr(), HistoryCRUD, _audit_to_dict(), batch_delete_donations() (+32 more)
 
 ### Community 11 - "Community 11"
-Cohesion: 0.08
-Nodes (46): get_designer_data(), ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, 审批意见:前端传 commentText,兼容 comment。, StartInstanceBody, TaskActionBody, list_params_by_item() (+38 more)
+Cohesion: 0.43
+Nodes (45): ConsumableCreateBody, ConsumablePackCreateBody, ConsumablePackUpdateBody, ConsumableUpdateBody, OutputTypeCreateBody, OutputTypeUpdateBody, PackItemInput, ProcessCategoryCreateBody (+37 more)
 
 ### Community 12 - "Community 12"
-Cohesion: 0.12
-Nodes (11): get_wechat_pay_client(), get_wechat_pay_v2(), 微信支付工具模块  支持微信支付 V3 API 文档参考: https://pay.weixin.qq.com/docs/v3/apis/index.ht, 统一下单接口 (V3)          Args:             out_trade_no: 商户订单号             total, 申请退款          Args:             out_trade_no: 商户订单号             total_amount, 小程序调起支付的二次签名参数(与公众号 JSAPI 规则一致), 统一下单 (V2 API)          Args:             out_trade_no: 商户订单号             tot, 生成签名 V3 (SHA256 with RSA) (+3 more)
+Cohesion: 0.08
+Nodes (36): BaseHTTPMiddleware, parse_admin_request_json(), 运营 Web(/web/admin)JSON 请求体解析。  与 ApiCryptoMiddleware 配合:中间件未改写 body 时,在路由内解密 `, 读取 JSON body;dict 时走 resolve_request_payload(明文 / 密文 / data 包装)。      Returns:, ApiCryptoError, _b64url_decode(), _b64url_encode(), decrypt_json() (+28 more)
 
 ### Community 13 - "Community 13"
-Cohesion: 0.1
-Nodes (26): BaseHTTPMiddleware, parse_admin_request_json(), 运营 Web(/web/admin)JSON 请求体解析。  与 ApiCryptoMiddleware 配合:中间件未改写 body 时,在路由内解密 `, 读取 JSON body;dict 时走 resolve_request_payload(明文 / 密文 / data 包装)。      Returns:, ApiCryptoError, _b64url_decode(), _b64url_encode(), decrypt_json() (+18 more)
+Cohesion: 0.16
+Nodes (32): _create_insurance_company(), _create_insurance_company_invoice(), _create_insurance_project_price(), delete_insurance_company(), delete_insurance_company_invoice(), delete_insurance_project_price(), _fmt_dt(), _generate_uuid() (+24 more)
 
 ### Community 14 - "Community 14"
-Cohesion: 0.15
-Nodes (22): Config, Config, ProductReviewMediaBase, ProductReviewMediaCreate, ProductReviewMediaCreateBatch, ProductReviewMediaListResponse, ProductReviewMediaResponse, ProductReviewMediaUpdate (+14 more)
+Cohesion: 0.12
+Nodes (11): get_wechat_pay_client(), get_wechat_pay_v2(), 微信支付工具模块  支持微信支付 V3 API 文档参考: https://pay.weixin.qq.com/docs/v3/apis/index.ht, 统一下单接口 (V3)          Args:             out_trade_no: 商户订单号             total, 申请退款          Args:             out_trade_no: 商户订单号             total_amount, 小程序调起支付的二次签名参数(与公众号 JSAPI 规则一致), 统一下单 (V2 API)          Args:             out_trade_no: 商户订单号             tot, 生成签名 V3 (SHA256 with RSA) (+3 more)
 
 ### Community 15 - "Community 15"
-Cohesion: 0.2
-Nodes (23): _create_insurance_company(), _create_insurance_company_invoice(), _create_insurance_project_price(), _fmt_dt(), _generate_uuid(), InsuranceCompanyCreateBody, InsuranceCompanyInvoiceCreateBody, InsuranceCompanyInvoiceUpdateBody (+15 more)
+Cohesion: 0.17
+Nodes (12): BusinessException, InvalidStatusTransitionException, log_delivery_operation(), log_operation(), log_order_operation(), log_settlement_operation(), log_user_operation(), OrderLockedException (+4 more)
 
 ### Community 16 - "Community 16"
 Cohesion: 0.18
 Nodes (18): company_code_exists(), create_company(), get_company(), list_companies(), list_company_options(), _row_to_dict(), soft_delete_company(), update_company() (+10 more)
 
 ### Community 17 - "Community 17"
-Cohesion: 0.22
-Nodes (12): batch_generate_sample_codes(), batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), 样本编码池 CRUD(biz_sample_code), 批量生成样本编码: 类型前缀 + 中间段 + 补零序号 (+4 more)
+Cohesion: 0.21
+Nodes (13): _access_log_to_dict(), create_access_log(), create_clean_room(), get_access_log(), get_clean_room(), list_access_logs(), list_clean_rooms(), room_code_exists() (+5 more)
 
 ### Community 18 - "Community 18"
-Cohesion: 0.22
-Nodes (12): batch_generate_protocol_nos(), batch_issue_protocol_nos(), batch_revoke_protocol_nos(), create_protocol_no(), get_protocol_no(), list_protocol_nos(), protocol_no_exists(), 采集协议号池 CRUD(biz_collection_protocol_no) (+4 more)
+Cohesion: 0.25
+Nodes (13): batch_issue_protocol_nos(), batch_revoke_protocol_nos(), create_protocol_no(), get_protocol_no(), list_protocol_nos(), _parse_issued_time(), protocol_no_exists(), 采集协议号池 CRUD(biz_collection_protocol_no) (+5 more)
 
 ### Community 19 - "Community 19"
 Cohesion: 0.24
 Nodes (9): 微信消息通知服务  支持微信小程序模板消息推送  使用方式:     from app.core.wechat_message import Wech, 发送模板消息                  Args:             openid: 用户openid             templ, send_delivery_notice(), send_delivery_warning(), send_order_status(), send_payment_success(), send_refund_result(), send_urge_notification() (+1 more)
 
 ### Community 20 - "Community 20"
-Cohesion: 0.22
-Nodes (12): Config, InquiryBase, InquiryCreate, InquiryDetailResponse, InquiryItemBase, InquiryItemCreate, InquiryItemResponse, InquiryListResponse (+4 more)
+Cohesion: 0.27
+Nodes (12): code_exists(), create_material(), _dec(), _fmt_dt(), get_material(), list_materials(), options_list(), _row_to_dict() (+4 more)
 
 ### Community 21 - "Community 21"
-Cohesion: 0.23
-Nodes (12): Config, ProductBase, ProductCategoryBase, ProductCategoryCreate, ProductCategoryResponse, ProductCreate, ProductResponse, ProductUnitBase (+4 more)
+Cohesion: 0.27
+Nodes (10): batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), 样本编码池 CRUD(biz_sample_code), _row_to_dict(), sample_code_exists() (+2 more)
 
 ### Community 22 - "Community 22"
 Cohesion: 0.3
@@ -193,165 +194,169 @@ Cohesion: 0.29
 Nodes (9): _build_tree(), _cascade_soft_delete(), create_menu(), get_menu(), list_menus(), list_menus_tree(), _row_to_dict(), soft_delete_menu() (+1 more)
 
 ### Community 25 - "Community 25"
-Cohesion: 0.27
-Nodes (9): _ensure_customer_for_mother(), create_customer(), get_customer(), id_card_taken(), list_customers(), 客户 CRUD(biz_customer), _row_to_dict(), soft_delete_customer() (+1 more)
+Cohesion: 0.31
+Nodes (8): consumable_code_exists(), create_consumable(), get_consumable(), list_consumables(), 耗材 CRUD(biz_consumable), _row_to_dict(), soft_delete_consumable(), update_consumable()
 
 ### Community 26 - "Community 26"
 Cohesion: 0.31
-Nodes (8): create_sop_document(), get_sop_document(), list_sop_documents(), SOP文档 CRUD(biz_sop_document), _row_to_dict(), soft_delete_sop_document(), sop_code_exists(), update_sop_document()
+Nodes (9): appointment_no_exists(), create_exhibition_appointment(), _generate_appointment_no(), get_exhibition_appointment(), list_exhibition_appointments(), 展览预约 CRUD(biz_exhibition_appointment), 生成预约编号:YYYYMMDD + 6位序号(如 20260515000001), soft_delete_exhibition_appointment() (+1 more)
 
 ### Community 27 - "Community 27"
 Cohesion: 0.31
-Nodes (8): consumable_code_exists(), create_consumable(), get_consumable(), list_consumables(), 耗材 CRUD(biz_consumable), _row_to_dict(), soft_delete_consumable(), update_consumable()
-
-### Community 28 - "Community 28"
-Cohesion: 0.31
 Nodes (8): create_express_company(), express_code_exists(), get_express_company(), list_express_companies(), 快递公司 CRUD(biz_express_company), _row_to_dict(), soft_delete_express_company(), update_express_company()
 
-### Community 29 - "Community 29"
+### Community 28 - "Community 28"
 Cohesion: 0.38
 Nodes (9): create_check_item(), get_check_item(), item_code_exists(), list_active_check_items(), list_check_items(), _order_query(), _row_to_dict(), soft_delete_check_item() (+1 more)
 
-### Community 30 - "Community 30"
+### Community 29 - "Community 29"
 Cohesion: 0.27
 Nodes (8): create_dict_data(), get_dict_data(), list_dict_data(), list_dict_data_options(), 字典数据 CRUD(sys_dict_data), _row_to_dict(), soft_delete_dict_data(), update_dict_data()
 
-### Community 31 - "Community 31"
+### Community 30 - "Community 30"
 Cohesion: 0.31
 Nodes (8): category_code_exists(), create_process_category(), get_process_category(), list_process_categories(), 工艺工序分类 CRUD(biz_process_category), _row_to_dict(), soft_delete_process_category(), update_process_category()
 
-### Community 32 - "Community 32"
+### Community 31 - "Community 31"
 Cohesion: 0.31
 Nodes (8): create_item_unit(), get_item_unit(), list_item_units(), 物品单位 CRUD(biz_item_unit), _row_to_dict(), soft_delete_item_unit(), unit_code_exists(), update_item_unit()
 
+### Community 32 - "Community 32"
+Cohesion: 0.31
+Nodes (8): create_sop_document(), get_sop_document(), list_sop_documents(), SOP文档 CRUD(biz_sop_document), _row_to_dict(), soft_delete_sop_document(), sop_code_exists(), update_sop_document()
+
 ### Community 33 - "Community 33"
 Cohesion: 0.31
-Nodes (8): create_cell_sample_type(), get_cell_sample_type(), list_cell_sample_types(), 细胞样本类型 CRUD(biz_cell_sample_type), _row_to_dict(), soft_delete_cell_sample_type(), type_code_exists(), update_cell_sample_type()
+Nodes (8): create_customer(), get_customer(), id_card_taken(), list_customers(), 客户 CRUD(biz_customer), _row_to_dict(), soft_delete_customer(), update_customer()
 
 ### Community 34 - "Community 34"
 Cohesion: 0.31
-Nodes (8): create_output_type(), get_output_type(), list_output_types(), 工艺产出物类型 CRUD(biz_output_type), _row_to_dict(), soft_delete_output_type(), type_code_exists(), update_output_type()
+Nodes (8): create_cell_sample_type(), get_cell_sample_type(), list_cell_sample_types(), 细胞样本类型 CRUD(biz_cell_sample_type), _row_to_dict(), soft_delete_cell_sample_type(), type_code_exists(), update_cell_sample_type()
 
 ### Community 35 - "Community 35"
-Cohesion: 0.36
-Nodes (7): create_post(), get_post(), list_posts(), post_code_exists(), _row_to_dict(), soft_delete_post(), update_post()
+Cohesion: 0.31
+Nodes (8): create_output_type(), get_output_type(), list_output_types(), 工艺产出物类型 CRUD(biz_output_type), _row_to_dict(), soft_delete_output_type(), type_code_exists(), update_output_type()
 
 ### Community 36 - "Community 36"
 Cohesion: 0.36
-Nodes (7): create_dict_type(), dict_type_code_exists(), get_dict_type(), list_dict_types(), _row_to_dict(), soft_delete_dict_type(), update_dict_type()
+Nodes (7): create_post(), get_post(), list_posts(), post_code_exists(), _row_to_dict(), soft_delete_post(), update_post()
 
 ### Community 37 - "Community 37"
 Cohesion: 0.36
-Nodes (7): create_tenant(), get_tenant(), list_tenants(), _row_to_dict(), soft_delete_tenant(), tenant_no_exists(), update_tenant()
+Nodes (7): create_dict_type(), dict_type_code_exists(), get_dict_type(), list_dict_types(), _row_to_dict(), soft_delete_dict_type(), update_dict_type()
 
 ### Community 38 - "Community 38"
-Cohesion: 0.31
-Nodes (7): create_cell_product(), delete_cell_product(), get_cell_product(), list_cell_products(), 细胞产品 CRUD(biz_cell_product), _row_to_dict(), update_cell_product()
+Cohesion: 0.36
+Nodes (7): create_tenant(), get_tenant(), list_tenants(), _row_to_dict(), soft_delete_tenant(), tenant_no_exists(), update_tenant()
 
 ### Community 39 - "Community 39"
 Cohesion: 0.36
-Nodes (7): create_site(), get_site(), list_sites(), _row_to_dict(), site_code_exists(), soft_delete_site(), update_site()
+Nodes (7): create_reagent(), get_reagent(), list_reagents(), reagent_code_exists(), _row_to_dict(), soft_delete_reagent(), update_reagent()
 
 ### Community 40 - "Community 40"
-Cohesion: 0.36
-Nodes (7): create_reagent(), get_reagent(), list_reagents(), reagent_code_exists(), _row_to_dict(), soft_delete_reagent(), update_reagent()
+Cohesion: 0.31
+Nodes (7): create_cell_product(), delete_cell_product(), get_cell_product(), list_cell_products(), 细胞产品 CRUD(biz_cell_product), _row_to_dict(), update_cell_product()
 
 ### Community 41 - "Community 41"
-Cohesion: 0.25
-Nodes (7): get_user_menu_codes(), 菜单 code 权限守卫(V0.3:通过 sys_user_role → sys_role_menu → sys_menu.perms), 运营端角色守卫:admin / super_admin 可访问。, 读取用户授权的菜单权限标识集合(与前端 meta.menuCode / perms 对齐)。, 接口菜单权限守卫。super_admin 直接放行。, require_admin_or_super_admin(), require_menu_code()
+Cohesion: 0.39
+Nodes (8): create_lab_item(), get_lab_item(), item_code_exists(), list_active_lab_items(), list_lab_items(), _row_to_dict(), soft_delete_lab_item(), update_lab_item()
 
 ### Community 42 - "Community 42"
+Cohesion: 0.36
+Nodes (7): create_site(), get_site(), list_sites(), _row_to_dict(), site_code_exists(), soft_delete_site(), update_site()
+
+### Community 43 - "Community 43"
 Cohesion: 0.29
 Nodes (2): BaseModel, SoftDeleteModel
 
-### Community 43 - "Community 43"
+### Community 44 - "Community 44"
 Cohesion: 0.38
 Nodes (6): derive_legacy_status_from_three(), derive_three_status_from_legacy(), 阶段A兼容:从旧 status 推导三字段。     约束:旧 status 本身混合了支付/配送/订单生命周期,因此只能尽力推断;     若业务侧已有更精确, 阶段A兼容:从三字段反推旧 status(用于旧前端/旧筛选参数兼容)。, ThreeStatus, _to_decimal()
 
-### Community 44 - "Community 44"
+### Community 45 - "Community 45"
 Cohesion: 0.5
 Nodes (3): BaseSettings, Config, Settings
 
-### Community 45 - "Community 45"
+### Community 46 - "Community 46"
 Cohesion: 0.5
 Nodes (2): _auto_fill_create_dept_id(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID
 
-### Community 46 - "Community 46"
+### Community 47 - "Community 47"
 Cohesion: 0.67
 Nodes (2): get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,供后端菜单模式联调)
 
-### Community 47 - "Community 47"
+### Community 48 - "Community 48"
 Cohesion: 1.0
 Nodes (1): 请求级别的用户上下文变量  通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传
 
-### Community 48 - "Community 48"
+### Community 49 - "Community 49"
 Cohesion: 1.0
 Nodes (1): API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)
 
-### Community 51 - "Community 51"
+### Community 52 - "Community 52"
 Cohesion: 1.0
 Nodes (1): 发送订单状态通知                  Args:             openid: 用户openid             ord
 
-### Community 52 - "Community 52"
+### Community 53 - "Community 53"
 Cohesion: 1.0
 Nodes (1): 发送支付成功通知                  Args:             openid: 用户openid             ord
 
-### Community 53 - "Community 53"
+### Community 54 - "Community 54"
 Cohesion: 1.0
 Nodes (1): 发送配送通知                  Args:             openid: 配送员openid             task
 
-### Community 54 - "Community 54"
+### Community 55 - "Community 55"
 Cohesion: 1.0
 Nodes (1): 发送配送时效预警                  Args:             openid: 配送员openid             ta
 
-### Community 55 - "Community 55"
+### Community 56 - "Community 56"
 Cohesion: 1.0
 Nodes (1): 发送退款结果通知                  Args:             openid: 用户openid             ord
 
-### Community 56 - "Community 56"
+### Community 57 - "Community 57"
 Cohesion: 1.0
 Nodes (1): 发送催单通知给配送员                  Args:             deliver_openid: 配送员openid
 
 ## Knowledge Gaps
 - **86 isolated node(s):** `刷新会话 TTL(refreshToken 续期;已登录用户每次 API 校验通过后滑动续期)`, `写入 refreshToken(用于 one-time 使用/吊销)`, `根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期)`, `登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。`, `Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。` (+81 more)
   These have ≤1 connection - possible missing edges or undocumented components.
-- **Thin community `Community 42`** (8 nodes): `BaseModel`, `.to_dict()`, `get_active()`, `base.py`, `SoftDeleteModel`, `.restore()`, `.soft_delete()`, `__tablename__()`
+- **Thin community `Community 43`** (8 nodes): `BaseModel`, `.to_dict()`, `get_active()`, `base.py`, `SoftDeleteModel`, `.restore()`, `.soft_delete()`, `__tablename__()`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 45`** (4 nodes): `_auto_fill_create_dept_id()`, `get_db()`, `database.py`, `ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID`
+- **Thin community `Community 46`** (4 nodes): `_auto_fill_create_dept_id()`, `get_db()`, `database.py`, `ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 46`** (3 nodes): `get_menu_list()`, `menu.py`, `运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,供后端菜单模式联调)`
+- **Thin community `Community 47`** (3 nodes): `get_menu_list()`, `menu.py`, `运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,供后端菜单模式联调)`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 47`** (2 nodes): `context.py`, `请求级别的用户上下文变量  通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传`
+- **Thin community `Community 48`** (2 nodes): `context.py`, `请求级别的用户上下文变量  通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 48`** (2 nodes): `__init__.py`, `API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)`
+- **Thin community `Community 49`** (2 nodes): `__init__.py`, `API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 51`** (1 nodes): `发送订单状态通知                  Args:             openid: 用户openid             ord`
+- **Thin community `Community 52`** (1 nodes): `发送订单状态通知                  Args:             openid: 用户openid             ord`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 52`** (1 nodes): `发送支付成功通知                  Args:             openid: 用户openid             ord`
+- **Thin community `Community 53`** (1 nodes): `发送支付成功通知                  Args:             openid: 用户openid             ord`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 53`** (1 nodes): `发送配送通知                  Args:             openid: 配送员openid             task`
+- **Thin community `Community 54`** (1 nodes): `发送配送通知                  Args:             openid: 配送员openid             task`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 54`** (1 nodes): `发送配送时效预警                  Args:             openid: 配送员openid             ta`
+- **Thin community `Community 55`** (1 nodes): `发送配送时效预警                  Args:             openid: 配送员openid             ta`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 55`** (1 nodes): `发送退款结果通知                  Args:             openid: 用户openid             ord`
+- **Thin community `Community 56`** (1 nodes): `发送退款结果通知                  Args:             openid: 用户openid             ord`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 56`** (1 nodes): `发送催单通知给配送员                  Args:             deliver_openid: 配送员openid`
+- **Thin community `Community 57`** (1 nodes): `发送催单通知给配送员                  Args:             deliver_openid: 配送员openid`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
 
 ## Suggested Questions
 _Questions this graph is uniquely positioned to answer:_
 
-- **Why does `generate_uuid()` connect `Community 4` to `Community 1`, `Community 2`, `Community 3`, `Community 5`, `Community 6`, `Community 7`, `Community 9`, `Community 10`, `Community 11`, `Community 16`, `Community 17`, `Community 18`, `Community 22`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 34`, `Community 35`, `Community 36`, `Community 37`, `Community 38`, `Community 39`, `Community 40`?**
-  _High betweenness centrality (0.108) - this node is a cross-community bridge._
-- **Why does `SysUser` connect `Community 0` to `Community 2`, `Community 4`, `Community 6`, `Community 9`, `Community 10`, `Community 11`, `Community 15`?**
-  _High betweenness centrality (0.091) - this node is a cross-community bridge._
-- **Why does `success_response()` connect `Community 1` to `Community 0`, `Community 3`, `Community 6`, `Community 9`, `Community 10`, `Community 11`, `Community 46`, `Community 15`?**
-  _High betweenness centrality (0.066) - this node is a cross-community bridge._
+- **Why does `generate_uuid()` connect `Community 3` to `Community 0`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 12`, `Community 16`, `Community 17`, `Community 18`, `Community 20`, `Community 21`, `Community 22`, `Community 23`, `Community 24`, `Community 25`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 34`, `Community 35`, `Community 36`, `Community 37`, `Community 38`, `Community 39`, `Community 40`, `Community 41`, `Community 42`?**
+  _High betweenness centrality (0.109) - this node is a cross-community bridge._
+- **Why does `success_response()` connect `Community 0` to `Community 1`, `Community 5`, `Community 6`, `Community 7`, `Community 9`, `Community 13`, `Community 47`?**
+  _High betweenness centrality (0.075) - this node is a cross-community bridge._
+- **Why does `SysUser` connect `Community 1` to `Community 2`, `Community 3`, `Community 4`, `Community 9`, `Community 11`, `Community 13`, `Community 18`?**
+  _High betweenness centrality (0.074) - this node is a cross-community bridge._
 - **Are the 369 inferred relationships involving `success_response()` (e.g. with `web_login_rsa_public_key()` and `web_login()`) actually correct?**
   _`success_response()` has 369 INFERRED edges - model-reasoned connections that need verification._
 - **Are the 334 inferred relationships involving `str` (e.g. with `extract_login_credentials()` and `._make_request()`) actually correct?**
   _`str` has 334 INFERRED edges - model-reasoned connections that need verification._
 - **Are the 295 inferred relationships involving `error_response()` (e.g. with `_json_error_response()` and `web_login()`) actually correct?**
   _`error_response()` has 295 INFERRED edges - model-reasoned connections that need verification._
-- **Are the 203 inferred relationships involving `SysUser` (e.g. with `数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤)  data_scope 值:   1 = 全部数据   2 = 本部门数据   3` and `从 SysUser 读取用户的 dept_id。`) actually correct?**
-  _`SysUser` has 203 INFERRED edges - model-reasoned connections that need verification._
+- **Are the 207 inferred relationships involving `SysUser` (e.g. with `数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤)  data_scope 值:   1 = 全部数据   2 = 本部门数据   3` and `从 SysUser 读取用户的 dept_id。`) actually correct?**
+  _`SysUser` has 207 INFERRED edges - model-reasoned connections that need verification._

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
backend/graphify-out/graph.html


Diferenças do arquivo suprimidas por serem muito extensas
+ 112 - 112
backend/graphify-out/graph.json


+ 3 - 3
backend/graphify-out/manifest.json

@@ -86,7 +86,7 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/role.py": 1779265616.3701816,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py": 1779265684.1870236,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/menu.py": 1779265729.0381103,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_region.py": 1778739677.393334,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_region.py": 1779277867.6408322,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception_check_item.py": 1779007909.2933013,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/site.py": 1779265643.0128026,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/api_request_log.py": 1778578258.0614743,
@@ -103,7 +103,7 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception.py": 1779265759.1550276,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/consumable_pack.py": 1779265715.416005,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_material.py": 1779265708.1276836,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol_no.py": 1778739676.552736,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_protocol_no.py": 1779279043.1571646,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_facility.py": 1779270989.9713993,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_sample_type.py": 1778733001.8375483,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dept.py": 1779265637.7914758,
@@ -117,7 +117,7 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/material.py": 1779266127.8435113,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/qc.py": 1779265802.2248735,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/collection_protocol.py": 1779265813.1605325,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py": 1779023595.3203893,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py": 1779279035.4324942,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py": 1779230551.0712175,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py": 1779271459.2836037,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/menu.py": 1779263225.4964793,

+ 79 - 79
web-admin/graphify-out/.graphify_extract.json

@@ -7138,168 +7138,168 @@
       "label": "handleSelectionChange()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L430"
+      "source_location": "L431"
     },
     {
       "id": "clean_room_index_loaddata",
       "label": "loadData()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L454"
+      "source_location": "L455"
     },
     {
       "id": "clean_room_index_handlesearch",
       "label": "handleSearch()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L469"
+      "source_location": "L470"
     },
     {
       "id": "clean_room_index_handlereset",
       "label": "handleReset()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L474"
+      "source_location": "L475"
     },
     {
       "id": "clean_room_index_resetform",
       "label": "resetForm()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L481"
+      "source_location": "L482"
     },
     {
       "id": "clean_room_index_handleadd",
       "label": "handleAdd()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L491"
+      "source_location": "L492"
     },
     {
       "id": "clean_room_index_handleedit",
       "label": "handleEdit()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L499"
+      "source_location": "L500"
     },
     {
       "id": "clean_room_index_handlesubmit",
       "label": "handleSubmit()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L513"
+      "source_location": "L514"
     },
     {
       "id": "clean_room_index_handleview",
       "label": "handleView()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L540"
+      "source_location": "L541"
     },
     {
       "id": "clean_room_index_handledelete",
       "label": "handleDelete()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L545"
+      "source_location": "L546"
     },
     {
       "id": "clean_room_index_handlebatchdelete",
       "label": "handleBatchDelete()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L552"
+      "source_location": "L553"
     },
     {
       "id": "clean_room_index_formatuserlabel",
       "label": "formatUserLabel()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L601"
+      "source_location": "L602"
     },
     {
       "id": "clean_room_index_remotesearchusers",
       "label": "remoteSearchUsers()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L611"
+      "source_location": "L612"
     },
     {
       "id": "clean_room_index_onpersonselectchange",
       "label": "onPersonSelectChange()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L630"
+      "source_location": "L631"
     },
     {
       "id": "clean_room_index_loaddeptdata",
       "label": "loadDeptData()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L644"
+      "source_location": "L645"
     },
     {
       "id": "clean_room_index_resolvepersonforedit",
       "label": "resolvePersonForEdit()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L661"
+      "source_location": "L662"
     },
     {
       "id": "clean_room_index_handleaccesslog",
       "label": "handleAccessLog()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L683"
+      "source_location": "L684"
     },
     {
       "id": "clean_room_index_loadaccesslogdata",
       "label": "loadAccessLogData()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L690"
+      "source_location": "L691"
     },
     {
       "id": "clean_room_index_resetlogform",
       "label": "resetLogForm()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L706"
+      "source_location": "L707"
     },
     {
       "id": "clean_room_index_handleaddlog",
       "label": "handleAddLog()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L718"
+      "source_location": "L719"
     },
     {
       "id": "clean_room_index_handleeditlog",
       "label": "handleEditLog()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L726"
+      "source_location": "L727"
     },
     {
       "id": "clean_room_index_handlelogsubmit",
       "label": "handleLogSubmit()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L742"
+      "source_location": "L743"
     },
     {
       "id": "clean_room_index_handledeletelog",
       "label": "handleDeleteLog()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L771"
+      "source_location": "L772"
     },
     {
       "id": "clean_room_index_handleviewlog",
       "label": "handleViewLog()",
       "file_type": "code",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L798"
+      "source_location": "L799"
     },
     {
       "id": "views_operations_storage_facility_index_vue",
@@ -21894,7 +21894,7 @@
       "relation": "imports_from",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L375",
+      "source_location": "L376",
       "weight": 1.0
     },
     {
@@ -21903,7 +21903,7 @@
       "relation": "imports_from",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L376",
+      "source_location": "L377",
       "weight": 1.0
     },
     {
@@ -21912,7 +21912,7 @@
       "relation": "imports_from",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L377",
+      "source_location": "L378",
       "weight": 1.0
     },
     {
@@ -21921,7 +21921,7 @@
       "relation": "imports_from",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L378",
+      "source_location": "L379",
       "weight": 1.0
     },
     {
@@ -21930,7 +21930,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L430",
+      "source_location": "L431",
       "weight": 1.0
     },
     {
@@ -21939,7 +21939,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L454",
+      "source_location": "L455",
       "weight": 1.0
     },
     {
@@ -21948,7 +21948,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L469",
+      "source_location": "L470",
       "weight": 1.0
     },
     {
@@ -21957,7 +21957,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L474",
+      "source_location": "L475",
       "weight": 1.0
     },
     {
@@ -21966,7 +21966,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L481",
+      "source_location": "L482",
       "weight": 1.0
     },
     {
@@ -21975,7 +21975,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L491",
+      "source_location": "L492",
       "weight": 1.0
     },
     {
@@ -21984,7 +21984,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L499",
+      "source_location": "L500",
       "weight": 1.0
     },
     {
@@ -21993,7 +21993,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L513",
+      "source_location": "L514",
       "weight": 1.0
     },
     {
@@ -22002,7 +22002,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L540",
+      "source_location": "L541",
       "weight": 1.0
     },
     {
@@ -22011,7 +22011,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L545",
+      "source_location": "L546",
       "weight": 1.0
     },
     {
@@ -22020,7 +22020,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L552",
+      "source_location": "L553",
       "weight": 1.0
     },
     {
@@ -22029,7 +22029,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L601",
+      "source_location": "L602",
       "weight": 1.0
     },
     {
@@ -22038,7 +22038,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L611",
+      "source_location": "L612",
       "weight": 1.0
     },
     {
@@ -22047,7 +22047,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L630",
+      "source_location": "L631",
       "weight": 1.0
     },
     {
@@ -22056,7 +22056,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L644",
+      "source_location": "L645",
       "weight": 1.0
     },
     {
@@ -22065,7 +22065,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L661",
+      "source_location": "L662",
       "weight": 1.0
     },
     {
@@ -22074,7 +22074,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L683",
+      "source_location": "L684",
       "weight": 1.0
     },
     {
@@ -22083,7 +22083,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L690",
+      "source_location": "L691",
       "weight": 1.0
     },
     {
@@ -22092,7 +22092,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L706",
+      "source_location": "L707",
       "weight": 1.0
     },
     {
@@ -22101,7 +22101,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L718",
+      "source_location": "L719",
       "weight": 1.0
     },
     {
@@ -22110,7 +22110,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L726",
+      "source_location": "L727",
       "weight": 1.0
     },
     {
@@ -22119,7 +22119,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L742",
+      "source_location": "L743",
       "weight": 1.0
     },
     {
@@ -22128,7 +22128,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L771",
+      "source_location": "L772",
       "weight": 1.0
     },
     {
@@ -22137,7 +22137,7 @@
       "relation": "contains",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L798",
+      "source_location": "L799",
       "weight": 1.0
     },
     {
@@ -22146,7 +22146,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L471",
+      "source_location": "L472",
       "weight": 1.0
     },
     {
@@ -22155,7 +22155,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L477",
+      "source_location": "L478",
       "weight": 1.0
     },
     {
@@ -22164,7 +22164,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L494",
+      "source_location": "L495",
       "weight": 1.0
     },
     {
@@ -22173,7 +22173,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L532",
+      "source_location": "L533",
       "weight": 1.0
     },
     {
@@ -22182,7 +22182,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L549",
+      "source_location": "L550",
       "weight": 1.0
     },
     {
@@ -22191,7 +22191,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L687",
+      "source_location": "L688",
       "weight": 1.0
     },
     {
@@ -22200,7 +22200,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L721",
+      "source_location": "L722",
       "weight": 1.0
     },
     {
@@ -22209,7 +22209,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L739",
+      "source_location": "L740",
       "weight": 1.0
     },
     {
@@ -22218,7 +22218,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L763",
+      "source_location": "L764",
       "weight": 1.0
     },
     {
@@ -22227,7 +22227,7 @@
       "relation": "calls",
       "confidence": "EXTRACTED",
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L775",
+      "source_location": "L776",
       "weight": 1.0
     },
     {
@@ -30396,7 +30396,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L457",
+      "source_location": "L458",
       "weight": 1.0
     },
     {
@@ -30406,7 +30406,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L514",
+      "source_location": "L515",
       "weight": 1.0
     },
     {
@@ -30416,7 +30416,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L526",
+      "source_location": "L527",
       "weight": 1.0
     },
     {
@@ -30426,7 +30426,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L528",
+      "source_location": "L529",
       "weight": 1.0
     },
     {
@@ -30436,7 +30436,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L547",
+      "source_location": "L548",
       "weight": 1.0
     },
     {
@@ -30446,7 +30446,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L556",
+      "source_location": "L557",
       "weight": 1.0
     },
     {
@@ -30456,7 +30456,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L606",
+      "source_location": "L607",
       "weight": 1.0
     },
     {
@@ -30466,7 +30466,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L615",
+      "source_location": "L616",
       "weight": 1.0
     },
     {
@@ -30476,7 +30476,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L637",
+      "source_location": "L638",
       "weight": 1.0
     },
     {
@@ -30486,7 +30486,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L646",
+      "source_location": "L647",
       "weight": 1.0
     },
     {
@@ -30496,7 +30496,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L654",
+      "source_location": "L655",
       "weight": 1.0
     },
     {
@@ -30506,7 +30506,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L665",
+      "source_location": "L666",
       "weight": 1.0
     },
     {
@@ -30516,7 +30516,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L694",
+      "source_location": "L695",
       "weight": 1.0
     },
     {
@@ -30526,7 +30526,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L743",
+      "source_location": "L744",
       "weight": 1.0
     },
     {
@@ -30536,7 +30536,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L757",
+      "source_location": "L758",
       "weight": 1.0
     },
     {
@@ -30546,7 +30546,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L759",
+      "source_location": "L760",
       "weight": 1.0
     },
     {
@@ -30556,7 +30556,7 @@
       "confidence": "INFERRED",
       "confidence_score": 0.8,
       "source_file": "views/operations/clean-room/index.vue",
-      "source_location": "L773",
+      "source_location": "L774",
       "weight": 1.0
     },
     {

+ 1 - 1
web-admin/graphify-out/GRAPH_REPORT.md

@@ -1,7 +1,7 @@
 # Graph Report - src  (2026-05-20)
 
 ## Corpus Check
-- Large corpus: 575 files · ~286,002 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
+- Large corpus: 575 files · ~286,028 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
 
 ## Summary
 - 1441 nodes · 1845 edges · 45 communities detected

+ 2 - 2
web-admin/graphify-out/manifest.json

@@ -232,8 +232,8 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/material-stock-log/index.vue": 1779269594.6014075,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/outside/Iframe.vue": 1778582068.071536,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/demo/index.vue": 1779227504.0518396,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/clean-room/index.vue": 1779269722.9883883,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue": 1779270881.783701,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/clean-room/index.vue": 1779271253.4280891,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue": 1779270994.1626155,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/exhibition-appointment/index.vue": 1779269551.8199837,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/audit/index.vue": 1779227504.1761265,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/index.vue": 1779227504.1804457,

+ 28 - 2
web-admin/src/api/admin.ts

@@ -996,6 +996,7 @@ export function fetchCollectionProtocolNoList(params?: {
   page?: number
   pageSize?: number
   keyword?: string
+  issuedUserId?: string
 }) {
   return request.get<PageResult<Api.BizCollectionProtocolNo.ProtocolNoItem>>({
     url: '/web/admin/collection-protocol-nos',
@@ -1007,12 +1008,23 @@ export function fetchCreateCollectionProtocolNo(data: {
   issued?: number
   orderNum?: number
   remark?: string
+  issuedUserId?: string | null
+  issuedUserName?: string | null
+  issuedTime?: string | null
 }) {
   return request.post({ url: '/web/admin/collection-protocol-nos', params: data })
 }
 export function fetchUpdateCollectionProtocolNo(
   id: string,
-  data: Partial<{ protocolNo: string; issued: number; orderNum: number; remark: string }>
+  data: Partial<{
+    protocolNo: string
+    issued: number
+    orderNum: number
+    remark: string
+    issuedUserId: string | null
+    issuedUserName: string | null
+    issuedTime: string | null
+  }>
 ) {
   return request.put({ url: `/web/admin/collection-protocol-nos/${id}`, params: data })
 }
@@ -1061,6 +1073,8 @@ export function fetchSampleCodeList(params?: {
   page?: number
   pageSize?: number
   keyword?: string
+  sampleCodeType?: string
+  issuedUserId?: string
 }) {
   return request.get<PageResult<Api.BizSampleCode.SampleCodeItem>>({
     url: '/web/admin/sample-codes',
@@ -1069,7 +1083,11 @@ export function fetchSampleCodeList(params?: {
 }
 export function fetchCreateSampleCode(data: {
   sampleCode: string
+  sampleCodeType?: string
   issued?: number
+  issuedUserId?: string | null
+  issuedUserName?: string | null
+  issuedTime?: string
   orderNum?: number
   remark?: string
 }) {
@@ -1077,7 +1095,15 @@ export function fetchCreateSampleCode(data: {
 }
 export function fetchUpdateSampleCode(
   id: string,
-  data: Partial<{ sampleCode: string; issued: number; orderNum: number; remark: string }>
+  data: Partial<{
+    sampleCode: string
+    issued: number
+    issuedUserId: string | null
+    issuedUserName: string | null
+    issuedTime: string
+    orderNum: number
+    remark: string
+  }>
 ) {
   return request.put({ url: `/web/admin/sample-codes/${id}`, params: data })
 }

+ 1 - 0
web-admin/src/graphify-out/cache/ast/00e0b519c591e0f9df151e210eb3f85746437cc782dc0fe741d4ff534cee9e3a.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1"}, {"id": "storage_facility_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L550"}, {"id": "storage_facility_index_push", "label": "push()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L553"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "target": "storage_facility_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L550", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "target": "storage_facility_index_push", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L553", "weight": 1.0}], "raw_calls": [{"caller_nid": "storage_facility_index_if", "callee": "set", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L551"}]}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
web-admin/src/graphify-out/cache/ast/0e07cd0d4909eec177213e18d0ba0286c3035d61a39526be0999dc341f5f109d.json


+ 96 - 21
web-admin/src/views/basic-info/collection-protocol-no/index.vue

@@ -18,6 +18,22 @@
             <el-form-item label="关键词">
               <el-input v-model="searchForm.keyword" placeholder="协议号/备注" clearable />
             </el-form-item>
+            <el-form-item label="下发对象">
+              <el-select
+                v-model="searchForm.issuedUserId"
+                placeholder="全部"
+                filterable
+                clearable
+                style="width: 100%"
+              >
+                <el-option
+                  v-for="opt in userOptions"
+                  :key="opt.value"
+                  :label="opt.label"
+                  :value="opt.value"
+                />
+              </el-select>
+            </el-form-item>
           </div>
           <div class="filter-actions-row">
             <span class="filter-hint">模糊查询。</span>
@@ -39,6 +55,7 @@
             新增协议号
           </el-button>
           <el-button class="btn-ghost" @click="openBatchGenerate">
+            <el-icon><DocumentAdd /></el-icon>
             批量生成
           </el-button>
           <el-button
@@ -46,6 +63,7 @@
             :disabled="selectedRows.length === 0"
             @click="openBatchIssue"
           >
+            <el-icon><Promotion /></el-icon>
             批量下发
           </el-button>
           <el-button
@@ -53,6 +71,7 @@
             :disabled="selectedRows.length === 0"
             @click="handleBatchRevoke"
           >
+            <el-icon><RefreshRight /></el-icon>
             批量收回
           </el-button>
           <el-button
@@ -110,7 +129,7 @@
             align="center"
             header-align="center"
           >
-            <template #default="{ row }">{{ row.issuedUserName || '-' }}</template>
+            <template #default="{ row }">{{ resolveIssuedUserName(row) }}</template>
           </el-table-column>
           <el-table-column
             prop="issuedTime"
@@ -121,6 +140,16 @@
           >
             <template #default="{ row }">{{ row.issuedTime || '-' }}</template>
           </el-table-column>
+          <el-table-column
+            prop="remark"
+            label="备注"
+            min-width="140"
+            align="center"
+            header-align="center"
+            show-overflow-tooltip
+          >
+            <template #default="{ row }">{{ row.remark || '-' }}</template>
+          </el-table-column>
           <el-table-column
             prop="createTime"
             label="创建时间"
@@ -314,7 +343,7 @@
                 inactive-text="否"
               />
             </el-form-item>
-            <el-form-item v-if="formData.issued === 1" label="下发用户">
+            <el-form-item v-if="formData.issued === 1" label="下发用户" prop="issuedUserId">
               <el-select
                 v-model="formData.issuedUserId"
                 placeholder="请选择用户"
@@ -363,7 +392,18 @@
 <script setup lang="ts">
   import { ref, reactive, computed, onMounted } from 'vue'
   import { ElMessage, ElMessageBox } from 'element-plus'
-  import { Plus, Close, Check, View, Tickets, RefreshLeft, Search } from '@element-plus/icons-vue'
+  import {
+    Plus,
+    Close,
+    Check,
+    View,
+    Tickets,
+    RefreshLeft,
+    Search,
+    DocumentAdd,
+    Promotion,
+    RefreshRight
+  } from '@element-plus/icons-vue'
   import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
   import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
   import {
@@ -379,7 +419,10 @@
 
   defineOptions({ name: 'BizCollectionProtocolNo' })
 
-  const searchForm = reactive<{ keyword: string }>({ keyword: '' })
+  const searchForm = reactive<{ keyword: string; issuedUserId: string }>({
+    keyword: '',
+    issuedUserId: ''
+  })
   const tableData = ref<Api.BizCollectionProtocolNo.ProtocolNoItem[]>([])
   const selectedRows = ref<Api.BizCollectionProtocolNo.ProtocolNoItem[]>([])
   const loading = ref(false)
@@ -403,7 +446,7 @@
         fields: [
           { label: '采集协议号', value: row.protocolNo },
           { label: '是否下发', value: row.issued === 1 ? '是' : '否' },
-          { label: '下发对象', value: row.issuedUserName || '-' },
+          { label: '下发对象', value: resolveIssuedUserName(row) },
           { label: '下发时间', value: row.issuedTime || '-' },
           { label: '创建时间', value: row.createTime },
           { label: '备注', value: row.remark, span: true }
@@ -458,6 +501,15 @@
   }
   const userOptions = ref<Array<{ label: string; value: string }>>([])
 
+  function resolveIssuedUserName(row: Api.BizCollectionProtocolNo.ProtocolNoItem): string {
+    const name = (row.issuedUserName || '').trim()
+    if (name) return name
+    const uid = (row.issuedUserId || '').trim()
+    if (!uid) return '-'
+    const opt = userOptions.value.find((u) => u.value === uid)
+    return (opt?.label || '').trim() || '-'
+  }
+
   const formData = reactive({
     protocolNo: '',
     issued: 0,
@@ -469,7 +521,19 @@
   })
 
   const formRules = {
-    protocolNo: [{ required: true, message: '请输入采集协议号', trigger: 'blur' }]
+    protocolNo: [{ required: true, message: '请输入采集协议号', trigger: 'blur' }],
+    issuedUserId: [
+      {
+        validator: (_rule: unknown, value: string, callback: (err?: Error) => void) => {
+          if (formData.issued === 1 && !(value || '').trim()) {
+            callback(new Error('请选择下发用户'))
+            return
+          }
+          callback()
+        },
+        trigger: 'change'
+      }
+    ]
   }
 
   const handleSelectionChange = (rows: Api.BizCollectionProtocolNo.ProtocolNoItem[]) => {
@@ -482,7 +546,8 @@
       const res = await fetchCollectionProtocolNoList({
         page: pagination.page,
         pageSize: pagination.pageSize,
-        keyword: searchForm.keyword || undefined
+        keyword: searchForm.keyword || undefined,
+        issuedUserId: searchForm.issuedUserId || undefined
       })
       tableData.value = res.list || []
       pagination.total = res.total ?? 0
@@ -498,6 +563,7 @@
 
   function handleReset() {
     searchForm.keyword = ''
+    searchForm.issuedUserId = ''
     pagination.page = 1
     loadData()
   }
@@ -513,12 +579,13 @@
     editingId.value = null
   }
 
-  function handleAdd() {
+  async function handleAdd() {
     isEdit.value = false
     dialogTitle.value = '新增协议号'
     resetForm()
     dialogVisible.value = true
     formRef.value?.clearValidate?.()
+    await loadUserOptions()
   }
 
   async function handleEdit(row: Api.BizCollectionProtocolNo.ProtocolNoItem) {
@@ -534,22 +601,25 @@
     formData.remark = row.remark || ''
     dialogVisible.value = true
     formRef.value?.clearValidate?.()
-    if (!userOptions.value.length) {
-      try {
-        userOptions.value = await fetchUserOptions()
-      } catch { /* ignore */ }
-    }
+    await loadUserOptions()
   }
 
   async function handleSubmit() {
     await formRef.value?.validate?.()
     submitLoading.value = true
     try {
+      const issueUserOpt =
+        formData.issued === 1
+          ? userOptions.value.find((u) => u.value === formData.issuedUserId)
+          : undefined
       const payload = {
         protocolNo: formData.protocolNo.trim(),
         issued: formData.issued,
         issuedUserId: formData.issued === 1 ? formData.issuedUserId || undefined : null,
-        issuedUserName: formData.issued === 1 ? formData.issuedUserName || undefined : null,
+        issuedUserName:
+          formData.issued === 1
+            ? (formData.issuedUserName || issueUserOpt?.label || '').trim() || undefined
+            : null,
         issuedTime: formData.issuedTime || undefined,
         orderNum: formData.orderNum,
         remark: formData.remark?.trim() || undefined
@@ -642,12 +712,7 @@
     if (!selectedRows.value.length) return
     batchIssueForm.issuedUserId = ''
     batchIssueVisible.value = true
-    // load user options
-    if (!userOptions.value.length) {
-      try {
-        userOptions.value = await fetchUserOptions()
-      } catch { /* ignore */ }
-    }
+    await loadUserOptions()
   }
 
   async function handleBatchIssue() {
@@ -669,7 +734,17 @@
     }
   }
 
-  onMounted(() => {
+  async function loadUserOptions() {
+    if (userOptions.value.length) return
+    try {
+      userOptions.value = await fetchUserOptions()
+    } catch {
+      /* ignore */
+    }
+  }
+
+  onMounted(async () => {
+    await loadUserOptions()
     loadData()
   })
 </script>

+ 45 - 10
web-admin/src/views/basic-info/collection-region/index.vue

@@ -75,18 +75,12 @@
             align="center"
             header-align="center"
           />
-          <el-table-column
-            prop="createTime"
-            label="创建时间"
-            min-width="180"
-            align="center"
-            header-align="center"
-          />
           <el-table-column
             label="医院信息"
             min-width="240"
-            align="center"
+            align="left"
             header-align="center"
+            class-name="hospital-info-col"
           >
             <template #default="{ row }">
               <template v-if="row.hospitalNames && row.hospitalNames.length">
@@ -101,6 +95,26 @@
               <span v-else class="muted">—</span>
             </template>
           </el-table-column>
+          <el-table-column
+            prop="remark"
+            label="备注"
+            min-width="160"
+            align="center"
+            header-align="center"
+            show-overflow-tooltip
+          >
+            <template #default="{ row }">
+              <span v-if="row.remark">{{ row.remark }}</span>
+              <span v-else class="muted">—</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="createTime"
+            label="创建时间"
+            min-width="180"
+            align="center"
+            header-align="center"
+          />
           <el-table-column
             label="操作"
             width="400"
@@ -232,6 +246,19 @@
               align="center"
               header-align="center"
             />
+            <el-table-column
+              prop="remark"
+              label="备注"
+              min-width="160"
+              align="center"
+              header-align="center"
+              show-overflow-tooltip
+            >
+              <template #default="{ row }">
+                <span v-if="row.remark">{{ row.remark }}</span>
+                <span v-else class="muted">—</span>
+              </template>
+            </el-table-column>
             <el-table-column
               label="操作"
               width="260"
@@ -550,6 +577,7 @@
     currentRegionId.value = ''
     currentRegionName.value = ''
     hospitalTable.value = []
+    loadData()
   }
 
   function handleAddHospital() {
@@ -653,10 +681,17 @@
     padding-top: 0;
   }
 
+  :deep(.hospital-info-col .cell) {
+    white-space: normal;
+    line-height: 1.5;
+  }
+
   .hospital-cell-line {
     line-height: 1.8;
-    text-align: left;
-    padding-left: 8px;
+  }
+
+  .hospital-cell-line + .hospital-cell-line {
+    margin-top: 2px;
   }
 
   .muted {

+ 2 - 2
web-admin/src/views/basic-info/customer/index.vue

@@ -280,7 +280,7 @@
 
   const formData = reactive({
     customerName: '',
-    sex: '2',
+    sex: '0',
     idCardNo: '',
     age: null as number | null,
     phoneNo: '',
@@ -325,7 +325,7 @@
 
   function resetForm() {
     formData.customerName = ''
-    formData.sex = '2'
+    formData.sex = '0'
     formData.idCardNo = ''
     formData.age = null
     formData.phoneNo = ''

+ 113 - 20
web-admin/src/views/basic-info/sample-code/index.vue

@@ -18,6 +18,33 @@
             <el-form-item label="关键词">
               <el-input v-model="searchForm.keyword" placeholder="样本编码/备注" clearable />
             </el-form-item>
+            <el-form-item label="编码类型">
+              <el-select
+                v-model="searchForm.sampleCodeType"
+                placeholder="全部"
+                clearable
+                style="width: 100%"
+              >
+                <el-option label="造血编码 (ZKZX)" value="zxbm" />
+                <el-option label="脐带编码 (ZKQD)" value="qdbm" />
+              </el-select>
+            </el-form-item>
+            <el-form-item label="下发对象">
+              <el-select
+                v-model="searchForm.issuedUserId"
+                placeholder="全部"
+                filterable
+                clearable
+                style="width: 100%"
+              >
+                <el-option
+                  v-for="opt in userOptions"
+                  :key="opt.value"
+                  :label="opt.label"
+                  :value="opt.value"
+                />
+              </el-select>
+            </el-form-item>
           </div>
           <div class="filter-actions-row">
             <span class="filter-hint">模糊查询。</span>
@@ -39,6 +66,7 @@
             新增样本编码
           </el-button>
           <el-button class="btn-ghost" @click="openBatchGenerate">
+            <el-icon><DocumentAdd /></el-icon>
             批量生成
           </el-button>
           <el-button
@@ -46,6 +74,7 @@
             :disabled="selectedRows.length === 0"
             @click="openBatchIssue"
           >
+            <el-icon><Promotion /></el-icon>
             批量下发
           </el-button>
           <el-button
@@ -53,6 +82,7 @@
             :disabled="selectedRows.length === 0"
             @click="handleBatchRevoke"
           >
+            <el-icon><RefreshRight /></el-icon>
             批量收回
           </el-button>
           <el-button
@@ -130,6 +160,16 @@
           >
             <template #default="{ row }">{{ row.issuedTime || '-' }}</template>
           </el-table-column>
+          <el-table-column
+            prop="remark"
+            label="备注"
+            min-width="120"
+            align="center"
+            header-align="center"
+            show-overflow-tooltip
+          >
+            <template #default="{ row }">{{ row.remark || '-' }}</template>
+          </el-table-column>
           <el-table-column
             prop="createTime"
             label="创建时间"
@@ -316,7 +356,17 @@
                 maxlength="32"
               />
             </el-form-item>
-            <el-form-item v-if="isEdit" label="编码类型">
+            <el-form-item v-if="!isEdit" label="编码类型" prop="sampleCodeType">
+              <el-select
+                v-model="formData.sampleCodeType"
+                placeholder="请选择"
+                style="width: 100%"
+              >
+                <el-option label="造血编码 (ZKZX)" value="zxbm" />
+                <el-option label="脐带编码 (ZKQD)" value="qdbm" />
+              </el-select>
+            </el-form-item>
+            <el-form-item v-else label="编码类型">
               <span class="text-sm text-gray-500">{{ sampleCodeTypeLabel(formData.sampleCodeType) }}</span>
             </el-form-item>
             <el-form-item label="是否下发">
@@ -329,7 +379,7 @@
                 inactive-text="否"
               />
             </el-form-item>
-            <el-form-item v-if="formData.issued === 1" label="下发用户">
+            <el-form-item v-if="formData.issued === 1" label="下发用户" prop="issuedUserId">
               <el-select
                 v-model="formData.issuedUserId"
                 placeholder="请选择用户"
@@ -378,7 +428,18 @@
 <script setup lang="ts">
   import { ref, reactive, computed, onMounted } from 'vue'
   import { ElMessage, ElMessageBox } from 'element-plus'
-  import { Plus, Close, Check, View, Ticket, RefreshLeft, Search } from '@element-plus/icons-vue'
+  import {
+    Plus,
+    Close,
+    Check,
+    View,
+    Ticket,
+    RefreshLeft,
+    Search,
+    DocumentAdd,
+    Promotion,
+    RefreshRight
+  } from '@element-plus/icons-vue'
   import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
   import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
   import {
@@ -395,7 +456,11 @@
 
   defineOptions({ name: 'BizSampleCode' })
 
-  const searchForm = reactive<{ keyword: string }>({ keyword: '' })
+  const searchForm = reactive<{ keyword: string; sampleCodeType: string; issuedUserId: string }>({
+    keyword: '',
+    sampleCodeType: '',
+    issuedUserId: ''
+  })
   const tableData = ref<Api.BizSampleCode.SampleCodeItem[]>([])
   const selectedRows = ref<Api.BizSampleCode.SampleCodeItem[]>([])
   const loading = ref(false)
@@ -489,7 +554,20 @@
   })
 
   const formRules = {
-    sampleCode: [{ required: true, message: '请输入样本编码', trigger: 'blur' }]
+    sampleCode: [{ required: true, message: '请输入样本编码', trigger: 'blur' }],
+    sampleCodeType: [{ required: true, message: '请选择编码类型', trigger: 'change' }],
+    issuedUserId: [
+      {
+        validator: (_rule: unknown, value: string, callback: (err?: Error) => void) => {
+          if (formData.issued === 1 && !(value || '').trim()) {
+            callback(new Error('请选择下发用户'))
+            return
+          }
+          callback()
+        },
+        trigger: 'change'
+      }
+    ]
   }
 
   const handleSelectionChange = (rows: Api.BizSampleCode.SampleCodeItem[]) => {
@@ -502,7 +580,9 @@
       const res = await fetchSampleCodeList({
         page: pagination.page,
         pageSize: pagination.pageSize,
-        keyword: searchForm.keyword || undefined
+        keyword: searchForm.keyword || undefined,
+        sampleCodeType: searchForm.sampleCodeType || undefined,
+        issuedUserId: searchForm.issuedUserId || undefined
       })
       tableData.value = res.list || []
       pagination.total = res.total ?? 0
@@ -518,13 +598,15 @@
 
   function handleReset() {
     searchForm.keyword = ''
+    searchForm.sampleCodeType = ''
+    searchForm.issuedUserId = ''
     pagination.page = 1
     loadData()
   }
 
   function resetForm() {
     formData.sampleCode = ''
-    formData.sampleCodeType = ''
+    formData.sampleCodeType = 'zxbm'
     formData.issued = 0
     formData.issuedUserId = ''
     formData.issuedUserName = ''
@@ -534,12 +616,22 @@
     editingId.value = null
   }
 
-  function handleAdd() {
+  async function loadUserOptions() {
+    if (userOptions.value.length) return
+    try {
+      userOptions.value = await fetchUserOptions()
+    } catch {
+      /* ignore */
+    }
+  }
+
+  async function handleAdd() {
     isEdit.value = false
     dialogTitle.value = '新增样本编码'
     resetForm()
     dialogVisible.value = true
     formRef.value?.clearValidate?.()
+    await loadUserOptions()
   }
 
   async function handleEdit(row: Api.BizSampleCode.SampleCodeItem) {
@@ -556,22 +648,26 @@
     formData.remark = row.remark || ''
     dialogVisible.value = true
     formRef.value?.clearValidate?.()
-    if (!userOptions.value.length) {
-      try {
-        userOptions.value = await fetchUserOptions()
-      } catch { /* ignore */ }
-    }
+    await loadUserOptions()
   }
 
   async function handleSubmit() {
     await formRef.value?.validate?.()
     submitLoading.value = true
     try {
+      const issueUserOpt =
+        formData.issued === 1
+          ? userOptions.value.find((u) => u.value === formData.issuedUserId)
+          : undefined
       const payload = {
         sampleCode: formData.sampleCode.trim(),
+        sampleCodeType: !isEdit.value ? formData.sampleCodeType || undefined : undefined,
         issued: formData.issued,
         issuedUserId: formData.issued === 1 ? formData.issuedUserId || undefined : null,
-        issuedUserName: formData.issued === 1 ? formData.issuedUserName || undefined : null,
+        issuedUserName:
+          formData.issued === 1
+            ? (formData.issuedUserName || issueUserOpt?.label || '').trim() || undefined
+            : null,
         issuedTime: formData.issuedTime || undefined,
         orderNum: formData.orderNum,
         remark: formData.remark?.trim() || undefined
@@ -664,11 +760,7 @@
     if (!selectedRows.value.length) return
     batchIssueForm.issuedUserId = ''
     batchIssueVisible.value = true
-    if (!userOptions.value.length) {
-      try {
-        userOptions.value = await fetchUserOptions()
-      } catch { /* ignore */ }
-    }
+    await loadUserOptions()
   }
 
   async function handleBatchIssue() {
@@ -690,7 +782,8 @@
     }
   }
 
-  onMounted(() => {
+  onMounted(async () => {
+    await loadUserOptions()
     loadData()
   })
 </script>

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff