zlwu 5 mēneši atpakaļ
vecāks
revīzija
3c7a47981a
100 mainītis faili ar 3503 papildinājumiem un 1992 dzēšanām
  1. 1 1
      backend/app.pid
  2. 120 101
      backend/app/api/clinical_payment.py
  3. 21 6
      backend/app/api/menu.py
  4. 2 0
      backend/app/api/outbound_release_review.py
  5. 26 2
      backend/app/api/pilot_application.py
  6. 2 0
      backend/app/api/pilot_checkup.py
  7. 2 0
      backend/app/api/pilot_infusion_schedule_mgmt.py
  8. 70 11
      backend/app/crud/clinical_payment.py
  9. 28 3
      backend/app/crud/outbound_release_review.py
  10. 77 18
      backend/app/crud/pilot_application.py
  11. 12 0
      backend/app/crud/pilot_checkup.py
  12. 4 0
      backend/app/crud/pilot_delivery.py
  13. 19 0
      backend/app/crud/pilot_infusion_schedule_mgmt.py
  14. 7 4
      backend/app/crud/pilot_outbound_status_sync.py
  15. 4 1
      backend/app/crud/production_work_order.py
  16. 56 1
      backend/app/crud/qc_work_order.py
  17. 0 0
      backend/app/graphify-out/cache/ast/0c1717514acb2ccbd9950d2f64bccb40ed2d5d52209652b97fd5d86ddd00ce22.json
  18. 0 0
      backend/app/graphify-out/cache/ast/1982014012faccbb54b7ad41753082fe3b7f3f987c9032ec5875d8a1cee1fc24.json
  19. 0 0
      backend/app/graphify-out/cache/ast/1b4019bc8841fa26e45feae50e64e746aadfa66e2a8522c87a856b6d56b60691.json
  20. 0 0
      backend/app/graphify-out/cache/ast/33fab5978d88f0a484fe3e33554f9606dc3001b5bdb7891526372283cc9459d1.json
  21. 0 0
      backend/app/graphify-out/cache/ast/3cace8c0c3dad3f953c787418f07b3010345c7f0ce67ac4d3c07d73989b85b39.json
  22. 0 0
      backend/app/graphify-out/cache/ast/3de736fd320df24dc144857a38596f555bbb27de2c050a18e58eaf7e9f2e0016.json
  23. 0 0
      backend/app/graphify-out/cache/ast/3f95dcf84e9a7276a6569e470c1fa8489c3608f5bc0643c743eadc73cea19076.json
  24. 0 0
      backend/app/graphify-out/cache/ast/41cbb79cfed91afcf7bc596a612a2bf30cf68be132aa65074e7e18e0b4ebe409.json
  25. 0 0
      backend/app/graphify-out/cache/ast/48b45d9ffefe1a78219f91dd9d0e777cadf0cb9d54bb97a2bea11a0d9675e760.json
  26. 0 0
      backend/app/graphify-out/cache/ast/4b393cf6f1bc238bb2ea48db885fa266c5f77f65a544521343273423d7f577c1.json
  27. 0 0
      backend/app/graphify-out/cache/ast/4f0e5518b26189ce0b2df52e8e712a7ac69b0974042b949449efd1178a2607c3.json
  28. 0 0
      backend/app/graphify-out/cache/ast/6c54b60d29b09dfa1b779b7d6dabe6a29725089fed27e6441351f7b60083f60a.json
  29. 0 0
      backend/app/graphify-out/cache/ast/7111bd4221f4a3861719da1f659ae7b968aa18988d065b6585203dbeb094bb0f.json
  30. 0 0
      backend/app/graphify-out/cache/ast/993caa1d4c5afd9650605d1b2552548a026245fda4efd6dcbcb67e1128e5fb4b.json
  31. 0 0
      backend/app/graphify-out/cache/ast/9ffd5007c7e50ce96dda1baee2b7656af98589a962ffac8c4edd3d0bc6693513.json
  32. 0 0
      backend/app/graphify-out/cache/ast/a5a09c5a584318b784f66ff490bee59c8892d6e276bf973df4e88996de77e105.json
  33. 0 0
      backend/app/graphify-out/cache/ast/ba5718878409230bb2de2a2bdb057edb51be600054e479f33bf03be76ec42918.json
  34. 0 0
      backend/app/graphify-out/cache/ast/cb7bec9ff2ff8cb99fe2958a27d600bd9c5828b51b51b5aa5a3839aeb681f5a7.json
  35. 0 0
      backend/app/graphify-out/cache/ast/cf8750c528c35d91bd644dca3fbcaa4f7049d6a87caec488b247c2c6bcdb3732.json
  36. 0 0
      backend/app/graphify-out/cache/ast/d11ea68c41b37b947205bfc04932ccb6293b620ff8cdb98d47c293beac9110db.json
  37. 0 0
      backend/app/graphify-out/cache/ast/d227e4576b3753b9a9ee11f9f06dcedc1ceea9af26db202aed3a175a8618f629.json
  38. 0 0
      backend/app/graphify-out/cache/ast/d55671bf1071f001c7ed3d05e2c8facf9714136eb224b279a963307933d5ca05.json
  39. 0 0
      backend/app/graphify-out/cache/ast/db0179d6d866e85f4a1b627d83ada39c997911b5fe625fde2c3d8023f2b8adb6.json
  40. 0 0
      backend/app/graphify-out/cache/ast/dbae5bb9627d7e6e389d02d9be5ca8032851abcd669281080035429585e2cb18.json
  41. 0 0
      backend/app/graphify-out/cache/ast/f5987f801c84b3c5252634690b1226f8f2c74a61ec08f086a023a3334973deac.json
  42. 0 0
      backend/app/graphify-out/cache/ast/f8d634b95fe99c15577eef8fab7c6bb9bba0f8f1b26a060b0687e107e6d3ef15.json
  43. 0 0
      backend/app/graphify-out/cache/ast/fc41826a6859b9492a67d8e96a69e1853da50319dae568bb1baa3514ec6d815c.json
  44. 151 683
      backend/graphify-out/.graphify_analysis.json
  45. 197 183
      backend/graphify-out/.graphify_extract.json
  46. 120 85
      backend/graphify-out/GRAPH_REPORT.md
  47. 1 1
      backend/graphify-out/graph.html
  48. 112 112
      backend/graphify-out/graph.json
  49. 15 15
      backend/graphify-out/manifest.json
  50. 38 0
      docs/sql/biz_pilot_payment_init.sql
  51. 6 0
      docs/sql/migrate_biz_qc_material_usage_source_type.sql
  52. 7 0
      docs/sql/migrate_clinical_payment_confirm_menu_name.sql
  53. 11 0
      docs/sql/migrate_menu_protocol_donation_rename.sql
  54. 25 0
      docs/sql/migrate_outbound_work_order_clinical_biz_type.sql
  55. 8 0
      docs/sql/sys_menu_hide_clinical_checkup.sql
  56. 8 0
      docs/sql/sys_menu_hide_clinical_infusion_schedule.sql
  57. 8 0
      docs/sql/sys_menu_hide_clinical_payment_info.sql
  58. 8 0
      docs/sql/sys_menu_hide_clinical_refund_confirm.sql
  59. 9 6
      docs/sql/sys_menu_web_init.sql
  60. 2 0
      docs/superpowers/specs/2026-05-27-clinical-application-design.md
  61. 62 0
      docs/superpowers/specs/2026-05-28-clinical-application-cell-product-design.md
  62. 257 0
      docs/superpowers/specs/2026-05-28-clinical-payment-tabs-design.md
  63. 41 0
      docs/superpowers/specs/2026-05-28-menu-biz-type-isolation-design.md
  64. 389 465
      web-admin/graphify-out/.graphify_analysis.json
  65. 368 81
      web-admin/graphify-out/.graphify_extract.json
  66. 98 70
      web-admin/graphify-out/GRAPH_REPORT.md
  67. 1 1
      web-admin/graphify-out/graph.html
  68. 119 110
      web-admin/graphify-out/graph.json
  69. 30 27
      web-admin/graphify-out/manifest.json
  70. 6 5
      web-admin/src/api/business.ts
  71. 2 0
      web-admin/src/api/outbound-release-review.ts
  72. 208 0
      web-admin/src/components/business/clinical-payment-submit-readonly/index.vue
  73. 729 0
      web-admin/src/components/business/clinical-schedule-payment-detail/index.vue
  74. 1 0
      web-admin/src/graphify-out/cache/ast/025c48d7d1603078f7d9005140255d2b043c60d8b8fc7c16018568a34b2f7d1e.json
  75. 0 0
      web-admin/src/graphify-out/cache/ast/06b0d61540e63c4ab27b84f5e39496605e4455fc5f6926a644bd207e7d0c7cea.json
  76. 1 0
      web-admin/src/graphify-out/cache/ast/06f3aa166a18b5fd48553c3f4ee53cb03b6204a3bdb9ac63acd953cfd5c22820.json
  77. 1 0
      web-admin/src/graphify-out/cache/ast/0d6454cbcd01e45cb22fab7f695a21d450431c37cb18cbc35f31360264cbe361.json
  78. 0 0
      web-admin/src/graphify-out/cache/ast/1a41b0adb0db9be0fe06162b19a468c13a4321b1ca5c0ddda0ba05e42fdd00ca.json
  79. 1 0
      web-admin/src/graphify-out/cache/ast/1f66770a2a3491030a2319d18bfe3b2bb77ca16623427956da1c7e2061d4dd90.json
  80. 1 0
      web-admin/src/graphify-out/cache/ast/264afbecfcca16857d18fe3a1c5669c176f69794d01f897c7ec49c871cc33c99.json
  81. 1 0
      web-admin/src/graphify-out/cache/ast/2b119a429d6009074bf6dab3b21c2891dfb6449148128d082125cd89b6a23ccc.json
  82. 0 0
      web-admin/src/graphify-out/cache/ast/2ed40ba4e33c24ed405fe78abccb65f17dcd824567fb5658c20be04fde3c4cb1.json
  83. 1 0
      web-admin/src/graphify-out/cache/ast/3b6b9b09eb05a461dad9509f3caf4b79f957111fa04df444bd3990bc84134554.json
  84. 1 0
      web-admin/src/graphify-out/cache/ast/425ee4b2fe4eba6300a16c0d74322bdc58b442694b0858a098eac25071c733a1.json
  85. 1 0
      web-admin/src/graphify-out/cache/ast/4a10bd228baedad5e7d227546efa9f24be5f9bfc8aff8927a415e9c3e99a7392.json
  86. 0 0
      web-admin/src/graphify-out/cache/ast/549415cd3d2ce9633ca68e7f9d5b4698f33e6171c8b30a65acd3a7239dd93059.json
  87. 1 0
      web-admin/src/graphify-out/cache/ast/54fa3425a009a6efb9a7fc20cfe672c9337d8f50a3152028137a408f09686bc9.json
  88. 0 0
      web-admin/src/graphify-out/cache/ast/5f999d5205cd5098375d43642ffba255df5a02bade06f70fff083e3b5d4fd3d2.json
  89. 0 0
      web-admin/src/graphify-out/cache/ast/6286d394f9b72052b0d57621231543e9197850589d25bba07e54c4c27e1fb6e4.json
  90. 1 0
      web-admin/src/graphify-out/cache/ast/6c787430c5852459bc490a7ef0578b1f27af14ce5586506984b7993e6ca4d6dc.json
  91. 0 0
      web-admin/src/graphify-out/cache/ast/711c19e5c87598f02f46550e2ecb257e209281261e679bd1171772731ef60a4a.json
  92. 1 0
      web-admin/src/graphify-out/cache/ast/748f2011b723592fc4f8dba1711e57dae554894df825ac898b1477fa647d4ce8.json
  93. 1 0
      web-admin/src/graphify-out/cache/ast/859196a7d5ecad2a36f5d0ca04cdbe3b2db7d752f67694bbc1acbcda73bf6e2e.json
  94. 0 0
      web-admin/src/graphify-out/cache/ast/8fc65f5f06dc745435cd73aec9a435db774daea6d2e32e0a609a0b344cfdf31b.json
  95. 0 0
      web-admin/src/graphify-out/cache/ast/a5b7d6e2fef1ffaee7dde828c056c584f4c9b44c63cefbc4eeec17475698b688.json
  96. 1 0
      web-admin/src/graphify-out/cache/ast/b317fb28651cb816e01923935832e84a0226eb0d0e055323f9763371c569d375.json
  97. 1 0
      web-admin/src/graphify-out/cache/ast/b3242de0a643d7d95f2a19e8380391ac07ce4e9d02a8946c391ec4965073e310.json
  98. 0 0
      web-admin/src/graphify-out/cache/ast/b4c212e5cafac9b1fd9ed0ea4b2b00a9253b89d5c1857a8c7b325331e58b3aba.json
  99. 0 0
      web-admin/src/graphify-out/cache/ast/ba155515be94c471ae4f637c5d8f2043f3b4fba38ecf1dfdfb38847b49a66570.json
  100. 1 0
      web-admin/src/graphify-out/cache/ast/c2aeec5ed38b0ea43522f683f2c4f8706d8ec2d39351fc477321c40355b806cc.json

+ 1 - 1
backend/app.pid

@@ -1 +1 @@
-44395
+97899

+ 120 - 101
backend/app/api/clinical_payment.py

@@ -35,10 +35,25 @@ class BatchPaymentIdsBody(BaseModel):
     payment_ids: List[str] = Field(..., alias="paymentIds")
 
 
+class SubmitReceiptBody(BaseModel):
+    model_config = ConfigDict(populate_by_name=True)
+
+    transfer_amount: Optional[float] = Field(None, alias="transferAmount")
+    remark: Optional[str] = None
+    transfer_attachments: Optional[str] = Field(None, alias="transferAttachments")
+
+
+class BatchSubmitReceiptBody(BaseModel):
+    model_config = ConfigDict(populate_by_name=True)
+
+    payment_ids: List[str] = Field(..., alias="paymentIds")
+    remark: Optional[str] = None
+    transfer_attachments: Optional[str] = Field(None, alias="transferAttachments")
+
+
 class ConfirmReceiptBody(BaseModel):
     model_config = ConfigDict(populate_by_name=True)
 
-    id: str
     finance_confirm_attachments: Optional[str] = Field(None, alias="financeConfirmAttachments")
     finance_remark: Optional[str] = Field(None, alias="financeRemark")
 
@@ -46,7 +61,6 @@ class ConfirmReceiptBody(BaseModel):
 class SubmitRefundBody(BaseModel):
     model_config = ConfigDict(populate_by_name=True)
 
-    id: str
     refund_amount: float = Field(..., alias="refundAmount")
     refund_remark: Optional[str] = Field(None, alias="refundRemark")
     refund_attachments: Optional[str] = Field(None, alias="refundAttachments")
@@ -64,7 +78,6 @@ class BatchSubmitRefundBody(BaseModel):
 class ConfirmRefundBody(BaseModel):
     model_config = ConfigDict(populate_by_name=True)
 
-    id: str
     refund_finance_confirm_attachments: Optional[str] = Field(
         None, alias="refundFinanceConfirmAttachments"
     )
@@ -91,7 +104,103 @@ async def api_list_payments(
             tenant_no=tenant_no,
             user_info=user,
         )
-        return success_response({"rows": rows, "total": total})
+        return success_response({"list": rows, "total": total})
+    except Exception as e:
+        return error_response(500, str(e))
+
+
+@router.get("/clinical-payments/receipt-pending")
+async def api_receipt_pending(
+    page: int = Query(1, ge=1),
+    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
+    keyword: Optional[str] = Query(None, alias="keyword"),
+    user: dict = Depends(require_admin_or_super_admin),
+    db: Session = Depends(get_db),
+):
+    tenant_no = _get_tenant_no(db, user)
+    try:
+        rows, total = clinical_payment.list_payments(
+            db,
+            page=page,
+            page_size=pageSize,
+            pay_status="jfqrz",
+            keyword=keyword,
+            tenant_no=tenant_no,
+            user_info=user,
+        )
+        return success_response({"list": rows, "total": total})
+    except Exception as e:
+        return error_response(500, str(e))
+
+
+@router.get("/clinical-payments/receipt-confirmed")
+async def api_receipt_confirmed(
+    page: int = Query(1, ge=1),
+    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
+    keyword: Optional[str] = Query(None, alias="keyword"),
+    user: dict = Depends(require_admin_or_super_admin),
+    db: Session = Depends(get_db),
+):
+    tenant_no = _get_tenant_no(db, user)
+    try:
+        rows, total = clinical_payment.list_payments(
+            db,
+            page=page,
+            page_size=pageSize,
+            pay_status="yjf",
+            keyword=keyword,
+            tenant_no=tenant_no,
+            user_info=user,
+        )
+        return success_response({"list": rows, "total": total})
+    except Exception as e:
+        return error_response(500, str(e))
+
+
+@router.get("/clinical-payments/refund-pending")
+async def api_refund_pending(
+    page: int = Query(1, ge=1),
+    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
+    keyword: Optional[str] = Query(None, alias="keyword"),
+    user: dict = Depends(require_admin_or_super_admin),
+    db: Session = Depends(get_db),
+):
+    tenant_no = _get_tenant_no(db, user)
+    try:
+        rows, total = clinical_payment.list_payments(
+            db,
+            page=page,
+            page_size=pageSize,
+            pay_status="tfqrz",
+            keyword=keyword,
+            tenant_no=tenant_no,
+            user_info=user,
+        )
+        return success_response({"list": rows, "total": total})
+    except Exception as e:
+        return error_response(500, str(e))
+
+
+@router.get("/clinical-payments/refund-confirmed")
+async def api_refund_confirmed(
+    page: int = Query(1, ge=1),
+    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
+    keyword: Optional[str] = Query(None, alias="keyword"),
+    user: dict = Depends(require_admin_or_super_admin),
+    db: Session = Depends(get_db),
+):
+    tenant_no = _get_tenant_no(db, user)
+    try:
+        rows, total = clinical_payment.list_payments(
+            db,
+            page=page,
+            page_size=pageSize,
+            pay_status="ytf",
+            keyword=keyword,
+            tenant_no=tenant_no,
+            user_info=user,
+        )
+        return success_response({"list": rows, "total": total})
     except Exception as e:
         return error_response(500, str(e))
 
