提交
This commit is contained in:
1 parent
b105bd9b7d
commit
b569643581
43 files changed
+20435
-19597
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
62781
|
||||
94149
|
||||
@@ -1543,15 +1543,17 @@ async def update_process_route(
|
||||
):
|
||||
try:
|
||||
payload = body.model_dump(exclude_unset=True, by_alias=False)
|
||||
obj = route_svc.update_route(
|
||||
db, route_id,
|
||||
user_id=user.get("user_id"),
|
||||
route_code=payload.get("route_code"),
|
||||
route_name=payload.get("route_name"),
|
||||
product_type_id=payload.get("product_type_id"),
|
||||
version=payload.get("version"),
|
||||
remark=payload.get("remark"),
|
||||
)
|
||||
update_kwargs = {
|
||||
"user_id": user.get("user_id"),
|
||||
"route_code": payload.get("route_code"),
|
||||
"route_name": payload.get("route_name"),
|
||||
"product_type_id": payload.get("product_type_id"),
|
||||
"version": payload.get("version"),
|
||||
"remark": payload.get("remark"),
|
||||
}
|
||||
if "equipment_ids" in payload:
|
||||
update_kwargs["equipment_ids"] = payload.get("equipment_ids")
|
||||
obj = route_svc.update_route(db, route_id, **update_kwargs)
|
||||
return success_response(route_svc._route_row_to_dict(obj), message="更新成功")
|
||||
except ValueError as e:
|
||||
return error_response(400, str(e))
|
||||
|
||||
@@ -9,6 +9,7 @@ from sqlalchemy import and_, func, or_
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.utils import generate_uuid
|
||||
from app.crud.equipment_snapshot import parse_equipment_ids, resolve_equipment_list_snapshot
|
||||
from app.models.models import (
|
||||
BizProductionProductType,
|
||||
BizProcess,
|
||||
@@ -37,6 +38,8 @@ def _route_row_to_dict(r: BizProcessRoute) -> Dict[str, Any]:
|
||||
"productTypeId": r.product_type_id or "",
|
||||
"version": r.version or "",
|
||||
"isCurrent": r.is_current if r.is_current is not None else "0",
|
||||
"equipmentIds": parse_equipment_ids(getattr(r, "equipment_ids", None)),
|
||||
"equipmentName": getattr(r, "equipment_name", None) or "",
|
||||
"tenantNo": r.tenant_no,
|
||||
"orderNum": r.order_num if r.order_num is not None else 0,
|
||||
"remark": r.remark or "",
|
||||
@@ -245,6 +248,12 @@ def update_route(db: Session, route_id: str, *, user_id: Optional[str] = None, *
|
||||
val = kwargs.get(field)
|
||||
if val is not None:
|
||||
setattr(obj, field, (val or "").strip() or None if field != "route_code" else (val or "").strip())
|
||||
if "equipment_ids" in kwargs:
|
||||
eids, enames = resolve_equipment_list_snapshot(
|
||||
db, kwargs.get("equipment_ids"), obj.tenant_no or "zkxw"
|
||||
)
|
||||
obj.equipment_ids = eids
|
||||
obj.equipment_name = enames
|
||||
obj.update_by = user_id
|
||||
obj.update_time = datetime.now()
|
||||
db.add(obj)
|
||||
|
||||
@@ -1017,6 +1017,19 @@ def create_production_task(
|
||||
route_id = data.get("route_id")
|
||||
if route_id:
|
||||
_clone_route_to_task(db, task.id, route_id, tenant_no, user_id, create_dept_id)
|
||||
route = (
|
||||
db.query(BizProcessRoute)
|
||||
.filter(
|
||||
BizProcessRoute.id == route_id,
|
||||
BizProcessRoute.tenant_no == tenant_no,
|
||||
BizProcessRoute.del_flag == 0,
|
||||
)
|
||||
.first()
|
||||
)
|
||||
if route and (getattr(route, "equipment_ids", None) or getattr(route, "equipment_name", None)):
|
||||
task.equipment_ids = route.equipment_ids
|
||||
task.equipment_name = route.equipment_name
|
||||
db.add(task)
|
||||
|
||||
from app.crud import production_work_order as production_work_order_svc
|
||||
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_storage_occupancy_py", "label": "storage_occupancy.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L1"}, {"id": "crud_storage_occupancy_assert_batch_slots_unique", "label": "assert_batch_slots_unique()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L23"}, {"id": "crud_storage_occupancy_assert_slot_vacant", "label": "assert_slot_vacant()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L35"}, {"id": "crud_storage_occupancy_add_stored_occupancy_no_commit", "label": "_add_stored_occupancy_no_commit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L85"}, {"id": "crud_storage_occupancy_remove_by_item_no_commit", "label": "remove_by_item_no_commit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L128"}, {"id": "crud_storage_occupancy_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L154"}, {"id": "crud_storage_occupancy_load_cell_product_map", "label": "_load_cell_product_map()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L173"}, {"id": "crud_storage_occupancy_load_cell_product_shelf_summaries", "label": "_load_cell_product_shelf_summaries()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L195"}, {"id": "crud_storage_occupancy_attach_cell_product_fields", "label": "_attach_cell_product_fields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L244"}, {"id": "crud_storage_occupancy_enrich_occupancy_items", "label": "enrich_occupancy_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L260"}, {"id": "crud_storage_occupancy_enrich_slots_with_stored_cell_products", "label": "enrich_slots_with_stored_cell_products()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L280"}, {"id": "crud_storage_occupancy_refresh_slot_cache", "label": "_refresh_slot_cache()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L329"}, {"id": "crud_storage_occupancy_create_occupancy", "label": "create_occupancy()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L364"}, {"id": "crud_storage_occupancy_batch_create_occupancies", "label": "batch_create_occupancies()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L399"}, {"id": "crud_storage_occupancy_remove_occupancy", "label": "remove_occupancy()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L437"}, {"id": "crud_storage_occupancy_remove_by_item", "label": "remove_by_item()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L465"}, {"id": "crud_storage_occupancy_list_occupancies", "label": "list_occupancies()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L477"}, {"id": "crud_storage_occupancy_list_occupancy_history", "label": "list_occupancy_history()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L512"}, {"id": "crud_storage_occupancy_rationale_1", "label": "\u5e93\u4f4d\u5360\u7528\u8bb0\u5f55 CRUD\uff08biz_storage_slot_occupancy\uff09", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L1"}, {"id": "crud_storage_occupancy_rationale_43", "label": "\u65ad\u8a00\u50a8\u7269\u683c\u5f53\u524d\u65e0\u5728\u5e93\u7269\u54c1\uff08\u4efb\u610f item_type\uff09\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_occupancy.py", "source_location": "L43"}, {"id": "crud_storage_occupancy_rationale_178", "label": "\u6279\u91cf\u52a0\u8f7d\u7ec6\u80de\u4ea7\u54c1\u5b8c\u6574\u4fe1\u606f\uff08\u4e00\u6b21 enrich\uff0c\u907f\u514d per-id \u7684 N+1\uff09\u3002", "file_type": Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L1"}, {"id": "crud_production_task_require_requisition_for_catalog_material", "label": "_require_requisition_for_catalog_material()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L53"}, {"id": "crud_production_task_production_conclusion_label", "label": "_production_conclusion_label()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L105"}, {"id": "crud_production_task_fmt_dt", "label": "_fmt_dt()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L112"}, {"id": "crud_production_task_normalize_date_bound", "label": "_normalize_date_bound()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L116"}, {"id": "crud_production_task_enrich_outbound_task_items", "label": "_enrich_outbound_task_items()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L123"}, {"id": "crud_production_task_generate_task_no", "label": "_generate_task_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L257"}, {"id": "crud_production_task_task_to_dict", "label": "_task_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L271"}, {"id": "crud_production_task_step_to_dict", "label": "_step_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L300"}, {"id": "crud_production_task_step_reagent_to_dict", "label": "_step_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L325"}, {"id": "crud_production_task_step_configured_reagent_to_dict", "label": "_step_configured_reagent_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L342"}, {"id": "crud_production_task_step_consumable_to_dict", "label": "_step_consumable_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L358"}, {"id": "crud_production_task_step_output_to_dict", "label": "_step_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L375"}, {"id": "crud_production_task_step_data_collection_to_dict", "label": "_step_data_collection_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L387"}, {"id": "crud_production_task_task_input_to_dict", "label": "_task_input_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L399"}, {"id": "crud_production_task_task_output_to_dict", "label": "_task_output_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L421"}, {"id": "crud_production_task_soft_delete_sub", "label": "_soft_delete_sub()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L446"}, {"id": "crud_production_task_resolve_sub_table_order_num", "label": "_resolve_sub_table_order_num()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L459"}, {"id": "crud_production_task_empty_step_sub_tables", "label": "_empty_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L468"}, {"id": "crud_production_task_batch_load_step_sub_tables", "label": "_batch_load_step_sub_tables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L478"}, {"id": "crud_production_task_step_sub_tables_to_dict", "label": "_step_sub_tables_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_location": "L578"}, {"id": "crud_production_task_clone_step_reagents", "label": "_clone_step_reagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py", "source_locatiLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_api_production_py", "label": "production.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L1"}, {"id": "api_production_legacy_material_write_gone", "label": "_legacy_material_write_gone()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L77"}, {"id": "api_production_get_tenant_no", "label": "_get_tenant_no()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L81"}, {"id": "api_production_get_current_user_id", "label": "_get_current_user_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L89"}, {"id": "api_production_consumablecreatebody", "label": "ConsumableCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L98"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "api_production_consumableupdatebody", "label": "ConsumableUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L112"}, {"id": "api_production_list_consumables", "label": "list_consumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L127"}, {"id": "api_production_list_all_consumables", "label": "list_all_consumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L141"}, {"id": "api_production_create_consumable", "label": "create_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L151"}, {"id": "api_production_update_consumable", "label": "update_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L160"}, {"id": "api_production_delete_consumable", "label": "delete_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L170"}, {"id": "api_production_stockinbody", "label": "StockInBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L178"}, {"id": "api_production_stockoutbody", "label": "StockOutBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L184"}, {"id": "api_production_batchstockinitem", "label": "BatchStockInItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L192"}, {"id": "api_production_batchstockinbody", "label": "BatchStockInBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L199"}, {"id": "api_production_batchstockoutitem", "label": "BatchStockOutItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L205"}, {"id": "api_production_batchstockoutbody", "label": "BatchStockOutBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L211"}, {"id": "api_production_consumable_stock_in", "label": "consumable_stock_in()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L220"}, {"id": "api_production_consumable_stock_out", "label": "consumable_stock_out()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L242"}, {"id": "api_production_consumable_batch_stock_in", "label": "consumable_batch_stock_in()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L266"}, {"id": "api_production_consumable_batch_stock_out", "label": "consumable_batch_stock_out()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L284"}, {"id": "api_production_list_consumable_stock_logs", "label": "list_consumable_stock_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L303"}, {"id": "api_production_list_all_consumable_stock_logs", "label": "list_all_consumable_stock_logs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py", "source_location": "L322"}, {"id": "api_production_reagentcreatebody", "label": "ReagentCreateBody"Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_crud_process_route_py", "label": "process_route.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L1"}, {"id": "crud_process_route_route_row_to_dict", "label": "_route_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L33"}, {"id": "crud_process_route_step_row_to_dict", "label": "_step_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L51"}, {"id": "crud_process_route_step_reagent_row_to_dict", "label": "_step_reagent_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L67"}, {"id": "crud_process_route_step_consumable_row_to_dict", "label": "_step_consumable_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L82"}, {"id": "crud_process_route_step_output_row_to_dict", "label": "_step_output_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L97"}, {"id": "crud_process_route_step_data_collection_row_to_dict", "label": "_step_data_collection_row_to_dict()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L109"}, {"id": "crud_process_route_list_routes", "label": "list_routes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L124"}, {"id": "crud_process_route_get_route", "label": "get_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L168"}, {"id": "crud_process_route_get_route_detail", "label": "get_route_detail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L174"}, {"id": "crud_process_route_create_route", "label": "create_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L212"}, {"id": "crud_process_route_update_route", "label": "update_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L243"}, {"id": "crud_process_route_set_current_route", "label": "set_current_route()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L265"}, {"id": "crud_process_route_soft_delete_sub_records", "label": "_soft_delete_sub_records()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L291"}, {"id": "crud_process_route_create_step_reagent", "label": "_create_step_reagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L301"}, {"id": "crud_process_route_create_step_consumable", "label": "_create_step_consumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L317"}, {"id": "crud_process_route_create_step_output", "label": "_create_step_output()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L333"}, {"id": "crud_process_route_create_step_data_collection", "label": "_create_step_data_collection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L346"}, {"id": "crud_process_route_add_step", "label": "add_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L362"}, {"id": "crud_process_route_update_step", "label": "update_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L437"}, {"id": "crud_process_route_reorder_steps", "label": "reorder_steps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L456"}, {"id": "crud_process_route_copy_step", "label": "copy_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L470"}, {"id": "crud_process_route_soft_delete_step", "label": "soft_delete_step()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py", "source_location": "L574"}, {"id": "crud_process_route_soft_delete_routLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_models_models_py", "label": "models.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L1"}, {"id": "models_models_userrole", "label": "UserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L10"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysuser", "label": "SysUser", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L22"}, {"id": "base", "label": "Base", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "models_models_sysrole", "label": "SysRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L49"}, {"id": "models_models_sysuserrole", "label": "SysUserRole", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L69"}, {"id": "models_models_sysrolemenu", "label": "SysRoleMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L88"}, {"id": "models_models_sysroledatascopedetail", "label": "SysRoleDataScopeDetail", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L107"}, {"id": "models_models_sysmenu", "label": "SysMenu", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L127"}, {"id": "models_models_sysdept", "label": "SysDept", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L153"}, {"id": "models_models_systenant", "label": "SysTenant", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L177"}, {"id": "models_models_syssite", "label": "SysSite", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L197"}, {"id": "models_models_syspost", "label": "SysPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L223"}, {"id": "models_models_sysuserpost", "label": "SysUserPost", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L243"}, {"id": "models_models_bizitemunit", "label": "BizItemUnit", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L262"}, {"id": "models_models_bizexpresscompany", "label": "BizExpressCompany", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L281"}, {"id": "models_models_bizcustomer", "label": "BizCustomer", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L301"}, {"id": "models_models_bizcellsampletype", "label": "BizCellSampleType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L324"}, {"id": "models_models_bizcollectionregion", "label": "BizCollectionRegion", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L347"}, {"id": "models_models_bizcollectionhospital", "label": "BizCollectionHospital", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L365"}, {"id": "models_models_bizcollectionprotocolno", "label": "BizCollectionProtocolNo", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L384"}, {"id": "models_models_bizbiznosequence", "label": "BizBizNoSequence", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L406"}, {"id": "models_models_bizsamplecode", "label": "BizSampleCode", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L426"}, {"id": "models_models_sysdicttype", "label": "SysDictType", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L454"}, {"id": "models_models_sysethnic", "label": "SysEthnic", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location": "L473"}, {"id": "models_models_sysdictdata", "label": "SysDictData", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py", "source_location"Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_schemas_process_route_py", "label": "process_route.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L1"}, {"id": "schemas_process_route_processroutecreatebody", "label": "ProcessRouteCreateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L7"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "schemas_process_route_processrouteupdatebody", "label": "ProcessRouteUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L16"}, {"id": "schemas_process_route_setcurrentbody", "label": "SetCurrentBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L26"}, {"id": "schemas_process_route_stepaddbody", "label": "StepAddBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L32"}, {"id": "schemas_process_route_stepcopybody", "label": "StepCopyBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L39"}, {"id": "schemas_process_route_stepupdatebody", "label": "StepUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L44"}, {"id": "schemas_process_route_stepreorderbody", "label": "StepReorderBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L56"}, {"id": "schemas_process_route_stepreagentitem", "label": "StepReagentItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L63"}, {"id": "schemas_process_route_stepconsumableitem", "label": "StepConsumableItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L75"}, {"id": "schemas_process_route_stepoutputitem", "label": "StepOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L87"}, {"id": "schemas_process_route_stepdatacollectionitem", "label": "StepDataCollectionItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L96"}, {"id": "schemas_process_route_stepreagentupdatebody", "label": "StepReagentUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L105"}, {"id": "schemas_process_route_stepconsumableupdatebody", "label": "StepConsumableUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L111"}, {"id": "schemas_process_route_stepoutputupdatebody", "label": "StepOutputUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L117"}, {"id": "schemas_process_route_stepdatacollectionupdatebody", "label": "StepDataCollectionUpdateBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L123"}, {"id": "schemas_process_route_rationale_1", "label": "\u5de5\u827a\u8def\u7ebf\u7ba1\u7406 Pydantic Schemas", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_process_route_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_process_route_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_process_route_py", "target": "schemas_process_route_processroutecreatebody", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py", "source_location": "L7", "weight": 1.0}, {"source": "schemas_process_route_processroutecreatebody", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/prLine truncated
|
||||
@@ -2775,6 +2775,8 @@ class BizProcessRoute(Base):
|
||||
product_type_id = Column(String(64), nullable=True, comment="产品类型id")
|
||||
version = Column(String(50), nullable=True, comment="版本号")
|
||||
is_current = Column(CHAR(1), nullable=True, default="0", comment="是否当前版本(0-否 1-是)")
|
||||
equipment_ids = Column(String(1000), nullable=True, comment="默认设备ID(逗号分隔)")
|
||||
equipment_name = Column(String(1000), nullable=True, comment="默认设备名称快照(逗号分隔)")
|
||||
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
|
||||
@@ -20,6 +20,7 @@ class ProcessRouteUpdateBody(BaseModel):
|
||||
product_type_id: Optional[str] = Field(None, alias="productTypeId")
|
||||
version: Optional[str] = Field(None, alias="version")
|
||||
remark: Optional[str] = None
|
||||
equipment_ids: Optional[List[str]] = Field(None, alias="equipmentIds")
|
||||
|
||||
|
||||
class SetCurrentBody(BaseModel):
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+8189
-8160
File diff suppressed because it is too large.
Load diff
@@ -1,11 +1,11 @@
|
||||
# Graph Report - app (2026-07-28)
|
||||
|
||||
## Corpus Check
|
||||
- Large corpus: 230 files · ~285,349 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
|
||||
- Large corpus: 230 files · ~285,449 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
|
||||
|
||||
## Summary
|
||||
- 4867 nodes · 26933 edges · 42 communities detected
|
||||
- Extraction: 31% EXTRACTED · 69% INFERRED · 0% AMBIGUOUS · INFERRED: 18498 edges (avg confidence: 0.6)
|
||||
- 4867 nodes · 26935 edges · 39 communities detected
|
||||
- Extraction: 31% EXTRACTED · 69% INFERRED · 0% AMBIGUOUS · INFERRED: 18500 edges (avg confidence: 0.6)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Community Hubs (Navigation)
|
||||
@@ -42,15 +42,12 @@
|
||||
- [[_COMMUNITY_Community 30|Community 30]]
|
||||
- [[_COMMUNITY_Community 31|Community 31]]
|
||||
- [[_COMMUNITY_Community 32|Community 32]]
|
||||
- [[_COMMUNITY_Community 33|Community 33]]
|
||||
- [[_COMMUNITY_Community 34|Community 34]]
|
||||
- [[_COMMUNITY_Community 35|Community 35]]
|
||||
- [[_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]]
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `success_response()` - 716 edges
|
||||
@@ -80,11 +77,11 @@
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.01
|
||||
Nodes (935): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+927 more)
|
||||
Nodes (945): attachment_download_url(), create_dept(), create_dict_data(), create_dict_type(), create_express_company(), create_item_unit(), create_menu(), create_post() (+937 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.01
|
||||
Nodes (714): generate_uuid(), ApiRequestLogCRUD, delete(), get_multi_with_filters(), create_cell_sample_type(), get_cell_sample_type(), list_cell_sample_types(), 细胞样本类型 CRUD(biz_cell_sample_type) (+706 more)
|
||||
Nodes (723): generate_uuid(), ApiRequestLogCRUD, delete(), get_multi_with_filters(), create_cell_sample_type(), get_cell_sample_type(), list_cell_sample_types(), 细胞样本类型 CRUD(biz_cell_sample_type) (+715 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.01
|
||||
@@ -92,196 +89,184 @@ Nodes (584): AttachmentDownloadUrlBody, DeptCreateBody, DeptUpdateBody, DictData
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.07
|
||||
Nodes (421): 环境检测 — 检测项维护 + 登记管理 API, 保险公司及险种价格管理 API(保险公司 + 开票信息 + 险种价格), AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody (+413 more)
|
||||
Nodes (420): 环境检测 — 检测项维护 + 登记管理 API, 保险公司及险种价格管理 API(保险公司 + 开票信息 + 险种价格), AccessLogCreateBody, AccessLogUpdateBody, CleanRoomCreateBody, CleanRoomUpdateBody, ExhibitionAppointmentCreateBody, ExhibitionAppointmentUpdateBody (+412 more)
|
||||
|
||||
### Community 4 - "Community 4"
|
||||
Cohesion: 0.01
|
||||
Nodes (346): _normalize_date_bound(), list_ethnics_for_select(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id(), _resolve_user_role_scopes(), format_date(), generate_id() (+338 more)
|
||||
Nodes (352): _normalize_date_bound(), list_ethnics_for_select(), apply_data_scope(), _get_child_dept_ids(), get_user_dept_id(), _resolve_user_role_scopes(), format_date(), generate_id() (+344 more)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.07
|
||||
Nodes (297): CellSampleTypeCreateBody, CellSampleTypeUpdateBody, CollectionRegionCreateBody, CollectionRegionUpdateBody, CustomerCreateBody, CustomerUpdateBody, HospitalCreateBody, HospitalUpdateBody (+289 more)
|
||||
Nodes (299): CellSampleTypeCreateBody, CellSampleTypeUpdateBody, CollectionRegionCreateBody, CollectionRegionUpdateBody, CustomerCreateBody, CustomerUpdateBody, HospitalCreateBody, HospitalUpdateBody (+291 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.02
|
||||
Nodes (202): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci(), batch_review(), _dec() (+194 more)
|
||||
Nodes (180): get_next_cell_product_code(), build_void_type_label_map(), format_protocol_status_label(), resolve_void_type_label(), _ancestor_link_from_cell_product_input(), _ancestor_sample_chain_link(), _apply_cell_product_status_change(), _build_ancestor_chain() (+172 more)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.02
|
||||
Nodes (112): get_designer_data(), _error_json(), 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, sqlalchemy_exception_handler(), unhandled_exception_handler(), BaseHTTPMiddleware, parse_admin_request_json() (+104 more)
|
||||
Nodes (173): api_save_application(), _fmt_dt(), get_handover_by_schedule(), get_outbound_handover(), get_outbound_handover_view(), _handover_row_to_dict(), _handover_view_dict(), _parse_handover_time() (+165 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.03
|
||||
Nodes (135): 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() (+127 more)
|
||||
Nodes (157): eq_unicode(), like_unicode(), MySQL 字符串比较/模糊匹配时统一排序规则,避免 Illegal mix of collations。, 跨表字符串等值比较(JOIN / WHERE)时统一为 utf8mb4_unicode_ci。, 将列显式设为 utf8mb4_unicode_ci。, unicode_ci(), batch_review(), _dec() (+149 more)
|
||||
|
||||
### Community 9 - "Community 9"
|
||||
Cohesion: 0.04
|
||||
Nodes (114): _app_to_dict(), create_app(), _create_version(), delete_app(), delete_group(), delete_role(), _dumps(), ensure_presets() (+106 more)
|
||||
Cohesion: 0.02
|
||||
Nodes (96): get_designer_data(), _error_json(), 数据库异常:返回 JSON 并保留 CORS 头,避免浏览器只报跨域错误, 未捕获异常:统一 JSON 500,确保跨域场景下仍有 Access-Control-Allow-Origin, sqlalchemy_exception_handler(), unhandled_exception_handler(), BaseHTTPMiddleware, parse_admin_request_json() (+88 more)
|
||||
|
||||
### Community 10 - "Community 10"
|
||||
Cohesion: 0.04
|
||||
Nodes (114): build_void_type_label_map(), format_protocol_status_label(), resolve_void_type_label(), join_equipment_ids(), parse_equipment_ids(), 工艺/步骤设备多选:逗号分隔 ID 与名称快照解析, 校验设备列表,返回 (equipment_ids 逗号串, equipment_name 逗号串快照)。, resolve_equipment_list_snapshot() (+106 more)
|
||||
Cohesion: 0.03
|
||||
Nodes (126): _app_to_dict(), create_app(), _create_version(), delete_app(), delete_group(), delete_role(), _dumps(), ensure_presets() (+118 more)
|
||||
|
||||
### Community 11 - "Community 11"
|
||||
Cohesion: 0.04
|
||||
Nodes (84): _avatar_url_field(), _build_current_user_payload(), _build_user_info_payload(), get_current_user_profile(), get_web_auth_menu_codes(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/zkxw.sql 基线) (+76 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (73): _avatar_url_field(), _build_current_user_payload(), _build_user_info_payload(), get_current_user_profile(), _jwt_user_payload(), logout(), 公共接口(Web 登录、刷新 Token、登出;用户模型对齐 docs/sql/zkxw.sql 基线), Web 端登录用 RSA 公钥(PKCS#1 v1.5,与 JSEncrypt 一致) (+65 more)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.45
|
||||
Nodes (71): BatchStockInBody, BatchStockInItem, BatchStockOutBody, BatchStockOutItem, ConsumableCreateBody, ConsumablePackCreateBody, ConsumablePackUpdateBody, ConsumableUpdateBody (+63 more)
|
||||
|
||||
### Community 13 - "Community 13"
|
||||
Cohesion: 0.06
|
||||
Nodes (70): api_save_application(), auto_generate_schedules(), complete_application(), create_application(), create_basic_experiment_sale_schedules(), create_infusion_plan(), create_schedule(), _create_schedule_products() (+62 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (70): aggregate_slot_stats_by_facility(), _apply_slot_select_base_filters(), _apply_slot_select_query_filters(), batch_create_facilities(), batch_create_slots(), _build_node_path_cache(), _build_slot_keyword_sql_filters(), clear_slots_by_facility_node() (+62 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
Cohesion: 0.07
|
||||
Nodes (51): _fmt_dt(), get_handover_by_schedule(), get_outbound_handover(), get_outbound_handover_view(), _handover_row_to_dict(), _handover_view_dict(), _parse_handover_time(), 供输注计划 detail 聚合的交接只读信息。 (+43 more)
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.12
|
||||
Nodes (10): 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, 小程序调起支付的二次签名参数(与公众号 JSAPI 规则一致), 统一下单 (V2 API) Args: out_trade_no: 商户订单号 tot, 生成签名 V3 (SHA256 with RSA), wechat_pay() (+2 more)
|
||||
|
||||
### Community 16 - "Community 16"
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.19
|
||||
Nodes (27): _amount_for_row(), _batch_map(), deduct_for_task(), _deduct_task_usage_legacy_batch(), _display_remark(), _fmt_date_val(), _linked_qc_task_no_map(), list_linked_task_usages() (+19 more)
|
||||
|
||||
### Community 17 - "Community 17"
|
||||
### Community 16 - "Community 16"
|
||||
Cohesion: 0.19
|
||||
Nodes (23): add_step(), copy_step(), _create_step_consumable(), _create_step_data_collection(), _create_step_output(), _create_step_reagent(), get_route(), get_route_detail() (+15 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.17
|
||||
Nodes (19): batch_create_checkups(), create_checkup(), delete_actual_item(), delete_reserve_item(), get_checkup_by_application(), get_checkup_by_id(), list_actual_items(), list_checkups_paginated() (+11 more)
|
||||
### Community 17 - "Community 17"
|
||||
Cohesion: 0.16
|
||||
Nodes (22): _dec(), _fmt_dt(), list_stock_logs(), _row_to_dict(), _user_nick_name_map(), _apply_qc_status_filter(), _base_query(), _derive_qc_conclusion() (+14 more)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
### Community 18 - "Community 18"
|
||||
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)
|
||||
|
||||
### Community 20 - "Community 20"
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.2
|
||||
Nodes (19): _code_exists(), create_material(), _dec(), _fmt_dt(), get_material(), get_material_entity(), get_my_usages(), _is_enabled_status() (+11 more)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.23
|
||||
Nodes (17): _apply_qc_status_filter(), _base_query(), _derive_qc_conclusion(), _ensure_notification(), _eq_ci(), _fetch_completed_tasks(), _fmt_dt(), generate_sms_content() (+9 more)
|
||||
|
||||
### Community 22 - "Community 22"
|
||||
### Community 20 - "Community 20"
|
||||
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 23 - "Community 23"
|
||||
### Community 21 - "Community 21"
|
||||
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 24 - "Community 24"
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.24
|
||||
Nodes (11): deduct_for_step(), _display_remark(), list_stock_logs(), _parse_receiver_purpose_from_remark(), 耗材变动记录 CRUD(biz_consumable_stock_log), 撤销步骤此前 step_save 扣减,便于重新填报。, 扣减耗材库存并生成变动记录。调用方控制事务,本函数不 commit。, _resolve_receiver_purpose() (+3 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
### Community 23 - "Community 23"
|
||||
Cohesion: 0.31
|
||||
Nodes (10): _build_tree(), _cascade_soft_delete(), _collect_with_ancestors(), get_dept(), list_depts(), list_depts_tree(), 保留匹配节点及其全部上级,供关键词检索后仍能正确组树。, _row_to_dict() (+2 more)
|
||||
|
||||
### Community 26 - "Community 26"
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.33
|
||||
Nodes (8): _build_tree(), _cascade_soft_delete(), get_menu(), list_menus(), list_menus_tree(), _row_to_dict(), soft_delete_menu(), update_menu()
|
||||
|
||||
### Community 27 - "Community 27"
|
||||
### Community 25 - "Community 25"
|
||||
Cohesion: 0.29
|
||||
Nodes (2): BaseModel, SoftDeleteModel
|
||||
|
||||
### Community 28 - "Community 28"
|
||||
### Community 26 - "Community 26"
|
||||
Cohesion: 0.38
|
||||
Nodes (6): derive_legacy_status_from_three(), derive_three_status_from_legacy(), 阶段A兼容:从旧 status 推导三字段。 约束:旧 status 本身混合了支付/配送/订单生命周期,因此只能尽力推断; 若业务侧已有更精确, 阶段A兼容:从三字段反推旧 status(用于旧前端/旧筛选参数兼容)。, ThreeStatus, _to_decimal()
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.6
|
||||
Nodes (5): _dec(), _fmt_dt(), list_stock_logs(), _row_to_dict(), _user_nick_name_map()
|
||||
|
||||
### Community 30 - "Community 30"
|
||||
### Community 27 - "Community 27"
|
||||
Cohesion: 0.5
|
||||
Nodes (3): BaseSettings, Config, Settings
|
||||
|
||||
### Community 31 - "Community 31"
|
||||
### Community 28 - "Community 28"
|
||||
Cohesion: 0.5
|
||||
Nodes (2): _auto_fill_create_dept_id(), ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID
|
||||
|
||||
### Community 32 - "Community 32"
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.67
|
||||
Nodes (2): get_menu_list(), 运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,5 个一级菜单分组)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
### Community 30 - "Community 30"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 质检物料金额查看授权:专用角色与菜单权限常量。
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
### Community 31 - "Community 31"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 请求级别的用户上下文变量 通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
### Community 32 - "Community 32"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)
|
||||
|
||||
### Community 38 - "Community 38"
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 发送订单状态通知 Args: openid: 用户openid ord
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
### Community 36 - "Community 36"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 发送支付成功通知 Args: openid: 用户openid ord
|
||||
|
||||
### Community 40 - "Community 40"
|
||||
### Community 37 - "Community 37"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 发送配送通知 Args: openid: 配送员openid task
|
||||
|
||||
### Community 41 - "Community 41"
|
||||
### Community 38 - "Community 38"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 发送配送时效预警 Args: openid: 配送员openid ta
|
||||
|
||||
### Community 42 - "Community 42"
|
||||
### Community 39 - "Community 39"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 发送退款结果通知 Args: openid: 用户openid ord
|
||||
|
||||
### Community 43 - "Community 43"
|
||||
### Community 40 - "Community 40"
|
||||
Cohesion: 1.0
|
||||
Nodes (1): 发送催单通知给配送员 Args: deliver_openid: 配送员openid
|
||||
|
||||
## Knowledge Gaps
|
||||
- **141 isolated node(s):** `刷新会话 TTL(refreshToken 续期;已登录用户每次 API 校验通过后滑动续期)`, `写入 refreshToken(用于 one-time 使用/吊销)`, `根据 token 获取当前用户(包含 Redis 会话校验;会话滑动续期)`, `登录凭据 RSA 解密(与前端 JSEncrypt PKCS#1 v1.5 兼容)。`, `加载 RSA 密钥对:优先环境变量,否则使用内置固定默认密钥。` (+136 more)
|
||||
These have ≤1 connection - possible missing edges or undocumented components.
|
||||
- **Thin community `Community 27`** (8 nodes): `BaseModel`, `.to_dict()`, `get_active()`, `base.py`, `SoftDeleteModel`, `.restore()`, `.soft_delete()`, `__tablename__()`
|
||||
- **Thin community `Community 25`** (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 31`** (4 nodes): `_auto_fill_create_dept_id()`, `get_db()`, `database.py`, `ORM before_insert 钩子:当 create_dept_id 为空时,自动从请求上下文填充当前用户部门 ID`
|
||||
- **Thin community `Community 28`** (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 32`** (3 nodes): `get_menu_list()`, `menu.py`, `运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,5 个一级菜单分组)`
|
||||
- **Thin community `Community 29`** (3 nodes): `get_menu_list()`, `menu.py`, `运营端菜单接口(与 web-admin 前端静态路由 sqxp.ts 对齐,5 个一级菜单分组)`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 33`** (2 nodes): `qc_material_amount_auth_constants.py`, `质检物料金额查看授权:专用角色与菜单权限常量。`
|
||||
- **Thin community `Community 30`** (2 nodes): `qc_material_amount_auth_constants.py`, `质检物料金额查看授权:专用角色与菜单权限常量。`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 34`** (2 nodes): `context.py`, `请求级别的用户上下文变量 通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传`
|
||||
- **Thin community `Community 31`** (2 nodes): `context.py`, `请求级别的用户上下文变量 通过 contextvars 在请求处理链路中传递当前用户信息, 供 SQLAlchemy 事件监听器等底层机制使用,避免逐层手动传`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 35`** (2 nodes): `__init__.py`, `API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)`
|
||||
- **Thin community `Community 32`** (2 nodes): `__init__.py`, `API 路由包(骨架:公共鉴权 + 静态菜单 + 运营端占位)`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 38`** (1 nodes): `发送订单状态通知 Args: openid: 用户openid ord`
|
||||
- **Thin community `Community 35`** (1 nodes): `发送订单状态通知 Args: openid: 用户openid ord`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 39`** (1 nodes): `发送支付成功通知 Args: openid: 用户openid ord`
|
||||
- **Thin community `Community 36`** (1 nodes): `发送支付成功通知 Args: openid: 用户openid ord`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 40`** (1 nodes): `发送配送通知 Args: openid: 配送员openid task`
|
||||
- **Thin community `Community 37`** (1 nodes): `发送配送通知 Args: openid: 配送员openid task`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 41`** (1 nodes): `发送配送时效预警 Args: openid: 配送员openid ta`
|
||||
- **Thin community `Community 38`** (1 nodes): `发送配送时效预警 Args: openid: 配送员openid ta`
|
||||
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 39`** (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: deliver_openid: 配送员openid`
|
||||
- **Thin community `Community 40`** (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 2` to `Community 1`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 9`, `Community 11`, `Community 12`, `Community 14`, `Community 23`, `Community 24`?**
|
||||
- **Why does `SysUser` connect `Community 2` to `Community 1`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 21`, `Community 22`?**
|
||||
_High betweenness centrality (0.134) - this node is a cross-community bridge._
|
||||
- **Why does `generate_uuid()` connect `Community 1` to `Community 0`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 16`, `Community 17`, `Community 19`, `Community 20`, `Community 21`, `Community 23`, `Community 24`?**
|
||||
- **Why does `generate_uuid()` connect `Community 1` to `Community 0`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 21`, `Community 22`?**
|
||||
_High betweenness centrality (0.045) - this node is a cross-community bridge._
|
||||
- **Why does `success_response()` connect `Community 0` to `Community 32`, `Community 2`, `Community 4`, `Community 7`, `Community 8`, `Community 11`, `Community 13`?**
|
||||
- **Why does `success_response()` connect `Community 0` to `Community 2`, `Community 4`, `Community 6`, `Community 7`, `Community 9`, `Community 11`, `Community 29`?**
|
||||
_High betweenness centrality (0.037) - this node is a cross-community bridge._
|
||||
- **Are the 798 inferred relationships involving `str` (e.g. with `unhandled_exception_handler()` and `get_current_user_by_token()`) actually correct?**
|
||||
_`str` has 798 INFERRED edges - model-reasoned connections that need verification._
|
||||
|
||||
@@ -57,12 +57,12 @@
|
||||
</div>
|
||||
<div id="legend"></div>
|
||||
</div>
|
||||
<div id="stats">4867 nodes · 26933 edges · 48 communities</div>
|
||||
<div id="stats">4867 nodes · 26935 edges · 45 communities</div>
|
||||
</div>
|
||||
<script>
|
||||
const RAW_NODES = [{"id": "init_py", "label": "__init__.py", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 36, "community_name": "Community 36", "source_file": "__init__.py", "file_type": "code", "degree": 0}, {"id": "main_py", "label": "main.py", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "main.py", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 7}, {"id": "app_main_lifespan", "label": "lifespan()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "lifespan()", "community": 11, "community_name": "Community 11", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_error_json", "label": "_error_json()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "_error_json()", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 3}, {"id": "app_main_sqlalchemy_exception_handler", "label": "sqlalchemy_exception_handler()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "sqlalchemy_exception_handler()", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_unhandled_exception_handler", "label": "unhandled_exception_handler()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "unhandled_exception_handler()", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 5}, {"id": "app_main_mask_secret", "label": "_mask_secret()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_mask_secret()", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_root", "label": "root()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "root()", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_health_check", "label": "health_check()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "health_check()", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_rationale_81", "label": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "app_main_rationale_92", "label": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "community": 7, "community_name": "Community 7", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "tasks_init_py", "label": "__init__.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 11, "community_name": "Community 11", "source_file": "tasks/__init__.py", "file_type": "code", Line truncated
|
||||
const RAW_EDGES = [{"from": "main_py", "to": "app_main_lifespan", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_error_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_sqlalchemy_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_unhandled_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_mask_secret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_root", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_health_check", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_lifespan", "to": "core_login_crypto_ensure_initialized", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_init_scheduled_tasks", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_shutdown_scheduler", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_error_json", "to": "app_main_sqlalchemy_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_error_json", "to": "app_main_unhandled_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "app_main_rationale_81", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "app_main_rationale_92", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_unhandled_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "str", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "tasks_init_py", "to": "tasks_init_init_scheduled_tasks", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "tasks_init_py", "to": "tasks_init_shutdown_scheduler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_redis_session_enabled", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_get_redis_client", "labeLine truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 973}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 798}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 621}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 426}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 387}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 299}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 215}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 182}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 141}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 135}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 121}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 96}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 74}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 73}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 55}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 29}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 28}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 25}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 21}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 21}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 20}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 19}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 13}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 12}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 12}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 11}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 10}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 8}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 7}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 6}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 4}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 4}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 3}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 2}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 2}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 2}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 1}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 1}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 1}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 1}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 1}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 1}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 1}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 1}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 1}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 1}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 1}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 1}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 0}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 0}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 0}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 0}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 0}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 0}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 0}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 0}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 0}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 0}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 0}];
|
||||
const RAW_NODES = [{"id": "init_py", "label": "__init__.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 33, "community_name": "Community 33", "source_file": "__init__.py", "file_type": "code", "degree": 0}, {"id": "main_py", "label": "main.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "main.py", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 7}, {"id": "app_main_lifespan", "label": "lifespan()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "lifespan()", "community": 11, "community_name": "Community 11", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_error_json", "label": "_error_json()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "_error_json()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 3}, {"id": "app_main_sqlalchemy_exception_handler", "label": "sqlalchemy_exception_handler()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "sqlalchemy_exception_handler()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 4}, {"id": "app_main_unhandled_exception_handler", "label": "unhandled_exception_handler()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "unhandled_exception_handler()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 5}, {"id": "app_main_mask_secret", "label": "_mask_secret()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_mask_secret()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_root", "label": "root()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "root()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_health_check", "label": "health_check()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "health_check()", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "code", "degree": 1}, {"id": "app_main_rationale_81", "label": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u6570\u636e\u5e93\u5f02\u5e38\uff1a\u8fd4\u56de JSON \u5e76\u4fdd\u7559 CORS \u5934\uff0c\u907f\u514d\u6d4f\u89c8\u5668\u53ea\u62a5\u8de8\u57df\u9519\u8bef", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "app_main_rationale_92", "label": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "\u672a\u6355\u83b7\u5f02\u5e38\uff1a\u7edf\u4e00 JSON 500\uff0c\u786e\u4fdd\u8de8\u57df\u573a\u666f\u4e0b\u4ecd\u6709 Access-Control-Allow-Origin", "community": 9, "community_name": "Community 9", "source_file": "main.py", "file_type": "rationale", "degree": 3}, {"id": "tasks_init_py", "label": "__init__.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 11, "community_name": "Community 11", "source_file": "tasks/__init__.py", "file_type": "code", Line truncated
|
||||
const RAW_EDGES = [{"from": "main_py", "to": "app_main_lifespan", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_error_json", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_sqlalchemy_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_unhandled_exception_handler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_mask_secret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_root", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_py", "to": "app_main_health_check", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_lifespan", "to": "core_login_crypto_ensure_initialized", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_init_scheduled_tasks", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_lifespan", "to": "tasks_init_shutdown_scheduler", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_error_json", "to": "app_main_sqlalchemy_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_error_json", "to": "app_main_unhandled_exception_handler", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "app_main_rationale_81", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_sqlalchemy_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "app_main_rationale_92", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_main_unhandled_exception_handler", "to": "exception", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_unhandled_exception_handler", "to": "str", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_81", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_request_log_middleware_apirequestlogmiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "app_main_rationale_92", "to": "core_api_crypto_middleware_apicryptomiddleware", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "tasks_init_py", "to": "tasks_init_init_scheduled_tasks", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "tasks_init_py", "to": "tasks_init_shutdown_scheduler", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_redis_session_enabled", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_py", "to": "core_auth_get_redis_client", "labeLine truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 984}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 809}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 621}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 425}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 394}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 301}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 191}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 184}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 167}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 163}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 148}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 84}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 74}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 72}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 29}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 28}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 25}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 25}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 21}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 20}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 13}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 12}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 12}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 11}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 10}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 8}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 7}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 4}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 4}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 3}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 2}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 2}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 2}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 1}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 1}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 1}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 1}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 1}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 1}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 1}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 1}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 1}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 1}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 1}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 1}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 0}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 0}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 0}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 0}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 0}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 0}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 0}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 0}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 0}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 0}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 0}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 0}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 0}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 0}];
|
||||
|
||||
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
||||
function esc(s) {
|
||||
|
||||
+10655
-10631
File diff suppressed because it is too large.
Load diff
@@ -31,7 +31,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/material.py": 1782894693.6389399,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/production_material.py": 1782404882.9262497,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/qc_param.py": 1782379593.174925,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py": 1785207107.9364655,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/models.py": 1785239799.753484,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/cleanroom_garment.py": 1781347080.6165943,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/__init__.py": 1781344070.5899634,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/research_donation.py": 1783920516.0199852,
|
||||
@@ -40,7 +40,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/models/clinical_payment.py": 1779834956.9588954,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/storage_release_review.py": 1781536745.2214367,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/qc_task.py": 1779597960.4337523,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py": 1781524096.254344,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/process_route.py": 1785239930.0088706,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/auth.py": 1780539434.444314,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/delivery.py": 1778578258.0949655,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/outbound_release_review.py": 1779968230.0408957,
|
||||
@@ -78,7 +78,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/storage_release_review.py": 1785145511.4512417,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/equipment.py": 1782717312.9816003,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_task.py": 1785145511.4501932,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py": 1785145511.4461625,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/process_route.py": 1785239935.4692264,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_code.py": 1782709076.5173395,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_task_result.py": 1782379630.9640372,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/outbound_release_review.py": 1781603141.940902,
|
||||
@@ -100,7 +100,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/material_usage.py": 1782894693.7808309,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_material_usage.py": 1781513732.7796721,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sop_document.py": 1779265721.9928973,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py": 1785209208.399707,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/production_task.py": 1785240038.2612407,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/inbound_sample_special.py": 1782890475.769446,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/qc_third_party_item.py": 1779265661.482352,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/crud/sample_production_reception.py": 1782722028.9202535,
|
||||
@@ -209,7 +209,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_sms_notification.py": 1780325524.907156,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/sample_reception.py": 1782719108.3741593,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/insurance_company.py": 1781410837.9443986,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py": 1785145511.4429283,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/production.py": 1785239934.7450314,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/protocol_sample_collection.py": 1780457788.2093296,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/leave.py": 1779266168.8693042,
|
||||
"/Users/wuzilong/work/00code/zkxw/backend/app/api/clinical_payment.py": 1781750841.074568,
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
-- 工艺路线增加路线级默认设备(派发任务时带入任务设备面板)
|
||||
-- 执行:在目标库运行本脚本。
|
||||
|
||||
ALTER TABLE `biz_process_route`
|
||||
ADD COLUMN `equipment_ids` varchar(1000) DEFAULT NULL COMMENT '默认设备ID(biz_equipment.id,逗号分隔)' AFTER `is_current`,
|
||||
ADD COLUMN `equipment_name` varchar(1000) DEFAULT NULL COMMENT '默认设备名称快照(逗号分隔)' AFTER `equipment_ids`;
|
||||
@@ -8082,6 +8082,8 @@ CREATE TABLE `biz_process_route` (
|
||||
`product_type_id` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '产品类型id',
|
||||
`version` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '版本号',
|
||||
`is_current` char(1) COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '是否当前版本(0-否 1-是)',
|
||||
`equipment_ids` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '默认设备ID(biz_equipment.id,逗号分隔)',
|
||||
`equipment_name` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '默认设备名称快照(逗号分隔)',
|
||||
`tenant_no` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'zkxw' COMMENT '租户编号',
|
||||
`order_num` int(11) DEFAULT NULL COMMENT '排序号',
|
||||
`remark` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
|
||||
|
||||
@@ -0,0 +1,452 @@
|
||||
# 工艺路线默认设备 Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** 在工艺路线「路线图配置」中预制路线级默认设备,派发生产任务选中该路线时自动带入任务「设备」面板。
|
||||
|
||||
**Architecture:** `biz_process_route` 新增 `equipment_ids` / `equipment_name`;路线更新接口落库快照;创建任务在 `_clone_route_to_task` 同时把路线默认设备拷到 `biz_production_task`。前端在 `ProcessRouteTab` 路线图配置中间栏加「默认设备」虚拟卡,右侧复用 `TaskEquipmentPanel`。
|
||||
|
||||
**Tech Stack:** FastAPI / SQLAlchemy / Pydantic v2、Vue 3、Element Plus、现有 `resolve_equipment_list_snapshot` / `TaskEquipmentPanel`
|
||||
|
||||
**Spec:** `docs/superpowers/specs/2026-07-28-process-route-default-equipment-design.md`
|
||||
|
||||
---
|
||||
|
||||
## File Structure
|
||||
|
||||
| File | Responsibility |
|
||||
|------|----------------|
|
||||
| `docs/sql/alter_biz_process_route_equipment.sql` | ALTER 增加路线默认设备字段 |
|
||||
| `backend/app/models/models.py` | `BizProcessRoute` 列定义 |
|
||||
| `backend/app/schemas/process_route.py` | UpdateBody 增加 `equipmentIds` |
|
||||
| `backend/app/crud/process_route.py` | 序列化 + `update_route` 快照写入 |
|
||||
| `backend/app/api/production.py` | update route 传入 `equipment_ids` |
|
||||
| `backend/app/crud/production_task.py` | 创建任务时拷贝路线默认设备 |
|
||||
| `web-admin/src/views/production/process/ProcessRouteTab.vue` | 路线图配置 UI + 保存 |
|
||||
| `web-admin/src/views/production/production-work-order/TaskEquipmentPanel.vue` | 复用(只读引用,不改行为除非必要) |
|
||||
|
||||
派发任务前端无需改:创建后 `useTaskStepEditor` 已从任务详情读 `equipmentIds`。
|
||||
|
||||
---
|
||||
|
||||
### Task 1: DB 迁移 + Model
|
||||
|
||||
**Files:**
|
||||
- Create: `docs/sql/alter_biz_process_route_equipment.sql`
|
||||
- Modify: `backend/app/models/models.py`(`BizProcessRoute`,约 2768–2786 行)
|
||||
|
||||
- [x] **Step 1: 写迁移 SQL**
|
||||
|
||||
```sql
|
||||
-- 工艺路线增加路线级默认设备(派发任务时带入任务设备面板)
|
||||
-- 执行:在目标库运行本脚本。
|
||||
|
||||
ALTER TABLE `biz_process_route`
|
||||
ADD COLUMN `equipment_ids` varchar(1000) DEFAULT NULL COMMENT '默认设备ID(biz_equipment.id,逗号分隔)' AFTER `is_current`,
|
||||
ADD COLUMN `equipment_name` varchar(1000) DEFAULT NULL COMMENT '默认设备名称快照(逗号分隔)' AFTER `equipment_ids`;
|
||||
```
|
||||
|
||||
- [ ] **Step 2: 更新 SQLAlchemy 模型**
|
||||
|
||||
在 `BizProcessRoute` 中,`is_current` 与 `tenant_no` 之间插入:
|
||||
|
||||
```python
|
||||
equipment_ids = Column(String(1000), nullable=True, comment="默认设备ID(逗号分隔)")
|
||||
equipment_name = Column(String(1000), nullable=True, comment="默认设备名称快照(逗号分隔)")
|
||||
```
|
||||
|
||||
- [ ] **Step 3: 语法校验**
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate && python -c "from app.models.models import BizProcessRoute; assert hasattr(BizProcessRoute, 'equipment_ids'); print('ok')"
|
||||
```
|
||||
|
||||
Expected: `ok`
|
||||
|
||||
- [ ] **Step 4: Commit(若用户要求提交)**
|
||||
|
||||
```bash
|
||||
git add docs/sql/alter_biz_process_route_equipment.sql backend/app/models/models.py
|
||||
git commit -m "$(cat <<'EOF'
|
||||
feat(process-route): add route-level default equipment columns
|
||||
|
||||
Store default equipment_ids/equipment_name on biz_process_route for task dispatch autofill.
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Task 2: Schema + CRUD 序列化与更新
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend/app/schemas/process_route.py`
|
||||
- Modify: `backend/app/crud/process_route.py`
|
||||
- Modify: `backend/app/api/production.py`(`update_process_route`)
|
||||
|
||||
- [ ] **Step 1: UpdateBody 增加字段**
|
||||
|
||||
在 `ProcessRouteUpdateBody` 增加:
|
||||
|
||||
```python
|
||||
equipment_ids: Optional[List[str]] = Field(None, alias="equipmentIds")
|
||||
```
|
||||
|
||||
- [ ] **Step 2: `_route_row_to_dict` 返回设备**
|
||||
|
||||
在 `process_route.py` 顶部增加导入:
|
||||
|
||||
```python
|
||||
from app.crud.equipment_snapshot import parse_equipment_ids, resolve_equipment_list_snapshot
|
||||
```
|
||||
|
||||
`_route_row_to_dict` 在 `"isCurrent"` 之后增加:
|
||||
|
||||
```python
|
||||
"equipmentIds": parse_equipment_ids(getattr(r, "equipment_ids", None)),
|
||||
"equipmentName": getattr(r, "equipment_name", None) or "",
|
||||
```
|
||||
|
||||
- [ ] **Step 3: `update_route` 支持 equipment_ids**
|
||||
|
||||
将 `update_route` 改为(保留原有字段循环,并单独处理设备):
|
||||
|
||||
```python
|
||||
def update_route(db: Session, route_id: str, *, user_id: Optional[str] = None, **kwargs) -> BizProcessRoute:
|
||||
obj = get_route(db, route_id)
|
||||
if not obj:
|
||||
raise ValueError("路线不存在")
|
||||
for field in ["route_code", "route_name", "product_type_id", "version", "remark"]:
|
||||
val = kwargs.get(field)
|
||||
if val is not None:
|
||||
setattr(obj, field, (val or "").strip() or None if field != "route_code" else (val or "").strip())
|
||||
if "equipment_ids" in kwargs:
|
||||
eids, enames = resolve_equipment_list_snapshot(
|
||||
db, kwargs.get("equipment_ids"), obj.tenant_no or "zkxw"
|
||||
)
|
||||
obj.equipment_ids = eids
|
||||
obj.equipment_name = enames
|
||||
obj.update_by = user_id
|
||||
obj.update_time = datetime.now()
|
||||
db.add(obj)
|
||||
db.commit()
|
||||
db.refresh(obj)
|
||||
return obj
|
||||
```
|
||||
|
||||
注意:清空设备时前端应传 `equipmentIds: []`,且 API 必须把该键放入 kwargs(见下一步 `exclude_unset` 行为——空列表仍会 set,可进入 `"equipment_ids" in kwargs`)。
|
||||
|
||||
- [ ] **Step 4: API 传入 equipment_ids**
|
||||
|
||||
`update_process_route` 中 `update_route(...)` 增加:
|
||||
|
||||
```python
|
||||
equipment_ids=payload["equipment_ids"] if "equipment_ids" in payload else None,
|
||||
```
|
||||
|
||||
且仅当 `"equipment_ids" in payload` 时才传入;推荐写法:
|
||||
|
||||
```python
|
||||
payload = body.model_dump(exclude_unset=True, by_alias=False)
|
||||
update_kwargs = {
|
||||
"user_id": user.get("user_id"),
|
||||
"route_code": payload.get("route_code"),
|
||||
"route_name": payload.get("route_name"),
|
||||
"product_type_id": payload.get("product_type_id"),
|
||||
"version": payload.get("version"),
|
||||
"remark": payload.get("remark"),
|
||||
}
|
||||
if "equipment_ids" in payload:
|
||||
update_kwargs["equipment_ids"] = payload.get("equipment_ids")
|
||||
obj = route_svc.update_route(db, route_id, **update_kwargs)
|
||||
```
|
||||
|
||||
- [ ] **Step 5: 冒烟**
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate && python -c "
|
||||
from app.schemas.process_route import ProcessRouteUpdateBody
|
||||
from app.crud.process_route import _route_row_to_dict
|
||||
print(ProcessRouteUpdateBody.model_fields.get('equipment_ids') is not None)
|
||||
print('ok')
|
||||
"
|
||||
```
|
||||
|
||||
Expected: `True` 然后 `ok`
|
||||
|
||||
- [ ] **Step 6: Commit(若用户要求提交)**
|
||||
|
||||
```bash
|
||||
git add backend/app/schemas/process_route.py backend/app/crud/process_route.py backend/app/api/production.py
|
||||
git commit -m "$(cat <<'EOF'
|
||||
feat(process-route): serialize and update route default equipment
|
||||
|
||||
Expose equipmentIds on route APIs and persist name snapshot via resolve_equipment_list_snapshot.
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Task 3: 创建任务时带入路线默认设备
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend/app/crud/production_task.py`(`create_production_task`,约 1017–1019 行)
|
||||
|
||||
- [ ] **Step 1: 在 clone 步骤后写入任务设备**
|
||||
|
||||
在 `if route_id:` 块内,`_clone_route_to_task(...)` **之后**增加:
|
||||
|
||||
```python
|
||||
route_id = data.get("route_id")
|
||||
if route_id:
|
||||
_clone_route_to_task(db, task.id, route_id, tenant_no, user_id, create_dept_id)
|
||||
route = (
|
||||
db.query(BizProcessRoute)
|
||||
.filter(
|
||||
BizProcessRoute.id == route_id,
|
||||
BizProcessRoute.tenant_no == tenant_no,
|
||||
BizProcessRoute.del_flag == 0,
|
||||
)
|
||||
.first()
|
||||
)
|
||||
if route and (getattr(route, "equipment_ids", None) or getattr(route, "equipment_name", None)):
|
||||
task.equipment_ids = route.equipment_ids
|
||||
task.equipment_name = route.equipment_name
|
||||
db.add(task)
|
||||
```
|
||||
|
||||
确认文件顶部 / 模型导入已包含 `BizProcessRoute`(若无则从 `app.models.models` 导入)。
|
||||
|
||||
拷贝策略:直接复制路线已存快照,不二次 `resolve`(与「创建时快照」一致;设备已删时任务仍保留历史名称,与任务后续再保存时再校验的行为可接受)。
|
||||
|
||||
- [ ] **Step 2: 语法校验**
|
||||
|
||||
```bash
|
||||
cd backend && source venv/bin/activate && python -c "from app.crud.production_task import create_production_task; print('ok')"
|
||||
```
|
||||
|
||||
Expected: `ok`
|
||||
|
||||
- [ ] **Step 3: Commit(若用户要求提交)**
|
||||
|
||||
```bash
|
||||
git add backend/app/crud/production_task.py
|
||||
git commit -m "$(cat <<'EOF'
|
||||
feat(production-task): copy route default equipment on task create
|
||||
|
||||
When dispatching with a process route, autofill task equipment from route defaults.
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Task 4: 路线图配置 UI — 默认设备
|
||||
|
||||
**Files:**
|
||||
- Modify: `web-admin/src/views/production/process/ProcessRouteTab.vue`
|
||||
|
||||
- [ ] **Step 1: 增加 import**
|
||||
|
||||
在 script 中增加:
|
||||
|
||||
```ts
|
||||
import TaskEquipmentPanel from '@/views/production/production-work-order/TaskEquipmentPanel.vue'
|
||||
import { fetchAllEquipments } from '@/api/production'
|
||||
import { parseEquipmentIds } from '@/utils/equipment-select'
|
||||
```
|
||||
|
||||
(`fetchAllEquipments` 可并入现有 `@/api/production` 解构导入列表。)
|
||||
|
||||
- [ ] **Step 2: 状态与计算属性**
|
||||
|
||||
在路线图配置相关 state(`selectedStepId` 附近)增加:
|
||||
|
||||
```ts
|
||||
const selectedVirtualStep = ref<'equipment' | null>(null)
|
||||
const routeEquipmentIds = ref<string[]>([])
|
||||
const equipmentOptions = ref<Record<string, any>[]>([])
|
||||
const equipmentSaving = ref(false)
|
||||
|
||||
const virtualEquipmentCount = computed(() => routeEquipmentIds.value.length)
|
||||
const virtualEquipmentStatus = computed(() =>
|
||||
routeEquipmentIds.value.length > 0 ? 'filled' : 'empty'
|
||||
)
|
||||
```
|
||||
|
||||
- [ ] **Step 3: 加载参考数据时拉设备;详情加载时回填**
|
||||
|
||||
`loadConfigReferenceData` 的 `Promise.all` 增加 `fetchAllEquipments()`,结果赋给 `equipmentOptions`。
|
||||
|
||||
`loadRouteDetail` 在拿到 `detail` 后:
|
||||
|
||||
```ts
|
||||
routeEquipmentIds.value = parseEquipmentIds(detail.equipmentIds || detail.equipmentName)
|
||||
```
|
||||
|
||||
`handleOpenConfig` 开头重置:
|
||||
|
||||
```ts
|
||||
selectedVirtualStep.value = null
|
||||
routeEquipmentIds.value = []
|
||||
```
|
||||
|
||||
- [ ] **Step 4: 选中互斥**
|
||||
|
||||
```ts
|
||||
function selectVirtualEquipment() {
|
||||
selectedVirtualStep.value = 'equipment'
|
||||
selectedStepId.value = ''
|
||||
}
|
||||
|
||||
function selectStep(step: Record<string, any>) {
|
||||
selectedVirtualStep.value = null
|
||||
selectedStepId.value = step.id
|
||||
}
|
||||
```
|
||||
|
||||
拖入步骤 / 复制步骤后若自动选中步骤,保持 `selectedVirtualStep = null`(现有 `selectedStepId = newStep.id` 即可,并显式 `selectedVirtualStep.value = null`)。
|
||||
|
||||
- [ ] **Step 5: 保存默认设备**
|
||||
|
||||
```ts
|
||||
async function saveRouteEquipment() {
|
||||
if (!configRouteId.value) return
|
||||
equipmentSaving.value = true
|
||||
try {
|
||||
await fetchUpdateProcessRoute(configRouteId.value, {
|
||||
equipmentIds: routeEquipmentIds.value
|
||||
})
|
||||
ElMessage.success('默认设备已保存')
|
||||
} catch {
|
||||
/* 全局处理 */
|
||||
} finally {
|
||||
equipmentSaving.value = false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 6: 模板 — 中间栏虚拟卡**
|
||||
|
||||
在 `.route-config-center-dropzone` 内、`<draggable>` **之前**插入(对齐派发任务):
|
||||
|
||||
```vue
|
||||
<div
|
||||
class="virtual-step-card"
|
||||
:class="{ 'is-active': selectedVirtualStep === 'equipment' }"
|
||||
@click="selectVirtualEquipment"
|
||||
>
|
||||
<div class="virtual-step-icon virtual-step-icon--equipment">🔧</div>
|
||||
<div class="virtual-step-info">
|
||||
<div class="virtual-step-name">默认设备</div>
|
||||
</div>
|
||||
<el-tag v-if="virtualEquipmentStatus === 'filled'" type="success" size="small"
|
||||
>已选 {{ virtualEquipmentCount }} 台</el-tag
|
||||
>
|
||||
<el-tag v-else type="info" size="small">暂无</el-tag>
|
||||
</div>
|
||||
<div class="step-divider"><span>工艺步骤</span></div>
|
||||
```
|
||||
|
||||
- [ ] **Step 7: 模板 — 右侧面板**
|
||||
|
||||
将右侧 `route-config-right` 改为三态:
|
||||
|
||||
1. `selectedVirtualStep === 'equipment'` → 标题「默认设备」+ `TaskEquipmentPanel`
|
||||
2. `selectedStep` → 现有步骤详情
|
||||
3. else → 现有 empty「请选择…」
|
||||
|
||||
示例结构:
|
||||
|
||||
```vue
|
||||
<div class="route-config-right">
|
||||
<template v-if="selectedVirtualStep === 'equipment'">
|
||||
<div class="route-config-right-header">
|
||||
<h3>默认设备</h3>
|
||||
</div>
|
||||
<div class="route-config-right-body">
|
||||
<TaskEquipmentPanel
|
||||
:equipment-ids="routeEquipmentIds"
|
||||
:equipment-options="equipmentOptions"
|
||||
:saving="equipmentSaving"
|
||||
@update:equipment-ids="(ids) => (routeEquipmentIds = ids)"
|
||||
@save="saveRouteEquipment"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="selectedStep">
|
||||
<!-- 现有步骤详情不变 -->
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="route-config-right-empty">
|
||||
<el-icon :size="48" color="#d1d5db"><Rank /></el-icon>
|
||||
<p>请选择默认设备或左侧步骤查看详情</p>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
```
|
||||
|
||||
注意:`routeEquipmentIds` 是 `ref`,模板里不用 `.value`;`@update` 回调里应写 `routeEquipmentIds = ids`(模板自动解包)或脚本内函数赋值 `routeEquipmentIds.value = ids`。
|
||||
|
||||
- [ ] **Step 8: 样式**
|
||||
|
||||
在本文件 `scoped` style 中复制 `DispatchTaskDialog.vue` 的 `.virtual-step-card` / `.virtual-step-icon` / `.virtual-step-info` / `.virtual-step-name` / `.step-divider`(Fresh Mint,勿改 Token)。可省略 emoji 专用色。
|
||||
|
||||
- [ ] **Step 9: 手动验收清单**
|
||||
|
||||
1. 本地执行 `docs/sql/alter_biz_process_route_equipment.sql`
|
||||
2. 打开 `/#/production-group/production-base/process` → 工艺路线 → 路线图配置 → 点「默认设备」勾选保存 → 刷新仍在
|
||||
3. 生产工单派发任务选该路线 → 编辑阶段「设备」已预填
|
||||
4. 任务改设备不影响路线;路线改设备不影响已派发任务
|
||||
5. 不选路线派发 → 设备为空
|
||||
|
||||
- [ ] **Step 10: 更新图谱**
|
||||
|
||||
```bash
|
||||
./scripts/update-graph.sh backend
|
||||
./scripts/update-graph.sh frontend
|
||||
```
|
||||
|
||||
- [ ] **Step 11: Commit(若用户要求提交)**
|
||||
|
||||
```bash
|
||||
git add web-admin/src/views/production/process/ProcessRouteTab.vue
|
||||
git commit -m "$(cat <<'EOF'
|
||||
feat(web-admin): configure process route default equipment in route map
|
||||
|
||||
Add virtual default-equipment panel in route config and persist via update route API.
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Spec coverage(自检)
|
||||
|
||||
| Spec 要求 | Task |
|
||||
|-----------|------|
|
||||
| `biz_process_route` 加字段 | Task 1 |
|
||||
| 列表/详情返回 equipmentIds | Task 2 |
|
||||
| PUT 更新 + 快照 | Task 2 |
|
||||
| 创建任务拷贝到任务 | Task 3 |
|
||||
| 路线图配置虚拟卡 + TaskEquipmentPanel | Task 4 |
|
||||
| 派发后可改、互不影响 | Task 3 拷贝一次 + 现有任务保存 |
|
||||
| 不做步骤级 UI / 不做编辑弹窗字段 | 未列入任务 |
|
||||
|
||||
## Placeholder scan
|
||||
|
||||
无 TBD / 「类似 Task N」占位。
|
||||
|
||||
---
|
||||
|
||||
## Execution
|
||||
|
||||
Plan complete and saved to `docs/superpowers/plans/2026-07-28-process-route-default-equipment.md`.
|
||||
|
||||
**两种执行方式:**
|
||||
|
||||
1. **Subagent-Driven(推荐)** — 每任务开新子代理,任务间复审
|
||||
2. **Inline Execution** — 本会话按 executing-plans 连续做并设检查点
|
||||
|
||||
选哪种?
|
||||
@@ -0,0 +1,131 @@
|
||||
# 工艺路线默认设备(路线级)设计文档
|
||||
|
||||
> 日期: 2026-07-28
|
||||
> 状态: 已确认
|
||||
> 范围: `biz_process_route` + 工艺库「路线图配置」+ 生产任务派发带入
|
||||
> 关联: 派发任务任务级设备面板(`TaskEquipmentPanel`);历史步骤级设备设计见 `2026-06-15-process-equipment-link-design.md`(本需求不改造步骤级 UI)
|
||||
|
||||
## 1. 背景与目标
|
||||
|
||||
**现状**
|
||||
|
||||
- 【工艺库管理】→【工艺路线】→【路线图配置】可配置工序步骤,但**不能**配置路线级默认设备。
|
||||
- 【生产工单】→【派发任务】可选工艺路线生成步骤,并在任务编辑区「设备」面板配置**任务级**设备;设备需每次手选。
|
||||
- 库表已有:`biz_process` / `biz_process_route_step` / `biz_production_task` / `biz_production_task_step` 的 `equipment_ids` + `equipment_name`;**`biz_process_route` 尚无**设备字段。派发克隆路线时只拷贝步骤及子表,**不**带设备到任务。
|
||||
|
||||
**目标**
|
||||
|
||||
- 在「路线图配置」中为整条工艺路线预制一套默认设备。
|
||||
- 派发任务选中该路线时,自动将默认设备写入任务「设备」面板(可再改)。
|
||||
|
||||
**非目标**
|
||||
|
||||
- 不在新增/编辑路线弹窗配置设备。
|
||||
- 不改造工艺列表 / 路线步骤 / 任务步骤的步骤级设备 UI。
|
||||
- 不把已派发任务与路线默认设备双向同步。
|
||||
- 不做小程序端改动。
|
||||
|
||||
## 2. 已确认决策
|
||||
|
||||
| 项 | 决策 |
|
||||
|----|------|
|
||||
| 设备挂载层级 | **A. 路线级**:整条路线一套默认设备 |
|
||||
| 配置入口 | **B. 「路线图配置」弹窗**内单独「默认设备」虚拟块(对齐派发任务设备卡) |
|
||||
| 实现方案 | **方案 1**:`biz_process_route` 增加 `equipment_ids` / `equipment_name`;复用 `TaskEquipmentPanel` |
|
||||
| 带入时机 | 创建生产任务且传入 `routeId` 时,一次性拷贝到 `biz_production_task` |
|
||||
| 后续修改 | 改路线不影响已有任务;任务内改设备不回写路线 |
|
||||
| 未配设备 / 未选路线 | 任务设备为空,可手选 |
|
||||
| 复制路线 | 若后续/现有存在「复制路线」能力,须一并复制默认设备;当前仅有步骤复制则本需求不新增路线复制入口 |
|
||||
|
||||
## 3. 数据模型
|
||||
|
||||
### 3.1 `biz_process_route` 新增字段
|
||||
|
||||
在业务字段区(建议 `is_current` 之后、`tenant_no` 之前)新增:
|
||||
|
||||
| 字段 | 类型 | 说明 |
|
||||
|------|------|------|
|
||||
| `equipment_ids` | VARCHAR(1000) NULL | 关联 `biz_equipment.id`,逗号分隔 |
|
||||
| `equipment_name` | VARCHAR(1000) NULL | 设备名称快照,逗号分隔 |
|
||||
|
||||
与任务表 `biz_production_task.equipment_ids` / `equipment_name` 约定一致。
|
||||
|
||||
### 3.2 快照规则
|
||||
|
||||
- 保存路线默认设备时调用现有 `resolve_equipment_list_snapshot(db, equipment_ids, tenant_no)`,同时写入 ID 串与名称快照。
|
||||
- 派发拷贝:将路线上的 `equipment_ids`、`equipment_name` **原样写入**任务(创建时快照);任务侧后续再保存时仍走任务自己的快照解析。
|
||||
|
||||
### 3.3 与步骤级字段的关系
|
||||
|
||||
- `biz_process_route_step.equipment_*`、任务步骤 `equipment_*` **本需求不读写、不展示**。
|
||||
- 历史设计(步骤级可覆盖)保留为后续可选能力,与本需求正交。
|
||||
|
||||
## 4. 数据流
|
||||
|
||||
```
|
||||
biz_equipment(设备主数据)
|
||||
↑ 勾选引用
|
||||
biz_process_route.equipment_ids / equipment_name(路线默认设备)
|
||||
│ create_production_task(route_id=…)
|
||||
↓
|
||||
biz_production_task.equipment_ids / equipment_name(任务设备面板)
|
||||
```
|
||||
|
||||
步骤克隆 `_clone_route_to_task` 仍只负责步骤与试剂/耗材/产出/采集子表;**路线默认设备在创建任务主表时额外写入**(可在 `_clone_route_to_task` 前后对 `BizProductionTask` 赋值,或抽小函数 `_apply_route_default_equipment`)。
|
||||
|
||||
## 5. 接口
|
||||
|
||||
| 接口 | 变更 |
|
||||
|------|------|
|
||||
| `GET /web/admin/process-routes` | 列表项增加 `equipmentIds`(数组)、`equipmentName`(可选,展示用) |
|
||||
| `GET /web/admin/process-routes/{id}` | 详情(含路线头)返回同上 |
|
||||
| `PUT /web/admin/process-routes/{id}` | `ProcessRouteUpdateBody` 增加可选 `equipmentIds`;有传则解析快照并更新 |
|
||||
| 创建生产任务(现有派发 API) | 存在 `route_id` 时,将路线默认设备写入新任务 |
|
||||
|
||||
前端:`fetchUpdateProcessRoute(id, { equipmentIds })` 即可;列表/详情类型补字段。
|
||||
|
||||
序列化建议与任务侧一致:`equipmentIds` 为 `string[]`(`parse_equipment_ids`),`equipmentName` 为字符串。
|
||||
|
||||
## 6. UI(路线图配置)
|
||||
|
||||
对齐 `DispatchTaskDialog` 中间栏虚拟设备卡:
|
||||
|
||||
1. **中间栏顶部**:虚拟卡片「默认设备」
|
||||
- 未选设备:`el-tag` info「暂无」
|
||||
- 已选:`el-tag` success「已选 N 台」
|
||||
2. **选中逻辑**:点击「默认设备」→ 清除步骤选中;点击步骤 → 清除「默认设备」选中。右侧互斥展示。
|
||||
3. **右侧**:复用 `TaskEquipmentPanel`
|
||||
- `equipmentOptions`:与派发/任务编辑相同数据源(如 `fetchAllEquipments` 或任务编辑选项接口中的 equipments)
|
||||
- 保存:调用 `PUT process-routes/{id}` 写 `equipmentIds`;成功后刷新本地路线头状态与标签
|
||||
4. **新增/编辑路线弹窗**:不加设备字段。
|
||||
|
||||
样式:复用已有 `virtual-step-card` / `dispatch-equipment-card` 等 class(或抽公共样式到 `route-config`),保持 Fresh Mint,勿引入小程序色值。
|
||||
|
||||
## 7. 改动文件(预期)
|
||||
|
||||
| 区域 | 文件 |
|
||||
|------|------|
|
||||
| SQL | `docs/sql/` 下新增迁移(ALTER `biz_process_route`);视需要同步 `zkxw.sql` 表结构片段 |
|
||||
| Model | `backend/app/models/models.py` → `BizProcessRoute` |
|
||||
| Schema | `backend/app/schemas/process_route.py` → UpdateBody(及如有独立详情结构) |
|
||||
| CRUD | `backend/app/crud/process_route.py` → `_route_row_to_dict` / `update_route` |
|
||||
| CRUD | `backend/app/crud/production_task.py` → 创建任务带入路线默认设备 |
|
||||
| API | `backend/app/api/production.py` → update route 传 `equipment_ids` |
|
||||
| UI | `web-admin/src/views/production/process/ProcessRouteTab.vue` |
|
||||
| 可选复用 | `TaskEquipmentPanel.vue`、`equipment-select` 工具 |
|
||||
|
||||
完成后执行 `./scripts/update-graph.sh backend` 与 `./scripts/update-graph.sh frontend`(或按实际改动项目)。
|
||||
|
||||
## 8. 验收标准
|
||||
|
||||
1. 路线图配置可勾选并保存默认设备;关闭再打开仍显示。
|
||||
2. 派发任务选择该路线 → 进入编辑阶段后,「设备」面板已预填相同设备。
|
||||
3. 任务内修改或清空设备不影响路线;修改路线默认设备不影响已创建任务。
|
||||
4. 未选路线或路线无默认设备 → 任务设备为空。
|
||||
5. 停用设备在勾选列表中的表现与现有任务设备面板一致。
|
||||
|
||||
## 9. 测试要点
|
||||
|
||||
- 保存含多台设备、清空设备、非法/已删设备 ID 的后端校验。
|
||||
- 选路线派发 vs 不选路线派发。
|
||||
- 路线有设备但任务创建后改路线再派发新任务:新任务用新默认值,旧任务不变。
|
||||
@@ -16637,7 +16637,7 @@
|
||||
"label": "for()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/production-work-order/StepDetailPanel.vue",
|
||||
"source_location": "L920"
|
||||
"source_location": "L924"
|
||||
},
|
||||
{
|
||||
"id": "views_production_production_work_order_completeproductiontaskdialog_vue",
|
||||
@@ -17589,28 +17589,28 @@
|
||||
"label": "if()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1496"
|
||||
"source_location": "L1550"
|
||||
},
|
||||
{
|
||||
"id": "process_processroutetab_get",
|
||||
"label": "get()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1704"
|
||||
"source_location": "L1758"
|
||||
},
|
||||
{
|
||||
"id": "process_processroutetab_set",
|
||||
"label": "set()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1714"
|
||||
"source_location": "L1768"
|
||||
},
|
||||
{
|
||||
"id": "process_processroutetab_for",
|
||||
"label": "for()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1756"
|
||||
"source_location": "L1810"
|
||||
},
|
||||
{
|
||||
"id": "views_production_process_category_index_vue",
|
||||
@@ -51308,7 +51308,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/production-work-order/StepDetailPanel.vue",
|
||||
"source_location": "L920",
|
||||
"source_location": "L924",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -53369,7 +53369,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1496",
|
||||
"source_location": "L1550",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -53378,7 +53378,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1616",
|
||||
"source_location": "L1670",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -53387,7 +53387,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1704",
|
||||
"source_location": "L1758",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -53396,7 +53396,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1714",
|
||||
"source_location": "L1768",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -53405,7 +53405,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1756",
|
||||
"source_location": "L1810",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -70362,7 +70362,7 @@
|
||||
"confidence": "INFERRED",
|
||||
"confidence_score": 0.8,
|
||||
"source_file": "views/production/production-work-order/StepDetailPanel.vue",
|
||||
"source_location": "L922",
|
||||
"source_location": "L926",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
@@ -70752,7 +70752,7 @@
|
||||
"confidence": "INFERRED",
|
||||
"confidence_score": 0.8,
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1758",
|
||||
"source_location": "L1812",
|
||||
"weight": 1.0
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Graph Report - src (2026-07-28)
|
||||
|
||||
## Corpus Check
|
||||
- Large corpus: 898 files · ~601,587 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
|
||||
- Large corpus: 898 files · ~601,927 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
|
||||
|
||||
## Summary
|
||||
- 3141 nodes · 4411 edges · 66 communities detected
|
||||
|
||||
@@ -21391,7 +21391,7 @@
|
||||
"label": "for()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/production-work-order/StepDetailPanel.vue",
|
||||
"source_location": "L920",
|
||||
"source_location": "L924",
|
||||
"id": "production_work_order_stepdetailpanel_for",
|
||||
"community": 1,
|
||||
"norm_label": "for()"
|
||||
@@ -22615,7 +22615,7 @@
|
||||
"label": "if()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1496",
|
||||
"source_location": "L1550",
|
||||
"id": "process_processroutetab_if",
|
||||
"community": 10,
|
||||
"norm_label": "if()"
|
||||
@@ -22624,7 +22624,7 @@
|
||||
"label": "get()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1704",
|
||||
"source_location": "L1758",
|
||||
"id": "process_processroutetab_get",
|
||||
"community": 0,
|
||||
"norm_label": "get()"
|
||||
@@ -22633,7 +22633,7 @@
|
||||
"label": "set()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1714",
|
||||
"source_location": "L1768",
|
||||
"id": "process_processroutetab_set",
|
||||
"community": 10,
|
||||
"norm_label": "set()"
|
||||
@@ -22642,7 +22642,7 @@
|
||||
"label": "for()",
|
||||
"file_type": "code",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1756",
|
||||
"source_location": "L1810",
|
||||
"id": "process_processroutetab_for",
|
||||
"community": 10,
|
||||
"norm_label": "for()"
|
||||
@@ -67147,7 +67147,7 @@
|
||||
"confidence": "INFERRED",
|
||||
"confidence_score": 0.8,
|
||||
"source_file": "views/production/production-work-order/StepDetailPanel.vue",
|
||||
"source_location": "L922",
|
||||
"source_location": "L926",
|
||||
"weight": 1.0,
|
||||
"_src": "production_work_order_stepdetailpanel_for",
|
||||
"_tgt": "storage_facility_index_push",
|
||||
@@ -67195,7 +67195,7 @@
|
||||
"confidence": "INFERRED",
|
||||
"confidence_score": 0.8,
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1758",
|
||||
"source_location": "L1812",
|
||||
"weight": 1.0,
|
||||
"_src": "process_processroutetab_for",
|
||||
"_tgt": "storage_facility_index_push",
|
||||
@@ -69954,7 +69954,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/production-work-order/StepDetailPanel.vue",
|
||||
"source_location": "L920",
|
||||
"source_location": "L924",
|
||||
"weight": 1.0,
|
||||
"_src": "views_production_production_work_order_stepdetailpanel_vue",
|
||||
"_tgt": "production_work_order_stepdetailpanel_for",
|
||||
@@ -71706,7 +71706,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1616",
|
||||
"source_location": "L1670",
|
||||
"weight": 1.0,
|
||||
"_src": "views_production_process_processroutetab_vue",
|
||||
"_tgt": "process_processroutetab_if",
|
||||
@@ -71718,7 +71718,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1704",
|
||||
"source_location": "L1758",
|
||||
"weight": 1.0,
|
||||
"_src": "views_production_process_processroutetab_vue",
|
||||
"_tgt": "process_processroutetab_get",
|
||||
@@ -71730,7 +71730,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1714",
|
||||
"source_location": "L1768",
|
||||
"weight": 1.0,
|
||||
"_src": "views_production_process_processroutetab_vue",
|
||||
"_tgt": "process_processroutetab_set",
|
||||
@@ -71742,7 +71742,7 @@
|
||||
"relation": "contains",
|
||||
"confidence": "EXTRACTED",
|
||||
"source_file": "views/production/process/ProcessRouteTab.vue",
|
||||
"source_location": "L1756",
|
||||
"source_location": "L1810",
|
||||
"weight": 1.0,
|
||||
"_src": "views_production_process_processroutetab_vue",
|
||||
"_tgt": "process_processroutetab_for",
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/common/index.ts": 1781272556.3597305,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/directive/directive.d.ts": 1781272556.3601494,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api/api.d.ts": 1781272556.3606477,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1785235766.0868216,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1785235703.6756494,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1785243382.0793576,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1785243371.94059,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/store/index.ts": 1781272556.364766,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/router/index.ts": 1782394569.8806834,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/composables/useAttachmentActions.ts": 1783921717.4015942,
|
||||
@@ -108,7 +108,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-payment-presets.ts": 1783337255.9745116,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-labels.ts": 1785206799.7537315,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts": 1782472559.244021,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/process-material-ui.ts": 1781528129.339137,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/process-material-ui.ts": 1785243503.4279134,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-fq-params-change.ts": 1781687645.2065177,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-upload.ts": 1785145511.866446,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-payment-flow-steps.ts": 1782806499.3099828,
|
||||
@@ -442,7 +442,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue": 1782893853.82419,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionStepBadge.vue": 1783307223.0443783,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts": 1783402793.260901,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue": 1782893853.2023683,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue": 1785243517.760763,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/CompleteProductionTaskDialog.vue": 1782893853.1254928,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskInputEnhancedTable.vue": 1782893853.0951817,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchQcWorkOrderDialog.vue": 1782893852.9989007,
|
||||
@@ -496,8 +496,8 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/sample-reception-completion/index.vue": 1782893851.986683,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue": 1782893851.9189324,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/equipment/index.vue": 1783326448.9595375,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/index.vue": 1783326448.9607878,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue": 1785145511.8744867,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/index.vue": 1785243553.201682,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue": 1785243522.8533015,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process-category/index.vue": 1782893851.5846715,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process-category/OutputTypeTab.vue": 1783326448.9644928,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/index/index.vue": 1782893851.535544,
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_process_material_ui_ts", "label": "process-material-ui.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/process-material-ui.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "label": "StepDetailPanel.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1"}, {"id": "production_work_order_stepdetailpanel_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L923"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "target": "production_work_order_stepdetailpanel_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L923", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L925"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "decodeURIComponent", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L928"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "pop", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L928"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L928"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L928"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "label": "StepDetailPanel.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1"}, {"id": "production_work_order_stepdetailpanel_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L924"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "target": "production_work_order_stepdetailpanel_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L924", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L926"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "decodeURIComponent", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L929"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "pop", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L929"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L929"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L929"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "label": "ProcessRouteTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1"}, {"id": "process_processroutetab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1538"}, {"id": "process_processroutetab_get", "label": "get()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1746"}, {"id": "process_processroutetab_set", "label": "set()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1756"}, {"id": "process_processroutetab_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1798"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1538", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1658", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_get", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1746", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_set", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1756", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1798", "weight": 1.0}], "raw_calls": [{"caller_nid": "process_processroutetab_if", "callee": "mapReagentOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1540"}, {"caller_nid": "process_processroutetab_if", "callee": "mapConsumableOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1660"}, {"caller_nid": "process_processroutetab_get", "callee": "isArray", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1750"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1750"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1751"}, {"caller_nid": "process_processroutetab_get", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1751"}, {"caller_nid": "process_processroutetab_get", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1751"}, {"caller_nid": "process_processroutetab_get", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1751"}, {"caller_nid": "process_processroutetab_set", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1758"}, {"caller_nid": "process_processroutetab_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_locaLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_process_material_ui_ts", "label": "process-material-ui.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/process-material-ui.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -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": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1"}, {"id": "storage_facility_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1486"}, {"id": "storage_facility_index_push", "label": "push()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1489"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "target": "storage_facility_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1486", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "target": "storage_facility_index_push", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1489", "weight": 1.0}], "raw_calls": [{"caller_nid": "storage_facility_index_if", "callee": "set", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1487"}]}
|
||||
+1
@@ -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": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "label": "ProcessRouteTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1"}, {"id": "process_processroutetab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1537"}, {"id": "process_processroutetab_get", "label": "get()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1745"}, {"id": "process_processroutetab_set", "label": "set()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1755"}, {"id": "process_processroutetab_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1797"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1537", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1657", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_get", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1745", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_set", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1755", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1797", "weight": 1.0}], "raw_calls": [{"caller_nid": "process_processroutetab_if", "callee": "mapReagentOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1539"}, {"caller_nid": "process_processroutetab_if", "callee": "mapConsumableOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1659"}, {"caller_nid": "process_processroutetab_get", "callee": "isArray", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1749"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1749"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1750"}, {"caller_nid": "process_processroutetab_get", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1750"}, {"caller_nid": "process_processroutetab_get", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1750"}, {"caller_nid": "process_processroutetab_get", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1750"}, {"caller_nid": "process_processroutetab_set", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1757"}, {"caller_nid": "process_processroutetab_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_locaLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "label": "ProcessRouteTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1"}, {"id": "process_processroutetab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1550"}, {"id": "process_processroutetab_get", "label": "get()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1758"}, {"id": "process_processroutetab_set", "label": "set()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1768"}, {"id": "process_processroutetab_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1810"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1550", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1670", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_get", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1758", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_set", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1768", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_process_processroutetab_vue", "target": "process_processroutetab_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1810", "weight": 1.0}], "raw_calls": [{"caller_nid": "process_processroutetab_if", "callee": "mapReagentOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1552"}, {"caller_nid": "process_processroutetab_if", "callee": "mapConsumableOptionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1672"}, {"caller_nid": "process_processroutetab_get", "callee": "isArray", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1762"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1762"}, {"caller_nid": "process_processroutetab_get", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1763"}, {"caller_nid": "process_processroutetab_get", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1763"}, {"caller_nid": "process_processroutetab_get", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1763"}, {"caller_nid": "process_processroutetab_get", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1763"}, {"caller_nid": "process_processroutetab_set", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_location": "L1770"}, {"caller_nid": "process_processroutetab_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue", "source_locaLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1"}, {"id": "storage_facility_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1476"}, {"id": "storage_facility_index_push", "label": "push()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1479"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "target": "storage_facility_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1476", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_operations_storage_facility_index_vue", "target": "storage_facility_index_push", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1479", "weight": 1.0}], "raw_calls": [{"caller_nid": "storage_facility_index_if", "callee": "set", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue", "source_location": "L1477"}]}
|
||||
@@ -1,5 +1,11 @@
|
||||
/** 是否在工艺相关界面展示试剂、耗材关联(暂时隐藏) */
|
||||
export const SHOW_PROCESS_REAGENT_CONSUMABLE = false
|
||||
|
||||
/** 是否在工艺/路线/任务相关界面展示数据采集(暂时隐藏) */
|
||||
export const SHOW_PROCESS_DATA_COLLECTION = false
|
||||
|
||||
/** 是否在工艺/路线/任务相关界面展示预计时长、描述、关联SOP(暂时隐藏) */
|
||||
export const SHOW_PROCESS_DURATION_DESC_SOP = false
|
||||
|
||||
/** 工艺路线步骤详情:试剂/耗材 Tab 默认选中(产出物、数据采集为上下区块展示) */
|
||||
export const PROCESS_ROUTE_DEFAULT_SUB_TAB = 'reagent'
|
||||
@@ -336,6 +336,21 @@
|
||||
<span class="route-config-step-count">共 {{ stepList.length }} 步</span>
|
||||
</div>
|
||||
<div class="route-config-center-dropzone">
|
||||
<div
|
||||
class="virtual-step-card"
|
||||
:class="{ 'is-active': selectedVirtualStep === 'equipment' }"
|
||||
@click="selectVirtualEquipment"
|
||||
>
|
||||
<div class="virtual-step-icon virtual-step-icon--equipment">🔧</div>
|
||||
<div class="virtual-step-info">
|
||||
<div class="virtual-step-name">默认设备</div>
|
||||
</div>
|
||||
<el-tag v-if="virtualEquipmentStatus === 'filled'" type="success" size="small"
|
||||
>已选 {{ virtualEquipmentCount }} 台</el-tag
|
||||
>
|
||||
<el-tag v-else type="info" size="small">暂无</el-tag>
|
||||
</div>
|
||||
<div class="step-divider"><span>工艺步骤</span></div>
|
||||
<draggable
|
||||
v-model="stepList"
|
||||
handle=".route-config-step-handle"
|
||||
@@ -385,9 +400,23 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧:步骤详情 -->
|
||||
<!-- 右侧:默认设备 / 步骤详情 -->
|
||||
<div class="route-config-right">
|
||||
<template v-if="selectedStep">
|
||||
<template v-if="selectedVirtualStep === 'equipment'">
|
||||
<div class="route-config-right-header">
|
||||
<h3>默认设备</h3>
|
||||
</div>
|
||||
<div class="route-config-right-body">
|
||||
<TaskEquipmentPanel
|
||||
:equipment-ids="routeEquipmentIds"
|
||||
:equipment-options="equipmentOptions"
|
||||
:saving="equipmentSaving"
|
||||
@update:equipment-ids="onRouteEquipmentIdsUpdate"
|
||||
@save="saveRouteEquipment"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="selectedStep">
|
||||
<div class="route-config-right-header">
|
||||
<h3>步骤详情</h3>
|
||||
<el-button
|
||||
@@ -421,14 +450,18 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="预计时长(h)">
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP" label="预计时长(h)">
|
||||
<el-input
|
||||
v-model="selectedStep.estimatedDuration"
|
||||
placeholder="如 2"
|
||||
@change="saveStepBasic"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="描述" class="step-form-col-half">
|
||||
<el-form-item
|
||||
v-if="SHOW_PROCESS_DURATION_DESC_SOP"
|
||||
label="描述"
|
||||
class="step-form-col-half"
|
||||
>
|
||||
<el-input
|
||||
v-model="selectedStep.description"
|
||||
type="textarea"
|
||||
@@ -437,7 +470,11 @@
|
||||
@change="saveStepBasic"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联SOP" class="step-form-col-half">
|
||||
<el-form-item
|
||||
v-if="SHOW_PROCESS_DURATION_DESC_SOP"
|
||||
label="关联SOP"
|
||||
class="step-form-col-half"
|
||||
>
|
||||
<el-select
|
||||
v-model="sopIdsArr"
|
||||
multiple
|
||||
@@ -453,7 +490,10 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<div v-if="sopIdsArr.length" class="step-sop-attachment-row step-form-col-full">
|
||||
<div
|
||||
v-if="SHOW_PROCESS_DURATION_DESC_SOP && sopIdsArr.length"
|
||||
class="step-sop-attachment-row step-form-col-full"
|
||||
>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="linkedSopAttachmentFiles"
|
||||
@preview="handleSopAttachmentPreview"
|
||||
@@ -955,8 +995,8 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 数据采集 -->
|
||||
<section class="route-config-step-section">
|
||||
<!-- 数据采集(SHOW_PROCESS_DATA_COLLECTION 控制展示) -->
|
||||
<section v-if="SHOW_PROCESS_DATA_COLLECTION" class="route-config-step-section">
|
||||
<h3 class="route-config-step-section-title">数据采集</h3>
|
||||
<div class="route-config-tab-list">
|
||||
<div class="list-toolbar">
|
||||
@@ -1069,7 +1109,7 @@
|
||||
<template v-else>
|
||||
<div class="route-config-right-empty">
|
||||
<el-icon :size="48" color="#d1d5db"><Rank /></el-icon>
|
||||
<p>请选择左侧步骤查看详情</p>
|
||||
<p>请选择默认设备或左侧步骤查看详情</p>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
@@ -1094,7 +1134,9 @@
|
||||
Search
|
||||
} from '@element-plus/icons-vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import TaskEquipmentPanel from '@/views/production/production-work-order/TaskEquipmentPanel.vue'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { parseEquipmentIds } from '@/utils/equipment-select'
|
||||
import { VueDraggable as draggable } from 'vue-draggable-plus'
|
||||
import {
|
||||
fetchProcessRouteList,
|
||||
@@ -1118,11 +1160,14 @@
|
||||
fetchAllProcessCategories,
|
||||
fetchAllSopDocuments,
|
||||
fetchAllOutputTypes,
|
||||
fetchAllEquipments,
|
||||
fetchProductionProductTypeList
|
||||
} from '@/api/production'
|
||||
import { fetchItemUnitList } from '@/api/admin'
|
||||
import {
|
||||
SHOW_PROCESS_REAGENT_CONSUMABLE,
|
||||
SHOW_PROCESS_DATA_COLLECTION,
|
||||
SHOW_PROCESS_DURATION_DESC_SOP,
|
||||
PROCESS_ROUTE_DEFAULT_SUB_TAB
|
||||
} from '@/utils/process-material-ui'
|
||||
|
||||
@@ -1343,10 +1388,19 @@
|
||||
const configSuppressSave = ref(false)
|
||||
const stepList = ref<Record<string, any>[]>([])
|
||||
const selectedStepId = ref('')
|
||||
const selectedVirtualStep = ref<'equipment' | null>(null)
|
||||
const routeEquipmentIds = ref<string[]>([])
|
||||
const equipmentOptions = ref<Record<string, any>[]>([])
|
||||
const equipmentSaving = ref(false)
|
||||
const stepListLoading = ref(false)
|
||||
const activeSubTab = ref(PROCESS_ROUTE_DEFAULT_SUB_TAB)
|
||||
const processSearchKeyword = ref('')
|
||||
|
||||
const virtualEquipmentCount = computed(() => routeEquipmentIds.value.length)
|
||||
const virtualEquipmentStatus = computed(() =>
|
||||
routeEquipmentIds.value.length > 0 ? 'filled' : 'empty'
|
||||
)
|
||||
|
||||
/** 接口 isKeyMaterial / isRequired 为 "0" | "1" 字符串 */
|
||||
function toApiFlag(val: boolean | number | string | undefined): string {
|
||||
if (val === true || val === 1 || val === '1') return '1'
|
||||
@@ -1803,15 +1857,17 @@
|
||||
async function loadConfigReferenceData() {
|
||||
processLibraryLoading.value = true
|
||||
try {
|
||||
const [processes, categories, sops, outputTypes] = await Promise.all([
|
||||
const [processes, categories, sops, outputTypes, equipments] = await Promise.all([
|
||||
fetchAllProcesses(),
|
||||
fetchAllProcessCategories(),
|
||||
fetchAllSopDocuments(),
|
||||
fetchAllOutputTypes()
|
||||
fetchAllOutputTypes(),
|
||||
fetchAllEquipments()
|
||||
])
|
||||
categoryOptions.value = categories || []
|
||||
sopOptions.value = sops || []
|
||||
outputTypeOptions.value = outputTypes || []
|
||||
equipmentOptions.value = equipments || []
|
||||
|
||||
// 按分类分组
|
||||
const catMap: Record<
|
||||
@@ -1864,6 +1920,8 @@
|
||||
configRouteName.value = row.routeName || ''
|
||||
configRouteVersion.value = row.version || ''
|
||||
selectedStepId.value = ''
|
||||
selectedVirtualStep.value = null
|
||||
routeEquipmentIds.value = []
|
||||
activeSubTab.value = PROCESS_ROUTE_DEFAULT_SUB_TAB
|
||||
processSearchKeyword.value = ''
|
||||
configSuppressSave.value = true
|
||||
@@ -1884,17 +1942,19 @@
|
||||
async function loadRouteDetail() {
|
||||
try {
|
||||
const detail = await fetchProcessRouteDetail(configRouteId.value)
|
||||
routeEquipmentIds.value = parseEquipmentIds(detail.equipmentIds || detail.equipmentName)
|
||||
stepList.value = (detail.steps || []).map((s: Record<string, any>) =>
|
||||
normalizeStepSubTables(s)
|
||||
)
|
||||
ensureAllStepReagentOptions()
|
||||
ensureAllStepConsumableOptions()
|
||||
ensureAllStepUnitOptions()
|
||||
if (stepList.value.length > 0 && !selectedStepId.value) {
|
||||
if (stepList.value.length > 0 && !selectedStepId.value && !selectedVirtualStep.value) {
|
||||
selectedStepId.value = stepList.value[0].id
|
||||
}
|
||||
} catch {
|
||||
stepList.value = []
|
||||
routeEquipmentIds.value = []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1917,6 +1977,7 @@
|
||||
})
|
||||
await loadRouteDetail()
|
||||
if (newStep?.id) {
|
||||
selectedVirtualStep.value = null
|
||||
selectedStepId.value = newStep.id
|
||||
}
|
||||
ElMessage.success('步骤添加成功')
|
||||
@@ -1943,16 +2004,42 @@
|
||||
}
|
||||
}
|
||||
|
||||
function selectVirtualEquipment() {
|
||||
selectedVirtualStep.value = 'equipment'
|
||||
selectedStepId.value = ''
|
||||
}
|
||||
|
||||
function onRouteEquipmentIdsUpdate(ids: string[]) {
|
||||
routeEquipmentIds.value = ids || []
|
||||
}
|
||||
|
||||
function selectStep(step: Record<string, any>) {
|
||||
selectedVirtualStep.value = null
|
||||
selectedStepId.value = step.id
|
||||
}
|
||||
|
||||
async function saveRouteEquipment() {
|
||||
if (!configRouteId.value) return
|
||||
equipmentSaving.value = true
|
||||
try {
|
||||
await fetchUpdateProcessRoute(configRouteId.value, {
|
||||
equipmentIds: routeEquipmentIds.value
|
||||
})
|
||||
ElMessage.success('默认设备已保存')
|
||||
} catch {
|
||||
/* 全局处理 */
|
||||
} finally {
|
||||
equipmentSaving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function handleCopyStep(step: Record<string, any>) {
|
||||
stepListLoading.value = true
|
||||
try {
|
||||
const newStep = await fetchCopyRouteStep({ stepId: step.id })
|
||||
await loadRouteDetail()
|
||||
if (newStep?.id) {
|
||||
selectedVirtualStep.value = null
|
||||
selectedStepId.value = newStep.id
|
||||
}
|
||||
ElMessage.success('步骤已复制')
|
||||
@@ -2486,6 +2573,69 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.virtual-step-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
margin-bottom: 8px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 0.15s,
|
||||
background 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #a7f3d0;
|
||||
background: #f0fdf4;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
border-color: var(--primary, #10b981);
|
||||
background: #ecfdf5;
|
||||
}
|
||||
}
|
||||
|
||||
.virtual-step-icon {
|
||||
flex-shrink: 0;
|
||||
width: 28px;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.virtual-step-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.virtual-step-name {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.step-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 12px 0;
|
||||
color: #94a3b8;
|
||||
font-size: 12px;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: #e2e8f0;
|
||||
}
|
||||
|
||||
span {
|
||||
padding: 0 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
/* 右侧面板:步骤详情 */
|
||||
.route-config-right {
|
||||
flex: 1;
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="SHOW_PROCESS_DURATION_DESC_SOP"
|
||||
prop="description"
|
||||
label="描述"
|
||||
min-width="160"
|
||||
@@ -95,6 +96,7 @@
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="SHOW_PROCESS_DURATION_DESC_SOP"
|
||||
prop="estimatedDuration"
|
||||
label="预估耗时(h)"
|
||||
min-width="100"
|
||||
@@ -197,11 +199,11 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP">
|
||||
<template #label>预估耗时<span class="form-label-tip">(h)</span></template>
|
||||
<el-input v-model="formData.estimatedDuration" placeholder="如 0.5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="关联SOP">
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP" label="关联SOP">
|
||||
<el-select
|
||||
v-model="formData.sopIds"
|
||||
placeholder="请选择SOP文档"
|
||||
@@ -218,7 +220,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="描述">
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP" label="描述">
|
||||
<el-input
|
||||
v-model="formData.description"
|
||||
type="textarea"
|
||||
@@ -557,7 +559,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="form-section-data-collections" class="form-tab-pane">
|
||||
<div
|
||||
v-if="SHOW_PROCESS_DATA_COLLECTION"
|
||||
id="form-section-data-collections"
|
||||
class="form-tab-pane"
|
||||
>
|
||||
<div class="section-card">
|
||||
<div class="section-title">
|
||||
<div class="section-title-left">
|
||||
@@ -1029,7 +1035,11 @@
|
||||
fetchConsumablePackDetail
|
||||
} from '@/api/production'
|
||||
import { fetchItemUnitList } from '@/api/admin'
|
||||
import { SHOW_PROCESS_REAGENT_CONSUMABLE } from '@/utils/process-material-ui'
|
||||
import {
|
||||
SHOW_PROCESS_REAGENT_CONSUMABLE,
|
||||
SHOW_PROCESS_DATA_COLLECTION,
|
||||
SHOW_PROCESS_DURATION_DESC_SOP
|
||||
} from '@/utils/process-material-ui'
|
||||
import { packTypeLabel, packTypeTagType } from '@/utils/status-tag-registry'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
@@ -1066,7 +1076,9 @@
|
||||
]
|
||||
: []),
|
||||
{ key: 'outputs', label: '产出物' },
|
||||
{ key: 'data-collections', label: '数据采集' }
|
||||
...(SHOW_PROCESS_DATA_COLLECTION
|
||||
? [{ key: 'data-collections', label: '数据采集' }]
|
||||
: [])
|
||||
] as const
|
||||
|
||||
function scrollToSection(key: string) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- 步骤详情右侧面板:表单 + 产出物/数据采集上下区块(试剂/耗材 Tab 按开关展示) -->
|
||||
<!-- 步骤详情右侧面板:表单 + 产出物上下区块(试剂/耗材、数据采集按开关展示) -->
|
||||
<template>
|
||||
<div class="route-config-right">
|
||||
<template v-if="editor.selectedStep.value">
|
||||
@@ -27,7 +27,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="预计时长(h)">
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP" label="预计时长(h)">
|
||||
<el-input
|
||||
v-model="editor.selectedStep.value.estimatedDuration"
|
||||
placeholder="如 2"
|
||||
@@ -107,14 +107,14 @@
|
||||
>
|
||||
<span>{{ formatPlannedStartDate(editor.selectedStep.value.plannedStartTime) || '—' }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="描述">
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP" label="描述">
|
||||
<el-input
|
||||
v-model="editor.selectedStep.value.description"
|
||||
placeholder="工序描述"
|
||||
:disabled="stepFormReadonly"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联SOP">
|
||||
<el-form-item v-if="SHOW_PROCESS_DURATION_DESC_SOP" label="关联SOP">
|
||||
<el-select
|
||||
v-model="editor.sopIdsArr.value"
|
||||
multiple
|
||||
@@ -132,7 +132,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<div
|
||||
v-if="editor.sopIdsArr.value.length"
|
||||
v-if="SHOW_PROCESS_DURATION_DESC_SOP && editor.sopIdsArr.value.length"
|
||||
class="step-sop-attachment-row step-form-col-full"
|
||||
>
|
||||
<ProtocolAttachmentReadonly
|
||||
@@ -705,8 +705,8 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 数据采集 -->
|
||||
<section class="route-config-step-section">
|
||||
<!-- 数据采集(SHOW_PROCESS_DATA_COLLECTION 控制展示) -->
|
||||
<section v-if="SHOW_PROCESS_DATA_COLLECTION" class="route-config-step-section">
|
||||
<h3 class="route-config-step-section-title">数据采集</h3>
|
||||
<div class="route-config-tab-list">
|
||||
<div v-if="!stepFormReadonly" class="list-toolbar">
|
||||
@@ -855,7 +855,11 @@
|
||||
import { Delete, Plus, Rank } from '@element-plus/icons-vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { SHOW_PROCESS_REAGENT_CONSUMABLE } from '@/utils/process-material-ui'
|
||||
import {
|
||||
SHOW_PROCESS_REAGENT_CONSUMABLE,
|
||||
SHOW_PROCESS_DATA_COLLECTION,
|
||||
SHOW_PROCESS_DURATION_DESC_SOP
|
||||
} from '@/utils/process-material-ui'
|
||||
import { formatPlannedStartDate } from '@/utils/production-labels'
|
||||
import StepDetailActionBar from './StepDetailActionBar.vue'
|
||||
import { useTaskStepEditor } from './useTaskStepEditor'
|
||||
|
||||
Reference in new issue
Block a user