@@ -117,6 +226,7 @@ async def api_get_payment_detail(
 @router.post("/clinical-payments/{payment_id}/submit-receipt")
 async def api_submit_receipt(
     payment_id: str,
+    body: SubmitReceiptBody = SubmitReceiptBody(),
     user: dict = Depends(require_admin_or_super_admin),
     db: Session = Depends(get_db),
 ):
@@ -127,6 +237,9 @@ async def api_submit_receipt(
             payment_id=payment_id,
             tenant_no=tenant_no,
             user_id=user.get("user_id"),
+            remark=body.remark,
+            transfer_attachments=body.transfer_attachments,
+            transfer_amount=body.transfer_amount,
         )
         return success_response(None, message="提交缴费确认成功")
     except ValueError as e:
@@ -135,7 +248,7 @@ async def api_submit_receipt(
 
 @router.post("/clinical-payments/submit-receipt-batch")
 async def api_batch_submit_receipt(
-    body: BatchPaymentIdsBody,
+    body: BatchSubmitReceiptBody,
     user: dict = Depends(require_admin_or_super_admin),
     db: Session = Depends(get_db),
 ):
@@ -146,6 +259,8 @@ async def api_batch_submit_receipt(
             payment_ids=body.payment_ids,
             tenant_no=tenant_no,
             user_id=user.get("user_id"),
+            remark=body.remark,
+            transfer_attachments=body.transfer_attachments,
         )
         return success_response({"count": count}, message=f"批量提交成功,共{count}条")
     except ValueError as e:
@@ -239,99 +354,3 @@ async def api_confirm_refund(
         return success_response(None, message="确认退费成功")
     except ValueError as e:
         return error_response(400, str(e))
-
-
-@router.get("/clinical-payments/receipt-pending")
-async def api_receipt_pending(
-    page: int = Query(1, ge=1),
-    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
-    keyword: Optional[str] = Query(None, alias="keyword"),
-    user: dict = Depends(require_admin_or_super_admin),
-    db: Session = Depends(get_db),
-):
-    tenant_no = _get_tenant_no(db, user)
-    try:
-        rows, total = clinical_payment.list_payments(
-            db,
-            page=page,
-            page_size=pageSize,
-            pay_status="jfqrz",
-            keyword=keyword,
-            tenant_no=tenant_no,
-            user_info=user,
-        )
-        return success_response({"rows": rows, "total": total})
-    except Exception as e:
-        return error_response(500, str(e))
-
-
-@router.get("/clinical-payments/receipt-confirmed")
-async def api_receipt_confirmed(
-    page: int = Query(1, ge=1),
-    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
-    keyword: Optional[str] = Query(None, alias="keyword"),
-    user: dict = Depends(require_admin_or_super_admin),
-    db: Session = Depends(get_db),
-):
-    tenant_no = _get_tenant_no(db, user)
-    try:
-        rows, total = clinical_payment.list_payments(
-            db,
-            page=page,
-            page_size=pageSize,
-            pay_status="yjf",
-            keyword=keyword,
-            tenant_no=tenant_no,
-            user_info=user,
-        )
-        return success_response({"rows": rows, "total": total})
-    except Exception as e:
-        return error_response(500, str(e))
-
-
-@router.get("/clinical-payments/refund-pending")
-async def api_refund_pending(
-    page: int = Query(1, ge=1),
-    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
-    keyword: Optional[str] = Query(None, alias="keyword"),
-    user: dict = Depends(require_admin_or_super_admin),
-    db: Session = Depends(get_db),
-):
-    tenant_no = _get_tenant_no(db, user)
-    try:
-        rows, total = clinical_payment.list_payments(
-            db,
-            page=page,
-            page_size=pageSize,
-            pay_status="tfqrz",
-            keyword=keyword,
-            tenant_no=tenant_no,
-            user_info=user,
-        )
-        return success_response({"rows": rows, "total": total})
-    except Exception as e:
-        return error_response(500, str(e))
-
-
-@router.get("/clinical-payments/refund-confirmed")
-async def api_refund_confirmed(
-    page: int = Query(1, ge=1),
-    pageSize: int = Query(10, ge=1, le=100, alias="pageSize"),
-    keyword: Optional[str] = Query(None, alias="keyword"),
-    user: dict = Depends(require_admin_or_super_admin),
-    db: Session = Depends(get_db),
-):
-    tenant_no = _get_tenant_no(db, user)
-    try:
-        rows, total = clinical_payment.list_payments(
-            db,
-            page=page,
-            page_size=pageSize,
-            pay_status="ytf",
-            keyword=keyword,
-            tenant_no=tenant_no,
-            user_info=user,
-        )
-        return success_response({"rows": rows, "total": total})
-    except Exception as e:
-        return error_response(500, str(e))

+ 21 - 6
backend/app/api/menu.py

@@ -35,7 +35,7 @@ STATIC_MENU_TREE = [
                 "name": "CellStorageProtocolAudit",
                 "path": "protocol-audit",
                 "component": "/cell-storage/protocol-audit/index",
-                "meta": {"title": "采集协议单管理", "keepAlive": True, "menuCode": "biz:cellStorageProtocolAudit:list"},
+                "meta": {"title": "采集协议单", "keepAlive": True, "menuCode": "biz:cellStorageProtocolAudit:list"},
             },
             {
                 "id": "50000000000000000000000000000004",
@@ -81,7 +81,7 @@ STATIC_MENU_TREE = [
                 "name": "ResearchDonationAudit",
                 "path": "audit",
                 "component": "/research-donation/audit/index",
-                "meta": {"title": "捐赠协议单管理", "keepAlive": True, "menuCode": "biz:researchDonationAudit:list"},
+                "meta": {"title": "捐赠协议单", "keepAlive": True, "menuCode": "biz:researchDonationAudit:list"},
             },
         ],
     },
@@ -145,28 +145,43 @@ STATIC_MENU_TREE = [
                 "name": "ClinicalCheckupManagement",
                 "path": "clinical-checkup-management",
                 "component": "/pilot-service/checkup-management/index",
-                "meta": {"title": "体检管理", "keepAlive": True, "menuCode": "clinical-application:checkup-management:list"},
+                "meta": {
+                    "title": "体检管理",
+                    "keepAlive": True,
+                    "isHide": True,
+                    "menuCode": "clinical-application:checkup-management:list",
+                },
             },
             {
                 "id": "CLI00000000000000000000000000004",
                 "name": "ClinicalInfusionSchedule",
                 "path": "clinical-infusion-schedule-management",
                 "component": "/pilot-service/infusion-schedule-management/index",
-                "meta": {"title": "输注计划管理", "keepAlive": True, "menuCode": "clinical-application:infusion-schedule-management:list"},
+                "meta": {
+                    "title": "输注计划管理",
+                    "keepAlive": False,
+                    "isHide": True,
+                    "menuCode": "clinical-application:infusion-schedule-management:list",
+                },
             },
             {
                 "id": "CLI00000000000000000000000000005",
                 "name": "ClinicalPaymentInfo",
                 "path": "clinical-payment-info",
                 "component": "/pilot-service/clinical-payment-info/index",
-                "meta": {"title": "缴费信息", "keepAlive": True, "menuCode": "clinical-application:payment-info:list"},
+                "meta": {
+                    "title": "缴费信息",
+                    "keepAlive": False,
+                    "isHide": True,
+                    "menuCode": "clinical-application:payment-info:list",
+                },
             },
             {
                 "id": "CLI00000000000000000000000000006",
                 "name": "ClinicalPaymentConfirm",
                 "path": "clinical-payment-confirm",
                 "component": "/pilot-service/clinical-payment-confirm/index",
-                "meta": {"title": "缴费确认(财务)", "keepAlive": True, "menuCode": "clinical-application:payment-confirm:list"},
+                "meta": {"title": "缴退费财务确认", "keepAlive": True, "menuCode": "clinical-application:payment-confirm:list"},
             },
             {
                 "id": "CLI00000000000000000000000000007",

+ 2 - 0
backend/app/api/outbound_release_review.py

@@ -44,6 +44,7 @@ async def list_pilot_release_reviews(
     reviewConclusion: Optional[str] = None,
     scheduleStatus: Optional[str] = None,
     qcStatus: Optional[str] = None,
+    bizType: Optional[str] = None,
     db: Session = Depends(get_db),
     user: dict = Depends(require_menu_code("biz:outboundReleaseReview:list")),
 ):
@@ -56,6 +57,7 @@ async def list_pilot_release_reviews(
             review_conclusion=reviewConclusion,
             schedule_status=scheduleStatus,
             qc_status=qcStatus,
+            biz_type=bizType,
             page=page,
             page_size=pageSize,
             user_info=user,

+ 26 - 2
backend/app/api/pilot_application.py

@@ -158,6 +158,7 @@ class InfusionScheduleNestedBody(BaseModel):
     infusion_time: Optional[str] = Field(None, alias="infusionTime")
     infusion_location: Optional[str] = Field(None, alias="infusionLocation")
     infusion_method: Optional[str] = Field(None, alias="infusionMethod")
+    amount: Optional[float] = None
     cell_products: Optional[list[ScheduleProductNestedBody]] = Field(None, alias="cellProducts")
 
 
@@ -181,7 +182,9 @@ class ApplicationSaveBody(BaseModel):
 
     id: Optional[str] = None
     application_name: Optional[str] = Field(None, alias="applicationName")
-    channel_service_order_id: str = Field(..., alias="channelServiceOrderId")
+    channel_service_order_id: Optional[str] = Field(None, alias="channelServiceOrderId")
+    channel_id: Optional[str] = Field(None, alias="channelId")
+    biz_type: Optional[str] = Field(None, alias="bizType")
     remark: Optional[str] = None
     patient: Optional[PatientNestedBody] = None
     infusion_plan: Optional[InfusionPlanNestedBody] = Field(None, alias="infusionPlan")
@@ -292,13 +295,22 @@ async def api_save_application(
         dept_id = user.get("region_id", "")
         is_edit = bool(body.id)
 
+        biz_type = body.biz_type or "pilot_service"
         app_data: dict = {
-            "channelServiceOrderId": body.channel_service_order_id,
+            "channelServiceOrderId": body.channel_service_order_id or "",
+            "channelId": body.channel_id or "",
+            "bizType": biz_type,
             "remark": body.remark,
         }
         if body.application_name is not None:
             app_data["applicationName"] = body.application_name
 
+        if not is_edit and biz_type != "clinical_application" and not app_data["channelServiceOrderId"]:
+            return error_response(400, "请选择渠道服务订单")
+
+        if not is_edit and biz_type == "clinical_application" and not app_data["channelId"]:
+            return error_response(400, "请选择渠道")
+
         if is_edit:
             app_result = pilot_application.update_application(
                 db,
@@ -732,12 +744,18 @@ async def api_create_outbound_production(
         tenant_no = _get_tenant_no(db, user)
         from app.crud import production_work_order as pwo_svc
 
+        from app.crud.qc_work_order import resolve_outbound_biz_type_for_schedule
+
+        outbound_biz_type = resolve_outbound_biz_type_for_schedule(
+            db, body.scheduleId, tenant_no
+        )
         wo = pwo_svc.create_outbound_production_work_order(
             db,
             schedule_id=body.scheduleId,
             tenant_no=tenant_no,
             user_id=user.get("user_id"),
             create_dept_id=user.get("dept_id", ""),
+            biz_type=outbound_biz_type,
         )
         db.commit()
         db.refresh(wo)
@@ -764,6 +782,11 @@ async def api_create_outbound_qc(
         tenant_no = _get_tenant_no(db, user)
         from app.crud import qc_work_order as qc_svc
 
+        from app.crud.qc_work_order import resolve_outbound_biz_type_for_schedule
+
+        outbound_biz_type = resolve_outbound_biz_type_for_schedule(
+            db, body.scheduleId, tenant_no
+        )
         wo = qc_svc.create_outbound_qc_work_order(
             db,
             schedule_id=body.scheduleId,
@@ -771,6 +794,7 @@ async def api_create_outbound_qc(
             tenant_no=tenant_no,
             user_id=user.get("user_id"),
             create_dept_id=user.get("dept_id", ""),
+            biz_type=outbound_biz_type,
         )
         return success_response(qc_svc._wo_to_dict(wo), message="创建出库质检工单成功")
     except ValueError as e:

+ 2 - 0
backend/app/api/pilot_checkup.py

@@ -351,6 +351,7 @@ async def api_list_checkups(
     applicationNo: Optional[str] = Query(None, alias="applicationNo"),
     patientName: Optional[str] = Query(None, alias="patientName"),
     channelId: Optional[str] = Query(None, alias="channelId"),
+    bizType: Optional[str] = Query(None, alias="bizType"),
     user: dict = Depends(require_admin_or_super_admin),
     db: Session = Depends(get_db),
 ):
@@ -367,6 +368,7 @@ async def api_list_checkups(
         application_no=applicationNo,
         patient_name=patientName,
         channel_id=channelId,
+        biz_type=bizType,
     )
     return success_response(result)
 

+ 2 - 0
backend/app/api/pilot_infusion_schedule_mgmt.py

@@ -100,6 +100,7 @@ async def api_list(
     qcStatus: Optional[str] = Query(None, alias="qcStatus"),
     infusionTimeStart: Optional[str] = Query(None, alias="infusionTimeStart"),
     infusionTimeEnd: Optional[str] = Query(None, alias="infusionTimeEnd"),
+    bizType: Optional[str] = Query(None, alias="bizType"),
     user: dict = Depends(require_admin_or_super_admin),
     db: Session = Depends(get_db),
 ):
@@ -114,6 +115,7 @@ async def api_list(
         qc_status=qcStatus,
         infusion_time_start=infusionTimeStart,
         infusion_time_end=infusionTimeEnd,
+        biz_type=bizType,
     )
     return success_response(result)
 

+ 70 - 11
backend/app/crud/clinical_payment.py

@@ -92,18 +92,42 @@ def _enrich_payment(db: Session, row: BizPilotPayment) -> Dict[str, Any]:
             )
             .first()
         )
+    cell_type = schedule_row.cell_type if schedule_row else ""
+    spec_text = schedule_row.spec_text if schedule_row else ""
+    cell_type_spec = " / ".join(x for x in (cell_type, spec_text) if x)
     extra = {
         "applicationNo": app_row.application_no if app_row else "",
         "applicationName": app_row.application_name if app_row else "",
         "channelName": app_row.channel_name if app_row else "",
         "patientName": patient_row.patient_name if patient_row else "",
-        "cellType": schedule_row.cell_type if schedule_row else "",
-        "specText": schedule_row.spec_text if schedule_row else "",
+        "cellType": cell_type,
+        "specText": spec_text,
+        "cellTypeSpec": cell_type_spec,
+        "paymentAmount": float(row.amount) if row.amount else 0,
         "infusionTime": schedule_row.infusion_time.strftime("%Y-%m-%d %H:%M:%S") if schedule_row and schedule_row.infusion_time else "",
     }
     return _row_to_dict(row, extra=extra)
 
 
+def map_payments_by_schedule_id(
+    db: Session,
+    *,
+    application_id: str,
+    tenant_no: str,
+) -> Dict[str, Dict[str, Any]]:
+    """按输注计划 ID 索引临床应用缴费记录"""
+    rows = (
+        db.query(BizPilotPayment)
+        .filter(
+            BizPilotPayment.pilot_application_id == application_id,
+            BizPilotPayment.tenant_no == tenant_no,
+            BizPilotPayment.del_flag == 0,
+        )
+        .all()
+    )
+    return {row.infusion_schedule_id: _enrich_payment(db, row) for row in rows}
+
+
 # ─── create (auto) ────────────────────────────────────────
 
 
@@ -193,19 +217,47 @@ def list_payments(
 # ─── submit receipt (dfj → jfqrz) ────────────────────────
 
 
+def _apply_submit_receipt(
+    row: BizPilotPayment,
+    *,
+    user_id: Optional[str],
+    remark: Optional[str] = None,
+    transfer_attachments: Optional[str] = None,
+    transfer_amount: Optional[Any] = None,
+) -> None:
+    if row.pay_status != "dfj":
+        raise ValueError("仅待缴费状态可提交缴费确认")
+    plan_amount = Decimal(str(row.amount or 0))
+    if transfer_amount is not None and Decimal(str(transfer_amount)) != plan_amount:
+        raise ValueError("实缴金额须与计划金额一致")
+    row.pay_status = "jfqrz"
+    row.transfer_amount = plan_amount
+    if remark is not None:
+        row.remark = remark.strip() or None
+    if transfer_attachments is not None:
+        row.transfer_attachments = transfer_attachments.strip() or None
+    row.update_by = user_id
+    row.update_time = datetime.now()
+
+
 def submit_receipt(
     db: Session,
     *,
     payment_id: str,
     tenant_no: str,
     user_id: Optional[str],
+    remark: Optional[str] = None,
+    transfer_attachments: Optional[str] = None,
+    transfer_amount: Optional[Any] = None,
 ) -> BizPilotPayment:
     row = _get_or_raise(db, payment_id=payment_id, tenant_no=tenant_no)
-    if row.pay_status != "dfj":
-        raise ValueError("仅待缴费状态可提交缴费确认")
-    row.pay_status = "jfqrz"
-    row.update_by = user_id
-    row.update_time = datetime.now()
+    _apply_submit_receipt(
+        row,
+        user_id=user_id,
+        remark=remark,
+        transfer_attachments=transfer_attachments,
+        transfer_amount=transfer_amount,
+    )
     db.add(row)
     db.commit()
     db.refresh(row)
@@ -218,20 +270,27 @@ def batch_submit_receipt(
     payment_ids: List[str],
     tenant_no: str,
     user_id: Optional[str],
+    remark: Optional[str] = None,
+    transfer_attachments: Optional[str] = None,
 ) -> int:
     ids = [str(i).strip() for i in (payment_ids or []) if str(i).strip()]
     if not ids:
         raise ValueError("请选择缴费记录")
+    count = 0
     for pid in ids:
         row = _get_or_raise(db, payment_id=pid, tenant_no=tenant_no)
         if row.pay_status != "dfj":
             continue
-        row.pay_status = "jfqrz"
-        row.update_by = user_id
-        row.update_time = datetime.now()
+        _apply_submit_receipt(
+            row,
+            user_id=user_id,
+            remark=remark,
+            transfer_attachments=transfer_attachments,
+        )
         db.add(row)
+        count += 1
     db.commit()
-    return len(ids)
+    return count
 
 
 # ─── confirm receipt (jfqrz → yjf) ──────────────────────

+ 28 - 3
backend/app/crud/outbound_release_review.py

@@ -66,11 +66,13 @@ def _resolve_schedule_biz_type(
     qwo: Optional[BizQcWorkOrder],
     pwo: Optional[BizProductionWorkOrder],
 ) -> str:
-    """输注计划业务类型:优先出库工单的 biz_type,否则关联中试申请单视为中试服务。"""
+    """输注计划业务类型:优先出库工单 biz_type,否则取申请单 biz_type。"""
     if qwo and (qwo.biz_type or "").strip():
         return (qwo.biz_type or "").strip()
     if pwo and (pwo.biz_type or "").strip():
         return (pwo.biz_type or "").strip()
+    if app and (app.biz_type or "").strip():
+        return (app.biz_type or "").strip()
     if app:
         return "pilot_service"
     return ""
@@ -115,6 +117,7 @@ def list_reviews_paginated(
     review_conclusion: Optional[str] = None,
     schedule_status: Optional[str] = None,
     qc_status: Optional[str] = None,
+    biz_type: Optional[str] = None,
     page: int = 1,
     page_size: int = 10,
     user_info=None,
@@ -126,6 +129,28 @@ def list_reviews_paginated(
         BizPilotInfusionSchedule.del_flag == 0,
     )
 
+    bt_filter = (biz_type or "").strip()
+    if bt_filter:
+        app_ids_for_biz = (
+            db.query(BizPilotApplication.id)
+            .filter(
+                BizPilotApplication.tenant_no == tenant_no,
+                BizPilotApplication.del_flag == 0,
+                BizPilotApplication.biz_type == bt_filter,
+            )
+            .subquery()
+        )
+        plan_ids_for_biz = (
+            db.query(BizPilotInfusionPlan.id)
+            .filter(
+                BizPilotInfusionPlan.tenant_no == tenant_no,
+                BizPilotInfusionPlan.del_flag == 0,
+                BizPilotInfusionPlan.pilot_application_id.in_(app_ids_for_biz),
+            )
+            .subquery()
+        )
+        q0 = q0.filter(BizPilotInfusionSchedule.infusion_plan_id.in_(plan_ids_for_biz))
+
     # ── 关键字过滤(application_no, patient_name)需要子查询 ──
     kw = (keyword or "").strip()
     if kw:
@@ -432,7 +457,7 @@ def get_schedule_detail(
         .filter(
             BizProductionWorkOrder.infusion_schedule_id == schedule_id,
             BizProductionWorkOrder.work_order_type == "outbound",
-            BizProductionWorkOrder.biz_type == "pilot_service",
+            BizProductionWorkOrder.biz_type.in_(list(_BIZ_TYPE_LABELS.keys())),
             BizProductionWorkOrder.tenant_no == tenant_no,
             BizProductionWorkOrder.del_flag == 0,
         )
@@ -452,7 +477,7 @@ def get_schedule_detail(
         .filter(
             BizQcWorkOrder.infusion_schedule_id == schedule_id,
             BizQcWorkOrder.qc_biz_type == "outbound",
-            BizQcWorkOrder.biz_type == "pilot_service",
+            BizQcWorkOrder.biz_type.in_(list(_BIZ_TYPE_LABELS.keys())),
             BizQcWorkOrder.tenant_no == tenant_no,
             BizQcWorkOrder.del_flag == 0,
         )

+ 77 - 18
backend/app/crud/pilot_application.py

@@ -9,6 +9,7 @@ from sqlalchemy import and_, func, or_
 from sqlalchemy.orm import Session
 
 from app.models.models import (
+    BizChannel,
     BizChannelServiceOrder,
     BizCustomer,
     BizPilotApplication,
@@ -381,6 +382,16 @@ def get_application(db: Session, app_id: str, tenant_no: str) -> Optional[Dict[s
         plan_id = plan.get("id")
         if plan_id:
             result["infusionSchedules"] = list_schedules_by_plan(db, plan_id, tenant_no)
+            if row.biz_type == "clinical_application" and result["infusionSchedules"]:
+                from app.crud import clinical_payment
+
+                payment_map = clinical_payment.map_payments_by_schedule_id(
+                    db, application_id=app_id, tenant_no=tenant_no
+                )
+                for schedule in result["infusionSchedules"]:
+                    schedule_id = schedule.get("id")
+                    if schedule_id and schedule_id in payment_map:
+                        schedule["payment"] = payment_map[schedule_id]
     else:
         result["infusionPlan"] = None
         result["infusionSchedules"] = []
@@ -396,6 +407,9 @@ def create_application(
 ) -> Dict[str, Any]:
     channel_service_order_id = data.get("channelServiceOrderId") or ""
     biz_type = data.get("bizType") or "pilot_service"
+    channel_id = (data.get("channelId") or "").strip()
+    channel_name = (data.get("channelName") or "").strip()
+
     if not channel_service_order_id and biz_type != "clinical_application":
         raise ValueError("请选择渠道服务订单")
 
@@ -415,6 +429,26 @@ def create_application(
         if svc_order.order_status != "sxz":
             raise ValueError("渠道服务订单未生效,无法创建中试申请")
 
+    if biz_type == "clinical_application":
+        if svc_order:
+            channel_id = svc_order.channel_id or channel_id
+            channel_name = svc_order.channel_name or channel_name
+        if not channel_id:
+            raise ValueError("请选择渠道")
+        if not channel_name:
+            ch = (
+                db.query(BizChannel)
+                .filter(
+                    BizChannel.id == channel_id,
+                    BizChannel.tenant_no == tenant_no,
+                    BizChannel.del_flag == 0,
+                )
+                .first()
+            )
+            if not ch:
+                raise ValueError("渠道不存在")
+            channel_name = ch.channel_name or ""
+
     now = datetime.now()
     application_no = _generate_application_no(db, tenant_no, biz_type=biz_type)
 
@@ -423,9 +457,15 @@ def create_application(
         application_no=application_no,
         application_name=data.get("applicationName") or "",
         application_status="dks",
-        channel_service_order_id=channel_service_order_id,
-        channel_id=svc_order.channel_id or "" if svc_order else "",
-        channel_name=svc_order.channel_name or "" if svc_order else "",
+        channel_service_order_id=channel_service_order_id or "",
+        channel_id=(
+            (svc_order.channel_id or "" if svc_order else "")
+            or channel_id
+        ),
+        channel_name=(
+            (svc_order.channel_name or "" if svc_order else "")
+            or channel_name
+        ),
         tenant_no=tenant_no,
         order_num=0,
         remark=data.get("remark") or "",
@@ -1023,6 +1063,17 @@ def auto_generate_schedules(
     if not plan:
         raise ValueError("输注方案不存在")
 
+    # 追溯申请单获取正确的 biz_type
+    _app = (
+        db.query(BizPilotApplication)
+        .filter(
+            BizPilotApplication.id == plan.pilot_application_id,
+            BizPilotApplication.del_flag == 0,
+        )
+        .first()
+    )
+    schedule_biz_type = (_app.biz_type if _app else None) or "pilot_service"
+
     total = plan.total_course_count or 0
     if total <= 0:
         raise ValueError("总疗程数必须大于0")
@@ -1056,7 +1107,7 @@ def auto_generate_schedules(
             tenant_no=tenant_no,
             user_id=user_id,
             create_dept_id=dept_id,
-            biz_type="pilot_service",
+            biz_type=schedule_biz_type,
         )
         from app.crud import qc_work_order as qc_svc
 
@@ -1066,6 +1117,7 @@ def auto_generate_schedules(
             tenant_no=tenant_no,
             user_id=user_id,
             create_dept_id=dept_id,
+            biz_type=schedule_biz_type,
         )
 
     db.commit()
@@ -1126,6 +1178,23 @@ def create_schedule(
     schedule_id = str(uuid.uuid4())
     cell_products = data.get("cellProducts") or []
     first_product = cell_products[0] if cell_products else {}
+
+    # 追溯申请单获取正确的 biz_type
+    _plan = (
+        db.query(BizPilotInfusionPlan)
+        .filter(BizPilotInfusionPlan.id == plan_id, BizPilotInfusionPlan.del_flag == 0)
+        .first()
+    )
+    _app = (
+        db.query(BizPilotApplication)
+        .filter(
+            BizPilotApplication.id == (_plan.pilot_application_id if _plan else None),
+            BizPilotApplication.del_flag == 0,
+        )
+        .first()
+    ) if _plan else None
+    schedule_biz_type = (_app.biz_type if _app else None) or "pilot_service"
+
     row = BizPilotInfusionSchedule(
         id=schedule_id,
         infusion_plan_id=plan_id,
@@ -1162,7 +1231,7 @@ def create_schedule(
         tenant_no=tenant_no,
         user_id=user_id,
         create_dept_id=dept_id,
-        biz_type="pilot_service",
+        biz_type=schedule_biz_type,
     )
     # 自动创建出库质检工单
     from app.crud import qc_work_order as qc_svc
@@ -1173,22 +1242,12 @@ def create_schedule(
         tenant_no=tenant_no,
         user_id=user_id,
         create_dept_id=dept_id,
+        biz_type=schedule_biz_type,
     )
     # 临床应用自动创建缴费记录
-    plan_row = (
-        db.query(BizPilotInfusionPlan)
-        .filter(BizPilotInfusionPlan.id == plan_id, BizPilotInfusionPlan.del_flag == 0)
-        .first()
-    )
+    plan_row = _plan
     if plan_row:
-        application = (
-            db.query(BizPilotApplication)
-            .filter(
-                BizPilotApplication.id == plan_row.pilot_application_id,
-                BizPilotApplication.del_flag == 0,
-            )
-            .first()
-        )
+        application = _app
         if application and application.biz_type == "clinical_application" and data.get("amount"):
             from app.crud.clinical_payment import auto_create_payment
 

+ 12 - 0
backend/app/crud/pilot_checkup.py

@@ -588,12 +588,24 @@ def list_checkups_paginated(
     application_no: Optional[str] = None,
     patient_name: Optional[str] = None,
     channel_id: Optional[str] = None,
+    biz_type: Optional[str] = None,
 ) -> Dict[str, Any]:
     q = db.query(BizPilotCheckup).filter(
         BizPilotCheckup.tenant_no == tenant_no,
         BizPilotCheckup.del_flag == 0,
     )
 
+    if biz_type:
+        app_subq = (
+            db.query(BizPilotApplication.id)
+            .filter(
+                BizPilotApplication.biz_type == biz_type,
+                BizPilotApplication.del_flag == 0,
+            )
+            .subquery()
+        )
+        q = q.filter(BizPilotCheckup.pilot_application_id.in_(app_subq))
+
     if checkup_status:
         statuses = [s.strip() for s in checkup_status.split(",") if s.strip()]
         if statuses:

+ 4 - 0
backend/app/crud/pilot_delivery.py

@@ -220,6 +220,10 @@ def _deduct_fee_on_delivery(db: Session, schedule_id: str, tenant_no: str, user_
     if not application:
         raise ValueError("中试申请单不存在")
 
+    # 临床应用走 clinical_payment 模块缴费,不走服务订单扣费
+    if (application.biz_type or "") == "clinical_application":
+        return
+
     # 3. Get service order
     if not application.channel_service_order_id:
         raise ValueError("申请单未关联渠道服务订单,无法扣费")

+ 19 - 0
backend/app/crud/pilot_infusion_schedule_mgmt.py

@@ -247,6 +247,7 @@ def list_infusion_schedules_mgmt(
     qc_status: Optional[str] = None,
     infusion_time_start: Optional[str] = None,
     infusion_time_end: Optional[str] = None,
+    biz_type: Optional[str] = None,
 ) -> Dict[str, Any]:
     sch = BizPilotInfusionSchedule
     plan = BizPilotInfusionPlan
@@ -265,6 +266,10 @@ def list_infusion_schedules_mgmt(
         )
     )
 
+    bt = (biz_type or "").strip()
+    if bt:
+        q = q.filter(app.biz_type == bt)
+
     # keyword: LIKE on application_no, channel_name, patient_name
     if keyword:
         kw = f"%{keyword}%"
@@ -466,6 +471,8 @@ def get_infusion_schedule_detail(
     app["orderType"] = flat.get("orderType") or ""
     app["channelServiceOrderName"] = flat.get("channelServiceOrderName") or ""
     app["channelServiceOrderId"] = flat.get("channelServiceOrderId") or ""
+    if application:
+        app["bizType"] = application.biz_type or "pilot_service"
 
     plan = dict(aggregated.get("infusionPlan") or {})
     if plan_row:
@@ -517,6 +524,14 @@ def get_infusion_schedule_detail(
         "outboundHandover": handover_svc.get_outbound_handover_view(db, schedule_id, tenant_no),
         "infusionConfirm": confirm_svc.get_confirm_by_schedule(db, schedule_id, tenant_no) or {},
     }
+    if application and (application.biz_type or "") == "clinical_application":
+        from app.crud import clinical_payment
+
+        payment = clinical_payment.get_payment_by_schedule(
+            db, schedule_id=schedule_id, tenant_no=tenant_no
+        )
+        if payment:
+            result["payment"] = payment
     return result
 
 
@@ -867,6 +882,10 @@ def _deduct_fee_on_complete(db: Session, schedule_id: str, tenant_no: str, user_
     if not application:
         raise ValueError("中试申请单不存在")
 
+    # 临床应用走 clinical_payment 模块缴费,不走服务订单扣费
+    if (application.biz_type or "") == "clinical_application":
+        return
+
     if not application.channel_service_order_id:
         raise ValueError("申请单未关联渠道服务订单,无法扣费")
 

+ 7 - 4
backend/app/crud/pilot_outbound_status_sync.py

@@ -13,10 +13,13 @@ from app.models.models import (
 )
 
 
+_OUTBOUND_BIZ_TYPES = ("pilot_service", "clinical_application")
+
+
 def _is_pilot_outbound_production(wo: BizProductionWorkOrder) -> bool:
     return (
         (getattr(wo, "work_order_type", None) or "") == "outbound"
-        and (getattr(wo, "biz_type", None) or "") == "pilot_service"
+        and (getattr(wo, "biz_type", None) or "") in _OUTBOUND_BIZ_TYPES
         and bool(getattr(wo, "infusion_schedule_id", None))
     )
 
@@ -24,7 +27,7 @@ def _is_pilot_outbound_production(wo: BizProductionWorkOrder) -> bool:
 def _is_pilot_outbound_qc(wo: BizQcWorkOrder) -> bool:
     return (
         (getattr(wo, "work_order_type", None) or "") == "outbound"
-        and (getattr(wo, "biz_type", None) or "") == "pilot_service"
+        and (getattr(wo, "biz_type", None) or "") in _OUTBOUND_BIZ_TYPES
         and bool(getattr(wo, "infusion_schedule_id", None))
     )
 
@@ -135,7 +138,7 @@ def sync_production_work_order_from_schedule(
             BizProductionWorkOrder.tenant_no == tenant_no,
             BizProductionWorkOrder.del_flag == 0,
             BizProductionWorkOrder.work_order_type == "outbound",
-            BizProductionWorkOrder.biz_type == "pilot_service",
+            BizProductionWorkOrder.biz_type.in_(_OUTBOUND_BIZ_TYPES),
         )
         .first()
     )
@@ -178,7 +181,7 @@ def sync_qc_work_order_from_schedule(
             BizQcWorkOrder.tenant_no == tenant_no,
             BizQcWorkOrder.del_flag == 0,
             BizQcWorkOrder.work_order_type == "outbound",
-            BizQcWorkOrder.biz_type == "pilot_service",
+            BizQcWorkOrder.biz_type.in_(_OUTBOUND_BIZ_TYPES),
         )
         .first()
     )

+ 4 - 1
backend/app/crud/production_work_order.py

@@ -331,7 +331,7 @@ def _attach_outbound_detail(
     schedule_id = getattr(wo, "infusion_schedule_id", None) or ""
     biz_type = getattr(wo, "biz_type", None) or ""
 
-    if biz_type == "pilot_service" and schedule_id:
+    if schedule_id and biz_type in ("pilot_service", "clinical_application"):
         pilot_ctx = build_outbound_pilot_context_by_schedule(
             db, schedule_id, wo.tenant_no or ""
         )
@@ -914,6 +914,9 @@ def create_outbound_production_work_order(
         .first()
     )
     if existing:
+        if (existing.biz_type or "") != biz_type:
+            existing.biz_type = biz_type
+            db.flush()
         return existing
     wo = BizProductionWorkOrder(
         id=generate_uuid(),

+ 56 - 1
backend/app/crud/qc_work_order.py

@@ -63,6 +63,48 @@ _DONATION_STATUS_LABELS = {
 }
 _CONCLUSION_LABELS = {"tg": "通过", "btg": "不通过"}
 _OUTBOUND_BIZ_TYPE_LABELS = {"pilot_service": "中试服务", "clinical_application": "临床应用"}
+_OUTBOUND_BIZ_TYPES = tuple(_OUTBOUND_BIZ_TYPE_LABELS.keys())
+
+
+def resolve_outbound_biz_type_for_schedule(
+    db: Session, schedule_id: str, tenant_no: str
+) -> str:
+    """按输注计划追溯申请单,得到出库生产/质检工单应使用的 biz_type。"""
+    if not schedule_id:
+        return "pilot_service"
+    sched = (
+        db.query(BizPilotInfusionSchedule)
+        .filter(
+            BizPilotInfusionSchedule.id == schedule_id,
+            BizPilotInfusionSchedule.tenant_no == tenant_no,
+            BizPilotInfusionSchedule.del_flag == 0,
+        )
+        .first()
+    )
+    if not sched or not sched.infusion_plan_id:
+        return "pilot_service"
+    plan = (
+        db.query(BizPilotInfusionPlan)
+        .filter(
+            BizPilotInfusionPlan.id == sched.infusion_plan_id,
+            BizPilotInfusionPlan.tenant_no == tenant_no,
+            BizPilotInfusionPlan.del_flag == 0,
+        )
+        .first()
+    )
+    if not plan or not plan.pilot_application_id:
+        return "pilot_service"
+    app = (
+        db.query(BizPilotApplication)
+        .filter(
+            BizPilotApplication.id == plan.pilot_application_id,
+            BizPilotApplication.tenant_no == tenant_no,
+            BizPilotApplication.del_flag == 0,
+        )
+        .first()
+    )
+    bt = ((app.biz_type if app else None) or "").strip()
+    return bt if bt in _OUTBOUND_BIZ_TYPE_LABELS else "pilot_service"
 
 
 def _dec(v: Any) -> Optional[float]:
@@ -1775,11 +1817,14 @@ def build_outbound_pilot_context_by_schedule(
                 .first()
             )
             if app:
+                app_biz = (app.biz_type or "").strip() or "pilot_service"
                 out["application"] = {
                     "applicationNo": app.application_no or "",
                     "applicationName": app.application_name or "",
                     "applicationStatus": app.application_status or "",
                     "channelName": app.channel_name or "",
+                    "bizType": app_biz,
+                    "bizTypeLabel": _OUTBOUND_BIZ_TYPE_LABELS.get(app_biz, app_biz),
                 }
 
                 patient = (
@@ -1907,7 +1952,14 @@ def create_outbound_qc_work_order(
     user_id: Optional[str] = None,
     create_dept_id: str = "",
     remark: str = "",
+    biz_type: Optional[str] = None,
 ) -> BizQcWorkOrder:
+    resolved_biz_type = (biz_type or "").strip() or resolve_outbound_biz_type_for_schedule(
+        db, schedule_id, tenant_no
+    )
+    if resolved_biz_type not in _OUTBOUND_BIZ_TYPE_LABELS:
+        resolved_biz_type = "pilot_service"
+
     existing = (
         db.query(BizQcWorkOrder)
         .filter(
@@ -1918,6 +1970,9 @@ def create_outbound_qc_work_order(
         .first()
     )
     if existing:
+        if (existing.biz_type or "") != resolved_biz_type:
+            existing.biz_type = resolved_biz_type
+            db.flush()
         return existing
     wo = BizQcWorkOrder(
         id=generate_uuid(),
@@ -1930,7 +1985,7 @@ def create_outbound_qc_work_order(
         sample_code=None,
         reception_source="outbound",
         qc_biz_type="outbound",
-        biz_type="pilot_service",
+        biz_type=resolved_biz_type,
         infusion_schedule_id=schedule_id,
         cell_product_id=cell_product_id or None,
         work_order_status="dpz",

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/0c1717514acb2ccbd9950d2f64bccb40ed2d5d52209652b97fd5d86ddd00ce22.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/1982014012faccbb54b7ad41753082fe3b7f3f987c9032ec5875d8a1cee1fc24.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/1b4019bc8841fa26e45feae50e64e746aadfa66e2a8522c87a856b6d56b60691.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/33fab5978d88f0a484fe3e33554f9606dc3001b5bdb7891526372283cc9459d1.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/3cace8c0c3dad3f953c787418f07b3010345c7f0ce67ac4d3c07d73989b85b39.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/3de736fd320df24dc144857a38596f555bbb27de2c050a18e58eaf7e9f2e0016.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/3f95dcf84e9a7276a6569e470c1fa8489c3608f5bc0643c743eadc73cea19076.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/41cbb79cfed91afcf7bc596a612a2bf30cf68be132aa65074e7e18e0b4ebe409.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/48b45d9ffefe1a78219f91dd9d0e777cadf0cb9d54bb97a2bea11a0d9675e760.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/4b393cf6f1bc238bb2ea48db885fa266c5f77f65a544521343273423d7f577c1.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/4f0e5518b26189ce0b2df52e8e712a7ac69b0974042b949449efd1178a2607c3.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/6c54b60d29b09dfa1b779b7d6dabe6a29725089fed27e6441351f7b60083f60a.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/7111bd4221f4a3861719da1f659ae7b968aa18988d065b6585203dbeb094bb0f.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/993caa1d4c5afd9650605d1b2552548a026245fda4efd6dcbcb67e1128e5fb4b.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/9ffd5007c7e50ce96dda1baee2b7656af98589a962ffac8c4edd3d0bc6693513.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/a5a09c5a584318b784f66ff490bee59c8892d6e276bf973df4e88996de77e105.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/ba5718878409230bb2de2a2bdb057edb51be600054e479f33bf03be76ec42918.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/cb7bec9ff2ff8cb99fe2958a27d600bd9c5828b51b51b5aa5a3839aeb681f5a7.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/cf8750c528c35d91bd644dca3fbcaa4f7049d6a87caec488b247c2c6bcdb3732.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/d11ea68c41b37b947205bfc04932ccb6293b620ff8cdb98d47c293beac9110db.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/d227e4576b3753b9a9ee11f9f06dcedc1ceea9af26db202aed3a175a8618f629.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/d55671bf1071f001c7ed3d05e2c8facf9714136eb224b279a963307933d5ca05.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/db0179d6d866e85f4a1b627d83ada39c997911b5fe625fde2c3d8023f2b8adb6.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/dbae5bb9627d7e6e389d02d9be5ca8032851abcd669281080035429585e2cb18.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/f5987f801c84b3c5252634690b1226f8f2c74a61ec08f086a023a3334973deac.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/f8d634b95fe99c15577eef8fab7c6bb9bba0f8f1b26a060b0687e107e6d3ef15.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
backend/app/graphify-out/cache/ast/fc41826a6859b9492a67d8e96a69e1853da50319dae568bb1baa3514ec6d815c.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 151 - 683
backend/graphify-out/.graphify_analysis.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 197 - 183
backend/graphify-out/.graphify_extract.json


+ 120 - 85
backend/graphify-out/GRAPH_REPORT.md

@@ -1,12 +1,12 @@
 # Graph Report - app  (2026-05-28)
 
 ## Corpus Check
-- 172 files · ~179,928 words
+- 172 files · ~180,691 words
 - Verdict: corpus is large enough that graph structure adds value.
 
 ## Summary
-- 3280 nodes · 14625 edges · 45 communities detected
-- Extraction: 37% EXTRACTED · 63% INFERRED · 0% AMBIGUOUS · INFERRED: 9144 edges (avg confidence: 0.61)
+- 3286 nodes · 14668 edges · 52 communities detected
+- Extraction: 37% EXTRACTED · 63% INFERRED · 0% AMBIGUOUS · INFERRED: 9175 edges (avg confidence: 0.61)
 - Token cost: 0 input · 0 output
 
 ## Community Hubs (Navigation)
@@ -49,18 +49,25 @@
 - [[_COMMUNITY_Community 36|Community 36]]
 - [[_COMMUNITY_Community 37|Community 37]]
 - [[_COMMUNITY_Community 38|Community 38]]
+- [[_COMMUNITY_Community 39|Community 39]]
+- [[_COMMUNITY_Community 40|Community 40]]
 - [[_COMMUNITY_Community 41|Community 41]]
 - [[_COMMUNITY_Community 42|Community 42]]
 - [[_COMMUNITY_Community 43|Community 43]]
 - [[_COMMUNITY_Community 44|Community 44]]
 - [[_COMMUNITY_Community 45|Community 45]]
-- [[_COMMUNITY_Community 46|Community 46]]
+- [[_COMMUNITY_Community 48|Community 48]]
+- [[_COMMUNITY_Community 49|Community 49]]
+- [[_COMMUNITY_Community 50|Community 50]]
+- [[_COMMUNITY_Community 51|Community 51]]
+- [[_COMMUNITY_Community 52|Community 52]]
+- [[_COMMUNITY_Community 53|Community 53]]
 
 ## God Nodes (most connected - your core abstractions)
 1. `success_response()` - 518 edges
 2. `error_response()` - 418 edges
-3. `SysUser` - 344 edges
-4. `BizQcTaskResult` - 267 edges
+3. `SysUser` - 347 edges
+4. `BizQcTaskResult` - 268 edges
 5. `BizQcMaterialUsage` - 262 edges
 6. `BizQcMaterial` - 260 edges
 7. `BizMaterialStockLog` - 252 edges
@@ -83,116 +90,116 @@
 ## Communities
 
 ### Community 0 - "Community 0"
-Cohesion: 0.01
-Nodes (619): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+611 more)
+Cohesion: 0.02
+Nodes (593): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+585 more)
 
 ### Community 1 - "Community 1"
 Cohesion: 0.01
-Nodes (480): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, ExpressCompanyCreateBody (+472 more)
+Nodes (493): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictDataCreateBody, DictDataUpdateBody, DictTypeCreateBody, DictTypeUpdateBody, ExpressCompanyCreateBody (+485 more)
 
 ### Community 2 - "Community 2"
-Cohesion: 0.04
-Nodes (391): AuditCreateBody, BatchDetailIdsBody, BatchRefundFinanceSubmitBody, FinanceConfirmBody, FullmoonTodoInsuranceBody, ProtocolCreateBody, ProtocolUpdateBody, 细胞存储 — 采集协议单 / 审核 / 财务确认 / 分期预警 API (+383 more)
+Cohesion: 0.05
+Nodes (414): AuditCreateBody, BatchDetailIdsBody, BatchRefundFinanceSubmitBody, FinanceConfirmBody, FullmoonTodoInsuranceBody, ProtocolCreateBody, ProtocolUpdateBody, 细胞存储 — 采集协议单 / 审核 / 财务确认 / 分期预警 API (+406 more)
 
 ### Community 3 - "Community 3"
 Cohesion: 0.02
-Nodes (172): get_next_cell_product_code(), ApiRequestLogCRUD, delete(), get_multi_with_filters(), _ancestor_link_from_cell_product_input(), _ancestor_sample_chain_link(), _apply_cell_product_status_change(), _build_ancestor_chain() (+164 more)
+Nodes (253): generate_uuid(), batch_stock_in(), batch_stock_out(), consumable_code_exists(), create_consumable(), _dec(), get_consumable(), _is_enabled_status() (+245 more)
 
 ### Community 4 - "Community 4"
 Cohesion: 0.02
-Nodes (182): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci(), _format_attachment_file_size(), urls_to_attachment_list() (+174 more)
+Nodes (198): list_collection_regions(), list_protocol_nos(), _ensure_customer_for_mother(), _persist_protocol_sub_resources(), list_ethnics_for_select(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id() (+190 more)
 
 ### Community 5 - "Community 5"
 Cohesion: 0.02
-Nodes (113): get_designer_data(), _error_json(), lifespan(), 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, sqlalchemy_exception_handler(), unhandled_exception_handler(), BaseHTTPMiddleware (+105 more)
+Nodes (188): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci(), _format_attachment_file_size(), get_protocol_nos_used_in_protocols() (+180 more)
 
 ### Community 6 - "Community 6"
-Cohesion: 0.06
-Nodes (164): generate_uuid(), _deduct_fee_on_delivery(), 创建交付时扣减费用。      流程:     1. schedule → plan → application     2. application.chan, activate_channel_agreement(), _apply_gmcp_order_quotas(), _apply_purchase_txn_holdings(), _apply_unsubscribe_txn_holdings(), _batch_gmcp_current_holding_amounts() (+156 more)
+Cohesion: 0.03
+Nodes (93): _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,经角色继承)。 (+85 more)
 
 ### Community 7 - "Community 7"
-Cohesion: 0.04
-Nodes (109): _persist_protocol_sub_resources(), list_ethnics_for_select(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id(), _resolve_user_role_scopes(), _add_months_yyyymmdd(), align_fq_payment_details_payload() (+101 more)
+Cohesion: 0.03
+Nodes (94): get_designer_data(), ProcessDefCreateBody, ProcessDefUpdateBody, PublishVersionBody, 审批意见:前端传 commentText,兼容 comment。, StartInstanceBody, TaskActionBody, _error_json() (+86 more)
 
 ### Community 8 - "Community 8"
-Cohesion: 0.03
-Nodes (107): get_protocol_nos_used_in_protocols(), create_dict_type(), dict_type_code_exists(), get_dict_type(), list_dict_types(), 字典类型 CRUD(sys_dict_type), _row_to_dict(), soft_delete_dict_type() (+99 more)
+Cohesion: 0.07
+Nodes (68): AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody, OccupancyCreateBody, 运营支撑 API(洁净室、进出记录、仓储设施、储位、展厅预约) (+60 more)
 
 ### Community 9 - "Community 9"
-Cohesion: 0.03
-Nodes (79): _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,经角色继承)。 (+71 more)
+Cohesion: 0.35
+Nodes (61): BatchStockInBody, BatchStockInItem, BatchStockOutBody, BatchStockOutItem, ConsumableCreateBody, ConsumablePackCreateBody, ConsumablePackUpdateBody, ConsumableUpdateBody (+53 more)
 
 ### Community 10 - "Community 10"
 Cohesion: 0.06
-Nodes (65): batch_stock_in(), batch_stock_out(), consumable_code_exists(), create_consumable(), _dec(), get_consumable(), _is_enabled_status(), list_consumables() (+57 more)
+Nodes (60): auto_create_payment(), complete_application(), create_infusion_plan(), create_schedule(), _create_schedule_products(), _format_yyyy_mm_dd(), _generate_application_no(), get_application() (+52 more)
 
 ### Community 11 - "Community 11"
 Cohesion: 0.07
-Nodes (68): AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody, OccupancyCreateBody, 运营支撑 API(洁净室、进出记录、仓储设施、储位、展厅预约) (+60 more)
+Nodes (52): get_next_cell_product_code(), _ancestor_link_from_cell_product_input(), _ancestor_sample_chain_link(), _apply_cell_product_status_change(), _build_ancestor_chain(), _build_descendant_chain(), _build_facility_path_label(), build_split_product_codes() (+44 more)
 
 ### Community 12 - "Community 12"
-Cohesion: 0.35
-Nodes (61): BatchStockInBody, BatchStockInItem, BatchStockOutBody, BatchStockOutItem, ConsumableCreateBody, ConsumablePackCreateBody, ConsumablePackUpdateBody, ConsumableUpdateBody (+53 more)
+Cohesion: 0.09
+Nodes (49): allocate_next_biz_no(), _format_biz_no(), _prefix_for(), 业务协议号自动生成:XBCC / JZCC + YYYYMMDD + 6 位序号, 原子分配下一个业务协议号。     须在 create 事务内调用;使用 MySQL LAST_INSERT_ID 保证并发安全。, create_collection_protocol(), _active_link_query(), assert_biz_no_available() (+41 more)
 
 ### Community 13 - "Community 13"
 Cohesion: 0.07
-Nodes (59): complete_application(), create_infusion_plan(), create_schedule(), _create_schedule_products(), _format_yyyy_mm_dd(), _generate_application_no(), get_application(), get_patient_by_application() (+51 more)
+Nodes (13): BaseStorage, convert_heic_to_jpeg(), get_storage(), LocalStorage, MinIOStorage, OSSStorage, process_image_content(), QiniuStorage (+5 more)
 
 ### Community 14 - "Community 14"
-Cohesion: 0.09
-Nodes (50): allocate_next_biz_no(), _format_biz_no(), _prefix_for(), 业务协议号自动生成:XBCC / JZCC + YYYYMMDD + 6 位序号, 原子分配下一个业务协议号。     须在 create 事务内调用;使用 MySQL LAST_INSERT_ID 保证并发安全。, create_collection_protocol(), _active_link_query(), assert_biz_no_available() (+42 more)
+Cohesion: 0.1
+Nodes (36): _fmt_dt(), get_handover_by_schedule(), get_outbound_handover(), get_outbound_handover_view(), _handover_row_to_dict(), _handover_view_dict(), _parse_handover_time(), 获取出库交接编辑数据(物料 + 交接信息 + 摘要)。 (+28 more)
 
 ### Community 15 - "Community 15"
-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.11
+Nodes (34): api_delete_actual_item(), api_delete_checkup(), api_delete_reserve_item(), api_get_checkup_detail(), api_list_actual_items(), api_list_checkups(), api_list_pending_patients(), api_list_reserve_items() (+26 more)
 
 ### Community 16 - "Community 16"
-Cohesion: 0.16
-Nodes (26): add_step(), copy_step(), create_route(), _create_step_consumable(), _create_step_data_collection(), _create_step_output(), _create_step_reagent(), get_route() (+18 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 17 - "Community 17"
-Cohesion: 0.21
-Nodes (19): _consumable_row_to_dict(), create_process(), _create_sub_consumable(), _create_sub_data_collection(), _create_sub_output(), _create_sub_reagent(), _data_collection_row_to_dict(), get_process() (+11 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 18 - "Community 18"
 Cohesion: 0.21
-Nodes (16): batch_stock_in(), batch_stock_out(), _code_exists(), create_material(), _dec(), _fmt_dt(), get_material(), list_materials() (+8 more)
+Nodes (19): _consumable_row_to_dict(), create_process(), _create_sub_consumable(), _create_sub_data_collection(), _create_sub_output(), _create_sub_reagent(), _data_collection_row_to_dict(), get_process() (+11 more)
 
 ### Community 19 - "Community 19"
-Cohesion: 0.25
-Nodes (14): batch_stock_in(), batch_stock_out(), create_reagent(), _dec(), get_reagent(), _is_enabled_status(), list_reagents(), _norm_status() (+6 more)
+Cohesion: 0.22
+Nodes (19): _fmt_dt(), InsuranceCompanyCreateBody, InsuranceCompanyInvoiceCreateBody, InsuranceCompanyInvoiceUpdateBody, InsuranceCompanyUpdateBody, InsuranceProjectPriceCreateBody, InsuranceProjectPriceUpdateBody, _list_insurance_companies() (+11 more)
 
 ### Community 20 - "Community 20"
 Cohesion: 0.2
 Nodes (14): deduct_for_task(), _display_remark(), list_usages(), list_usages_by_task(), _parse_receiver_purpose_from_remark(), 查询质检任务关联的物料使用记录(task_complete)。, 撤销任务此前 task_complete 扣减,便于重新填报物料使用。, 兼容旧数据:领用人/用途曾拼接在 remark 中。 (+6 more)
 
 ### Community 21 - "Community 21"
-Cohesion: 0.21
-Nodes (13): create_collection_region(), create_hospital(), get_collection_region(), get_hospital(), _hospital_names_by_region_ids(), _hospital_to_dict(), list_collection_regions(), list_hospitals() (+5 more)
-
-### Community 22 - "Community 22"
 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 22 - "Community 22"
+Cohesion: 0.26
+Nodes (12): batch_issue_sample_codes(), batch_revoke_sample_codes(), create_sample_code(), get_sample_code(), list_sample_codes(), _parse_issued_time(), 样本编码池 CRUD(biz_sample_code), _resolve_issued_user_display_name() (+4 more)
+
 ### Community 23 - "Community 23"
 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 24 - "Community 24"
-Cohesion: 0.23
-Nodes (12): Config, ProductBase, ProductCategoryBase, ProductCategoryCreate, ProductCategoryResponse, ProductCreate, ProductResponse, ProductUnitBase (+4 more)
-
-### Community 25 - "Community 25"
 Cohesion: 0.24
 Nodes (11): deduct_for_step(), _display_remark(), list_stock_logs(), _parse_receiver_purpose_from_remark(), 试剂变动记录 CRUD(biz_reagent_stock_log), 撤销步骤此前 step_save 扣减,便于重新填报。, 扣减试剂库存并生成变动记录。调用方控制事务,本函数不 commit。, _resolve_receiver_purpose() (+3 more)
 
+### Community 25 - "Community 25"
+Cohesion: 0.27
+Nodes (11): _build_tree(), _cascade_soft_delete(), _collect_with_ancestors(), create_dept(), get_dept(), list_depts(), list_depts_tree(), 保留匹配节点及其全部上级,供关键词检索后仍能正确组树。 (+3 more)
+
 ### Community 26 - "Community 26"
-Cohesion: 0.24
-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.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 27 - "Community 27"
-Cohesion: 0.27
-Nodes (11): _build_tree(), _cascade_soft_delete(), _collect_with_ancestors(), create_dept(), get_dept(), list_depts(), list_depts_tree(), 保留匹配节点及其全部上级,供关键词检索后仍能正确组树。 (+3 more)
+Cohesion: 0.31
+Nodes (8): create_dict_type(), dict_type_code_exists(), get_dict_type(), list_dict_types(), 字典类型 CRUD(sys_dict_type), _row_to_dict(), soft_delete_dict_type(), update_dict_type()
 
 ### Community 28 - "Community 28"
 Cohesion: 0.31
@@ -200,108 +207,136 @@ Nodes (8): create_sop_document(), get_sop_document(), list_sop_documents(), SOP
 
 ### Community 29 - "Community 29"
 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()
+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 30 - "Community 30"
+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 31 - "Community 31"
+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 32 - "Community 32"
+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 33 - "Community 33"
+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 34 - "Community 34"
+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()
+
+### Community 35 - "Community 35"
+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_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()
 
-### Community 31 - "Community 31"
+### Community 38 - "Community 38"
 Cohesion: 0.36
 Nodes (7): create_site(), get_site(), list_sites(), _row_to_dict(), site_code_exists(), soft_delete_site(), update_site()
 
-### Community 32 - "Community 32"
+### Community 39 - "Community 39"
 Cohesion: 0.29
 Nodes (2): BaseModel, SoftDeleteModel
 
-### Community 33 - "Community 33"
+### Community 40 - "Community 40"
 Cohesion: 0.38
 Nodes (6): derive_legacy_status_from_three(), derive_three_status_from_legacy(), 阶段A兼容:从旧 status 推导三字段。     约束:旧 status 本身混合了支付/配送/订单生命周期,因此只能尽力推断;     若业务侧已有更精确, 阶段A兼容:从三字段反推旧 status(用于旧前端/旧筛选参数兼容)。, ThreeStatus, _to_decimal()
 
-### Community 34 - "Community 34"
+### Community 41 - "Community 41"
 Cohesion: 0.5
 Nodes (3): BaseSettings, Config, Settings
 
-### Community 35 - "Community 35"
+### Community 42 - "Community 42"
 Cohesion: 0.5
 Nodes (2): _auto_fill_create_dept_id(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID
 
-### Community 36 - "Community 36"
+### Community 43 - "Community 43"
 Cohesion: 0.67
 Nodes (2): get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,13 个一级菜单)
 
-### Community 37 - "Community 37"
+### Community 44 - "Community 44"
 Cohesion: 1.0
 Nodes (1): 请求级别的用户上下文变量  通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传
 
-### Community 38 - "Community 38"
+### Community 45 - "Community 45"
 Cohesion: 1.0
 Nodes (1): API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)
 
-### Community 41 - "Community 41"
+### Community 48 - "Community 48"
 Cohesion: 1.0
 Nodes (1): 发送订单状态通知                  Args:             openid: 用户openid             ord
 
-### Community 42 - "Community 42"
+### Community 49 - "Community 49"
 Cohesion: 1.0
 Nodes (1): 发送支付成功通知                  Args:             openid: 用户openid             ord
 
-### Community 43 - "Community 43"
+### Community 50 - "Community 50"
 Cohesion: 1.0
 Nodes (1): 发送配送通知                  Args:             openid: 配送员openid             task
 
-### Community 44 - "Community 44"
+### Community 51 - "Community 51"
 Cohesion: 1.0
 Nodes (1): 发送配送时效预警                  Args:             openid: 配送员openid             ta
 
-### Community 45 - "Community 45"
+### Community 52 - "Community 52"
 Cohesion: 1.0
 Nodes (1): 发送退款结果通知                  Args:             openid: 用户openid             ord
 
-### Community 46 - "Community 46"
+### Community 53 - "Community 53"
 Cohesion: 1.0
 Nodes (1): 发送催单通知给配送员                  Args:             deliver_openid: 配送员openid
 
 ## Knowledge Gaps
 - **97 isolated node(s):** `刷新会话 TTL(refreshToken 续期;已登录用户每次 API 校验通过后滑动续期)`, `写入 refreshToken(用于 one-time 使用/吊销)`, `根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期)`, `登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。`, `Base64 密文 -> JSON 对象(须含 username、password、ts 毫秒时间戳)。` (+92 more)
   These have ≤1 connection - possible missing edges or undocumented components.
-- **Thin community `Community 32`** (8 nodes): `BaseModel`, `.to_dict()`, `get_active()`, `base.py`, `SoftDeleteModel`, `.restore()`, `.soft_delete()`, `__tablename__()`
+- **Thin community `Community 39`** (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 35`** (4 nodes): `_auto_fill_create_dept_id()`, `get_db()`, `database.py`, `ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID`
+- **Thin community `Community 42`** (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 36`** (3 nodes): `get_menu_list()`, `menu.py`, `运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,13 个一级菜单)`
+- **Thin community `Community 43`** (3 nodes): `get_menu_list()`, `menu.py`, `运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,13 个一级菜单)`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 37`** (2 nodes): `context.py`, `请求级别的用户上下文变量  通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传`
+- **Thin community `Community 44`** (2 nodes): `context.py`, `请求级别的用户上下文变量  通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 38`** (2 nodes): `__init__.py`, `API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)`
+- **Thin community `Community 45`** (2 nodes): `__init__.py`, `API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 41`** (1 nodes): `发送订单状态通知                  Args:             openid: 用户openid             ord`
+- **Thin community `Community 48`** (1 nodes): `发送订单状态通知                  Args:             openid: 用户openid             ord`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 42`** (1 nodes): `发送支付成功通知                  Args:             openid: 用户openid             ord`
+- **Thin community `Community 49`** (1 nodes): `发送支付成功通知                  Args:             openid: 用户openid             ord`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 43`** (1 nodes): `发送配送通知                  Args:             openid: 配送员openid             task`
+- **Thin community `Community 50`** (1 nodes): `发送配送通知                  Args:             openid: 配送员openid             task`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 44`** (1 nodes): `发送配送时效预警                  Args:             openid: 配送员openid             ta`
+- **Thin community `Community 51`** (1 nodes): `发送配送时效预警                  Args:             openid: 配送员openid             ta`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 45`** (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 46`** (1 nodes): `发送催单通知给配送员                  Args:             deliver_openid: 配送员openid`
+- **Thin community `Community 53`** (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 `SysUser` connect `Community 1` to `Community 2`, `Community 3`, `Community 6`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 20`, `Community 22`, `Community 25`?**
-  _High betweenness centrality (0.118) - this node is a cross-community bridge._
-- **Why does `success_response()` connect `Community 0` to `Community 1`, `Community 3`, `Community 36`, `Community 5`, `Community 7`, `Community 9`?**
-  _High betweenness centrality (0.079) - this node is a cross-community bridge._
-- **Why does `generate_uuid()` connect `Community 6` to `Community 0`, `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 14`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 21`, `Community 22`, `Community 25`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 30`, `Community 31`?**
+- **Why does `SysUser` connect `Community 1` to `Community 2`, `Community 3`, `Community 4`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 14`, `Community 15`, `Community 19`, `Community 20`, `Community 21`, `Community 22`, `Community 24`?**
+  _High betweenness centrality (0.121) - this node is a cross-community bridge._
+- **Why does `success_response()` connect `Community 0` to `Community 1`, `Community 4`, `Community 6`, `Community 7`, `Community 43`, `Community 11`, `Community 15`, `Community 19`?**
+  _High betweenness centrality (0.069) - this node is a cross-community bridge._
+- **Why does `generate_uuid()` connect `Community 3` to `Community 0`, `Community 1`, `Community 2`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 11`, `Community 12`, `Community 14`, `Community 18`, `Community 20`, `Community 21`, `Community 22`, `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`?**
   _High betweenness centrality (0.061) - this node is a cross-community bridge._
 - **Are the 517 inferred relationships involving `success_response()` (e.g. with `list_storage_release_reviews()` and `get_storage_release_review_detail()`) actually correct?**
   _`success_response()` has 517 INFERRED edges - model-reasoned connections that need verification._
-- **Are the 504 inferred relationships involving `str` (e.g. with `unhandled_exception_handler()` and `extract_login_credentials()`) actually correct?**
-  _`str` has 504 INFERRED edges - model-reasoned connections that need verification._
+- **Are the 505 inferred relationships involving `str` (e.g. with `unhandled_exception_handler()` and `extract_login_credentials()`) actually correct?**
+  _`str` has 505 INFERRED edges - model-reasoned connections that need verification._
 - **Are the 417 inferred relationships involving `error_response()` (e.g. with `_json_error_response()` and `list_storage_release_reviews()`) actually correct?**
   _`error_response()` has 417 INFERRED edges - model-reasoned connections that need verification._
-- **Are the 342 inferred relationships involving `SysUser` (e.g. with `数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤)  data_scope 值:   1 = 全部数据   2 = 本部门数据   3` and `从 SysUser 读取用户的 dept_id。`) actually correct?**
-  _`SysUser` has 342 INFERRED edges - model-reasoned connections that need verification._
+- **Are the 345 inferred relationships involving `SysUser` (e.g. with `数据权限过滤(V0.3:基于角色 data_scope 的查询级行级过滤)  data_scope 值:   1 = 全部数据   2 = 本部门数据   3` and `从 SysUser 读取用户的 dept_id。`) actually correct?**
+  _`SysUser` has 345 INFERRED edges - model-reasoned connections that need verification._

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
backend/graphify-out/graph.html


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 112 - 112
backend/graphify-out/graph.json


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

@@ -73,11 +73,11 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py": 1779587424.6859367,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py": 1779279460.690872,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_task_result.py": 1779331731.6720955,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_release_review.py": 1779825896.040372,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_release_review.py": 1779940526.705119,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/post.py": 1779265648.38155,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_reception_check_result.py": 1779255909.8554008,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/user.py": 1778775532.8870275,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py": 1779924316.767352,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_work_order.py": 1779940520.7840362,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/material.py": 1779283386.3879013,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_type.py": 1779265621.5212462,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py": 1779418213.0446064,
@@ -94,28 +94,28 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/biz_no_generator.py": 1779882385.4674172,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_infusion_confirm.py": 1779828818.7646794,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/reagent_stock_log.py": 1779515479.6599197,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_infusion_schedule_mgmt.py": 1779828859.820152,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_infusion_schedule_mgmt.py": 1779944265.1860178,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clean_room.py": 1778775238.2993922,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/__init__.py": 1778605691.3816392,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_entry_sms_notification.py": 1779691734.0972729,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/express_company.py": 1779265659.3453207,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_application.py": 1779835904.8698187,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_application.py": 1779944020.3458025,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_lab_test_item.py": 1779265673.3888667,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/role.py": 1779265616.3701816,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/cell_product.py": 1779927536.8881981,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/menu.py": 1779265729.0381103,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/collection_region.py": 1779277867.6408322,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_delivery.py": 1779807151.291718,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_delivery.py": 1779935673.6808827,
   "/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,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dict_data.py": 1779265627.276101,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/research_donation.py": 1779892801.1659443,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/ethnic.py": 1779265849.547566,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_checkup.py": 1779767080.896167,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_checkup.py": 1779935785.233911,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_category.py": 1779265700.0606413,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/item_unit.py": 1779265653.7504313,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py": 1779924321.8488002,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_work_order.py": 1779940515.4572575,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_handover_inventory.py": 1779928420.2494187,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_release_material.py": 1779928413.9677577,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process.py": 1779309113.0447981,
@@ -130,7 +130,7 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_handover.py": 1779830359.238616,
   "/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/pilot_outbound_status_sync.py": 1779807071.7870579,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/pilot_outbound_status_sync.py": 1779935644.3218598,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/consumable_stock_log.py": 1779515477.284446,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/dept.py": 1779265637.7914758,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/base.py": 1778578258.062207,
@@ -139,26 +139,26 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/leave.py": 1779265839.500242,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/output_type.py": 1779265703.7363207,
   "/Users/wuzilong/work/00code/zkxw/backend/app/crud/exhibition_appointment.py": 1778801075.5211918,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py": 1779835126.5228531,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/crud/clinical_payment.py": 1779944085.1689148,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/storage_release_review.py": 1779526635.1455016,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/outbound_release_review.py": 1779827082.0736034,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/outbound_release_review.py": 1779940529.0275311,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/public.py": 1779313409.0685387,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/material.py": 1779526648.041865,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/qc.py": 1779924323.352671,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/collection_protocol.py": 1779882422.004045,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/basic_info.py": 1779882001.7519956,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_infusion_confirm.py": 1779657043.1389203,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_infusion_schedule_mgmt.py": 1779928228.017553,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_infusion_schedule_mgmt.py": 1779940938.18027,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/__init__.py": 1779835904.868773,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/storage_entry_sms_notification.py": 1779691738.9150457,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_application.py": 1779835904.8693128,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_application.py": 1779940538.2296197,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/operations.py": 1779685679.1959367,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/menu.py": 1779926790.895745,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/menu.py": 1779941977.280123,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_delivery.py": 1779655584.820777,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/admin.py": 1779882001.7516146,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/research_donation.py": 1779883570.5354397,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/ethnic.py": 1779266243.9511197,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_checkup.py": 1779768401.578248,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_checkup.py": 1779935751.2658868,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/pilot_service.py": 1779712984.6961803,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/workflow.py": 1779266232.4568832,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_sms_notification.py": 1779691678.688495,
@@ -166,7 +166,7 @@
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/insurance_company.py": 1779281097.279193,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py": 1779924318.5910363,
   "/Users/wuzilong/work/00code/zkxw/backend/app/api/leave.py": 1779266168.8693042,
-  "/Users/wuzilong/work/00code/zkxw/backend/app/api/clinical_payment.py": 1779835176.3325863,
+  "/Users/wuzilong/work/00code/zkxw/backend/app/api/clinical_payment.py": 1779943215.290734,
   "/Users/wuzilong/work/00code/zkxw/backend/app/services/workflow_callback.py": 1778727966.7277644,
   "/Users/wuzilong/work/00code/zkxw/backend/app/services/workflow_engine.py": 1778634664.6293883,
   "/Users/wuzilong/work/00code/zkxw/backend/app/services/web_auth_roles.py": 1778775532.8878627,

+ 38 - 0
docs/sql/biz_pilot_payment_init.sql

@@ -0,0 +1,38 @@
+-- 临床应用缴费记录表
+CREATE TABLE IF NOT EXISTS `biz_pilot_payment` (
+  `id` varchar(64) NOT NULL COMMENT '主键ID',
+  `pilot_application_id` varchar(64) NOT NULL COMMENT '临床申请单ID',
+  `infusion_schedule_id` varchar(64) NOT NULL COMMENT '输注计划ID',
+  `biz_type` varchar(20) NOT NULL DEFAULT 'clinical_application' COMMENT '业务类型',
+  `amount` decimal(18,2) NOT NULL COMMENT '缴费金额',
+  `transfer_type` varchar(16) DEFAULT NULL COMMENT '转账方式: wxzz/zzfbzz/yhkzz/xj',
+  `transfer_amount` decimal(18,2) DEFAULT NULL COMMENT '实际转账金额',
+  `transfer_time` datetime DEFAULT NULL COMMENT '转账时间',
+  `transfer_attachments` text DEFAULT NULL COMMENT '转账凭证附件',
+  `pay_status` varchar(32) NOT NULL DEFAULT 'dfj' COMMENT '缴费状态: dfj/jfqrz/yjf/tfqrz/ytf',
+  `finance_confirm_attachments` text DEFAULT NULL COMMENT '财务确认收款附件',
+  `finance_remark` varchar(512) DEFAULT NULL COMMENT '财务确认收款备注',
+  `finance_confirm_time` datetime DEFAULT NULL COMMENT '财务确认收款时间',
+  `refund_amount` decimal(18,2) DEFAULT NULL COMMENT '退费金额',
+  `refund_remark` varchar(512) DEFAULT NULL COMMENT '退费备注',
+  `refund_attachments` text DEFAULT NULL COMMENT '退费附件',
+  `refund_apply_by` varchar(64) DEFAULT NULL COMMENT '退费申请人ID',
+  `refund_apply_time` datetime DEFAULT NULL COMMENT '退费申请时间',
+  `refund_finance_confirm_attachments` text DEFAULT NULL COMMENT '退费财务确认附件',
+  `refund_finance_remark` varchar(512) DEFAULT NULL COMMENT '退费财务确认备注',
+  `refund_finance_confirm_time` datetime DEFAULT NULL COMMENT '退费财务确认时间',
+  `tenant_no` varchar(64) NOT NULL DEFAULT 'zkxw' COMMENT '租户编号',
+  `order_num` smallint DEFAULT NULL COMMENT '排序号',
+  `remark` varchar(512) DEFAULT NULL COMMENT '备注',
+  `create_by` varchar(64) DEFAULT NULL COMMENT '创建人id',
+  `create_dept_id` varchar(64) NOT NULL DEFAULT '' COMMENT '创建人部门ID',
+  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+  `update_by` varchar(64) DEFAULT NULL COMMENT '更新人id',
+  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
+  `del_flag` smallint NOT NULL DEFAULT 0 COMMENT '删除标记',
+  PRIMARY KEY (`id`),
+  KEY `idx_pilot_application_id` (`pilot_application_id`),
+  KEY `idx_infusion_schedule_id` (`infusion_schedule_id`),
+  KEY `idx_tenant_no` (`tenant_no`),
+  KEY `idx_pay_status` (`pay_status`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='临床应用缴费记录';

+ 6 - 0
docs/sql/migrate_biz_qc_material_usage_source_type.sql

@@ -0,0 +1,6 @@
+-- 质检物料流水 source_type 扩长:支持 outbound_handover(出库交接,18 字符)
+-- 原 varchar(16) 仅容纳 manual_out / task_complete 等较短枚举
+
+ALTER TABLE `biz_qc_material_usage`
+  MODIFY COLUMN `source_type` varchar(32) NOT NULL
+  COMMENT '来源:task_complete / manual_in / manual_out / outbound_handover 等';

+ 7 - 0
docs/sql/migrate_clinical_payment_confirm_menu_name.sql

@@ -0,0 +1,7 @@
+-- 临床应用菜单:缴费确认(财务) → 缴退费财务确认
+-- 前端同步:web-admin sqxp.ts ClinicalPaymentConfirm meta.title
+
+UPDATE `sys_menu`
+SET `menu_name` = '缴退费财务确认', `update_time` = NOW()
+WHERE `id` = 'CLI00000000000000000000000000006'
+  AND `del_flag` = 0;

+ 11 - 0
docs/sql/migrate_menu_protocol_donation_rename.sql

@@ -0,0 +1,11 @@
+-- 左侧菜单名称:采集协议单管理 → 采集协议单;捐赠协议单管理 → 捐赠协议单
+
+UPDATE `sys_menu`
+SET `menu_name` = '采集协议单', `update_time` = NOW()
+WHERE `id` = '50000000000000000000000000000003'
+  AND `del_flag` = 0;
+
+UPDATE `sys_menu`
+SET `menu_name` = '捐赠协议单', `update_time` = NOW()
+WHERE `id` = '60000000000000000000000000000003'
+  AND `del_flag` = 0;

+ 25 - 0
docs/sql/migrate_outbound_work_order_clinical_biz_type.sql

@@ -0,0 +1,25 @@
+-- 修复历史数据:临床申请单关联的出库质检工单 biz_type 误写为 pilot_service
+-- 执行前请备份;生产环境建议在维护窗口执行。
+
+UPDATE biz_qc_work_order q
+INNER JOIN biz_pilot_infusion_schedule s ON q.infusion_schedule_id = s.id AND s.del_flag = 0
+INNER JOIN biz_pilot_infusion_plan p ON s.infusion_plan_id = p.id AND p.del_flag = 0
+INNER JOIN biz_pilot_application a ON p.pilot_application_id = a.id AND a.del_flag = 0
+SET q.biz_type = 'clinical_application',
+    q.update_time = NOW()
+WHERE q.qc_biz_type = 'outbound'
+  AND q.del_flag = 0
+  AND a.biz_type = 'clinical_application'
+  AND (q.biz_type IS NULL OR q.biz_type = '' OR q.biz_type = 'pilot_service');
+
+-- 出库生产工单若存在同类问题可一并修正(创建路径已传 biz_type,一般仅质检工单需修)
+UPDATE biz_production_work_order w
+INNER JOIN biz_pilot_infusion_schedule s ON w.infusion_schedule_id = s.id AND s.del_flag = 0
+INNER JOIN biz_pilot_infusion_plan p ON s.infusion_plan_id = p.id AND p.del_flag = 0
+INNER JOIN biz_pilot_application a ON p.pilot_application_id = a.id AND a.del_flag = 0
+SET w.biz_type = 'clinical_application',
+    w.update_time = NOW()
+WHERE w.work_order_type = 'outbound'
+  AND w.del_flag = 0
+  AND a.biz_type = 'clinical_application'
+  AND (w.biz_type IS NULL OR w.biz_type = '' OR w.biz_type = 'pilot_service');

+ 8 - 0
docs/sql/sys_menu_hide_clinical_checkup.sql

@@ -0,0 +1,8 @@
+-- 隐藏左侧菜单:临床应用 > 体检管理
+-- 前端同步:web-admin sqxp.ts ClinicalCheckupManagement 路由 meta.isHide = true
+-- 恢复显示时将 visible 改回 '1',并移除 sqxp.ts 中 isHide
+
+UPDATE `sys_menu`
+SET `visible` = '0', `update_time` = NOW()
+WHERE `id` = 'CLI00000000000000000000000000003'
+  AND `del_flag` = 0;

+ 8 - 0
docs/sql/sys_menu_hide_clinical_infusion_schedule.sql

@@ -0,0 +1,8 @@
+-- 隐藏左侧菜单:临床应用 > 输注计划管理(已融入「临床申请单」页内 Tab)
+-- 前端同步:web-admin sqxp.ts ClinicalInfusionSchedule 路由 meta.isHide = true
+-- 恢复显示时将 visible 改回 '1',并移除 sqxp.ts 中 isHide
+
+UPDATE `sys_menu`
+SET `visible` = '0', `update_time` = NOW()
+WHERE `id` = 'CLI00000000000000000000000000004'
+  AND `del_flag` = 0;

+ 8 - 0
docs/sql/sys_menu_hide_clinical_payment_info.sql

@@ -0,0 +1,8 @@
+-- 隐藏左侧菜单:临床应用 > 缴费信息(已融入「临床申请单」页内 Tab)
+-- 前端同步:web-admin sqxp.ts ClinicalPaymentInfo 路由 meta.isHide = true
+-- 恢复显示时将 visible 改回 '1',并移除 sqxp.ts 中 isHide
+
+UPDATE `sys_menu`
+SET `visible` = '0', `update_time` = NOW()
+WHERE `id` = 'CLI00000000000000000000000000005'
+  AND `del_flag` = 0;

+ 8 - 0
docs/sql/sys_menu_hide_clinical_refund_confirm.sql

@@ -0,0 +1,8 @@
+-- 隐藏左侧菜单:临床应用 > 退费确认(财务)(已融入「缴退费财务确认」页内 Tab)
+-- 前端同步:web-admin sqxp.ts ClinicalRefundConfirm 路由 meta.isHide = true
+-- 恢复显示时将 visible 改回 '1',并移除 sqxp.ts 中 isHide
+
+UPDATE `sys_menu`
+SET `visible` = '0', `update_time` = NOW()
+WHERE `id` = 'CLI00000000000000000000000000007'
+  AND `del_flag` = 0;

+ 9 - 6
docs/sql/sys_menu_web_init.sql

@@ -13,7 +13,7 @@ INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `menu_type`, `path`, `co
 INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `menu_type`, `path`, `component`, `perms`, `is_frame`, `visible`, `status`, `tenant_no`, `order_num`, `remark`, `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`) VALUES
 ('CEL00000000000000000000000000001', '细胞存储', '2', 'M', '/cell-storage', '/index/index', NULL, 1, '1', '1', 'zkxw', 1, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('50000000000000000000000000000002', '采集协议单录入', 'CEL00000000000000000000000000001', 'C', 'protocol', '/cell-storage/protocol/index', 'biz:cellStorageProtocol:list', 1, '0', '1', 'zkxw', 1, NULL, NULL, '', NOW(), NULL, NOW(), 0),
-('50000000000000000000000000000003', '采集协议单管理', 'CEL00000000000000000000000000001', 'C', 'protocol-audit', '/cell-storage/protocol-audit/index', 'biz:cellStorageProtocolAudit:list', 1, '1', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
+('50000000000000000000000000000003', '采集协议单', 'CEL00000000000000000000000000001', 'C', 'protocol-audit', '/cell-storage/protocol-audit/index', 'biz:cellStorageProtocolAudit:list', 1, '1', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 -- 缴费信息/样本接收/样本入库/储存证/满月待办已并入采集协议单管理 Tab;已有库可执行:
 -- UPDATE sys_menu SET del_flag=1 WHERE id IN ('904b5173519411f1944300163e3bdd96','50000000000000000000000000000011','50000000000000000000000000000012','50000000000000000000000000000006','50000000000000000000000000000008');
 ('50000000000000000000000000000004', '缴退费财务确认', 'CEL00000000000000000000000000001', 'C', 'payment-confirm', '/cell-storage/payment-confirm/index', 'biz:cellStoragePaymentConfirm:list', 1, '1', '1', 'zkxw', 4, NULL, NULL, '', NOW(), NULL, NOW(), 0),
@@ -22,17 +22,20 @@ INSERT INTO `sys_menu` (`id`, `menu_name`, `parent_id`, `menu_type`, `path`, `co
 -- 入库放行审核已移至细胞存储;已有库可执行:UPDATE sys_menu SET parent_id='CEL00000000000000000000000000001', order_num=5 WHERE id='70000000000000000000000000000011';
 ('RSC00000000000000000000000000001', '科研捐赠', '2', 'M', '/research-donation', '/index/index', NULL, 1, '1', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('60000000000000000000000000000002', '捐赠协议单录入', 'RSC00000000000000000000000000001', 'C', 'list', '/research-donation/list/index', 'biz:researchDonation:list', 1, '0', '1', 'zkxw', 1, NULL, NULL, '', NOW(), NULL, NOW(), 0),
-('60000000000000000000000000000003', '捐赠协议单管理', 'RSC00000000000000000000000000001', 'C', 'audit', '/research-donation/audit/index', 'biz:researchDonationAudit:list', 1, '1', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
+('60000000000000000000000000000003', '捐赠协议单', 'RSC00000000000000000000000000001', 'C', 'audit', '/research-donation/audit/index', 'biz:researchDonationAudit:list', 1, '1', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('PIL00000000000000000000000000001', '中试服务', '2', 'M', '/pilot-service', '/index/index', NULL, 1, '1', '1', 'zkxw', 3, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('80000000000000000000000000000010', '中试服务申请单', 'PIL00000000000000000000000000001', 'C', 'pilot-application', '/pilot-service/pilot-application/index', 'pilot-service:pilot-application:list', 1, '1', '1', 'zkxw', 1, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 -- 体检管理/输注计划已并入中试服务申请单 Tab;已有库可执行:UPDATE sys_menu SET del_flag=1 WHERE id IN ('PIL00000000000000000000000000002','PIL00000000000000000000000000003');
 ('PIL00000000000000000000000000004', '出库放行审核', 'PIL00000000000000000000000000001', 'C', 'outbound-release-review', '/pilot-service/outbound-release-review/index', 'pilot-service:outbound-release-review:list', 1, '1', '1', 'zkxw', 4, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('CLI00000000000000000000000000001', '临床应用', '2', 'M', '/clinical-application', '/index/index', NULL, 1, '1', '1', 'zkxw', 4, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('CLI00000000000000000000000000002', '临床申请单', 'CLI00000000000000000000000000001', 'C', 'clinical-application', '/pilot-service/pilot-application/index', 'clinical-application:application:list', 1, '1', '1', 'zkxw', 1, NULL, NULL, '', NOW(), NULL, NOW(), 0),
-('CLI00000000000000000000000000003', '体检管理', 'CLI00000000000000000000000000001', 'C', 'clinical-checkup-management', '/pilot-service/checkup-management/index', 'clinical-application:checkup-management:list', 1, '1', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
-('CLI00000000000000000000000000004', '输注计划管理', 'CLI00000000000000000000000000001', 'C', 'clinical-infusion-schedule-management', '/pilot-service/infusion-schedule-management/index', 'clinical-application:infusion-schedule-management:list', 1, '1', '1', 'zkxw', 3, NULL, NULL, '', NOW(), NULL, NOW(), 0),
-('CLI00000000000000000000000000005', '缴费信息', 'CLI00000000000000000000000000001', 'C', 'clinical-payment-info', '/pilot-service/clinical-payment-info/index', 'clinical-application:payment-info:list', 1, '1', '1', 'zkxw', 4, NULL, NULL, '', NOW(), NULL, NOW(), 0),
-('CLI00000000000000000000000000006', '缴费确认(财务)', 'CLI00000000000000000000000000001', 'C', 'clinical-payment-confirm', '/pilot-service/clinical-payment-confirm/index', 'clinical-application:payment-confirm:list', 1, '1', '1', 'zkxw', 5, NULL, NULL, '', NOW(), NULL, NOW(), 0),
+-- 临床应用-体检管理:侧栏隐藏(体检并入临床申请单 Tab);前端 sqxp.ts meta.isHide = true
+('CLI00000000000000000000000000003', '体检管理', 'CLI00000000000000000000000000001', 'C', 'clinical-checkup-management', '/pilot-service/checkup-management/index', 'clinical-application:checkup-management:list', 1, '0', '1', 'zkxw', 2, NULL, NULL, '', NOW(), NULL, NOW(), 0),
+-- 输注计划已并入临床申请单 Tab;侧栏隐藏 visible=0
+('CLI00000000000000000000000000004', '输注计划管理', 'CLI00000000000000000000000000001', 'C', 'clinical-infusion-schedule-management', '/pilot-service/infusion-schedule-management/index', 'clinical-application:infusion-schedule-management:list', 1, '0', '1', 'zkxw', 3, NULL, NULL, '', NOW(), NULL, NOW(), 0),
+-- 缴费信息已并入临床申请单 Tab;侧栏隐藏 visible=0
+('CLI00000000000000000000000000005', '缴费信息', 'CLI00000000000000000000000000001', 'C', 'clinical-payment-info', '/pilot-service/clinical-payment-info/index', 'clinical-application:payment-info:list', 1, '0', '1', 'zkxw', 4, NULL, NULL, '', NOW(), NULL, NOW(), 0),
+('CLI00000000000000000000000000006', '缴退费财务确认', 'CLI00000000000000000000000000001', 'C', 'clinical-payment-confirm', '/pilot-service/clinical-payment-confirm/index', 'clinical-application:payment-confirm:list', 1, '1', '1', 'zkxw', 5, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('CLI00000000000000000000000000007', '退费确认(财务)', 'CLI00000000000000000000000000001', 'C', 'clinical-refund-confirm', '/pilot-service/clinical-refund-confirm/index', 'clinical-application:refund-confirm:list', 1, '1', '1', 'zkxw', 6, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('CLI00000000000000000000000000008', '出库放行审核', 'CLI00000000000000000000000000001', 'C', 'clinical-outbound-release-review', '/pilot-service/outbound-release-review/index', 'clinical-application:outbound-release-review:list', 1, '1', '1', 'zkxw', 7, NULL, NULL, '', NOW(), NULL, NOW(), 0),
 ('QCM00000000000000000000000000001', '质检管理', '2', 'M', '/quality-manage', '/index/index', NULL, 1, '1', '1', 'zkxw', 5, NULL, NULL, '', NOW(), NULL, NOW(), 0),

+ 2 - 0
docs/superpowers/specs/2026-05-27-clinical-application-design.md

@@ -236,7 +236,9 @@ CREATE TABLE biz_pilot_payment (
 | 渠道订单选择器 | 显示(必选) | **隐藏** |
 | 渠道选择器 | 从订单自动带入 | **直接选择渠道** |
 | 输注方案-协议价格 | 从渠道协议产品价格带入 | **不显示** |
+| 输注方案-细胞产品 | 从渠道协议/服务订单持仓选择 | **从细胞价格体系**(`biz_cell_product_price`)选择,见 `2026-05-28-clinical-application-cell-product-design.md` |
 | 输注计划-金额 | 不显示(从产品价格计算) | **手动填写** |
+| 是否需要体检 | 患者信息可配置 | **隐藏**,固定不体检 |
 | 申请单号前缀 | ZSSQ | LCSQ |
 
 ### 5.7 输注计划管理页面改造

+ 62 - 0
docs/superpowers/specs/2026-05-28-clinical-application-cell-product-design.md

@@ -0,0 +1,62 @@
+# 临床申请单 · 表单与细胞产品选型
+
+> 日期:2026-05-28  
+> 状态:已实现(前端)  
+> 关联:`2026-05-27-clinical-application-design.md`、`ApplicationFormDialog.vue`
+
+---
+
+## 1. 决策摘要
+
+| 项 | 结论 |
+|----|------|
+| 细胞产品数据来源 | **整张申请单固定**:`biz_cell_product_price`(细胞价格体系) |
+| 项目价格体系 | **本期不使用**(`biz_cell_product_project_system`) |
+| 渠道协议价 | 临床**不依赖**渠道协议 / 服务订单 |
+| 是否需要体检 | 临床表单**隐藏**,提交固定 `needCheckup: 0` |
+
+---
+
+## 2. 界面变更
+
+### 2.1 申请单信息(仅临床)
+
+四列栅格一行展示:**申请单名称 | 渠道 | 备注(占 2 列)**。
+
+### 2.2 患者信息
+
+隐藏「是否需要体检」开关。
+
+### 2.3 输注方案 · 细胞产品
+
+- 打开弹窗时调用 `fetchCellProductPriceList`(分页拉全租户细胞价格行)填充选项池。
+- `canAddCellProduct`:已选渠道 **且** 选项池非空。
+- 列名:「参考单价(元)」替代「协议单价(元)」;`agreementPrice` 字段存参考价,疗程「金额(元)」仍手填。
+- `priceId` = 细胞价格行 `id`。
+
+### 2.4 保存接口
+
+- `POST /pilot-application/save`:`channelServiceOrderId` 可选;临床须传 `channelId` + `bizType=clinical_application`。
+- `InfusionScheduleNestedBody` 含 `amount` 字段(疗程缴费金额)。
+
+### 2.5 出库联动 biz_type
+
+- 创建输注计划时:`create_outbound_production_work_order` / `create_outbound_qc_work_order` 均传入申请单 `biz_type`(临床为 `clinical_application`)。
+- 出库放行审核列表/详情:按申请单或工单 `biz_type` 展示「临床应用」;临床菜单传 `bizType=clinical_application` 过滤。
+- 历史错误数据:执行 `docs/sql/migrate_outbound_work_order_clinical_biz_type.sql`。
+
+---
+
+## 3. 与中试服务对比
+
+| 维度 | 中试 | 临床 |
+|------|------|------|
+| 选项池 | 服务订单 → 协议价 / 订单持仓 | 细胞价格体系列表 |
+| 添加按钮前置 | 渠道 + 服务订单 | 渠道 + 价格数据已加载 |
+| 单价语义 | 协议单价 | 参考单价 |
+
+---
+
+## 4. 后续扩展(未做)
+
+若需「项目价格体系」:在申请单级增加来源切换,切换时清空已选细胞产品并改加载 API 为 `fetchProjectSystemItems`。

+ 257 - 0
docs/superpowers/specs/2026-05-28-clinical-payment-tabs-design.md

@@ -0,0 +1,257 @@
+# 临床应用缴退费 Tab 与提交信息展示 — 设计说明
+
+**日期**:2026-05-28  
+**状态**:已实现  
+**关联页面**:
+- `web-admin/src/views/pilot-service/clinical-payment-info/index.vue`(缴费信息)
+- `web-admin/src/views/pilot-service/clinical-payment-confirm/index.vue`(缴退费财务确认)
+- `web-admin/src/views/pilot-service/clinical-payment-confirm/RefundConfirmTab.vue`
+
+**参考实现**:
+- 5 Tab 结构:`web-admin/src/views/cell-storage/protocol-audit/PaymentInfoTab.vue`
+- 财务确认只读区:`web-admin/src/components/business/protocol-payment-detail-readonly/index.vue`
+- 细胞存储财务确认弹窗:`web-admin/src/views/cell-storage/payment-confirm/index.vue`
+
+---
+
+## 1. 背景与目标
+
+临床应用菜单下「缴费信息」当前仅 2 个 Tab(待缴费 / 已缴费),提交缴费确认无表单;「缴退费财务确认」在确认收款/退款时无法完整看到业务侧提交的备注与附件。
+
+**目标**:
+
+1. 缴费信息改为 **5 个状态 Tab**,每个 Tab 只展示对应状态数据。
+2. **提交缴费确认**、**提交退费确认**均支持填写备注、上传附件;金额规则见 §3.2。
+3. **缴退费财务确认**在确认收款/确认退款及查看弹窗中,展示业务侧提交的金额、备注、附件。
+
+---
+
+## 2. 状态流转(不变)
+
+| 状态码 | 含义 | 触发动作 |
+|--------|------|----------|
+| `dfj` | 待缴费 | 输注计划创建时自动生成 |
+| `jfqrz` | 缴费确认中 | 缴费信息 · 提交缴费确认 |
+| `yjf` | 已缴费 | 缴退费财务确认 · 确认收款 |
+| `tfqrz` | 退费确认中 | 缴费信息 · 提交退费确认 |
+| `ytf` | 已退费 | 缴退费财务确认 · 确认退费 |
+
+---
+
+## 3. 业务规则
+
+### 3.1 金额语义(已确认)
+
+**提交缴费确认时的金额:必须等于计划金额,仅确认不可改。**
+
+- 计划金额来源:输注计划创建缴费记录时写入的 `biz_pilot_payment.amount`。
+- 弹窗中 **只读展示**计划金额,不提供输入控件。
+- 提交时后端 **校验**(若传入 `transferAmount` 则须与 `amount` 相等;推荐前端不传、后端自动 `transfer_amount = amount`)。
+- **不允许**通过提交缴费确认修改 `amount` 字段。
+
+**提交退费确认时的金额**(已有逻辑,保持不变):
+
+- 用户 **必填** `refund_amount`,默认带出计划/实缴金额供参考,允许填写(≤ 已缴金额的业务校验若后续需要可单独补充,本次不扩大范围)。
+
+### 3.2 提交缴费确认 — 表单字段
+
+| 展示标签 | 可编辑 | 存储字段 | 说明 |
+|----------|--------|----------|------|
+| 缴费金额(元) | 否(只读) | `amount` | 展示计划金额 |
+| 备注 | 是 | `remark` | 选填 |
+| 附件 | 是 | `transfer_attachments` | 选填,逗号分隔 MinIO URL |
+
+提交成功后:`pay_status` `dfj → jfqrz`;写入 `transfer_amount = amount`、`remark`、`transfer_attachments`、`update_by/time`。
+
+### 3.3 提交退费确认 — 表单字段(已有,微调联动)
+
+| 展示标签 | 可编辑 | 存储字段 |
+|----------|--------|----------|
+| 退费金额(元) | 是(必填) | `refund_amount` |
+| 退费备注 | 是 | `refund_remark` |
+| 退费附件 | 是 | `refund_attachments` |
+
+### 3.4 批量操作
+
+- **批量缴费确认**:打开同一弹窗;金额按 **每条记录各自的计划金额** 只读(弹窗文案说明「共 N 条,每条按各自计划金额提交」),**共用**一组备注与附件。
+- **批量退费确认**:保持现有逻辑,共用退费金额/备注/附件(与现实现一致)。
+
+---
+
+## 4. 缴费信息页(5 Tab)
+
+### 4.1 Tab 定义
+
+对齐 `PaymentInfoTab.vue`,使用 `el-tabs` + `work-order-type-tabs`:
+
+| Tab name | 标签 | payStatus 参数 |
+|----------|------|----------------|
+| `dfj` | 待缴费 | `dfj` |
+| `jfqrz` | 缴费确认中 | `jfqrz` |
+| `yjf` | 已缴费 | `yjf` |
+| `tfqrz` | 退费确认中 | `tfqrz` |
+| `ytf` | 已退费 | `ytf` |
+
+### 4.2 筛选区
+
+- 保留「关键词」(申请单号)。
+- **移除「缴费状态」下拉**(与 Tab 职责重复,避免冲突)。
+
+### 4.3 工具栏与操作列
+
+| Tab | 勾选列 | 工具栏 | 操作列 |
+|-----|--------|--------|--------|
+| `dfj` | 有 | 批量缴费确认 | 查看 + 缴费确认 |
+| `jfqrz` | 无 | — | 查看 |
+| `yjf` | 有 | 批量退费确认 | 查看 + 退费确认 |
+| `tfqrz` | 无 | — | 查看 |
+| `ytf` | 无 | — | 查看 |
+
+### 4.4 新增弹窗
+
+**缴费确认弹窗**(替代现有 `ElMessageBox.confirm`):
+
+- 只读:申请单号、患者姓名、计划缴费金额(元)。
+- 可编辑:备注(textarea)、附件(卡片上传,folder=`clinical-payment-receipt`)。
+- 批量时展示选中条数 + 说明文案。
+
+**退费确认弹窗**:保持现有实现,仅适配 5 Tab 与查看能力。
+
+**查看弹窗**(全 Tab 可用):
+
+- 基础信息:申请单号、患者、渠道、细胞类型/规格、输注时间、缴费状态。
+- 按状态展示已提交信息:
+  - 曾提交缴费:`amount`(计划/实缴一致)、`remark`、`transfer_attachments`
+  - 曾提交退费:`refund_amount`、`refund_remark`、`refund_attachments`
+  - 已财务确认:追加 `finance_*` / `refund_finance_*` 字段
+
+### 4.5 列表列(建议)
+
+- 公共列不变。
+- `jfqrz` / `yjf` / `ytf`:可增加「实缴金额」列(读 `amount` 或 `transfer_amount`,二者提交后一致)。
+- `tfqrz` / `ytf`:可增加「退费金额」列(`refund_amount`)。
+
+---
+
+## 5. 缴退费财务确认页
+
+### 5.1 确认收款(`jfqrz`)
+
+弹窗结构(参照细胞存储 `payment-confirm/index.vue`):
+
+```
+┌─ 缴费申请信息(只读) ─────────────────────┐
+│ 申请单号、患者、渠道、细胞规格、输注时间      │
+│ 缴费金额(元):amount(只读)                 │
+│ 备注:remark                                 │
+│ 附件:transfer_attachments                   │
+└────────────────────────────────────────────┘
+        ─── 分隔线 ───
+┌─ 财务确认(可编辑) ───────────────────────┐
+│ 财务确认收款备注、财务确认附件               │
+└────────────────────────────────────────────┘
+```
+
+**查看确认信息**弹窗:上述两段均只读(含财务确认字段)。
+
+### 5.2 确认退费(`tfqrz`)
+
+在现有「退费申请信息」区块补全:
+
+- 退费金额、退费备注(已有)
+- **退费附件**(`refund_attachments`,只读卡片列表,当前缺失)
+
+查看弹窗同步补全退费附件;财务确认段保持不变。
+
+### 5.3 组件策略
+
+新建 `ClinicalPaymentSubmitReadonly.vue`(或等价命名):
+
+- Props:`detail`(缴费记录 dict)、`mode: 'receipt' | 'refund' | 'full'`
+- 复用 `ProtocolAttachmentReadonly` 展示附件
+- 缴费侧金额 **只读展示 `amount`**,不展示可编辑控件
+
+---
+
+## 6. 后端 API 变更
+
+文件:`backend/app/api/clinical_payment.py`、`backend/app/crud/clinical_payment.py`
+
+### 6.1 扩展提交缴费确认
+
+**`POST /clinical-payments/{payment_id}/submit-receipt`**
+
+Request body(新增,均可选除校验外):
+
+```json
+{
+  "remark": "备注",
+  "transferAttachments": "url1,url2"
+}
+```
+
+- 不接受与计划金额不一致的 `transferAmount`;若传入则须 `== amount`,否则 400。
+- 未传 `transferAmount` 时 CRUD 自动 `transfer_amount = amount`。
+
+**`POST /clinical-payments/submit-receipt-batch`**
+
+Body 增加同上 `remark`、`transferAttachments`,批量共用。
+
+### 6.2 `_row_to_dict` 字段补齐
+
+在 `_row_to_dict` / `_enrich_payment` 中补充前端已用别名,避免列表空白:
+
+| 别名 | 来源 |
+|------|------|
+| `paymentAmount` | `amount` |
+| `cellTypeSpec` | `cellType` + `specText` 拼接(` / ` 或 `·`,与列表现有展示习惯一致) |
+
+已有字段保持:`amount`、`transferAmount`、`transferAttachments`、`remark`、`refundAmount`、`refundRemark`、`refundAttachments`、`financeRemark`、`financeConfirmAttachments`、`refundFinanceRemark`、`refundFinanceConfirmAttachments`。
+
+### 6.3 数据库
+
+**无需 schema 变更**。复用现有列:
+
+- 缴费提交:`amount`(只读源)、`transfer_amount`(提交时设为等于 amount)、`remark`、`transfer_attachments`
+- 退费提交:`refund_amount`、`refund_remark`、`refund_attachments`
+
+---
+
+## 7. 前端 API 变更
+
+文件:`web-admin/src/api/business.ts`
+
+- `submitClinicalReceipt(id, data?)` — POST body 传 `remark`、`transferAttachments`
+- `batchSubmitClinicalReceipt(ids, data?)` — 同上
+
+---
+
+## 8. 不在本次范围
+
+- 修改计划金额 `amount` 的业务流程
+- 退费金额与已缴金额的大小校验(除非现网已有,不新增)
+- 转账方式 `transfer_type`、转账时间 `transfer_time` 字段(用户未要求)
+- 菜单结构调整
+
+---
+
+## 9. 验收标准
+
+1. 缴费信息 5 Tab 切换后,列表仅展示对应 `pay_status` 数据。
+2. `dfj` Tab 单条/批量「缴费确认」弹出表单:金额只读等于计划金额,可填备注与附件,提交后状态变为 `jfqrz`。
+3. `yjf` Tab 退费确认仍支持金额/备注/附件(行为与改前一致)。
+4. 缴退费财务确认 · 确认收款弹窗顶部可见业务提交的备注与附件;金额只读等于计划金额。
+5. 缴退费财务确认 · 确认退费弹窗可见退费附件。
+6. 两页「查看」弹窗均可看到完整的业务提交信息与财务确认信息(若已确认)。
+7. 列表「缴费金额」列正常显示(`paymentAmount` 别名生效)。
+
+---
+
+## 10. 实现顺序建议
+
+1. 后端:`_row_to_dict` 别名 + `submit_receipt` / `batch_submit_receipt` 扩展
+2. 前端 API 层
+3. 缴费信息:5 Tab + 缴费确认弹窗 + 查看弹窗
+4. 新建 `ClinicalPaymentSubmitReadonly` 组件
+5. 缴退费财务确认:接入只读区 + 退费附件展示
+6. 字段一致性脚本(如有需要):`python scripts/check_field_consistency.py`

+ 41 - 0
docs/superpowers/specs/2026-05-28-menu-biz-type-isolation-design.md

@@ -0,0 +1,41 @@
+# 菜单级业务类型数据隔离
+
+> 日期:2026-05-28  
+> 状态:已实现  
+
+## 目标
+
+| 一级菜单 | 二级菜单 | 仅展示 `biz_type` |
+|---------|---------|-------------------|
+| 中试服务 | 中试服务申请单、出库放行审核 | `pilot_service` |
+| 临床应用 | 临床申请单、输注计划、出库放行、缴费三页 | `clinical_application` |
+
+## 实现
+
+1. **路由** `sqxp.ts`:中试子路由 `props: { bizType: 'pilot_service' }`;临床子路由 `clinical_application`(已有)。
+2. **前端列表**:共用 Tab/页在请求中始终带 `bizType`(缺省按中试/临床推断)。
+3. **后端列表**:`pilot-application/list`、`pilot-release-reviews`、`pilot-infusion-schedule-mgmt` 按 `bizType` 过滤申请单或关联计划。
+
+缴费模块使用 `biz_pilot_payment` + `/clinical-payments`,天然仅临床,无需改。
+
+## 临床申请单页内 Tab(2026-05-28)
+
+与中试「三卡片」一致,临床为 **两卡片**(不含体检):
+
+- 临床申请单 → `PilotApplicationTab`
+- 输注计划管理 → `InfusionScheduleTab`
+
+独立菜单「输注计划管理」隐藏(`sqxp.ts` `isHide` + `sys_menu_hide_clinical_infusion_schedule.sql`),旧链接触发重定向至 `ClinicalApplicationList?tab=infusion`。
+
+## 缴退费财务确认 Tab(2026-05-28)
+
+对齐细胞存储「缴退费财务确认」:`clinical-payment-confirm/index.vue` 双卡片(缴费确认 | 退费确认),退费逻辑在 `RefundConfirmTab.vue`;侧栏菜单名「缴退费财务确认」;待确认/已确认使用 `el-tabs`(`work-order-type-tabs`)。
+
+- 隐藏菜单「退费确认(财务)」:`sys_menu_hide_clinical_refund_confirm.sql`
+- 旧路径 `/clinical-refund-confirm` 重定向至 `ClinicalPaymentConfirm?tab=refund`
+
+## 验证
+
+- 中试申请单列表不出现 `LCSQ` 前缀临床单。
+- 临床输注计划不出现中试申请单关联计划。
+- 两侧出库放行审核列表类型列与菜单一致。

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 389 - 465
web-admin/graphify-out/.graphify_analysis.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 368 - 81
web-admin/graphify-out/.graphify_extract.json


+ 98 - 70
web-admin/graphify-out/GRAPH_REPORT.md

@@ -1,11 +1,11 @@
 # Graph Report - src  (2026-05-28)
 
 ## Corpus Check
-- Large corpus: 668 files · ~413,834 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
+- Large corpus: 671 files · ~417,254 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
 
 ## Summary
-- 1910 nodes · 2459 edges · 39 communities detected
-- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 548 edges (avg confidence: 0.8)
+- 1942 nodes · 2508 edges · 43 communities detected
+- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 556 edges (avg confidence: 0.8)
 - Token cost: 0 input · 0 output
 
 ## Community Hubs (Navigation)
@@ -37,17 +37,21 @@
 - [[_COMMUNITY_Community 25|Community 25]]
 - [[_COMMUNITY_Community 26|Community 26]]
 - [[_COMMUNITY_Community 27|Community 27]]
-- [[_COMMUNITY_Community 29|Community 29]]
+- [[_COMMUNITY_Community 28|Community 28]]
 - [[_COMMUNITY_Community 30|Community 30]]
 - [[_COMMUNITY_Community 31|Community 31]]
-- [[_COMMUNITY_Community 33|Community 33]]
+- [[_COMMUNITY_Community 32|Community 32]]
 - [[_COMMUNITY_Community 34|Community 34]]
 - [[_COMMUNITY_Community 35|Community 35]]
 - [[_COMMUNITY_Community 36|Community 36]]
-- [[_COMMUNITY_Community 40|Community 40]]
-- [[_COMMUNITY_Community 41|Community 41]]
+- [[_COMMUNITY_Community 37|Community 37]]
+- [[_COMMUNITY_Community 38|Community 38]]
+- [[_COMMUNITY_Community 42|Community 42]]
 - [[_COMMUNITY_Community 43|Community 43]]
+- [[_COMMUNITY_Community 44|Community 44]]
 - [[_COMMUNITY_Community 45|Community 45]]
+- [[_COMMUNITY_Community 47|Community 47]]
+- [[_COMMUNITY_Community 49|Community 49]]
 
 ## God Nodes (most connected - your core abstractions)
 1. `get()` - 203 edges
@@ -68,16 +72,16 @@
   utils/http/index.ts → views/operations/storage-facility/index.vue
 - `handleUnauthorizedResponse()` --calls--> `fetchRefreshToken()`  [INFERRED]
   utils/http/index.ts → api/auth.ts
-- `fetchConsumableList()` --calls--> `get()`  [INFERRED]
-  api/production.ts → views/production/process/ProcessRouteTab.vue
-- `fetchReagentList()` --calls--> `get()`  [INFERRED]
-  api/production.ts → views/production/process/ProcessRouteTab.vue
+- `fetchOutboundReleaseReviewDetail()` --calls--> `get()`  [INFERRED]
+  api/outbound-release-review.ts → views/production/process/ProcessRouteTab.vue
+- `fetchOutboundReleaseMaterial()` --calls--> `get()`  [INFERRED]
+  api/outbound-release-review.ts → views/production/process/ProcessRouteTab.vue
 
 ## Communities
 
 ### Community 0 - "Community 0"
 Cohesion: 0.01
-Nodes (136): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchCellSampleTypeList() (+128 more)
+Nodes (141): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchCellSampleTypeList() (+133 more)
 
 ### Community 1 - "Community 1"
 Cohesion: 0.01
@@ -93,169 +97,193 @@ Nodes (40): fetchGetMenuList(), fetchGetMenuCodes(), fetchGetUserInfo(), fetchLo
 
 ### Community 4 - "Community 4"
 Cohesion: 0.03
-Nodes (42): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), submitOutboundReleaseReview(), fetchStorageReleaseReviewDetail(), fetchStorageReleaseReviewList(), submitStorageReleaseReview() (+34 more)
+Nodes (50): fetchCollectionRegionList(), fetchCreateCollectionRegion(), fetchCreateHospital(), fetchDeleteCollectionRegion(), fetchDeleteHospital(), fetchHospitalList(), fetchUpdateCollectionRegion(), fetchUpdateHospital() (+42 more)
 
 ### Community 5 - "Community 5"
-Cohesion: 0.03
-Nodes (36): fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllConsumableStockLogs(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents(), fetchAllReagentStockLogs() (+28 more)
+Cohesion: 0.04
+Nodes (35): handleBlur(), handleFocus(), handleInput(), fetchClinicalPaymentDetail(), fetchClinicalPayments(), fetchClinicalReceiptConfirmed(), fetchClinicalReceiptPending(), fetchClinicalRefundConfirmed() (+27 more)
 
 ### Community 6 - "Community 6"
-Cohesion: 0.04
-Nodes (30): fetchCollectionRegionList(), fetchCreateCollectionRegion(), fetchCreateHospital(), fetchDeleteCollectionRegion(), fetchDeleteHospital(), fetchHospitalList(), fetchUpdateCollectionRegion(), fetchUpdateHospital() (+22 more)
+Cohesion: 0.05
+Nodes (26): auditorDisplay(), dash(), expressName(), formatYm(), formatYmd(), sampleTypeName(), siteName(), unitName() (+18 more)
 
 ### Community 7 - "Community 7"
-Cohesion: 0.06
-Nodes (11): fetchGetLatestUpgradeLog(), getDefaultLanguage(), checkStorageCompatibility(), StorageConfig, getSystemStorage(), getSysVersion(), StorageKeyManager, StorageCompatibilityManager (+3 more)
+Cohesion: 0.05
+Nodes (39): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), fetchAttachmentDownloadUrl(), formatLocalDate(), handleAdd(), handleBatchDelete() (+31 more)
 
 ### Community 8 - "Community 8"
-Cohesion: 0.08
-Nodes (7): updateInfusionScheduleStatus(), handleSubmit(), handleReset(), handleSearch(), WebSocketClient, TableCache, emit()
+Cohesion: 0.06
+Nodes (34): toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url(), hexToBytes() (+26 more)
 
 ### Community 9 - "Community 9"
 Cohesion: 0.05
-Nodes (20): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), collectIds(), handleAdd(), handleBatchDelete(), handleDelete() (+12 more)
+Nodes (23): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), collectIds(), postorder(), preorder(), applyTreeExpand() (+15 more)
 
 ### Community 10 - "Community 10"
-Cohesion: 0.07
-Nodes (21): auditorDisplay(), dash(), expressName(), formatYm(), formatYmd(), sampleTypeName(), siteName(), unitName() (+13 more)
+Cohesion: 0.08
+Nodes (7): updateInfusionScheduleStatus(), handleSubmit(), handleReset(), handleSearch(), WebSocketClient, TableCache, emit()
 
 ### Community 11 - "Community 11"
-Cohesion: 0.08
-Nodes (32): toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url(), hexToBytes() (+24 more)
+Cohesion: 0.07
+Nodes (22): for(), set(), walk(), annotateForkEdges(), chainApiToElements(), walkAncestorBranch(), walkAncestorParents(), if() (+14 more)
 
 ### Community 12 - "Community 12"
-Cohesion: 0.06
-Nodes (25): fetchAttachmentDownloadUrl(), formatLocalDate(), fullFileUrl(), handleDownloadAttachment(), handlePreviewAttachment(), isVideoFile(), handleReceptionAttachmentDownload(), handleDownloadAttachment() (+17 more)
+Cohesion: 0.09
+Nodes (8): getDefaultLanguage(), checkStorageCompatibility(), StorageConfig, getSystemStorage(), getSysVersion(), StorageKeyManager, StorageCompatibilityManager, validateStorageData()
 
 ### Community 13 - "Community 13"
-Cohesion: 0.07
-Nodes (21): handleBlur(), handleFocus(), handleInput(), fetchEthnicList(), addSample(), applyDonationBundleToForm(), confirmBatchTransportApply(), createEmptyTransport() (+13 more)
-
-### Community 14 - "Community 14"
-Cohesion: 0.07
-Nodes (22): for(), set(), walk(), annotateForkEdges(), chainApiToElements(), walkAncestorBranch(), walkAncestorParents(), if() (+14 more)
-
-### Community 15 - "Community 15"
 Cohesion: 0.08
 Nodes (24): fetchCreateSite(), fetchDeleteSite(), fetchDictDataOptions(), fetchSiteList(), fetchUpdateSite(), fetchUserList(), formatHandoverUserLabel(), formatNowDatetime() (+16 more)
 
-### Community 16 - "Community 16"
+### Community 14 - "Community 14"
 Cohesion: 0.08
 Nodes (11): maskIdCard(), buildOutboundPilotContextSections(), applicationStatusLabel(), applicationStatusTagType(), infusionMethodLabel(), infusionStatusLabel(), infusionStatusTagType(), qcStatusLabel() (+3 more)
 
-### Community 17 - "Community 17"
+### Community 15 - "Community 15"
 Cohesion: 0.11
 Nodes (21): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchCollectionProtocolDetail(), buildInsuranceAttachmentsValue(), buildInsurancePayload(), formatYmdFromAny(), fullFileUrl(), handleBatchEdit() (+13 more)
 
-### Community 18 - "Community 18"
+### Community 16 - "Community 16"
 Cohesion: 0.11
 Nodes (22): fetchCreateUser(), fetchDeleteUser(), fetchResetPassword(), fetchRoleOptions(), fetchUpdateUser(), fetchUserDetail(), formatUserDeptDisplay(), handleAdd() (+14 more)
 
-### Community 19 - "Community 19"
+### Community 17 - "Community 17"
 Cohesion: 0.12
 Nodes (22): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), handleBatchComplete(), handleBatchStart(), handleBatchVoid() (+14 more)
 
-### Community 20 - "Community 20"
+### Community 18 - "Community 18"
 Cohesion: 0.12
 Nodes (15): addCopyButton(), highlightCode(), insertLineNumbers(), isBlockProcessed(), markBlockAsProcessed(), processBlock(), setupHighlightDirective(), setupRippleDirective() (+7 more)
 
-### Community 21 - "Community 21"
+### Community 19 - "Community 19"
 Cohesion: 0.1
 Nodes (6): fetchProductionTaskDetail(), fetchProductionTaskList(), fetchUpdateProductionTask(), handleClose(), handleSubmit(), loadTaskDetail()
 
-### Community 22 - "Community 22"
+### Community 20 - "Community 20"
 Cohesion: 0.16
 Nodes (14): fetchPilotCheckupList(), canEditCheckup(), canFillCheckupInfo(), canMarkChecked(), handleDropdownCommand(), handleEdit(), handleReset(), handleSearch() (+6 more)
 
+### Community 21 - "Community 21"
+Cohesion: 0.15
+Nodes (11): fetchEthnicList(), addSample(), applyDonationBundleToForm(), confirmBatchTransportApply(), createEmptyTransport(), ensureEthnicOptionInList(), handleOpenForAdd(), loadEthnicOptions() (+3 more)
+
+### Community 22 - "Community 22"
+Cohesion: 0.15
+Nodes (15): fetchConsumablePackDetail(), fetchConsumablePackList(), fetchCreateConsumablePack(), fetchUpdateConsumablePack(), confirmAddConsumable(), handleAdd(), handleDelete(), handleDropdownCommand() (+7 more)
+
 ### Community 23 - "Community 23"
 Cohesion: 0.16
 Nodes (10): useTable(), useTableImpl(), getColumnChecks(), useTableColumns(), createErrorHandler(), createSmartDebounce(), defaultResponseAdapter(), extractPagination() (+2 more)
 
 ### Community 24 - "Community 24"
+Cohesion: 0.14
+Nodes (8): fetchOutboundReleaseMaterial(), fetchOutboundReleaseReviewDetail(), fetchOutboundReleaseReviewList(), fetchReleaseReviewList(), handleReset(), handleSearch(), loadData(), onReviewSubmitted()
+
+### Community 25 - "Community 25"
 Cohesion: 0.2
 Nodes (2): ComponentLoader, RouteTransformer
 
-### Community 25 - "Community 25"
+### Community 26 - "Community 26"
 Cohesion: 0.27
 Nodes (14): useChart(), useChartComponent(), useChartOps(), colourBlend(), getCssVar(), getDarkColor(), getLightColor(), handleElementThemeColor() (+6 more)
 
-### Community 26 - "Community 26"
+### Community 27 - "Community 27"
 Cohesion: 0.14
 Nodes (8): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), useCeremony(), useTheme(), themeAnimation(), toggleTheme(), toggleTransition()
 
-### Community 27 - "Community 27"
+### Community 28 - "Community 28"
 Cohesion: 0.18
 Nodes (5): fetchServiceOrderTxnList(), handleReset(), handleSearch(), handleTabChange(), loadData()
 
-### Community 29 - "Community 29"
+### Community 30 - "Community 30"
 Cohesion: 0.17
 Nodes (3): fetchResearchDonationAuditList(), fetchResearchDonationDetail(), fetchResearchDonationList()
 
-### Community 30 - "Community 30"
-Cohesion: 0.18
-Nodes (3): fetchMaterialList(), fetchMaterialOptions(), fetchMaterialStockLogList()
-
 ### Community 31 - "Community 31"
 Cohesion: 0.2
 Nodes (2): fetchQcMaterialList(), fetchQcMaterialOptions()
 
-### Community 33 - "Community 33"
+### Community 32 - "Community 32"
+Cohesion: 0.28
+Nodes (1): FireworkSystem
+
+### Community 34 - "Community 34"
 Cohesion: 0.39
 Nodes (6): isIgnorableScriptError(), normalizeErrorMessage(), registerPromiseErrorHandler(), registerResourceErrorHandler(), scriptErrorHandler(), setupErrorHandle()
 
-### Community 34 - "Community 34"
+### Community 35 - "Community 35"
 Cohesion: 0.36
 Nodes (1): TableHeightCalculator
 
-### Community 35 - "Community 35"
+### Community 36 - "Community 36"
+Cohesion: 0.25
+Nodes (2): fetchQcTaskDetail(), fetchQcTaskList()
+
+### Community 37 - "Community 37"
 Cohesion: 0.33
 Nodes (2): logApiCryptoBootInfo(), maskSecret()
 
-### Community 36 - "Community 36"
+### Community 38 - "Community 38"
 Cohesion: 0.47
 Nodes (3): isPaymentDueWithinWarnWindow(), parsePaymentDueYmd(), startOfLocalDay()
 
-### Community 40 - "Community 40"
+### Community 42 - "Community 42"
 Cohesion: 0.5
 Nodes (2): focusInput(), handleKeydown()
 
-### Community 41 - "Community 41"
+### Community 43 - "Community 43"
 Cohesion: 0.67
 Nodes (2): if(), logSidebarMenu()
 
-### Community 43 - "Community 43"
+### Community 44 - "Community 44"
+Cohesion: 0.5
+Nodes (1): fetchStorageEntrySmsList()
+
+### Community 45 - "Community 45"
+Cohesion: 0.5
+Nodes (1): fetchSampleSmsNotificationList()
+
+### Community 47 - "Community 47"
 Cohesion: 1.0
 Nodes (2): getSettingDefaults(), resetToDefaults()
 
-### Community 45 - "Community 45"
+### Community 49 - "Community 49"
 Cohesion: 1.0
 Nodes (2): defaultAvatarPathByRole(), resolveUserAvatarUrl()
 
 ## Knowledge Gaps
-- **Thin community `Community 24`** (17 nodes): `ComponentLoader`, `.constructor()`, `.createEmptyComponent()`, `.createErrorComponent()`, `.load()`, `.loadIframe()`, `.loadLayout()`, `.load()`, `RouteTransformer`, `.extractFirstSegment()`, `.handleFirstLevelRoute()`, `.handleIframeRoute()`, `.handleNormalRoute()`, `.isFirstLevelRoute()`, `.transform()`, `ComponentLoader.ts`, `RouteTransformer.ts`
+- **Thin community `Community 25`** (17 nodes): `ComponentLoader`, `.constructor()`, `.createEmptyComponent()`, `.createErrorComponent()`, `.load()`, `.loadIframe()`, `.loadLayout()`, `.load()`, `RouteTransformer`, `.extractFirstSegment()`, `.handleFirstLevelRoute()`, `.handleIframeRoute()`, `.handleNormalRoute()`, `.isFirstLevelRoute()`, `.transform()`, `ComponentLoader.ts`, `RouteTransformer.ts`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
 - **Thin community `Community 31`** (10 nodes): `fetchBatchStockInQcMaterial()`, `fetchBatchStockOutQcMaterial()`, `fetchCreateQcMaterial()`, `fetchDeleteQcMaterial()`, `fetchQcMaterialList()`, `fetchQcMaterialOptions()`, `fetchStockInQcMaterial()`, `fetchStockOutQcMaterial()`, `fetchUpdateQcMaterial()`, `qc-material.ts`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 34`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
+- **Thin community `Community 32`** (9 nodes): `FireworkSystem`, `.constructor()`, `.createFirework()`, `.createParticle()`, `.getAvailableParticle()`, `.initializePool()`, `.preloadAllImages()`, `.preloadImage()`, `index.vue`
+  Too small to be a meaningful cluster - may be noise or needs more connections extracted.
+- **Thin community `Community 35`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
+  Too small to be a meaningful cluster - may be noise or needs more connections extracted.
+- **Thin community `Community 36`** (8 nodes): `fetchCompleteQcTask()`, `fetchCreateQcTask()`, `fetchDeleteQcTask()`, `fetchQcTaskDetail()`, `fetchQcTaskList()`, `fetchStartQcTask()`, `fetchUpdateQcTaskAttachments()`, `qc-task.ts`
+  Too small to be a meaningful cluster - may be noise or needs more connections extracted.
+- **Thin community `Community 37`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
+  Too small to be a meaningful cluster - may be noise or needs more connections extracted.
+- **Thin community `Community 42`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 35`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
+- **Thin community `Community 43`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 40`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
+- **Thin community `Community 44`** (4 nodes): `fetchGenerateStorageEntrySms()`, `fetchStorageEntrySmsList()`, `fetchToggleStorageEntrySmsNotified()`, `storage-entry-sms-notification.ts`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 41`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
+- **Thin community `Community 45`** (4 nodes): `fetchGenerateSms()`, `fetchSampleSmsNotificationList()`, `fetchToggleSmsNotified()`, `sample-sms-notification.ts`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 43`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
+- **Thin community `Community 47`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
   Too small to be a meaningful cluster - may be noise or needs more connections extracted.
-- **Thin community `Community 45`** (3 nodes): `defaultAvatarPathByRole()`, `resolveUserAvatarUrl()`, `user-avatar.ts`
+- **Thin community `Community 49`** (3 nodes): `defaultAvatarPathByRole()`, `resolveUserAvatarUrl()`, `user-avatar.ts`
   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 `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 9`, `Community 13`, `Community 14`, `Community 15`, `Community 17`, `Community 18`, `Community 19`, `Community 21`, `Community 22`, `Community 27`, `Community 29`, `Community 30`, `Community 31`?**
-  _High betweenness centrality (0.255) - this node is a cross-community bridge._
-- **Why does `push()` connect `Community 2` to `Community 1`, `Community 5`, `Community 7`, `Community 8`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`?**
-  _High betweenness centrality (0.120) - this node is a cross-community bridge._
+- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 9`, `Community 11`, `Community 13`, `Community 15`, `Community 16`, `Community 17`, `Community 19`, `Community 20`, `Community 21`, `Community 22`, `Community 24`, `Community 28`, `Community 30`, `Community 31`, `Community 36`, `Community 44`, `Community 45`?**
+  _High betweenness centrality (0.268) - this node is a cross-community bridge._
+- **Why does `push()` connect `Community 2` to `Community 32`, `Community 1`, `Community 5`, `Community 7`, `Community 8`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 21`, `Community 22`?**
+  _High betweenness centrality (0.116) - this node is a cross-community bridge._
 - **Are the 202 inferred relationships involving `get()` (e.g. with `collectLeafFacilityNodesInTreeOrder()` and `buildTreePathLabelFromFlat()`) actually correct?**
   _`get()` has 202 INFERRED edges - model-reasoned connections that need verification._
 - **Are the 35 inferred relationships involving `push()` (e.g. with `collectLeafFacilityNodesInTreeOrder()` and `fetchAllPagedRecords()`) actually correct?**

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
web-admin/graphify-out/graph.html


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 119 - 110
web-admin/graphify-out/graph.json


+ 30 - 27
web-admin/graphify-out/manifest.json

@@ -17,8 +17,8 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/common/index.ts": 1778582068.0254738,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/directive/directive.d.ts": 1778582068.026978,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api/api.d.ts": 1778582068.0246184,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1779926043.3788598,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1779896972.9881423,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1779944059.7845695,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1779942433.4020183,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/store/index.ts": 1778582068.0293276,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/router/index.ts": 1778775532.895603,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/locales/index.ts": 1778582068.004279,
@@ -42,7 +42,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/storage-slot-options.ts": 1779790341.466299,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/user-avatar.ts": 1779790341.943788,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/fullscreen-loading.ts": 1779117454.818312,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/router.ts": 1778582068.0393815,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/router.ts": 1779938225.7809103,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-payment-labels.ts": 1779199125.4894068,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts": 1779826490.6921933,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/fetch-paged-list.ts": 1778775532.895782,
@@ -144,7 +144,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-settings-panel/widget/ContainerSettings.vue": 1779525781.5920076,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-work-tab/index.vue": 1779525781.592554,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-chat-window/index.vue": 1779525781.59301,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-page-content/index.vue": 1779525781.5935369,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-page-content/index.vue": 1779942912.5296464,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-menus/art-horizontal-menu/index.vue": 1779525781.5938804,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-menus/art-horizontal-menu/widget/HorizontalSubmenu.vue": 1779525781.5942907,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/core/layouts/art-menus/art-mixed-menu/index.vue": 1779525781.5947194,
@@ -176,6 +176,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/protocol-finance-confirm-fields/finance-attachments.ts": 1778987672.644368,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/qc-task-view-dialog/index.vue": 1779824466.9487405,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/dialog-form-body/index.vue": 1779790325.0384986,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/clinical-payment-submit-readonly/index.vue": 1779943712.367428,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/sample-qc-info-cards/index.vue": 1779824462.0648055,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/order-operate-local-dialog/index.vue": 1779790325.101185,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/product-view-dialog/index.vue": 1779790325.4147334,
@@ -183,6 +184,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/sample-storage-release-info/index.vue": 1779542542.2434525,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/infusion-schedule-outbound-chain-view/index.vue": 1779830492.0922873,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/work-order-remark-dialog/index.vue": 1779790326.4187233,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/clinical-schedule-payment-detail/index.vue": 1779944059.476768,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/outbound-material-form-sections/index.vue": 1779830388.1680186,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/protocol-payment-detail-readonly/index.vue": 1779885197.8109932,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/system-view-dialog/index.vue": 1779889640.2061684,
@@ -206,7 +208,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception-check-item.ts": 1779007909.2933023,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts": 1779790323.3656075,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/infusion-schedule-handover.ts": 1779828287.9085703,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/outbound-release-review.ts": 1779841832.5347204,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/outbound-release-review.ts": 1779940548.5759916,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-third-party-item.ts": 1779017836.101254,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/storage-release-review.ts": 1779615813.3431153,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/workflow.ts": 1779790323.5709383,
@@ -216,7 +218,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/collection-protocol.ts": 1779790323.1950388,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/chinaRegion.ts": 1778582067.8620915,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/storage-entry-sms-notification.ts": 1779691739.8547683,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/business.ts": 1779882001.8287263,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/business.ts": 1779943218.8543665,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts": 1779882001.828555,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/ethnic.ts": 1778929297.3919344,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-lab-test-item.ts": 1779017838.8231559,
@@ -233,7 +235,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts": 1779692503.163169,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/auth.ts": 1778582067.8610063,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts": 1779924334.8954625,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/auth/login/index.vue": 1779790342.0297484,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/auth/login/index.vue": 1779938231.136978,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/refund-confirm/index.vue": 1779866933.9349332,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/index.vue": 1779859546.0906804,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolStatusChangeDialog.vue": 1779525781.613681,
@@ -295,7 +297,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/dict/index.vue": 1779857764.622668,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/system/leave/index.vue": 1779856871.1846657,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/output-type/index.vue": 1779864076.2860792,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue": 1779859699.7487218,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue": 1779927539.2907355,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/SourceChainGraph.vue": 1779790358.2354698,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue": 1779897605.7247741,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainInject.ts": 1779790358.0222821,
@@ -312,7 +314,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts": 1779790360.26504,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue": 1779790359.9189978,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/CompleteProductionTaskDialog.vue": 1779790359.5464847,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskInputEnhancedTable.vue": 1779925657.238902,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskInputEnhancedTable.vue": 1779927445.154478,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue": 1779925652.4510176,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/EditTaskInfoDialog.vue": 1779925648.9018784,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputList.vue": 1779525781.6822913,
@@ -334,7 +336,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/lab-test-item/index.vue": 1779864504.1085482,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/lab-test-item/ThirdPartyCompanyTab.vue": 1779864511.579237,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/index.vue": 1779864345.8312566,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue": 1779864348.32489,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue": 1779928630.307365,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue": 1779884110.7197206,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue": 1779926469.2154074,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/storage-release-review/index.vue": 1779857044.9472554,
@@ -351,9 +353,9 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/cell-product-type/CellProductSpecTab.vue": 1779864875.1171246,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-institution/index.vue": 1779871734.0706396,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-institution/CheckupPackagePanel.vue": 1779790354.1964018,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/index.vue": 1779869699.206076,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/index.vue": 1779941177.032692,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/InfusionScheduleHandoverDialog.vue": 1779830388.4782345,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/ScheduleViewDialog.vue": 1779830147.6915238,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/ScheduleViewDialog.vue": 1779944277.8142326,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/ScheduleCancelDialog.vue": 1779785733.3155978,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/ScheduleEditDialog.vue": 1779790355.024449,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order/index.vue": 1779865135.982138,
@@ -362,21 +364,22 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/index.vue": 1779871848.481235,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/ChannelViewDialog.vue": 1779790352.7457726,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel/ChannelServiceOrderTab.vue": 1779923364.6801205,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-refund-confirm/index.vue": 1779857041.790119,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-payment-confirm/index.vue": 1779857039.564749,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/outbound-release-review/index.vue": 1779857036.1353672,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/outbound-release-review/OutboundReleaseViewDialog.vue": 1779830031.9999688,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-refund-confirm/index.vue": 1779941952.780368,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-payment-confirm/index.vue": 1779943711.951672,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-payment-confirm/RefundConfirmTab.vue": 1779943344.5801125,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/outbound-release-review/index.vue": 1779940973.1366372,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/outbound-release-review/OutboundReleaseViewDialog.vue": 1779927107.3150873,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/outbound-release-review/OutboundReleaseReviewDialog.vue": 1779824973.037717,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/outbound-release-review/OutboundReleaseMaterialDialog.vue": 1779829323.2023485,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/index.vue": 1779869680.1829238,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/index.vue": 1779941172.6551938,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/ApplicationDetailDialog.vue": 1779841841.9942307,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/PilotApplicationTab.vue": 1779870527.5393612,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/ApplicationViewDialog.vue": 1779830501.0475526,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/InfusionScheduleTab.vue": 1779923781.8331578,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/ApplicationFormDialog.vue": 1779835904.8876522,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/CheckupManagementTab.vue": 1779870993.5511904,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/PilotApplicationTab.vue": 1779940944.365843,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/ApplicationViewDialog.vue": 1779944085.8337502,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/InfusionScheduleTab.vue": 1779940945.395297,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/ApplicationFormDialog.vue": 1779940036.5255854,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/CheckupManagementTab.vue": 1779940970.6155307,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/cell-product-price/index.vue": 1779864955.5971668,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/index.vue": 1779869699.1782947,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/index.vue": 1779935807.47013,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/CheckupReserveItemsTable.vue": 1779790354.7691844,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/CheckupViewDialog.vue": 1779790354.8122675,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/CheckupRegisterDialog.vue": 1779790354.7432914,
@@ -384,7 +387,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/checkup-reserve-items.ts": 1779923701.3416343,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/CheckupFillDialog.vue": 1779790354.549774,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/CheckupMarkCheckedDialog.vue": 1779923727.345238,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-payment-info/index.vue": 1779857023.6723864,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-payment-info/index.vue": 1779943278.6593158,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/channel-service-order-finance/index.vue": 1779857021.6808643,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/project-price-system/index.vue": 1779864957.7299743,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/cell-product-spec/index.vue": 1779864953.7554574,
@@ -402,7 +405,7 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/table.ts": 1779257771.098434,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/menu.ts": 1779790340.600478,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/setting.ts": 1778582068.0225098,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts": 1779313361.6982958,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/store/modules/user.ts": 1779938228.2554607,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/routesAlias.ts": 1778582068.0211735,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/index.ts": 1779232037.727516,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/RouteTransformer.ts": 1778582068.0132053,
@@ -413,12 +416,12 @@
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/RoutePermissionValidator.ts": 1778582068.0127926,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/index.ts": 1778582068.0138035,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/IframeRouteManager.ts": 1778582068.0121944,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/sqxp.ts": 1779882681.237498,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/sqxp.ts": 1779941886.108251,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/index.ts": 1778598510.6043763,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/exception.ts": 1779546186.993006,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/routes/staticRoutes.ts": 1779546226.1088154,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/routes/asyncRoutes.ts": 1778582068.0206802,
-  "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts": 1779546205.411209,
+  "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts": 1779938234.2979362,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/afterEach.ts": 1778582068.0146143,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/assets/svg/my-copy.svg": 1778582067.9349968,
   "/Users/wuzilong/work/00code/zkxw/web-admin/src/assets/svg/search.svg": 1778582067.9393654,

+ 6 - 5
web-admin/src/api/business.ts

@@ -167,16 +167,17 @@ export function fetchClinicalPaymentDetail(id: string) {
   })
 }
 
-export function submitClinicalReceipt(id: string) {
+export function submitClinicalReceipt(id: string, data?: Record<string, unknown>) {
   return request.post({
-    url: `/web/admin/clinical-payments/${id}/submit-receipt`
+    url: `/web/admin/clinical-payments/${id}/submit-receipt`,
+    params: data
   })
 }
 
-export function batchSubmitClinicalReceipt(ids: string[]) {
+export function batchSubmitClinicalReceipt(ids: string[], data?: Record<string, unknown>) {
   return request.post({
     url: '/web/admin/clinical-payments/submit-receipt-batch',
-    params: { ids }
+    params: { paymentIds: ids, ...data }
   })
 }
 
@@ -197,7 +198,7 @@ export function submitClinicalRefund(id: string, data: any) {
 export function batchSubmitClinicalRefund(ids: string[], data: any) {
   return request.post({
     url: '/web/admin/clinical-payments/submit-refund-batch',
-    params: { ...data, ids }
+    params: { ...data, paymentIds: ids }
   })
 }
 

+ 2 - 0
web-admin/src/api/outbound-release-review.ts

@@ -158,6 +158,8 @@ export function fetchOutboundReleaseReviewList(params?: {
   reviewConclusion?: string
   qcStatus?: string
   keyword?: string
+  /** pilot_service | clinical_application */
+  bizType?: string
 }) {
   return request.get<PageList<OutboundReleaseReview>>({
     url: '/web/admin/pilot-release-reviews',

+ 208 - 0
web-admin/src/components/business/clinical-payment-submit-readonly/index.vue

@@ -0,0 +1,208 @@
+<!-- 临床应用缴费/退费提交信息只读展示 -->
+<template>
+  <div class="clinical-payment-submit-readonly">
+    <h4 v-if="title" class="detail-block-title">{{ title }}</h4>
+    <dl class="view-kv-grid view-kv-grid--4">
+      <div class="view-kv">
+        <dt>申请单号</dt>
+        <dd>{{ dash(detail?.applicationNo) }}</dd>
+      </div>
+      <div class="view-kv">
+        <dt>患者姓名</dt>
+        <dd>{{ dash(detail?.patientName) }}</dd>
+      </div>
+      <div class="view-kv">
+        <dt>渠道名称</dt>
+        <dd>{{ dash(detail?.channelName) }}</dd>
+      </div>
+      <div class="view-kv">
+        <dt>细胞类型/规格</dt>
+        <dd>{{ dash(detail?.cellTypeSpec) }}</dd>
+      </div>
+      <div class="view-kv">
+        <dt>输注时间</dt>
+        <dd>{{ dash(detail?.infusionTime) }}</dd>
+      </div>
+      <div v-if="showPayStatus" class="view-kv">
+        <dt>缴费状态</dt>
+        <dd>
+          <el-tag :type="payStatusTagType(String(detail?.payStatus || ''))" size="small">
+            {{ payStatusLabel(String(detail?.payStatus || '')) }}
+          </el-tag>
+        </dd>
+      </div>
+
+      <template v-if="mode === 'refund'">
+        <div class="view-kv">
+          <dt>缴费金额(元)</dt>
+          <dd>{{ formatAmount(detail?.paymentAmount ?? detail?.amount) }}</dd>
+        </div>
+      </template>
+
+      <template v-if="mode === 'receipt' || mode === 'full'">
+        <div class="view-kv">
+          <dt>缴费金额(元)</dt>
+          <dd>{{ formatAmount(detail?.paymentAmount ?? detail?.amount) }}</dd>
+        </div>
+        <div v-if="detail?.remark" class="view-kv view-kv-span-2">
+          <dt>备注</dt>
+          <dd>{{ dash(detail?.remark) }}</dd>
+        </div>
+        <div class="view-field-block view-kv-span-2 clinical-payment-submit-readonly__attachments">
+          <div class="view-field-block__label">转账凭证</div>
+          <ProtocolAttachmentReadonly
+            :files="receiptAttachmentFiles"
+            @preview="(f) => emit('preview', f)"
+            @download="(f) => emit('download', f)"
+          />
+        </div>
+      </template>
+
+      <template v-if="mode === 'refund' || (mode === 'full' && hasRefundInfo)">
+        <div class="view-kv">
+          <dt>退费金额(元)</dt>
+          <dd>{{ formatAmount(detail?.refundAmount) }}</dd>
+        </div>
+        <div v-if="detail?.refundRemark" class="view-kv view-kv-span-2">
+          <dt>退费备注</dt>
+          <dd>{{ dash(detail?.refundRemark) }}</dd>
+        </div>
+        <div class="view-field-block view-kv-span-2 clinical-payment-submit-readonly__attachments">
+          <div class="view-field-block__label">退费附件</div>
+          <ProtocolAttachmentReadonly
+            :files="refundAttachmentFiles"
+            @preview="(f) => emit('preview', f)"
+            @download="(f) => emit('download', f)"
+          />
+        </div>
+      </template>
+    </dl>
+  </div>
+</template>
+
+<script setup lang="ts">
+  import { computed } from 'vue'
+  import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
+  import { formatMoneyDisplay } from '@/utils/money-format'
+  import { payStatusLabel, payStatusTagType } from '@/utils/status-tag-registry'
+
+  const props = withDefaults(
+    defineProps<{
+      detail?: Record<string, unknown> | null
+      title?: string
+      mode?: 'receipt' | 'refund' | 'full'
+      showPayStatus?: boolean
+    }>(),
+    { mode: 'receipt', showPayStatus: false }
+  )
+
+  const emit = defineEmits<{
+    (e: 'preview', file: Record<string, unknown>): void
+    (e: 'download', file: Record<string, unknown>): void
+  }>()
+
+  function dash(v: unknown) {
+    if (v == null || v === '') return '—'
+    return String(v)
+  }
+
+  function formatAmount(v: unknown) {
+    if (v == null || v === '') return '—'
+    return '¥' + formatMoneyDisplay(v)
+  }
+
+  function urlsToFiles(urlField: unknown) {
+    const urls = String(urlField || '')
+    if (!urls.trim()) return []
+    return urls
+      .split(',')
+      .map((u, i) => {
+        const url = u.trim()
+        if (!url) return null
+        const name = url.includes('/') ? url.split('/').pop() || `附件${i + 1}` : url
+        return { id: `url_${i}`, fileUrl: url, fileName: name }
+      })
+      .filter(Boolean) as Array<Record<string, unknown>>
+  }
+
+  const receiptAttachmentFiles = computed(() => urlsToFiles(props.detail?.transferAttachments))
+
+  const refundAttachmentFiles = computed(() => urlsToFiles(props.detail?.refundAttachments))
+
+  const hasRefundInfo = computed(() => {
+    const d = props.detail
+    if (!d) return false
+    return (
+      d.refundAmount != null ||
+      Boolean(d.refundRemark) ||
+      Boolean(String(d.refundAttachments || '').trim())
+    )
+  })
+</script>
+
+<style scoped lang="scss">
+  .clinical-payment-submit-readonly {
+    width: 100%;
+  }
+
+  .detail-block-title {
+    margin: 0 0 12px;
+    font-size: 14px;
+    font-weight: 600;
+    color: var(--mint-text, #334155);
+    line-height: 1.4;
+  }
+
+  .view-kv-grid {
+    display: grid;
+    grid-template-columns: repeat(2, minmax(0, 1fr));
+    gap: 12px 20px;
+    margin: 0;
+  }
+
+  .view-kv-grid--4 {
+    @media (min-width: 720px) {
+      grid-template-columns: repeat(4, minmax(0, 1fr));
+    }
+  }
+
+  .view-kv {
+    min-width: 0;
+
+    dt {
+      margin: 0 0 4px;
+      font-size: 12px;
+      color: var(--mint-text-muted, #64748b);
+      font-weight: 500;
+    }
+
+    dd {
+      margin: 0;
+      font-size: 14px;
+      color: var(--mint-text, #334155);
+      line-height: 1.5;
+      word-break: break-word;
+    }
+  }
+
+  .view-kv-span-2 {
+    grid-column: 1 / -1;
+  }
+
+  .view-field-block__label {
+    font-size: 12px;
+    color: var(--mint-text-muted, #64748b);
+    font-weight: 500;
+    margin-bottom: 8px;
+  }
+
+  .clinical-payment-submit-readonly__attachments {
+    margin-top: 4px;
+  }
+
+  .form-section-divider--inner {
+    height: 1px;
+    margin: 16px 0;
+    background: var(--mint-border, #e2e8f0);
+  }
+</style>

+ 729 - 0
web-admin/src/components/business/clinical-schedule-payment-detail/index.vue

@@ -0,0 +1,729 @@
+<!-- 临床应用 · 输注计划缴费明细(查看态,对齐 ProtocolViewDialog 缴费明细) -->
+<template>
+  <div
+    class="payment-detail-card"
+    :class="{
+      'payment-detail-card--refunded': payStatus === 'ytf',
+      'payment-detail-card--refund-pending': payStatus === 'tfqrz'
+    }"
+  >
+    <div class="pdc-header">
+      <div class="pdc-header-left" :class="payDetailColorClass(payStatus)">
+        缴费明细 ·
+        <span class="pdc-header-amount" :class="payDetailColorClass(payStatus)">
+          {{ fmtMoney(planAmount) }}
+        </span>
+      </div>
+      <el-tag :type="payStatusTagType(payStatus)" size="small">
+        {{ payStatusLabel(payStatus) }}
+      </el-tag>
+    </div>
+
+    <div class="pdc-info-row">
+      <div class="pdc-info-item">
+        <span class="info-label">应缴费金额(元)</span>
+        <span class="info-value">{{ fmtMoney(planAmount) }}</span>
+      </div>
+      <div class="pdc-info-item">
+        <span class="info-label">实缴金额(元)</span>
+        <span class="info-value">{{ fmtMoney(payment?.transferAmount ?? planAmount) }}</span>
+      </div>
+      <div v-if="payment?.remark" class="pdc-info-item">
+        <span class="info-label">备注</span>
+        <span class="info-value">{{ dash(payment?.remark) }}</span>
+      </div>
+      <div v-if="payStatus !== 'dfj' && payment?.updateTime" class="pdc-info-item">
+        <span class="info-label">提交时间</span>
+        <span class="info-value">{{ dash(payment?.updateTime) }}</span>
+      </div>
+    </div>
+
+    <div v-if="transferAttachmentFiles.length" class="pdc-attachments-row">
+      <div class="data-label">转账凭证</div>
+      <ProtocolAttachmentReadonly
+        :files="transferAttachmentFiles"
+        @preview="(f) => emit('preview', f)"
+        @download="(f) => emit('download', f)"
+      />
+    </div>
+
+    <template v-if="flowSteps.length">
+      <div class="flow-section">
+        <div class="mini-flow">
+          <template v-for="(step, sIdx) in flowSteps" :key="`c-${step.key}`">
+            <div
+              v-if="step.connectorToNext"
+              class="mini-flow-connector"
+              :class="step.connectorToNext"
+              :style="miniFlowConnectorStyle(flowSteps.length, sIdx)"
+            />
+          </template>
+          <div v-for="step in flowSteps" :key="step.key" class="mini-flow-step">
+            <div class="mini-flow-dot" :class="step.dotClass">{{ step.dotIcon }}</div>
+            <div class="mini-flow-label" :class="step.labelClass">{{ step.label }}</div>
+          </div>
+        </div>
+
+        <div class="flow-detail-cards">
+          <template v-for="step in flowSteps" :key="`d-${step.key}`">
+            <div
+              v-if="step.hasDetailCard"
+              class="flow-detail-card"
+              :class="'flow-detail-card--' + step.dotClass"
+            >
+              <div class="flow-detail-card__header">
+                <span class="flow-detail-card__dot" :class="step.dotClass">{{
+                  step.dotIcon
+                }}</span>
+                <span class="flow-detail-card__title" :class="step.labelClass">{{
+                  step.label
+                }}</span>
+              </div>
+              <div class="flow-detail-card__body">
+                <template v-if="step.key === 'pay'">
+                  <div class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">确认状态</span>
+                    <span class="flow-detail-card__value">
+                      <el-tag type="success" size="small">已提交</el-tag>
+                    </span>
+                  </div>
+                  <div v-if="payment?.remark" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">备注</span>
+                    <span class="flow-detail-card__value">{{ payment.remark }}</span>
+                  </div>
+                  <div v-if="transferAttachmentFiles.length" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">转账凭证</span>
+                    <ProtocolAttachmentReadonly
+                      :files="transferAttachmentFiles"
+                      @preview="(f) => emit('preview', f)"
+                      @download="(f) => emit('download', f)"
+                    />
+                  </div>
+                </template>
+                <template v-else-if="step.key === 'receipt-finance'">
+                  <div class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">确认状态</span>
+                    <span class="flow-detail-card__value">
+                      <el-tag v-if="isReceiptFinanceConfirmed" type="success" size="small"
+                        >已确认</el-tag
+                      >
+                      <el-tag v-else type="warning" size="small">待确认</el-tag>
+                    </span>
+                  </div>
+                  <div
+                    v-if="isReceiptFinanceConfirmed && receiptFinanceTime"
+                    class="flow-detail-card__kv"
+                  >
+                    <span class="flow-detail-card__label">确认时间</span>
+                    <span class="flow-detail-card__value">{{ receiptFinanceTime }}</span>
+                  </div>
+                  <div
+                    v-if="isReceiptFinanceConfirmed && payment?.financeRemark"
+                    class="flow-detail-card__kv"
+                  >
+                    <span class="flow-detail-card__label">财务备注</span>
+                    <span class="flow-detail-card__value">{{ payment.financeRemark }}</span>
+                  </div>
+                  <div
+                    v-if="isReceiptFinanceConfirmed && financeAttachmentFiles.length"
+                    class="flow-detail-card__kv"
+                  >
+                    <span class="flow-detail-card__label">财务附件</span>
+                    <ProtocolAttachmentReadonly
+                      :files="financeAttachmentFiles"
+                      @preview="(f) => emit('preview', f)"
+                      @download="(f) => emit('download', f)"
+                    />
+                  </div>
+                </template>
+                <template v-else-if="step.key === 'refund-apply'">
+                  <div class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">退费金额(元)</span>
+                    <span class="flow-detail-card__value" :class="payDetailColorClass(payStatus)">{{
+                      fmtMoney(payment?.refundAmount)
+                    }}</span>
+                  </div>
+                  <div v-if="payment?.refundRemark" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">退费备注</span>
+                    <span class="flow-detail-card__value">{{ payment.refundRemark }}</span>
+                  </div>
+                  <div v-if="refundAttachmentFiles.length" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">退费附件</span>
+                    <ProtocolAttachmentReadonly
+                      :files="refundAttachmentFiles"
+                      @preview="(f) => emit('preview', f)"
+                      @download="(f) => emit('download', f)"
+                    />
+                  </div>
+                </template>
+                <template v-else-if="step.key === 'refund-finance'">
+                  <div class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">确认状态</span>
+                    <span class="flow-detail-card__value">
+                      <el-tag type="danger" size="small">已退费</el-tag>
+                    </span>
+                  </div>
+                  <div v-if="refundFinanceTime" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">确认时间</span>
+                    <span class="flow-detail-card__value">{{ refundFinanceTime }}</span>
+                  </div>
+                  <div v-if="payment?.refundFinanceRemark" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">财务备注</span>
+                    <span class="flow-detail-card__value">{{ payment.refundFinanceRemark }}</span>
+                  </div>
+                  <div v-if="refundFinanceAttachmentFiles.length" class="flow-detail-card__kv">
+                    <span class="flow-detail-card__label">财务附件</span>
+                    <ProtocolAttachmentReadonly
+                      :files="refundFinanceAttachmentFiles"
+                      @preview="(f) => emit('preview', f)"
+                      @download="(f) => emit('download', f)"
+                    />
+                  </div>
+                </template>
+              </div>
+            </div>
+          </template>
+        </div>
+      </div>
+    </template>
+  </div>
+</template>
+
+<script setup lang="ts">
+  import { computed } from 'vue'
+  import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
+  import { formatMoneyDisplay } from '@/utils/money-format'
+  import { payStatusLabel, payStatusTagType } from '@/utils/status-tag-registry'
+
+  const props = defineProps<{
+    payment?: Record<string, any> | null
+  }>()
+
+  const emit = defineEmits<{
+    (e: 'preview', file: Record<string, unknown>): void
+    (e: 'download', file: Record<string, unknown>): void
+  }>()
+
+  interface MiniFlowStep {
+    key: string
+    label: string
+    dotClass: string
+    dotIcon: string
+    labelClass: string
+    connectorToNext?: string
+    hasDetailCard?: boolean
+  }
+
+  const payStatus = computed(() => String(props.payment?.payStatus || 'dfj'))
+
+  const planAmount = computed(
+    () => props.payment?.paymentAmount ?? props.payment?.amount ?? null
+  )
+
+  const isReceiptFinanceConfirmed = computed(() => {
+    const s = payStatus.value
+    return s !== 'jfqrz' && s !== 'dfj'
+  })
+
+  const receiptFinanceTime = computed(
+    () => props.payment?.financeConfirmTime || props.payment?.updateTime || ''
+  )
+
+  const refundFinanceTime = computed(
+    () => props.payment?.refundFinanceConfirmTime || props.payment?.updateTime || ''
+  )
+
+  const transferAttachmentFiles = computed(() =>
+    urlsToAttachmentFiles(String(props.payment?.transferAttachments || ''))
+  )
+
+  const financeAttachmentFiles = computed(() =>
+    urlsToAttachmentFiles(String(props.payment?.financeConfirmAttachments || ''))
+  )
+
+  const refundAttachmentFiles = computed(() =>
+    urlsToAttachmentFiles(String(props.payment?.refundAttachments || ''))
+  )
+
+  const refundFinanceAttachmentFiles = computed(() =>
+    urlsToAttachmentFiles(String(props.payment?.refundFinanceConfirmAttachments || ''))
+  )
+
+  const flowSteps = computed(() => buildMiniFlowSteps(props.payment || {}))
+
+  function dash(v: unknown) {
+    if (v == null || v === '') return '—'
+    return String(v)
+  }
+
+  function fmtMoney(v: unknown) {
+    if (v == null || v === '') return '—'
+    return '¥' + formatMoneyDisplay(v)
+  }
+
+  function urlsToAttachmentFiles(urls: string) {
+    if (!urls.trim()) return []
+    return urls
+      .split(',')
+      .map((u, i) => {
+        const url = u.trim()
+        if (!url) return null
+        const name = url.includes('/') ? url.split('/').pop() || `附件${i + 1}` : url
+        return { id: `url_${i}`, fileUrl: url, fileName: name, fileSize: 0 }
+      })
+      .filter(Boolean) as Array<Record<string, unknown>>
+  }
+
+  function payDetailColorClass(status: string) {
+    if (status === 'ytf') return 'red'
+    if (status === 'tfqrz') return 'amber'
+    return 'green'
+  }
+
+  function buildMiniFlowSteps(detail: Record<string, any>): MiniFlowStep[] {
+    const s = String(detail.payStatus || '')
+    if (s === 'dfj') return []
+
+    const steps: MiniFlowStep[] = []
+
+    steps.push({
+      key: 'pay',
+      label: '缴费确认',
+      dotClass: 'done',
+      dotIcon: '✓',
+      labelClass: 'done',
+      connectorToNext: 'done',
+      hasDetailCard: true
+    })
+
+    if (s === 'jfqrz') {
+      steps.push({
+        key: 'receipt-finance',
+        label: '财务确认',
+        dotClass: 'current-amber',
+        dotIcon: '●',
+        labelClass: 'current-amber',
+        hasDetailCard: true
+      })
+    } else {
+      steps.push({
+        key: 'receipt-finance',
+        label: '财务确认',
+        dotClass: 'done',
+        dotIcon: '✓',
+        labelClass: 'done',
+        connectorToNext: s === 'yjf' ? undefined : 'done',
+        hasDetailCard: true
+      })
+    }
+
+    if (s === 'tfqrz' || s === 'ytf') {
+      steps.push({
+        key: 'refund-apply',
+        label: '退费申请',
+        dotClass: s === 'tfqrz' ? 'current-amber' : 'done',
+        dotIcon: s === 'tfqrz' ? '●' : '✓',
+        labelClass: s === 'tfqrz' ? 'current-amber' : 'done',
+        connectorToNext: s === 'tfqrz' ? 'pending-gray' : 'done-red',
+        hasDetailCard: true
+      })
+    }
+
+    if (s === 'tfqrz') {
+      steps.push({
+        key: 'refund-finance',
+        label: '退费确认',
+        dotClass: 'pending-gray',
+        dotIcon: '○',
+        labelClass: 'pending-gray',
+        hasDetailCard: false
+      })
+    } else if (s === 'ytf') {
+      steps.push({
+        key: 'refund-finance',
+        label: '退费确认',
+        dotClass: 'done-red',
+        dotIcon: '✓',
+        labelClass: 'done-red',
+        hasDetailCard: true
+      })
+    }
+
+    if (steps.length) {
+      delete steps[steps.length - 1].connectorToNext
+    }
+
+    return steps
+  }
+
+  function miniFlowConnectorStyle(total: number, index: number) {
+    const leftPct = ((index + 0.5) / total) * 100
+    const widthPct = 100 / total
+    return `left: calc(${leftPct}% + 12px); width: calc(${widthPct}% - 12px);`
+  }
+</script>
+
+<style scoped lang="scss">
+  .payment-detail-card {
+    background: #fff;
+    border-radius: 8px;
+    padding: 14px 16px;
+    border: 1px solid #e2e8f0;
+
+    &--refunded {
+      border-left: 3px solid #dc2626;
+      border-color: #e2e8f0;
+      border-left-color: #dc2626;
+    }
+
+    &--refund-pending {
+      border-left: 3px solid #d97706;
+      border-color: #e2e8f0;
+      border-left-color: #d97706;
+    }
+  }
+
+  .pdc-header {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    margin-bottom: 12px;
+    padding-bottom: 10px;
+    border-bottom: 1px solid #f1f5f9;
+  }
+
+  .pdc-header-left {
+    display: flex;
+    align-items: center;
+    gap: 6px;
+    font-size: 14px;
+    font-weight: 600;
+    color: #1e293b;
+
+    &::before {
+      content: '';
+      width: 2px;
+      height: 14px;
+      border-radius: 1px;
+      flex-shrink: 0;
+    }
+
+    &.green::before {
+      background: #10b981;
+    }
+
+    &.red::before {
+      background: #dc2626;
+    }
+
+    &.amber::before {
+      background: #d97706;
+    }
+  }
+
+  .pdc-header-amount {
+    font-size: 14px;
+    font-weight: 700;
+    margin-left: 4px;
+
+    &.green {
+      color: #059669;
+    }
+
+    &.red {
+      color: #dc2626;
+    }
+
+    &.amber {
+      color: #d97706;
+    }
+  }
+
+  .pdc-info-row {
+    display: grid;
+    grid-template-columns: repeat(4, minmax(0, 1fr));
+    gap: 14px 20px;
+    margin-bottom: 12px;
+  }
+
+  .pdc-info-item {
+    display: flex;
+    flex-direction: column;
+    gap: 2px;
+
+    .info-label {
+      font-size: 11px;
+      color: #94a3b8;
+    }
+
+    .info-value {
+      font-size: 13px;
+      color: #1e293b;
+      font-weight: 500;
+    }
+  }
+
+  .pdc-attachments-row {
+    margin-bottom: 8px;
+    padding-top: 8px;
+    border-top: 1px dashed #e2e8f0;
+    display: flex;
+    flex-direction: column;
+    gap: 4px;
+
+    .data-label {
+      font-size: 11px;
+      color: #94a3b8;
+      font-weight: 500;
+    }
+  }
+
+  .flow-section {
+    margin-top: 12px;
+  }
+
+  .mini-flow {
+    display: flex;
+    align-items: center;
+    gap: 0;
+    margin: 12px 0;
+    padding: 10px 14px;
+    background: #f8fafc;
+    border-radius: 8px;
+    position: relative;
+  }
+
+  .mini-flow-step {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    position: relative;
+    flex: 1;
+    z-index: 1;
+  }
+
+  .mini-flow-dot {
+    width: 24px;
+    height: 24px;
+    border-radius: 50%;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    font-size: 11px;
+    font-weight: 700;
+    z-index: 1;
+
+    &.done {
+      background: #10b981;
+      color: #fff;
+      box-shadow: 0 0 0 3px rgb(16 185 129 / 15%);
+    }
+
+    &.done-red {
+      background: #dc2626;
+      color: #fff;
+      box-shadow: 0 0 0 3px rgb(220 38 38 / 15%);
+    }
+
+    &.current-amber {
+      background: #fff;
+      border: 2px solid #d97706;
+      color: #d97706;
+      box-shadow: 0 0 0 3px rgb(217 119 6 / 15%);
+    }
+
+    &.pending-gray {
+      background: #f1f5f9;
+      color: #94a3b8;
+      border: 2px solid #e2e8f0;
+    }
+  }
+
+  .mini-flow-label {
+    font-size: 10px;
+    margin-top: 6px;
+    text-align: center;
+    max-width: 80px;
+    line-height: 1.3;
+
+    &.done {
+      color: #059669;
+      font-weight: 600;
+    }
+
+    &.done-red {
+      color: #dc2626;
+      font-weight: 600;
+    }
+
+    &.current-amber {
+      color: #d97706;
+      font-weight: 600;
+    }
+
+    &.pending-gray {
+      color: #94a3b8;
+    }
+  }
+
+  .mini-flow-connector {
+    position: absolute;
+    top: 22px;
+    height: 2px;
+    z-index: 0;
+
+    &.done {
+      background: #10b981;
+    }
+
+    &.done-red {
+      background: #dc2626;
+    }
+
+    &.pending-gray {
+      background: #e2e8f0;
+    }
+  }
+
+  .flow-detail-cards {
+    display: grid;
+    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
+    gap: 12px;
+    margin-top: 14px;
+  }
+
+  .flow-detail-card {
+    border: 1px solid #e2e8f0;
+    border-radius: 8px;
+    overflow: hidden;
+
+    &--current-amber {
+      border-color: #fde68a;
+      background: #fffbeb;
+    }
+
+    &--done-red {
+      border-left: 3px solid #dc2626;
+      background: #fff;
+    }
+
+    &--pending-gray {
+      border-style: dashed;
+      background: #f8fafc;
+    }
+  }
+
+  .flow-detail-card__header {
+    display: flex;
+    align-items: center;
+    gap: 8px;
+    padding: 10px 14px;
+    border-bottom: 1px solid #f1f5f9;
+    background: #f8fafc;
+
+    .flow-detail-card--done-red & {
+      background: #fef2f2;
+      border-bottom-color: #fecaca;
+    }
+
+    .flow-detail-card--current-amber & {
+      background: #fffbeb;
+      border-bottom-color: #fde68a;
+    }
+  }
+
+  .flow-detail-card__dot {
+    width: 20px;
+    height: 20px;
+    border-radius: 50%;
+    display: inline-flex;
+    align-items: center;
+    justify-content: center;
+    font-size: 10px;
+    font-weight: 700;
+    flex-shrink: 0;
+
+    &.done {
+      background: #10b981;
+      color: #fff;
+    }
+
+    &.done-red {
+      background: #dc2626;
+      color: #fff;
+    }
+
+    &.current-amber {
+      background: #fff;
+      border: 2px solid #d97706;
+      color: #d97706;
+    }
+
+    &.pending-gray {
+      background: #f1f5f9;
+      border: 2px solid #e2e8f0;
+      color: #94a3b8;
+    }
+  }
+
+  .flow-detail-card__title {
+    font-size: 13px;
+    font-weight: 600;
+    color: #1e293b;
+
+    &.done {
+      color: #059669;
+    }
+
+    &.done-red {
+      color: #dc2626;
+    }
+
+    &.current-amber {
+      color: #d97706;
+    }
+  }
+
+  .flow-detail-card__body {
+    padding: 12px 14px;
+    display: flex;
+    flex-direction: column;
+    gap: 8px;
+  }
+
+  .flow-detail-card__kv {
+    display: flex;
+    flex-direction: column;
+    gap: 2px;
+  }
+
+  .flow-detail-card__label {
+    font-size: 11px;
+    color: #94a3b8;
+  }
+
+  .flow-detail-card__value {
+    font-size: 13px;
+    color: #1e293b;
+    font-weight: 500;
+    word-break: break-word;
+
+    &.red {
+      color: #dc2626;
+    }
+
+    &.amber {
+      color: #d97706;
+    }
+
+    &.green {
+      color: #059669;
+    }
+  }
+
+  @media (max-width: 768px) {
+    .pdc-info-row {
+      grid-template-columns: repeat(2, minmax(0, 1fr));
+    }
+  }
+</style>

+ 1 - 0
web-admin/src/graphify-out/cache/ast/025c48d7d1603078f7d9005140255d2b043c60d8b8fc7c16018568a34b2f7d1e.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "label": "TaskExecutionDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/06b0d61540e63c4ab27b84f5e39496605e4455fc5f6926a644bd207e7d0c7cea.json


+ 1 - 0
web-admin/src/graphify-out/cache/ast/06f3aa166a18b5fd48553c3f4ee53cb03b6204a3bdb9ac63acd953cfd5c22820.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertasksublist_vue", "label": "WorkOrderTaskSubList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

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

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_infusion_schedule_management_scheduleviewdialog_vue", "label": "ScheduleViewDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/infusion-schedule-management/ScheduleViewDialog.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/1a41b0adb0db9be0fe06162b19a468c13a4321b1ca5c0ddda0ba05e42fdd00ca.json


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

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_material_qcmaterialusagetab_vue", "label": "QcMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

+ 1 - 0
web-admin/src/graphify-out/cache/ast/264afbecfcca16857d18fe3a1c5669c176f69794d01f897c7ec49c871cc33c99.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "label": "DispatchTaskDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchtaskdialog_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L291"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "production_work_order_dispatchtaskdialog_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L291", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchtaskdialog_if", "callee": "initEditor", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L295"}]}

+ 1 - 0
web-admin/src/graphify-out/cache/ast/2b119a429d6009074bf6dab3b21c2891dfb6449148128d082125cd89b6a23ccc.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_clinical_payment_confirm_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-payment-confirm/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/2ed40ba4e33c24ed405fe78abccb65f17dcd824567fb5658c20be04fde3c4cb1.json


+ 1 - 0
web-admin/src/graphify-out/cache/ast/3b6b9b09eb05a461dad9509f3caf4b79f957111fa04df444bd3990bc84134554.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_pilot_application_infusionscheduletab_vue", "label": "InfusionScheduleTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/InfusionScheduleTab.vue", "source_location": "L1"}, {"id": "pilot_application_infusionscheduletab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/InfusionScheduleTab.vue", "source_location": "L582"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_pilot_application_infusionscheduletab_vue", "target": "pilot_application_infusionscheduletab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/InfusionScheduleTab.vue", "source_location": "L582", "weight": 1.0}], "raw_calls": []}

+ 1 - 0
web-admin/src/graphify-out/cache/ast/425ee4b2fe4eba6300a16c0d74322bdc58b442694b0858a098eac25071c733a1.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskinputenhancedtable_vue", "label": "TaskInputEnhancedTable.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskInputEnhancedTable.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

+ 1 - 0
web-admin/src/graphify-out/cache/ast/4a10bd228baedad5e7d227546efa9f24be5f9bfc8aff8927a415e9c3e99a7392.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_clinical_refund_confirm_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/clinical-refund-confirm/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/549415cd3d2ce9633ca68e7f9d5b4698f33e6171c8b30a65acd3a7239dd93059.json


+ 1 - 0
web-admin/src/graphify-out/cache/ast/54fa3425a009a6efb9a7fc20cfe672c9337d8f50a3152028137a408f09686bc9.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_clinical_payment_submit_readonly_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/clinical-payment-submit-readonly/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/5f999d5205cd5098375d43642ffba255df5a02bade06f70fff083e3b5d4fd3d2.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/6286d394f9b72052b0d57621231543e9197850589d25bba07e54c4c27e1fb6e4.json


+ 1 - 0
web-admin/src/graphify-out/cache/ast/6c787430c5852459bc490a7ef0578b1f27af14ce5586506984b7993e6ca4d6dc.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_pilot_application_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/pilot-application/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/711c19e5c87598f02f46550e2ecb257e209281261e679bd1171772731ef60a4a.json


+ 1 - 0
web-admin/src/graphify-out/cache/ast/748f2011b723592fc4f8dba1711e57dae554894df825ac898b1477fa647d4ce8.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_checkup_management_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/checkup-management/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

+ 1 - 0
web-admin/src/graphify-out/cache/ast/859196a7d5ecad2a36f5d0ca04cdbe3b2db7d752f67694bbc1acbcda73bf6e2e.json

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/8fc65f5f06dc745435cd73aec9a435db774daea6d2e32e0a609a0b344cfdf31b.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/a5b7d6e2fef1ffaee7dde828c056c584f4c9b44c63cefbc4eeec17475698b688.json


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

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_auth_login_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/auth/login/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

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

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/b4c212e5cafac9b1fd9ed0ea4b2b00a9253b89d5c1857a8c7b325331e58b3aba.json


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
web-admin/src/graphify-out/cache/ast/ba155515be94c471ae4f637c5d8f2043f3b4fba38ecf1dfdfb38847b49a66570.json


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

@@ -0,0 +1 @@
+{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_clinical_payment_submit_readonly_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/components/business/clinical-payment-submit-readonly/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels