This commit is contained in:
zlwu committed 2026-05-22 07:16:53 +08:00
1 parent 87dbbf1247
commit 5254eea4a2
39 files changed
+1296 -2988

No files matched your search

+1 -1
View File
@@ -1 +1 @@
71550
52296
+126 -20
View File
@@ -10,6 +10,11 @@ from sqlalchemy.orm import Session
from app.core.utils import generate_uuid
from app.models.models import (
BizProcess,
BizProcessConsumable,
BizProcessDataCollection,
BizProcessOutput,
BizProcessReagent,
BizProcessRoute,
BizProcessRouteStep,
BizProcessRouteStepConsumable,
@@ -493,26 +498,127 @@ def add_task_step(
).scalar()
step_order = (max_order or 0) + 1
step = BizProductionTaskStep(
id=generate_uuid(), task_id=task_id,
step_order=step_order,
process_code=(data.get("process_code") or "").strip() or None,
category_id=(data.get("category_id") or "").strip() or None,
process_name=(data.get("process_name") or "").strip() or None,
description=(data.get("description") or "").strip() or None,
equipment_name=(data.get("equipment_name") or "").strip() or None,
estimated_duration=(data.get("estimated_duration") or "").strip() or None,
actual_duration=(data.get("actual_duration") or "").strip() or None,
sop_ids=(data.get("sop_ids") or "").strip() or None,
step_status=(data.get("step_status") or "dzx"),
tenant_no=tenant_no, order_num=0,
remark=(data.get("remark") or "").strip() or None,
create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
)
db.add(step)
db.commit()
return _step_to_dict(step)
# 如果传入了 process_id,从工艺主表深拷贝基本信息和子表数据
process_id = data.get("process_id")
if process_id:
proc = db.query(BizProcess).filter(
and_(BizProcess.id == process_id, BizProcess.del_flag == 0)
).first()
if not proc:
raise ValueError("工艺不存在")
step = BizProductionTaskStep(
id=generate_uuid(), task_id=task_id,
step_order=step_order,
process_code=proc.process_code,
category_id=proc.category_id,
process_name=proc.process_name,
description=proc.description,
equipment_name=proc.equipment_name,
estimated_duration=proc.estimated_duration,
sop_ids=proc.sop_ids,
step_status="dzx",
tenant_no=tenant_no, order_num=0,
remark=None,
create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
)
db.add(step)
db.flush()
# 深拷贝工艺子表 → 任务步骤子表
for r in db.query(BizProcessReagent).filter(
and_(BizProcessReagent.process_id == process_id, BizProcessReagent.del_flag == 0)
).all():
db.add(BizProductionTaskStepReagent(
id=generate_uuid(), step_id=step.id, tenant_no=tenant_no,
reagent_code=r.reagent_code, reagent_name=r.reagent_name,
spec=r.spec, standard_usage=r.standard_usage,
unit=r.unit, is_key_material=r.is_key_material,
remark=r.remark,
order_num=0, create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
))
for c in db.query(BizProcessConsumable).filter(
and_(BizProcessConsumable.process_id == process_id, BizProcessConsumable.del_flag == 0)
).all():
db.add(BizProductionTaskStepConsumable(
id=generate_uuid(), step_id=step.id, tenant_no=tenant_no,
consumable_code=c.consumable_code, consumable_name=c.consumable_name,
spec_model=c.spec_model, standard_usage=c.standard_usage,
unit=c.unit, is_required=c.is_required,
remark=c.remark,
order_num=0, create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
))
for o in db.query(BizProcessOutput).filter(
and_(BizProcessOutput.process_id == process_id, BizProcessOutput.del_flag == 0)
).all():
db.add(BizProductionTaskStepOutput(
id=generate_uuid(), step_id=step.id, tenant_no=tenant_no,
output_type_id=o.output_type_id, output_name=o.output_name,
output_barcode=o.output_barcode,
remark=o.remark,
order_num=0, create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
))
for d in db.query(BizProcessDataCollection).filter(
and_(BizProcessDataCollection.process_id == process_id, BizProcessDataCollection.del_flag == 0)
).all():
db.add(BizProductionTaskStepDataCollection(
id=generate_uuid(), step_id=step.id, tenant_no=tenant_no,
collection_name=d.collection_name, unit=d.unit,
remark=d.remark,
order_num=0, create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
))
db.commit()
else:
# 无 process_id 时,使用前端传来的字段直接创建(兼容旧逻辑)
step = BizProductionTaskStep(
id=generate_uuid(), task_id=task_id,
step_order=step_order,
process_code=(data.get("process_code") or "").strip() or None,
category_id=(data.get("category_id") or "").strip() or None,
process_name=(data.get("process_name") or "").strip() or None,
description=(data.get("description") or "").strip() or None,
equipment_name=(data.get("equipment_name") or "").strip() or None,
estimated_duration=(data.get("estimated_duration") or "").strip() or None,
actual_duration=(data.get("actual_duration") or "").strip() or None,
sop_ids=(data.get("sop_ids") or "").strip() or None,
step_status=(data.get("step_status") or "dzx"),
tenant_no=tenant_no, order_num=0,
remark=(data.get("remark") or "").strip() or None,
create_by=user_id, create_dept_id="",
create_time=now, update_by=user_id, update_time=now, del_flag=0,
)
db.add(step)
db.commit()
# 返回带子表的完整步骤信息(与 get_production_task_detail 格式一致)
result = _step_to_dict(step)
reagents = db.query(BizProductionTaskStepReagent).filter(
and_(BizProductionTaskStepReagent.step_id == step.id, BizProductionTaskStepReagent.del_flag == 0)
).order_by(BizProductionTaskStepReagent.order_num.asc(), BizProductionTaskStepReagent.create_time.asc()).all()
consumables = db.query(BizProductionTaskStepConsumable).filter(
and_(BizProductionTaskStepConsumable.step_id == step.id, BizProductionTaskStepConsumable.del_flag == 0)
).order_by(BizProductionTaskStepConsumable.order_num.asc(), BizProductionTaskStepConsumable.create_time.asc()).all()
outputs = db.query(BizProductionTaskStepOutput).filter(
and_(BizProductionTaskStepOutput.step_id == step.id, BizProductionTaskStepOutput.del_flag == 0)
).order_by(BizProductionTaskStepOutput.order_num.asc(), BizProductionTaskStepOutput.create_time.asc()).all()
data_collections = db.query(BizProductionTaskStepDataCollection).filter(
and_(BizProductionTaskStepDataCollection.step_id == step.id, BizProductionTaskStepDataCollection.del_flag == 0)
).order_by(BizProductionTaskStepDataCollection.order_num.asc(), BizProductionTaskStepDataCollection.create_time.asc()).all()
result["reagents"] = [_step_reagent_to_dict(r) for r in reagents]
result["consumables"] = [_step_consumable_to_dict(c) for c in consumables]
result["outputs"] = [_step_output_to_dict(o) for o in outputs]
result["dataCollections"] = [_step_data_collection_to_dict(d) for d in data_collections]
return result
def update_task_step(
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "label": "production_task.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L1"}, {"id": "schemas_production_task_productiontaskcreate", "label": "ProductionTaskCreate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L6"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "schemas_production_task_productiontasklistquery", "label": "ProductionTaskListQuery", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L14"}, {"id": "schemas_production_task_productiontaskupdate", "label": "ProductionTaskUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L22"}, {"id": "schemas_production_task_productiontaskstatusupdate", "label": "ProductionTaskStatusUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L29"}, {"id": "schemas_production_task_taskstepadd", "label": "TaskStepAdd", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L33"}, {"id": "schemas_production_task_taskstepupdate", "label": "TaskStepUpdate", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L43"}, {"id": "schemas_production_task_taskstepmaterialitem", "label": "TaskStepMaterialItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L53"}, {"id": "schemas_production_task_taskstepoutputitem", "label": "TaskStepOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L66"}, {"id": "schemas_production_task_taskstepdatacollectionitem", "label": "TaskStepDataCollectionItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L73"}, {"id": "schemas_production_task_taskinputitem", "label": "TaskInputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L80"}, {"id": "schemas_production_task_taskoutputitem", "label": "TaskOutputItem", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L87"}, {"id": "schemas_production_task_taskstepreorderbody", "label": "TaskStepReorderBody", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L98"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "schemas_production_task_productiontaskcreate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L6", "weight": 1.0}, {"source": "schemas_production_task_productiontaskcreate", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_schemas_production_task_py", "target": "schemas_production_task_productiontasklistquery", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py", "source_location": "L14", "weight": 1.0}, {"source": "schemas_production_task_productiontasklistquery", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_fileLine truncated
+1
View File
@@ -31,6 +31,7 @@ class ProductionTaskStatusUpdate(BaseModel):
class TaskStepAdd(BaseModel):
process_id: Optional[str] = None
process_code: Optional[str] = None
category_id: Optional[str] = None
process_name: Optional[str] = None
+12 -12
View File
@@ -4471,28 +4471,28 @@
"label": "TaskStepDataCollectionItem",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L72"
"source_location": "L73"
},
{
"id": "schemas_production_task_taskinputitem",
"label": "TaskInputItem",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L78"
"source_location": "L80"
},
{
"id": "schemas_production_task_taskoutputitem",
"label": "TaskOutputItem",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L85"
"source_location": "L87"
},
{
"id": "schemas_production_task_taskstepreorderbody",
"label": "TaskStepReorderBody",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L96"
"source_location": "L98"
},
{
"id": "schemas_product_detail_media_py",
@@ -27582,7 +27582,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L72",
"source_location": "L73",
"weight": 1.0
},
{
@@ -27591,7 +27591,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L72",
"source_location": "L73",
"weight": 1.0
},
{
@@ -27600,7 +27600,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L78",
"source_location": "L80",
"weight": 1.0
},
{
@@ -27609,7 +27609,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L78",
"source_location": "L80",
"weight": 1.0
},
{
@@ -27618,7 +27618,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L85",
"source_location": "L87",
"weight": 1.0
},
{
@@ -27627,7 +27627,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L85",
"source_location": "L87",
"weight": 1.0
},
{
@@ -27636,7 +27636,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L96",
"source_location": "L98",
"weight": 1.0
},
{
@@ -27645,7 +27645,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L96",
"source_location": "L98",
"weight": 1.0
},
{
+1 -1
View File
@@ -1,7 +1,7 @@
# Graph Report - app (2026-05-21)
## Corpus Check
- 135 files · ~119,965 words
- 135 files · ~119,973 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
+12 -12
View File
@@ -5587,7 +5587,7 @@
"label": "TaskStepDataCollectionItem",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L72",
"source_location": "L73",
"id": "schemas_production_task_taskstepdatacollectionitem",
"community": 1,
"norm_label": "taskstepdatacollectionitem"
@@ -5596,7 +5596,7 @@
"label": "TaskInputItem",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L78",
"source_location": "L80",
"id": "schemas_production_task_taskinputitem",
"community": 1,
"norm_label": "taskinputitem"
@@ -5605,7 +5605,7 @@
"label": "TaskOutputItem",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L85",
"source_location": "L87",
"id": "schemas_production_task_taskoutputitem",
"community": 1,
"norm_label": "taskoutputitem"
@@ -5614,7 +5614,7 @@
"label": "TaskStepReorderBody",
"file_type": "code",
"source_file": "schemas/production_task.py",
"source_location": "L96",
"source_location": "L98",
"id": "schemas_production_task_taskstepreorderbody",
"community": 1,
"norm_label": "taskstepreorderbody"
@@ -25836,7 +25836,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L72",
"source_location": "L73",
"weight": 1.0,
"_src": "schemas_production_task_taskstepdatacollectionitem",
"_tgt": "basemodel",
@@ -25848,7 +25848,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L78",
"source_location": "L80",
"weight": 1.0,
"_src": "schemas_production_task_taskinputitem",
"_tgt": "basemodel",
@@ -25860,7 +25860,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L85",
"source_location": "L87",
"weight": 1.0,
"_src": "schemas_production_task_taskoutputitem",
"_tgt": "basemodel",
@@ -25872,7 +25872,7 @@
"relation": "inherits",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L96",
"source_location": "L98",
"weight": 1.0,
"_src": "schemas_production_task_taskstepreorderbody",
"_tgt": "basemodel",
@@ -86904,7 +86904,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L72",
"source_location": "L73",
"weight": 1.0,
"_src": "schemas_production_task_py",
"_tgt": "schemas_production_task_taskstepdatacollectionitem",
@@ -86916,7 +86916,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L78",
"source_location": "L80",
"weight": 1.0,
"_src": "schemas_production_task_py",
"_tgt": "schemas_production_task_taskinputitem",
@@ -86928,7 +86928,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L85",
"source_location": "L87",
"weight": 1.0,
"_src": "schemas_production_task_py",
"_tgt": "schemas_production_task_taskoutputitem",
@@ -86940,7 +86940,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "schemas/production_task.py",
"source_location": "L96",
"source_location": "L98",
"weight": 1.0,
"_src": "schemas_production_task_py",
"_tgt": "schemas_production_task_taskstepreorderbody",
+1 -1
View File
@@ -40,7 +40,7 @@
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_parameter_value.py": 1778578258.0980055,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_review_media.py": 1778578258.0986822,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_parameter.py": 1778578258.0977957,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py": 1779352530.666423,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/production_task.py": 1779370093.004463,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_detail_media.py": 1778578258.0973988,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/product_banner.py": 1778578258.097102,
"/Users/wuzilong/work/00code/zkxw/backend/app/schemas/region.py": 1778578258.099429,
File diff suppressed because it is too large. Load diff
@@ -8386,181 +8386,6 @@
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L53"
},
{
"id": "production_work_order_usetaskstepeditor_ensureallstepunitoptions",
"label": "ensureAllStepUnitOptions()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L253"
},
{
"id": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"label": "loadConfigReferenceData()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L294"
},
{
"id": "production_work_order_usetaskstepeditor_loadtaskdetail",
"label": "loadTaskDetail()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L318"
},
{
"id": "production_work_order_usetaskstepeditor_ondragstart",
"label": "onDragStart()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L333"
},
{
"id": "production_work_order_usetaskstepeditor_ondroptocenter",
"label": "onDropToCenter()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L337"
},
{
"id": "production_work_order_usetaskstepeditor_onstepdragend",
"label": "onStepDragEnd()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L351"
},
{
"id": "production_work_order_usetaskstepeditor_selectstep",
"label": "selectStep()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L360"
},
{
"id": "production_work_order_usetaskstepeditor_handlecopystep",
"label": "handleCopyStep()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L361"
},
{
"id": "production_work_order_usetaskstepeditor_handledeletestep",
"label": "handleDeleteStep()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L372"
},
{
"id": "production_work_order_usetaskstepeditor_savestepbasic",
"label": "saveStepBasic()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L386"
},
{
"id": "production_work_order_usetaskstepeditor_onsopidschange",
"label": "onSopIdsChange()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L399"
},
{
"id": "production_work_order_usetaskstepeditor_addreagentrow",
"label": "addReagentRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L404"
},
{
"id": "production_work_order_usetaskstepeditor_removereagentrow",
"label": "removeReagentRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L412"
},
{
"id": "production_work_order_usetaskstepeditor_savereagents",
"label": "saveReagents()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L413"
},
{
"id": "production_work_order_usetaskstepeditor_addconsumablerow",
"label": "addConsumableRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L425"
},
{
"id": "production_work_order_usetaskstepeditor_removeconsumablerow",
"label": "removeConsumableRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L433"
},
{
"id": "production_work_order_usetaskstepeditor_saveconsumables",
"label": "saveConsumables()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L434"
},
{
"id": "production_work_order_usetaskstepeditor_addoutputrow",
"label": "addOutputRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L447"
},
{
"id": "production_work_order_usetaskstepeditor_removeoutputrow",
"label": "removeOutputRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L452"
},
{
"id": "production_work_order_usetaskstepeditor_saveoutputs",
"label": "saveOutputs()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L453"
},
{
"id": "production_work_order_usetaskstepeditor_adddatacollectionrow",
"label": "addDataCollectionRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L464"
},
{
"id": "production_work_order_usetaskstepeditor_removedatacollectionrow",
"label": "removeDataCollectionRow()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L469"
},
{
"id": "production_work_order_usetaskstepeditor_savedatacollections",
"label": "saveDataCollections()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L470"
},
{
"id": "production_work_order_usetaskstepeditor_handlemanualsave",
"label": "handleManualSave()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L482"
},
{
"id": "production_work_order_usetaskstepeditor_initeditor",
"label": "initEditor()",
"file_type": "code",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L501"
},
{
"id": "views_production_production_work_order_stepdetailpanel_vue",
"label": "StepDetailPanel.vue",
@@ -24176,339 +24001,6 @@
"source_location": "L53",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_ensureallstepunitoptions",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L253",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L294",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_loadtaskdetail",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L318",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_ondragstart",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L333",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_ondroptocenter",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L337",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_onstepdragend",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L351",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_selectstep",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L360",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_handlecopystep",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L361",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_handledeletestep",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L372",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_savestepbasic",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L386",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_onsopidschange",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L399",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_addreagentrow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L404",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_removereagentrow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L412",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_savereagents",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L413",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_addconsumablerow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L425",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_removeconsumablerow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L433",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_saveconsumables",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L434",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_addoutputrow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L447",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_removeoutputrow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L452",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_saveoutputs",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L453",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_adddatacollectionrow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L464",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_removedatacollectionrow",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L469",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_savedatacollections",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L470",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_handlemanualsave",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L482",
"weight": 1.0
},
{
"source": "views_production_production_work_order_usetaskstepeditor_ts",
"target": "production_work_order_usetaskstepeditor_initeditor",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L501",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_usetaskstepeditor",
"target": "production_work_order_usetaskstepeditor_saveconsumables",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L242",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_loadtaskdetail",
"target": "production_work_order_usetaskstepeditor_ensureallstepunitoptions",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L325",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_ondroptocenter",
"target": "production_work_order_usetaskstepeditor_loadtaskdetail",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L343",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlecopystep",
"target": "production_work_order_usetaskstepeditor_loadtaskdetail",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L365",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handledeletestep",
"target": "production_work_order_usetaskstepeditor_loadtaskdetail",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L377",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlemanualsave",
"target": "production_work_order_usetaskstepeditor_savestepbasic",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L487",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlemanualsave",
"target": "production_work_order_usetaskstepeditor_savereagents",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L488",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlemanualsave",
"target": "production_work_order_usetaskstepeditor_saveconsumables",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L489",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlemanualsave",
"target": "production_work_order_usetaskstepeditor_saveoutputs",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L490",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlemanualsave",
"target": "production_work_order_usetaskstepeditor_savedatacollections",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L491",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_initeditor",
"target": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L508",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_initeditor",
"target": "production_work_order_usetaskstepeditor_loadtaskdetail",
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L509",
"weight": 1.0
},
{
"source": "views_production_production_work_order_dispatchtaskdialog_vue",
"target": "production_work_order_dispatchtaskdialog_if",
@@ -30826,196 +30318,6 @@
"source_location": "L571",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"target": "api_production_fetchallprocesses",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L296",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"target": "api_production_fetchallprocesscategories",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L296",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"target": "api_production_fetchallsopdocuments",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L297",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_loadconfigreferencedata",
"target": "api_production_fetchalloutputtypes",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L297",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_loadtaskdetail",
"target": "api_production_task_fetchproductiontaskdetail",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L321",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_ondroptocenter",
"target": "api_production_task_fetchaddtaskstep",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L342",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_onstepdragend",
"target": "api_production_task_fetchreordertasksteps",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L355",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handlecopystep",
"target": "api_production_task_fetchcopytaskstep",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L364",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_handledeletestep",
"target": "api_production_task_fetchdeletetaskstep",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L376",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_savestepbasic",
"target": "api_production_task_fetchupdatetaskstep",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L389",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_addreagentrow",
"target": "storage_facility_index_push",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L407",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_savereagents",
"target": "api_production_task_fetchreplacestepreagents",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L421",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_addconsumablerow",
"target": "storage_facility_index_push",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L428",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_saveconsumables",
"target": "api_production_task_fetchreplacestepconsumables",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L443",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_addoutputrow",
"target": "storage_facility_index_push",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L450",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_saveoutputs",
"target": "api_production_task_fetchreplacestepoutputs",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L460",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_adddatacollectionrow",
"target": "storage_facility_index_push",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L467",
"weight": 1.0
},
{
"source": "production_work_order_usetaskstepeditor_savedatacollections",
"target": "api_production_task_fetchreplacestepdatacollection",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/useTaskStepEditor.ts",
"source_location": "L477",
"weight": 1.0
},
{
"source": "production_work_order_dispatchtaskdialog_if",
"target": "production_work_order_usetaskstepeditor_initeditor",
"relation": "calls",
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "views/production/production-work-order/DispatchTaskDialog.vue",
"source_location": "L209",
"weight": 1.0
},
{
"source": "qc_task_index_handlereceptionattachmentdownload",
"target": "utils_download_attachment_downloadattachmentfile",
+54 -61
View File
@@ -1,11 +1,11 @@
# Graph Report - src (2026-05-21)
## Corpus Check
- Large corpus: 580 files · ~303,367 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
- Large corpus: 580 files · ~303,455 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
## Summary
- 1440 nodes · 1819 edges · 43 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 403 edges (avg confidence: 0.8)
- 1415 nodes · 1763 edges · 42 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 384 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Community Hubs (Navigation)
@@ -33,8 +33,8 @@
- [[_COMMUNITY_Community 21|Community 21]]
- [[_COMMUNITY_Community 22|Community 22]]
- [[_COMMUNITY_Community 23|Community 23]]
- [[_COMMUNITY_Community 24|Community 24]]
- [[_COMMUNITY_Community 25|Community 25]]
- [[_COMMUNITY_Community 26|Community 26]]
- [[_COMMUNITY_Community 27|Community 27]]
- [[_COMMUNITY_Community 28|Community 28]]
- [[_COMMUNITY_Community 30|Community 30]]
@@ -46,7 +46,6 @@
- [[_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]]
@@ -56,7 +55,7 @@
## God Nodes (most connected - your core abstractions)
1. `get()` - 153 edges
2. `WebSocketClient` - 26 edges
3. `push()` - 22 edges
3. `push()` - 18 edges
4. `withFullscreenLoading()` - 16 edges
5. `MenuProcessor` - 16 edges
6. `VersionManager` - 15 edges
@@ -68,8 +67,8 @@
## Surprising Connections (you probably didn't know these)
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/system/site/index.vue → utils/fullscreen-loading.ts
- `handleBatchDeleteHospital()` --calls--> `withFullscreenLoading()` [INFERRED]
views/basic-info/collection-region/index.vue → utils/fullscreen-loading.ts
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/basic-info/customer/index.vue → utils/fullscreen-loading.ts
- `handleUnauthorizedResponse()` --calls--> `fetchRefreshToken()` [INFERRED]
utils/http/index.ts → api/auth.ts
- `fetchLeaveList()` --calls--> `get()` [INFERRED]
@@ -81,31 +80,31 @@
### Community 0 - "Community 0"
Cohesion: 0.01
Nodes (82): fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchCellSampleTypeList(), fetchChannelAgreementPrices() (+74 more)
Nodes (75): fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchCellSampleTypeList(), fetchChannelAgreementPrices() (+67 more)
### Community 1 - "Community 1"
Cohesion: 0.03
Nodes (56): fetchBatchGenerateProtocolNos(), fetchBatchGenerateSampleCodes(), fetchBatchIssueProtocolNos(), fetchBatchIssueSampleCodes(), fetchCollectionProtocolNoList(), fetchCreateCollectionProtocolNo(), fetchCreateSampleCode(), fetchDeleteCollectionProtocolNo() (+48 more)
Nodes (57): fetchBatchGenerateProtocolNos(), fetchBatchGenerateSampleCodes(), fetchBatchIssueProtocolNos(), fetchBatchIssueSampleCodes(), fetchCollectionProtocolNoList(), fetchCreateCollectionProtocolNo(), fetchCreateSampleCode(), fetchDeleteCollectionProtocolNo() (+49 more)
### Community 2 - "Community 2"
Cohesion: 0.03
Nodes (54): fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchProductionTaskDetail(), fetchProductionTaskList(), fetchReorderTaskSteps(), fetchReplaceStepConsumables(), fetchReplaceStepDataCollection() (+46 more)
### Community 3 - "Community 3"
Cohesion: 0.04
Nodes (31): fetchGetUserInfo(), clickTab(), handleTouchEnd(), setTransition(), IframeRouteManager, RouteRegistry, useCommon(), setupAfterEachGuard() (+23 more)
### Community 3 - "Community 3"
Cohesion: 0.05
Nodes (32): fetchDeptTree(), fetchPostBoundUserIds(), FireworkSystem, reload(), formatUserLabel(), loadDeptData(), onPersonSelectChange(), subscribeTokenRefresh() (+24 more)
### Community 4 - "Community 4"
Cohesion: 0.06
Nodes (33): toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url(), hexToBytes() (+25 more)
Cohesion: 0.04
Nodes (18): fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents(), fetchAllSopDocuments(), fetchConsumableList() (+10 more)
### Community 5 - "Community 5"
Cohesion: 0.04
Nodes (19): fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents(), fetchAllSopDocuments(), fetchConsumableList() (+11 more)
Cohesion: 0.05
Nodes (40): fetchAccessLogList(), fetchCleanRoomList(), fetchCreateAccessLog(), fetchCreateCleanRoom(), fetchCreateSite(), fetchDeleteAccessLog(), fetchDeleteCleanRoom(), fetchDeleteSite() (+32 more)
### Community 6 - "Community 6"
Cohesion: 0.05
Nodes (42): fetchAccessLogList(), fetchCleanRoomList(), fetchCreateAccessLog(), fetchCreateCleanRoom(), fetchCreateSite(), fetchDeleteAccessLog(), fetchDeleteCleanRoom(), fetchDeleteSite() (+34 more)
Cohesion: 0.09
Nodes (31): toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url(), hexToBytes() (+23 more)
### Community 7 - "Community 7"
Cohesion: 0.06
@@ -120,24 +119,24 @@ Cohesion: 0.13
Nodes (4): handleReset(), handleSearch(), WebSocketClient, emit()
### Community 10 - "Community 10"
Cohesion: 0.08
Nodes (17): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), collectIds(), postorder(), preorder(), applyTreeExpand() (+9 more)
### Community 11 - "Community 11"
Cohesion: 0.07
Nodes (13): fetchAttachmentDownloadUrl(), fetchOrderAdjusts(), fetchOrderDetail(), fetchOrderItems(), fetchOrderList(), fetchPriceVersionDetail(), fetchSystemConfig(), handleReceptionAttachmentDownload() (+5 more)
### Community 11 - "Community 11"
Cohesion: 0.09
Nodes (9): fetchGetAllUpgradeLogs(), fetchGetChinaMapData(), fetchGetComments(), fetchGetCurrentVersion(), fetchGetLatestUpgradeLog(), fetchGetSystemConfig(), fetchGetUpgradeLogs(), systemUpgrade() (+1 more)
### Community 12 - "Community 12"
Cohesion: 0.1
Nodes (13): fetchEthnicList(), addSample(), applyDonationBundleToForm(), confirmBatchTransportApply(), createEmptyTransport(), ensureDonationProtocolNoInOptions(), ensureEthnicOptionInList(), handleOpenForAdd() (+5 more)
Nodes (8): fetchGetMenuList(), fetchGetMenuCodes(), fetchLogin(), fetchRefreshToken(), MenuProcessor, useAppMode(), useAuth(), buildWebEncryptedLoginBody()
### Community 13 - "Community 13"
Cohesion: 0.1
Nodes (19): fetchCollectionRegionList(), fetchCreateCollectionRegion(), fetchCreateHospital(), fetchDeleteCollectionRegion(), fetchDeleteHospital(), fetchHospitalList(), fetchUpdateCollectionRegion(), fetchUpdateHospital() (+11 more)
Nodes (13): fetchEthnicList(), addSample(), applyDonationBundleToForm(), confirmBatchTransportApply(), createEmptyTransport(), ensureDonationProtocolNoInOptions(), ensureEthnicOptionInList(), handleOpenForAdd() (+5 more)
### Community 14 - "Community 14"
Cohesion: 0.1
Nodes (8): fetchGetMenuList(), fetchGetMenuCodes(), fetchLogin(), fetchRefreshToken(), MenuProcessor, useAppMode(), useAuth(), buildWebEncryptedLoginBody()
Nodes (18): fetchCollectionRegionList(), fetchCreateCollectionRegion(), fetchCreateHospital(), fetchDeleteCollectionRegion(), fetchDeleteHospital(), fetchHospitalList(), fetchUpdateCollectionRegion(), fetchUpdateHospital() (+10 more)
### Community 15 - "Community 15"
Cohesion: 0.11
@@ -148,49 +147,49 @@ Cohesion: 0.12
Nodes (15): addCopyButton(), highlightCode(), insertLineNumbers(), isBlockProcessed(), markBlockAsProcessed(), processBlock(), setupHighlightDirective(), setupRippleDirective() (+7 more)
### Community 17 - "Community 17"
Cohesion: 0.14
Nodes (17): fetchCreateUser(), fetchDeleteUser(), fetchResetPassword(), fetchUpdateUser(), fetchUserDetail(), formatUserDeptDisplay(), handleAdd(), handleDelete() (+9 more)
Cohesion: 0.13
Nodes (16): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), postorder(), preorder(), applyTreeExpand(), handleAdd() (+8 more)
### Community 18 - "Community 18"
Cohesion: 0.12
Nodes (12): fetchApproveTask(), fetchBusinessAllTasks(), fetchCompletedTasks(), fetchDesignerData(), fetchInstanceDetail(), fetchMyInstances(), fetchPendingTasks(), fetchProcessDefList() (+4 more)
Cohesion: 0.14
Nodes (17): fetchCreateUser(), fetchDeleteUser(), fetchResetPassword(), fetchUpdateUser(), fetchUserDetail(), formatUserDeptDisplay(), handleAdd(), handleDelete() (+9 more)
### Community 19 - "Community 19"
Cohesion: 0.11
Nodes (8): fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchPaymentDetailList(), fetchReceiptConfirmedList(), fetchReceiptConfirmList(), fetchRefundConfirmedList(), fetchRefundConfirmList()
### Community 20 - "Community 20"
Cohesion: 0.12
Nodes (12): fetchApproveTask(), fetchBusinessAllTasks(), fetchCompletedTasks(), fetchDesignerData(), fetchInstanceDetail(), fetchMyInstances(), fetchPendingTasks(), fetchProcessDefList() (+4 more)
### Community 21 - "Community 21"
Cohesion: 0.16
Nodes (10): useTable(), useTableImpl(), getColumnChecks(), useTableColumns(), createErrorHandler(), createSmartDebounce(), defaultResponseAdapter(), extractPagination() (+2 more)
### Community 21 - "Community 21"
### Community 22 - "Community 22"
Cohesion: 0.12
Nodes (2): fetchProductionTaskDetail(), fetchProductionTaskList()
### Community 23 - "Community 23"
Cohesion: 0.2
Nodes (2): ComponentLoader, RouteTransformer
### Community 22 - "Community 22"
### Community 24 - "Community 24"
Cohesion: 0.27
Nodes (14): useChart(), useChartComponent(), useChartOps(), colourBlend(), getCssVar(), getDarkColor(), getLightColor(), handleElementThemeColor() (+6 more)
### Community 23 - "Community 23"
Cohesion: 0.18
Nodes (11): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), handleAdd(), handleDelete(), handleReset(), handleSearch() (+3 more)
### Community 25 - "Community 25"
Cohesion: 0.17
Nodes (3): fetchResearchDonationAuditList(), fetchResearchDonationDetail(), fetchResearchDonationList()
Nodes (12): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), handleAdd(), handleBatchDelete(), handleDelete(), handleReset() (+4 more)
### Community 26 - "Community 26"
### Community 27 - "Community 27"
Cohesion: 0.18
Nodes (3): fetchMaterialList(), fetchMaterialOptions(), fetchMaterialStockLogList()
### Community 27 - "Community 27"
### Community 28 - "Community 28"
Cohesion: 0.2
Nodes (2): fetchQcMaterialList(), fetchQcMaterialOptions()
### Community 28 - "Community 28"
Cohesion: 0.28
Nodes (1): FireworkSystem
### Community 30 - "Community 30"
Cohesion: 0.39
Nodes (6): isIgnorableScriptError(), normalizeErrorMessage(), registerPromiseErrorHandler(), registerResourceErrorHandler(), scriptErrorHandler(), setupErrorHandle()
@@ -227,10 +226,6 @@ Nodes (2): fetchQcThirdPartyCompanyList(), fetchQcThirdPartyCompanyOptions()
Cohesion: 0.33
Nodes (2): fetchQcLabTestItemList(), fetchQcLabTestItemsActive()
### Community 39 - "Community 39"
Cohesion: 0.33
Nodes (2): fetchQcTaskDetail(), fetchQcTaskList()
### Community 40 - "Community 40"
Cohesion: 0.53
Nodes (4): isEtaTodayOrEarlier(), parseEtaLocalDate(), sampleReceptionRowClassName(), startOfLocalDay()
@@ -252,11 +247,11 @@ Cohesion: 1.0
Nodes (2): defaultAvatarPathByRole(), resolveUserAvatarUrl()
## Knowledge Gaps
- **Thin community `Community 21`** (17 nodes): `ComponentLoader`, `.constructor()`, `.createEmptyComponent()`, `.createErrorComponent()`, `.load()`, `.loadIframe()`, `.loadLayout()`, `.load()`, `RouteTransformer`, `.extractFirstSegment()`, `.handleFirstLevelRoute()`, `.handleIframeRoute()`, `.handleNormalRoute()`, `.isFirstLevelRoute()`, `.transform()`, `ComponentLoader.ts`, `RouteTransformer.ts`
- **Thin community `Community 22`** (17 nodes): `fetchAddTaskStep()`, `fetchCopyTaskStep()`, `fetchCreateProductionTask()`, `fetchDeleteTaskStep()`, `fetchProductionTaskDetail()`, `fetchProductionTaskList()`, `fetchReorderTaskSteps()`, `fetchReplaceStepConsumables()`, `fetchReplaceStepDataCollection()`, `fetchReplaceStepOutputs()`, `fetchReplaceStepReagents()`, `fetchSetTaskInputs()`, `fetchSetTaskOutputs()`, `fetchUpdateProductionTask()`, `fetchUpdateProductionTaskStatus()`, `fetchUpdateTaskStep()`, `production-task.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 27`** (10 nodes): `fetchBatchStockInQcMaterial()`, `fetchBatchStockOutQcMaterial()`, `fetchCreateQcMaterial()`, `fetchDeleteQcMaterial()`, `fetchQcMaterialList()`, `fetchQcMaterialOptions()`, `fetchStockInQcMaterial()`, `fetchStockOutQcMaterial()`, `fetchUpdateQcMaterial()`, `qc-material.ts`
- **Thin community `Community 23`** (17 nodes): `ComponentLoader`, `.constructor()`, `.createEmptyComponent()`, `.createErrorComponent()`, `.load()`, `.loadIframe()`, `.loadLayout()`, `.load()`, `RouteTransformer`, `.extractFirstSegment()`, `.handleFirstLevelRoute()`, `.handleIframeRoute()`, `.handleNormalRoute()`, `.isFirstLevelRoute()`, `.transform()`, `ComponentLoader.ts`, `RouteTransformer.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 28`** (9 nodes): `FireworkSystem`, `.constructor()`, `.createFirework()`, `.createParticle()`, `.getAvailableParticle()`, `.initializePool()`, `.preloadAllImages()`, `.preloadImage()`, `index.vue`
- **Thin community `Community 28`** (10 nodes): `fetchBatchStockInQcMaterial()`, `fetchBatchStockOutQcMaterial()`, `fetchCreateQcMaterial()`, `fetchDeleteQcMaterial()`, `fetchQcMaterialList()`, `fetchQcMaterialOptions()`, `fetchStockInQcMaterial()`, `fetchStockOutQcMaterial()`, `fetchUpdateQcMaterial()`, `qc-material.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 31`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
@@ -272,8 +267,6 @@ Nodes (2): defaultAvatarPathByRole(), resolveUserAvatarUrl()
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 38`** (6 nodes): `fetchCreateQcLabTestItem()`, `fetchDeleteQcLabTestItem()`, `fetchQcLabTestItemList()`, `fetchQcLabTestItemsActive()`, `fetchUpdateQcLabTestItem()`, `qc-lab-test-item.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 39`** (6 nodes): `fetchCompleteQcTask()`, `fetchQcTaskDetail()`, `fetchQcTaskList()`, `fetchStartQcTask()`, `fetchUpdateQcTaskAttachments()`, `qc-task.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 41`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 42`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
@@ -286,16 +279,16 @@ Nodes (2): defaultAvatarPathByRole(), resolveUserAvatarUrl()
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 5`, `Community 6`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 17`, `Community 18`, `Community 19`, `Community 23`, `Community 25`, `Community 26`, `Community 27`, `Community 33`, `Community 35`, `Community 36`, `Community 37`, `Community 38`, `Community 39`?**
_High betweenness centrality (0.263) - this node is a cross-community bridge._
- **Why does `push()` connect `Community 2` to `Community 0`, `Community 3`, `Community 4`, `Community 6`, `Community 7`, `Community 9`, `Community 12`, `Community 28`?**
_High betweenness centrality (0.097) - this node is a cross-community bridge._
- **Why does `buildTreePathLabelFromFlat()` connect `Community 2` to `Community 0`, `Community 7`?**
_High betweenness centrality (0.044) - this node is a cross-community bridge._
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 22`, `Community 25`, `Community 27`, `Community 28`, `Community 33`, `Community 35`, `Community 36`, `Community 37`, `Community 38`?**
_High betweenness centrality (0.266) - this node is a cross-community bridge._
- **Why does `push()` connect `Community 3` to `Community 0`, `Community 2`, `Community 7`, `Community 9`, `Community 11`, `Community 13`?**
_High betweenness centrality (0.077) - this node is a cross-community bridge._
- **Why does `fetchGetLatestUpgradeLog()` connect `Community 11` to `Community 0`?**
_High betweenness centrality (0.043) - this node is a cross-community bridge._
- **Are the 152 inferred relationships involving `get()` (e.g. with `buildTreePathLabelFromFlat()` and `alignFqPaymentDetailsForDisplay()`) actually correct?**
_`get()` has 152 INFERRED edges - model-reasoned connections that need verification._
- **Are the 21 inferred relationships involving `push()` (e.g. with `fetchAllPagedRecords()` and `calcInstallmentDueAmounts()`) actually correct?**
_`push()` has 21 INFERRED edges - model-reasoned connections that need verification._
- **Are the 17 inferred relationships involving `push()` (e.g. with `fetchAllPagedRecords()` and `calcInstallmentDueAmounts()`) actually correct?**
_`push()` has 17 INFERRED edges - model-reasoned connections that need verification._
- **Are the 15 inferred relationships involving `withFullscreenLoading()` (e.g. with `.close()` and `handleSubmit()`) actually correct?**
_`withFullscreenLoading()` has 15 INFERRED edges - model-reasoned connections that need verification._
- **Should `Community 0` be split into smaller, more focused modules?**
+4 -4
View File
@@ -57,12 +57,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">1440 nodes &middot; 1819 edges &middot; 240 communities</div>
<div id="stats">1415 nodes &middot; 1763 edges &middot; 241 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 32, "community_name": "Community 32", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 32, "community_name": "Community 32", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 32, "community_name": "Community 32", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 32, "community_name": "Community 32", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 32, "community_name": "Community 32", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 32, "community_name": "Community 32", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 76, "community_name": "Community 76", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 77, "community_name": "Community 77", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 16, "community_name": "Community 16", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 16, "community_name": "Community 16", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 16, "community_name": "Community 16", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 16, "community_name": "Community 16", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 16, "community_name": "Community 16", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective", "laLine truncated
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 225}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 87}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 86}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 69}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 56}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 54}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 53}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 39}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 37}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 34}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 33}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 32}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 27}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 27}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 27}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 24}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 22}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 20}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 19}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 19}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 17}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 17}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 16}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 15}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 13}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 12}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 11}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 10}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 9}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 9}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 8}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 8}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 7}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 7}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 6}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 6}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 6}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 6}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 6}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 6}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 6}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 5}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 4}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 3}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 3}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 3}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 3}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 3}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 3}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 3}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 3}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 3}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 3}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 2}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 2}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 2}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 2}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 2}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 2}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 2}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 2}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 2}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 2}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 2}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 2}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 2}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 2}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 2}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 2}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 2}, {"cid": 70, "color": "#4E79A7", "label": "Community 70", "count": 2}, {"ciLine truncated
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 32, "community_name": "Community 32", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 32, "community_name": "Community 32", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 32, "community_name": "Community 32", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 32, "community_name": "Community 32", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 32, "community_name": "Community 32", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 32, "community_name": "Community 32", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 77, "community_name": "Community 77", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 78, "community_name": "Community 78", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 16, "community_name": "Community 16", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 16, "community_name": "Community 16", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 16, "community_name": "Community 16", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 16, "community_name": "Community 16", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 16, "community_name": "Community 16", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective", "laLine truncated
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 225}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 99}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 69}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 53}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 53}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 51}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 39}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 39}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 36}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 34}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 32}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 31}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 27}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 27}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 26}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 24}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 22}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 21}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 20}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 19}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 19}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 17}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 17}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 17}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 16}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 16}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 13}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 11}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 10}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 9}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 8}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 8}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 7}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 7}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 6}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 6}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 6}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 6}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 6}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 6}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 6}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 5}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 4}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 3}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 3}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 3}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 3}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 3}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 3}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 3}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 3}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 3}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 3}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 2}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 2}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 2}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 2}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 2}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 2}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 2}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 2}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 2}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 2}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 2}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 2}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 2}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 2}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 2}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 2}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 2}, {"cid": 70, "color": "#4E79A7", "label": "Community 70", "count": 2}, {"cLine truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
+4 -4
View File
@@ -17,8 +17,8 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/common/index.ts": 1778582068.0254738,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/directive/directive.d.ts": 1778582068.026978,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api/api.d.ts": 1778582068.0246184,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1779367818.9493446,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1779367815.3312664,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1779370146.1200917,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1779370141.4874394,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/store/index.ts": 1778582068.0293276,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/router/index.ts": 1778775532.895603,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/locales/index.ts": 1778582068.004279,
@@ -275,8 +275,8 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-task/index.vue": 1779341706.1749396,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/reagent/index.vue": 1779307562.93293,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue": 1779361308.0826523,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts": 1779365205.5601952,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue": 1779365306.261633,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts": 1779369361.892348,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue": 1779369836.2400293,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue": 1779352611.1311061,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/consumable-pack/index.vue": 1779307488.018346,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/consumable/index.vue": 1779307921.9798808,
@@ -1,510 +0,0 @@
<!-- 弹窗详情/表单加载骨架(Fresh Mint,对齐 SystemViewDialog / dialog-form-layout) -->
<template>
<div
class="dialog-detail-skeleton"
:class="[
`dialog-detail-skeleton--${variant}`,
{ 'dialog-detail-skeleton--compact': compact }
]"
aria-busy="true"
aria-label="内容加载中"
>
<!-- SystemViewDialog 布局 -->
<template v-if="variant === 'system-view' || variant === 'system-view-image'">
<el-skeleton animated class="dds-hero">
<template #template>
<div class="dds-hero__inner">
<el-skeleton-item
:variant="variant === 'system-view-image' ? 'image' : 'rect'"
class="dds-hero__icon"
/>
<div class="dds-hero__main">
<el-skeleton-item variant="h1" class="dds-hero__title" />
<el-skeleton-item variant="text" class="dds-hero__meta" />
</div>
</div>
</template>
</el-skeleton>
<div
v-for="i in resolvedSectionCount"
:key="`sv-${i}`"
class="dds-section dds-section--view"
>
<el-skeleton animated>
<template #template>
<el-skeleton-item variant="h3" class="dds-section__title" />
<div class="dds-kv-grid" :class="`dds-kv-grid--cols-${gridColumns}`">
<div v-for="f in resolvedFieldCount" :key="f" class="dds-kv-field">
<el-skeleton-item variant="text" class="dds-kv-field__label" />
<el-skeleton-item variant="p" class="dds-kv-field__value" />
</div>
</div>
</template>
</el-skeleton>
</div>
</template>
<!-- CRUD 表单弹窗(无 Tab) -->
<template v-else-if="variant === 'form'">
<div
v-for="i in resolvedSectionCount"
:key="`form-${i}`"
class="dds-section dds-section--form"
>
<el-skeleton animated>
<template #template>
<el-skeleton-item variant="h3" class="dds-section__title dds-section__title--form" />
<div class="dds-form-grid" :class="`dds-form-grid--cols-${gridColumns}`">
<div v-for="f in resolvedFieldCount" :key="f" class="dds-form-field">
<el-skeleton-item variant="text" class="dds-form-field__label" />
<el-skeleton-item variant="rect" class="dds-form-field__control" />
</div>
</div>
</template>
</el-skeleton>
</div>
</template>
<!-- 带 Sticky Tab 的表单弹窗(协议单/捐赠单等) -->
<template v-else-if="variant === 'tabs-form'">
<div class="dds-tabs">
<el-skeleton-item
v-for="t in resolvedTabCount"
:key="t"
variant="rect"
class="dds-tabs__item"
/>
</div>
<div
v-for="i in resolvedSectionCount"
:key="`tf-${i}`"
class="dds-section dds-section--form"
>
<el-skeleton animated>
<template #template>
<el-skeleton-item variant="h3" class="dds-section__title dds-section__title--form" />
<div class="dds-form-grid dds-form-grid--cols-2">
<div v-for="f in resolvedFieldCount" :key="f" class="dds-form-field">
<el-skeleton-item variant="text" class="dds-form-field__label" />
<el-skeleton-item variant="rect" class="dds-form-field__control" />
</div>
</div>
</template>
</el-skeleton>
</div>
</template>
<!-- 大宽查看弹窗(采集协议单等:KPI + 多区块) -->
<template v-else-if="variant === 'tabs-detail'">
<div class="dds-tabs">
<el-skeleton-item
v-for="t in resolvedTabCount"
:key="t"
variant="rect"
class="dds-tabs__item"
/>
</div>
<el-skeleton animated class="dds-kpi">
<template #template>
<div class="dds-kpi__grid">
<div v-for="i in 4" :key="i" class="dds-kpi__card">
<el-skeleton-item variant="circle" class="dds-kpi__icon" />
<div class="dds-kpi__text">
<el-skeleton-item variant="text" class="dds-kpi__label" />
<el-skeleton-item variant="h3" class="dds-kpi__value" />
</div>
</div>
</div>
</template>
</el-skeleton>
<div
v-for="(sec, sIdx) in tabsDetailSections"
:key="sec.key"
class="dds-section"
:class="{ 'dds-section--green': sec.tone === 'green' }"
>
<el-skeleton animated>
<template #template>
<el-skeleton-item variant="h3" class="dds-section__title" />
<div
v-if="sec.fieldCount > 0"
class="dds-data-grid"
:class="`dds-data-grid--${sec.cols}`"
>
<div v-for="f in sec.fieldCount" :key="f" class="dds-data-field">
<el-skeleton-item variant="text" class="dds-data-field__label" />
<el-skeleton-item variant="p" class="dds-data-field__value" />
</div>
</div>
<div v-if="sIdx === 1" class="dds-subcards">
<div v-for="j in 3" :key="j" class="dds-subcard">
<el-skeleton-item variant="text" style="width: 28%; margin-bottom: 12px" />
<div class="dds-data-grid dds-data-grid--4">
<div v-for="k in 4" :key="k" class="dds-data-field">
<el-skeleton-item variant="text" class="dds-data-field__label" />
<el-skeleton-item variant="p" class="dds-data-field__value" />
</div>
</div>
</div>
</div>
</template>
</el-skeleton>
</div>
</template>
<!-- 简易块(工作流/订单等自定义弹窗) -->
<template v-else>
<div
v-for="i in resolvedSectionCount"
:key="`simple-${i}`"
class="dds-section dds-section--simple"
>
<el-skeleton animated :rows="resolvedFieldCount" />
</div>
</template>
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
const props = withDefaults(
defineProps<{
/** system-view | system-view-image | form | tabs-form | tabs-detail | simple */
variant?: 'system-view' | 'system-view-image' | 'form' | 'tabs-form' | 'tabs-detail' | 'simple'
sectionCount?: number
fieldCount?: number
tabCount?: number
gridColumns?: 2 | 3 | 4
compact?: boolean
}>(),
{
variant: 'system-view',
sectionCount: 2,
fieldCount: 6,
tabCount: 5,
gridColumns: 2,
compact: false
}
)
const resolvedSectionCount = computed(() => Math.max(1, props.sectionCount))
const resolvedFieldCount = computed(() => Math.max(2, props.fieldCount))
const resolvedTabCount = computed(() => Math.max(3, props.tabCount))
const tabsDetailSections = [
{ key: 'basic', tone: 'white' as const, cols: 4, fieldCount: 8 },
{ key: 'party', tone: 'green' as const, cols: 4, fieldCount: 0 },
{ key: 'collection', tone: 'white' as const, cols: 4, fieldCount: 8 },
{ key: 'sample', tone: 'white' as const, cols: 4, fieldCount: 6 },
{ key: 'payment', tone: 'white' as const, cols: 4, fieldCount: 8 }
]
</script>
<style scoped lang="scss">
.dialog-detail-skeleton {
display: flex;
flex-direction: column;
gap: 0;
min-height: min(360px, calc(100vh - 240px));
&--form,
&--tabs-form {
gap: 16px;
padding: 2px 0 8px;
min-height: min(320px, calc(100vh - 240px));
}
&--tabs-detail {
gap: 20px;
min-height: min(640px, calc(100vh - 240px));
}
&--compact {
min-height: min(280px, calc(100vh - 200px));
}
}
.dds-hero {
:deep(.el-skeleton) {
width: 100%;
}
}
.dds-hero__inner {
display: flex;
gap: 16px;
padding: 20px 22px;
background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%);
border-bottom: 1px solid #d9e8e2;
align-items: center;
}
.dds-hero__icon {
width: 72px;
height: 72px;
border-radius: 12px;
flex-shrink: 0;
}
.dds-hero__main {
flex: 1;
min-width: 0;
}
.dds-hero__title {
width: 42%;
height: 22px;
margin-bottom: 10px;
}
.dds-hero__meta {
width: 58%;
height: 14px;
}
.dialog-detail-skeleton--compact .dds-hero__inner {
padding: 12px 18px;
gap: 12px;
}
.dialog-detail-skeleton--compact .dds-hero__icon {
width: 48px;
height: 48px;
}
.dds-section--view {
padding: 18px 22px;
border-bottom: 1px solid #ebeef5;
&:last-child {
border-bottom: none;
}
:deep(.el-skeleton) {
width: 100%;
}
}
.dds-section--form,
.dds-section--simple {
padding: 4px 0;
:deep(.el-skeleton) {
width: 100%;
}
}
.dds-section--green {
padding: 22px 24px;
background: #f0fdf4;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.dds-section:not(.dds-section--view):not(.dds-section--green) {
&.dds-section--form {
padding: 8px 0;
}
}
.dds-section__title {
width: 96px;
height: 18px;
margin-bottom: 14px;
&--form {
width: 80px;
margin-bottom: 16px;
}
}
.dds-kv-grid {
display: grid;
gap: 12px 20px;
grid-template-columns: repeat(2, minmax(0, 1fr));
&--cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.dds-kv-field {
display: grid;
grid-template-columns: 96px 1fr;
gap: 8px 12px;
}
.dds-kv-field__label {
width: 80%;
height: 13px;
}
.dds-kv-field__value {
width: 92%;
height: 14px;
}
.dds-form-grid {
display: grid;
gap: 14px 20px;
grid-template-columns: repeat(2, minmax(0, 1fr));
&--cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.dds-form-field__label {
width: 40%;
height: 12px;
margin-bottom: 8px;
}
.dds-form-field__control {
width: 100%;
height: 36px;
border-radius: 8px;
}
.dds-tabs {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 4px;
background: #f0fdf4;
border-radius: 8px;
width: fit-content;
max-width: 100%;
margin-bottom: 4px;
}
.dds-tabs__item {
width: 88px;
height: 36px;
border-radius: 6px;
}
.dds-kpi {
margin-bottom: 4px;
:deep(.el-skeleton) {
width: 100%;
}
}
.dds-kpi__grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 6px;
background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 52%, #ecfdf5 100%);
border: 1px solid #a7f3d0;
border-radius: 12px;
}
.dds-kpi__card {
display: flex;
gap: 12px;
padding: 14px 18px;
&:not(:last-child) {
border-right: 1px solid rgba(167, 243, 208, 0.75);
}
}
.dds-kpi__icon {
width: 40px;
height: 40px;
flex-shrink: 0;
}
.dds-kpi__text {
flex: 1;
min-width: 0;
}
.dds-kpi__label {
width: 48%;
height: 11px;
}
.dds-kpi__value {
width: 72%;
height: 16px;
margin-top: 8px;
}
.dds-section:not(.dds-section--view) {
border-radius: 12px;
padding: 22px 24px;
background: #fff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
:deep(.el-skeleton) {
width: 100%;
}
}
.dds-data-grid {
display: grid;
gap: 14px 20px;
&--4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.dds-data-field__label {
width: 56%;
height: 12px;
margin-bottom: 6px;
}
.dds-data-field__value {
width: 88%;
height: 14px;
}
.dds-subcards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 4px;
}
.dds-subcard {
padding: 16px;
background: #fff;
border-radius: 10px;
border: 1px solid #e2e8f0;
}
@media (max-width: 1200px) {
.dds-kpi__grid {
grid-template-columns: repeat(2, 1fr);
}
.dds-kpi__card {
border-right: none !important;
border-bottom: 1px solid rgba(167, 243, 208, 0.75);
&:nth-last-child(-n + 2) {
border-bottom: none;
}
}
.dds-subcards {
grid-template-columns: 1fr;
}
.dds-data-grid--4 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 900px) {
.dds-kv-grid--cols-3 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
</style>
@@ -1,51 +1,23 @@
<!-- 弹窗正文:加载中显示骨架,避免 dialog-form-layout 先小后大 -->
<!-- 弹窗正文:加载中显示 v-loading,避免 dialog-form-layout 先小后大 -->
<template>
<div
class="dialog-form-body"
:class="[bodyClass, { 'is-dialog-loading': loading }]"
:class="bodyClass"
v-loading="loading"
>
<DialogDetailSkeleton
v-if="loading"
:variant="skeletonVariant"
:section-count="skeletonSectionCount"
:field-count="skeletonFieldCount"
:tab-count="skeletonTabCount"
:grid-columns="skeletonGridColumns"
:compact="skeletonCompact"
/>
<slot v-else />
<slot />
</div>
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
withDefaults(
defineProps<{
loading?: boolean
bodyClass?: string
skeletonVariant?: 'system-view' | 'system-view-image' | 'form' | 'tabs-form' | 'tabs-detail' | 'simple'
skeletonSectionCount?: number
skeletonFieldCount?: number
skeletonTabCount?: number
skeletonGridColumns?: 2 | 3 | 4
skeletonCompact?: boolean
}>(),
{
loading: false,
bodyClass: '',
skeletonVariant: 'form',
skeletonSectionCount: 2,
skeletonFieldCount: 6,
skeletonTabCount: 5,
skeletonGridColumns: 2,
skeletonCompact: false
bodyClass: ''
}
)
</script>
<style scoped lang="scss">
.dialog-form-body.is-dialog-loading {
min-height: min(400px, calc(100vh - 220px));
}
</style>
@@ -9,14 +9,7 @@
@update:model-value="emit('update:modelValue', $event)"
@closed="handleClosed"
>
<div class="product-form-container" :class="{ 'is-view-loading': loading }">
<DialogDetailSkeleton
v-if="loading"
variant="system-view-image"
:section-count="3"
:grid-columns="2"
/>
<template v-else>
<div class="product-form-container" v-loading="loading">
<div class="view-hero">
<el-image
v-if="formData.imageUrl"
@@ -236,7 +229,6 @@
</div>
</div>
</div>
</template>
</div>
<template #footer>
@@ -269,7 +261,6 @@
<script setup lang="ts">
import { computed, reactive, ref, watch } from 'vue'
import { Close, Document, Money, Picture, Setting, VideoPlay } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { buildTreePathLabelFromFlat } from '@/utils/tree-path'
import {
fetchProductDetail,
@@ -626,10 +617,6 @@ watch(
max-height: 62vh;
overflow-y: auto;
&.is-view-loading {
min-height: min(420px, calc(100vh - 220px));
overflow: hidden;
}
padding-right: 6px;
&::-webkit-scrollbar {
width: 6px;
@@ -10,8 +10,6 @@
:meta="viewDetail?.taskNo || ''"
:sections="viewSections"
:loading="loading"
:skeleton-section-count="3"
:skeleton-field-count="8"
append-to-body
compact
modal-class="qc-task-view-dialog-mask"
@@ -13,16 +13,7 @@
:modal-class="modalClass"
style="backdrop-filter: none"
>
<div class="dialog-scroll" :class="{ 'is-view-loading': loading }">
<DialogDetailSkeleton
v-if="loading"
variant="system-view"
:section-count="skeletonSectionCount"
:field-count="skeletonFieldCount"
:grid-columns="gridColumns"
:compact="compact"
/>
<template v-else>
<div class="dialog-scroll" v-loading="loading">
<!-- hero -->
<div class="view-hero">
<div class="view-hero-icon">
@@ -73,7 +64,6 @@
</div>
</div>
<slot name="append" />
</template>
</div>
<template #footer>
@@ -87,7 +77,6 @@
<script setup lang="ts">
import { computed, type Component } from 'vue'
import { Close, Document } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
function isIconComponent(val: unknown): val is Component {
return val != null && (typeof val === 'object' || typeof val === 'function')
@@ -140,12 +129,8 @@
dialogClass?: string
/** 紧凑布局:缩小头部/区块间距与内容区最大高度 */
compact?: boolean
/** 详情异步加载中:展示骨架屏 */
/** 详情异步加载中 */
loading?: boolean
/** 骨架区块数量(默认 2) */
skeletonSectionCount?: number
/** 每区块骨架字段行数(默认 6) */
skeletonFieldCount?: number
}>(),
{
width: '720px',
@@ -154,9 +139,7 @@
modalClass: '',
dialogClass: '',
compact: false,
loading: false,
skeletonSectionCount: 2,
skeletonFieldCount: 6
loading: false
}
)
@@ -186,10 +169,6 @@
.dialog-scroll {
overflow-y: auto;
max-height: calc(100vh - 120px);
&.is-view-loading {
overflow: hidden;
}
}
.view-hero {
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "label": "useTaskStepEditor.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L1"}, {"id": "production_work_order_usetaskstepeditor_toapiflag", "label": "toApiFlag()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L24"}, {"id": "production_work_order_usetaskstepeditor_fromapiflag", "label": "fromApiFlag()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L28"}, {"id": "production_work_order_usetaskstepeditor_normalizestepsubtables", "label": "normalizeStepSubTables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L31"}, {"id": "production_work_order_usetaskstepeditor_parseordernum", "label": "parseOrderNum()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L46"}, {"id": "production_work_order_usetaskstepeditor_usetaskstepeditor", "label": "useTaskStepEditor()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L53"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_task", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L13", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_admin", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L21", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "production_work_order_usetaskstepeditor_toapiflag", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "production_work_order_usetaskstepeditor_fromapiflag", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L28", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "production_work_order_usetaskstepeditor_normalizestepsubtables", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L31", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "production_work_order_usetaskstepeditor_parseordernum", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L46", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor_ts", "target": "production_work_order_usetaskstepeditor_usetaskstepeditor", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L53", "weight": 1.0}], "raw_calls": [{"caller_nid": "productLine truncated
@@ -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"}], "edges": [], "raw_calls": []}
@@ -12,9 +12,6 @@
<DialogFormBody
:loading="dialogFormLoading"
body-class="protocol-dialog-body min-h-[200px]"
skeleton-variant="tabs-form"
:skeleton-tab-count="formTabs.length"
:skeleton-section-count="4"
>
<div class="detail-tabs">
<div
@@ -24,13 +24,8 @@
</div>
</div>
<DialogDetailSkeleton
v-if="detailLoading && !bundle"
variant="tabs-detail"
:tab-count="formTabs.length"
/>
<template v-else-if="bundle">
<template v-if="bundle">
<div v-loading="detailLoading && !bundle">
<!-- KPI 摘要条 -->
<div class="kpi-strip">
<div class="kpi-card">
@@ -768,6 +763,7 @@
</el-table-column>
</el-table>
</div>
</div>
</template>
</div>
@@ -800,7 +796,6 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, CircleCheck, Close, Document, User } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import ProtocolAttachmentReadonly from './ProtocolAttachmentReadonly.vue'
import SampleQcInfoCards from '@/components/business/sample-qc-info-cards/index.vue'
import {
@@ -14,7 +14,7 @@
>
<div class="channel-view-body" :class="{ 'is-sub-loading': loading && channel }">
<template v-if="channel">
<div class="detail-tabs">
<div v-loading="loading" class="detail-tabs">
<div
v-for="tab in viewTabs"
:key="tab.key"
@@ -304,14 +304,8 @@
<el-empty v-else description="暂无协议信息" :image-size="48" />
</div>
<DialogDetailSkeleton
v-if="loading"
variant="simple"
:section-count="2"
class="channel-view-sub-skeleton"
/>
</template>
<DialogDetailSkeleton v-else variant="tabs-detail" :tab-count="viewTabs.length" />
<div v-else v-loading="true" style="min-height: 200px"></div>
</div>
<template #footer>
@@ -344,7 +338,6 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, Close, CollectionTag, OfficeBuilding, User } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import { downloadAttachmentFile } from '@/utils/download-attachment'
import {
@@ -261,11 +261,10 @@
<!-- 中间:步骤列表 -->
<div
class="route-config-center"
v-loading="stepListLoading"
@dragover.prevent
@drop="onDropToCenter"
>
<el-skeleton v-if="stepListLoading" animated :rows="6" class="route-config-step-skeleton" />
<template v-else>
<div class="route-config-center-header">
<h3>工序步骤</h3>
<span class="route-config-step-count">共 {{ stepList.length }} 步</span>
@@ -316,7 +315,6 @@
<p>从左侧拖拽工序到此处,添加路线步骤</p>
</div>
</div>
</template>
</div>
<!-- 右侧:步骤详情 -->
File diff suppressed because it is too large. Load diff
@@ -75,9 +75,7 @@
<el-empty v-if="!editor.filteredProcessLibrary.value.length" description="暂无工艺数据" :image-size="48" />
</div>
<div class="route-config-center" @dragover.prevent @drop="editor.onDropToCenter">
<el-skeleton v-if="editor.stepListLoading.value" animated :rows="6" />
<template v-else>
<div class="route-config-center" v-loading="editor.stepListLoading.value" @dragover.prevent @drop="editor.onDropToCenter">
<div class="route-config-center-header">
<h3>工序步骤</h3>
<span class="route-config-step-count">共 {{ editor.stepList.value.length }} 步</span>
@@ -108,7 +106,6 @@
<p>从左侧拖拽工序到此处,添加任务步骤</p>
</div>
</div>
</template>
</div>
<StepDetailPanel :editor="editor" />
@@ -2,7 +2,31 @@
<template>
<div class="route-config-right">
<template v-if="editor.selectedStep.value">
<div class="route-config-right-header"><h3>步骤详情</h3></div>
<div class="route-config-right-header">
<h3>步骤详情</h3>
<div v-if="editor.mode.value === 'execution' && editor.selectedStep.value" class="step-status-bar">
<el-tag :type="editor.stepStatusTag(editor.selectedStep.value.stepStatus || 'dzx').type" size="small">
{{ editor.stepStatusTag(editor.selectedStep.value.stepStatus || 'dzx').label }}
</el-tag>
<el-button
v-if="editor.selectedStep.value.stepStatus === 'dzx'"
class="btn-op-item primary"
size="small"
@click="editor.handleStartStep(editor.selectedStep.value)"
>
<el-icon><VideoPlay /></el-icon>开始执行
</el-button>
<el-button
v-if="editor.selectedStep.value.stepStatus === 'jxz'"
class="btn-op-item"
size="small"
type="success"
@click="editor.handleCompleteStep(editor.selectedStep.value)"
>
<el-icon><Check /></el-icon>完成步骤
</el-button>
</div>
</div>
<div class="route-config-right-body">
<el-form label-position="top" class="route-config-step-form">
<div class="form-grid-2">
@@ -70,6 +94,11 @@
<el-input v-model="row.standardUsage" placeholder="用量" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column v-if="editor.mode.value === 'execution'" label="实际用量" min-width="110" align="center">
<template #default="{ row }">
<el-input v-model="row.actualUsage" placeholder="实际用量" class="inner-cell-input" @change="editor.saveReagents" />
</template>
</el-table-column>
<el-table-column label="单位" min-width="120" align="center">
<template #default="{ row }">
<el-select v-model="row.unit" placeholder="请选择单位" clearable filterable remote
@@ -133,6 +162,11 @@
<el-input v-model="row.standardUsage" placeholder="用量" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column v-if="editor.mode.value === 'execution'" label="实际用量" min-width="110" align="center">
<template #default="{ row }">
<el-input v-model="row.actualUsage" placeholder="实际用量" class="inner-cell-input" @change="editor.saveConsumables" />
</template>
</el-table-column>
<el-table-column label="单位" min-width="120" align="center">
<template #default="{ row }">
<el-select v-model="row.unit" placeholder="请选择单位" clearable filterable remote
@@ -231,6 +265,11 @@
</el-select>
</template>
</el-table-column>
<el-table-column v-if="editor.mode.value === 'execution'" label="采集值" min-width="140" align="center">
<template #default="{ row }">
<el-input v-model="row.collectionValue" placeholder="输入采集值" class="inner-cell-input" @change="editor.saveDataCollections" />
</template>
</el-table-column>
<el-table-column label="备注" min-width="120" align="center">
<template #default="{ row }">
<el-input v-model="row.remark" placeholder="备注" class="inner-cell-input"
@@ -264,7 +303,7 @@
</template>
<script setup lang="ts">
import { Check, Plus, Rank } from '@element-plus/icons-vue'
import { Check, Plus, Rank, VideoPlay } from '@element-plus/icons-vue'
import { useTaskStepEditor } from './useTaskStepEditor'
defineProps<{
@@ -274,4 +313,11 @@
<style scoped lang="scss">
@use '../../../styles/route-config' as *;
.step-status-bar {
display: flex;
align-items: center;
gap: 8px;
margin-left: 12px;
}
</style>
@@ -0,0 +1,335 @@
<!-- 生产任务执行弹窗 -->
<template>
<el-dialog
v-model="dialogVisible"
:title="`任务执行 — ${taskName}`"
width="96vw"
class="dialog-form-layout execution-dialog"
align-center
destroy-on-close
:close-on-click-modal="false"
@close="handleClose"
>
<!-- 顶部:任务基本信息一行展示 -->
<div v-if="editor.taskDetail.value" class="execution-header">
<div class="execution-header-row">
<span class="execution-header-item">任务号:<b>{{ editor.taskDetail.value.taskNo }}</b></span>
<span class="execution-header-item">工单号:{{ editor.taskDetail.value.workOrderNo || '—' }}</span>
<span class="execution-header-item">任务名称:{{ editor.taskDetail.value.taskName || '—' }}</span>
<el-tag :type="editor.taskStatusTag(editor.taskDetail.value.taskStatus).type">
{{ editor.taskStatusTag(editor.taskDetail.value.taskStatus).label }}
</el-tag>
<div class="execution-header-actions">
<el-button
v-if="editor.taskDetail.value.taskStatus === 'dpz'"
class="btn-main"
type="primary"
size="small"
@click="editor.handleStartTask"
>
<el-icon><VideoPlay /></el-icon>开始执行
</el-button>
<el-button
v-if="editor.taskDetail.value.taskStatus === 'jxz'"
class="btn-main"
type="success"
size="small"
@click="editor.handleCompleteTask"
>
<el-icon><Check /></el-icon>完成任务
</el-button>
</div>
</div>
<div v-if="editor.taskDetail.value.remark" class="execution-header-remark">{{ editor.taskDetail.value.remark }}</div>
</div>
<!-- 四栏布局:工艺库 + 任务I/O(上下叠放) + 步骤列表 + 步骤详情 -->
<div class="route-config-body execution-route-config-body">
<!-- 最左侧:任务输入/输出上下叠放 -->
<div class="execution-io-column">
<!-- 任务输入 -->
<div class="execution-io-block">
<div class="execution-io-header">
<h4><span class="section-bar"></span>任务输入</h4>
<div class="execution-io-actions">
<el-button class="btn-main" type="primary" size="small" @click="editor.addTaskInputRow"><el-icon><Plus /></el-icon>添加</el-button>
<el-button class="btn-main" type="primary" size="small" :loading="editor.inputSaving.value" @click="editor.saveTaskInputs"><el-icon><Check /></el-icon>保存</el-button>
</div>
</div>
<el-table :data="editor.taskInputs.value" stripe class="inner-table" max-height="200">
<el-table-column type="index" label="序号" width="50" align="center" :index="(i: number) => i + 1" />
<el-table-column label="输入类型" min-width="100" align="center">
<template #default="{ row }">
<el-select v-model="row.inputType" placeholder="选择类型" class="inner-cell-select">
<el-option label="样本" value="sample" />
<el-option label="细胞产品" value="cell_product" />
</el-select>
</template>
</el-table-column>
<el-table-column label="输入编码" min-width="110" align="center">
<template #default="{ row }">
<el-input v-model="row.inputCode" placeholder="输入编码" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column label="输入名称" min-width="110" align="center">
<template #default="{ row }">
<el-input v-model="row.inputName" placeholder="输入名称" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column label="操作" width="60" align="center">
<template #default="{ $index }">
<el-button link type="danger" size="small" @click="editor.removeTaskInputRow($index)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-empty v-if="!editor.taskInputs.value.length" description="暂无输入项" :image-size="28" />
</div>
<!-- 任务输出 -->
<div class="execution-io-block">
<div class="execution-io-header">
<h4><span class="section-bar"></span>任务输出</h4>
<div class="execution-io-actions">
<el-button class="btn-main" type="primary" size="small" @click="editor.addTaskOutputRow"><el-icon><Plus /></el-icon>添加</el-button>
<el-button class="btn-main" type="primary" size="small" :loading="editor.outputSaving.value" @click="editor.saveTaskOutputs"><el-icon><Check /></el-icon>保存</el-button>
</div>
</div>
<el-table :data="editor.taskOutputs.value" stripe class="inner-table" max-height="200">
<el-table-column type="index" label="序号" width="50" align="center" :index="(i: number) => i + 1" />
<el-table-column label="输出名称" min-width="100" align="center">
<template #default="{ row }">
<el-input v-model="row.outputName" placeholder="输出名称" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column label="输出条码" min-width="100" align="center">
<template #default="{ row }">
<el-input v-model="row.outputBarcode" placeholder="扫码或输入" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column label="数量" min-width="80" align="center">
<template #default="{ row }">
<el-input-number v-model="row.quantity" :min="0" :precision="2" controls-position="right" style="width: 100%" />
</template>
</el-table-column>
<el-table-column label="单位" min-width="70" align="center">
<template #default="{ row }">
<el-input v-model="row.unit" placeholder="单位" class="inner-cell-input" />
</template>
</el-table-column>
<el-table-column label="操作" width="60" align="center">
<template #default="{ $index }">
<el-button link type="danger" size="small" @click="editor.removeTaskOutputRow($index)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-empty v-if="!editor.taskOutputs.value.length" description="暂无输出项" :image-size="28" />
</div>
</div>
<!-- 工艺库 -->
<div class="route-config-left">
<div class="route-config-left-header">
<h3>工艺库</h3>
<el-input v-model="editor.processSearchKeyword.value" placeholder="搜索工序" clearable size="small" class="route-config-search" />
</div>
<el-collapse v-model="editor.expandedCategories.value" class="route-config-collapse">
<el-collapse-item v-for="cat in editor.filteredProcessLibrary.value" :key="cat.categoryId" :name="cat.categoryId">
<template #title>
<span class="route-config-cat-bar"></span>
<span>{{ cat.categoryName }}</span>
</template>
<div v-for="(proc, procIndex) in cat.processes" :key="proc.id" class="route-config-process-card" draggable="true" @dragstart="editor.onDragStart($event, proc)">
<div class="route-config-process-info">
<div class="route-config-process-name">
<span class="route-config-process-seq">{{ procIndex + 1 }}</span>{{ proc.processName }}
</div>
<div class="route-config-process-code">{{ proc.processCode }}</div>
</div>
<el-icon class="route-config-process-drag"><Rank /></el-icon>
</div>
<el-empty v-if="!cat.processes.length" description="该分类暂无工序" :image-size="32" />
</el-collapse-item>
</el-collapse>
<el-empty v-if="!editor.filteredProcessLibrary.value.length" description="暂无工艺数据" :image-size="48" />
</div>
<!-- 中间:步骤列表 -->
<div class="route-config-center" v-loading="editor.stepListLoading.value" @dragover.prevent @drop="editor.onDropToCenter">
<div class="route-config-center-header">
<h3>工序步骤</h3>
<span class="route-config-step-count">共 {{ editor.stepList.value.length }} 步</span>
</div>
<div class="route-config-center-dropzone">
<draggable v-model="editor.stepList.value" handle=".route-config-step-handle" :animation="200" @end="editor.onStepDragEnd">
<div v-for="(element, index) in editor.stepList.value" :key="element.id" class="route-config-step-card" :class="{ 'is-active': editor.selectedStepId.value === element.id }" @click="editor.selectStep(element)">
<div class="route-config-step-handle"><el-icon><Rank /></el-icon></div>
<div class="route-config-step-order">{{ index + 1 }}</div>
<div class="route-config-step-info">
<div class="route-config-step-name">{{ element.processName || '未命名步骤' }}</div>
<div class="route-config-step-desc">{{ element.description || '' }}</div>
</div>
<el-tag v-if="element.stepStatus" :type="editor.stepStatusTag(element.stepStatus).type" size="small" style="margin-right:4px">{{ editor.stepStatusTag(element.stepStatus).label }}</el-tag>
<el-button link type="primary" size="small" title="复制步骤" @click.stop="editor.handleCopyStep(element)">
<el-icon><CopyDocument /></el-icon>
</el-button>
<el-button link type="danger" size="small" @click.stop="editor.handleDeleteStep(element)">
<el-icon><Delete /></el-icon>
</el-button>
</div>
</draggable>
<div v-if="!editor.stepList.value.length" class="route-config-center-empty">
<el-icon :size="32" color="#a7f3d0"><Plus /></el-icon>
<p>从左侧拖拽工序到此处,添加任务步骤</p>
</div>
</div>
</div>
<!-- 右侧:步骤详情 -->
<StepDetailPanel :editor="editor" />
</div>
</el-dialog>
</template>
<script setup lang="ts">
import { Rank, Plus, Check, VideoPlay, CopyDocument, Delete } from '@element-plus/icons-vue'
import { VueDraggable as draggable } from 'vue-draggable-plus'
import { useTaskStepEditor } from './useTaskStepEditor'
import StepDetailPanel from './StepDetailPanel.vue'
const props = defineProps<{
visible: boolean
taskId: string
taskName: string
}>()
const emit = defineEmits<{
(e: 'update:visible', val: boolean): void
(e: 'success'): void
}>()
const dialogVisible = computed({
get: () => props.visible,
set: (val) => emit('update:visible', val)
})
const editor = useTaskStepEditor()
function handleClose() {
dialogVisible.value = false
emit('success')
}
watch(() => props.visible, async (val) => {
if (val && props.taskId) {
await editor.initEditor(props.taskId, { mode: 'execution' })
}
})
</script>
<style scoped lang="scss">
@use '../../../styles/route-config' as *;
.execution-dialog {
:deep(.el-dialog) {
margin: 2vh auto !important;
}
:deep(.el-dialog__body) {
max-height: calc(96vh - 54px);
overflow-y: auto;
padding: 12px 16px;
}
}
/* 顶部信息一行展示,极致压缩 */
.execution-header {
padding: 6px 16px;
background: #f0fdf4;
border-radius: 6px;
margin-bottom: 8px;
border: 1px solid #d1fae5;
}
.execution-header-row {
display: flex;
align-items: center;
gap: 16px;
font-size: 13px;
color: #475569;
b { color: #1e293b; }
}
.execution-header-item {
white-space: nowrap;
}
.execution-header-actions {
display: flex;
gap: 8px;
margin-left: auto;
}
.execution-header-remark {
margin-top: 4px;
font-size: 12px;
color: #64748b;
}
/* 工艺库右侧 I/O 列 */
.execution-io-column {
width: 320px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 8px;
overflow: hidden;
}
.execution-io-block {
flex: 1;
display: flex;
flex-direction: column;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 8px;
overflow: hidden;
min-height: 0;
}
.execution-io-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
flex-shrink: 0;
h4 {
margin: 0;
font-size: 13px;
font-weight: 600;
color: #1e293b;
display: flex;
align-items: center;
gap: 0;
}
}
.execution-io-actions {
display: flex;
gap: 4px;
}
.section-bar {
display: inline-block;
width: 3px;
height: 14px;
background: #10b981;
border-radius: 2px;
margin-right: 8px;
}
.execution-route-config-body {
height: calc(96vh - 110px);
min-height: 400px;
}
</style>
@@ -8,7 +8,10 @@ import {
fetchReplaceStepReagents,
fetchReplaceStepConsumables,
fetchReplaceStepDataCollection,
fetchReplaceStepOutputs
fetchReplaceStepOutputs,
fetchUpdateProductionTaskStatus,
fetchSetTaskInputs,
fetchSetTaskOutputs
} from '@/api/production-task'
import {
fetchAllProcesses,
@@ -59,6 +62,14 @@ export function useTaskStepEditor() {
const processSearchKeyword = ref('')
const configSuppressSave = ref(false)
// ── execution-mode state ────────────────────────────────────────────
const mode = ref<'edit' | 'execution'>('edit')
const taskDetail = ref<Record<string, any> | null>(null)
const taskInputs = ref<Record<string, any>[]>([])
const taskOutputs = ref<Record<string, any>[]>([])
const inputSaving = ref(false)
const outputSaving = ref(false)
const processLibrary = ref<Record<string, any>[]>([])
const expandedCategories = ref<string[]>([])
const categoryOptions = ref<Record<string, any>[]>([])
@@ -341,16 +352,22 @@ export function useTaskStepEditor() {
processLibrary.value = Object.values(catMap)
await Promise.all([searchItemUnitOptions(''), searchReagentOptions(''), searchConsumableOptions('')])
}
async function loadTaskDetail() {
if (!taskId.value) return
async function loadTaskDetail(overrideId?: string) {
const id = overrideId || taskId.value
if (!id) return
try {
const detail = await fetchProductionTaskDetail(taskId.value)
const detail = await fetchProductionTaskDetail(id)
stepList.value = (detail.steps || []).map(normalizeStepSubTables)
ensureAllStepReagentOptions()
ensureAllStepConsumableOptions()
ensureAllStepUnitOptions()
if (stepList.value.length > 0 && !selectedStepId.value)
selectedStepId.value = stepList.value[0].id
if (mode.value === 'execution') {
taskDetail.value = detail
taskInputs.value = (detail.inputs || []).map((i: Record<string, any>) => ({ ...i }))
taskOutputs.value = (detail.outputs || []).map((o: Record<string, any>) => ({ ...o }))
}
} catch {
stepList.value = []
}
@@ -365,7 +382,7 @@ export function useTaskStepEditor() {
if (!processId || !taskId.value) return
stepListLoading.value = true
try {
const newStep = await fetchAddTaskStep(taskId.value, { processId })
const newStep = await fetchAddTaskStep(taskId.value, { process_id: processId })
await loadTaskDetail()
if (newStep?.id) selectedStepId.value = newStep.id
ElMessage.success('步骤添加成功')
@@ -524,7 +541,82 @@ export function useTaskStepEditor() {
}
}
async function initEditor(id: string) {
async function handleStartStep(step: Record<string, any>) {
if (!taskId.value || !step.id) return
await fetchUpdateTaskStep(taskId.value, step.id, { step_status: 'jxz' })
ElMessage.success('步骤已开始执行')
await loadTaskDetail()
}
async function handleCompleteStep(step: Record<string, any>) {
if (!taskId.value || !step.id) return
await ElMessageBox.confirm('确定完成该步骤吗?', '提示', { type: 'warning' })
await fetchUpdateTaskStep(taskId.value, step.id, { step_status: 'ywc' })
ElMessage.success('步骤已完成')
await loadTaskDetail()
}
async function handleStartTask() {
if (!taskDetail.value?.id) return
await ElMessageBox.confirm('确定开始执行该任务吗?', '提示', { type: 'warning' })
await fetchUpdateProductionTaskStatus(taskDetail.value.id, { taskStatus: 'jxz' })
ElMessage.success('任务已开始执行')
await loadTaskDetail(taskDetail.value.id)
}
async function handleCompleteTask() {
if (!taskDetail.value?.id) return
await ElMessageBox.confirm('确定完成该任务吗?完成后不可恢复。', '提示', { type: 'warning' })
await fetchUpdateProductionTaskStatus(taskDetail.value.id, { taskStatus: 'ywc' })
ElMessage.success('任务已完成')
await loadTaskDetail(taskDetail.value.id)
}
function addTaskInputRow() {
taskInputs.value.push({ inputType: 'sample', inputCode: '', inputName: '' })
}
function removeTaskInputRow(i: number) { taskInputs.value.splice(i, 1) }
async function saveTaskInputs() {
if (!taskDetail.value?.id) return
inputSaving.value = true
try {
await fetchSetTaskInputs(taskDetail.value.id, { items: taskInputs.value })
ElMessage.success('输入已保存')
} catch { /* global error handling */ } finally { inputSaving.value = false }
}
function addTaskOutputRow() {
taskOutputs.value.push({ cellProductId: '', storageSlotId: '', outputName: '', outputBarcode: '', quantity: 0, unit: '', remark: '' })
}
function removeTaskOutputRow(i: number) { taskOutputs.value.splice(i, 1) }
async function saveTaskOutputs() {
if (!taskDetail.value?.id) return
outputSaving.value = true
try {
await fetchSetTaskOutputs(taskDetail.value.id, { items: taskOutputs.value })
ElMessage.success('输出已保存')
} catch { /* global error handling */ } finally { outputSaving.value = false }
}
function taskStatusTag(status: string) {
const map: Record<string, { label: string; type: string }> = {
dpz: { label: '待配置', type: 'info' },
jxz: { label: '进行中', type: 'warning' },
ywc: { label: '已完成', type: 'success' }
}
return map[status] || { label: status, type: 'info' }
}
function stepStatusTag(status: string) {
const map: Record<string, { label: string; type: string }> = {
dzx: { label: '待执行', type: 'info' },
jxz: { label: '进行中', type: 'warning' },
ywc: { label: '已完成', type: 'success' }
}
return map[status] || { label: status, type: 'info' }
}
async function initEditor(id: string, options?: { mode?: 'edit' | 'execution' }) {
mode.value = options?.mode || 'edit'
taskId.value = id
selectedStepId.value = ''
activeSubTab.value = 'reagent'
@@ -542,6 +634,7 @@ export function useTaskStepEditor() {
return {
taskId, stepList, selectedStepId, selectedStep, stepListLoading,
activeSubTab, processSearchKeyword, configSuppressSave,
mode, taskDetail, taskInputs, taskOutputs, inputSaving, outputSaving,
processLibrary, filteredProcessLibrary, expandedCategories,
categoryOptions, sopOptions, outputTypeOptions,
itemUnitOptions, itemUnitOptionsLoading,
@@ -550,6 +643,11 @@ export function useTaskStepEditor() {
sopIdsArr,
onDragStart, onDropToCenter, onStepDragEnd, selectStep,
handleCopyStep, handleDeleteStep,
handleStartStep, handleCompleteStep,
handleStartTask, handleCompleteTask,
addTaskInputRow, removeTaskInputRow, saveTaskInputs,
addTaskOutputRow, removeTaskOutputRow, saveTaskOutputs,
taskStatusTag, stepStatusTag,
saveStepBasic, onSopIdsChange,
searchItemUnitOptions, searchReagentOptions, searchConsumableOptions,
onReagentRowSelect, onConsumableRowSelect,
@@ -153,10 +153,6 @@
>
<DialogFormBody
:loading="resultLoading"
skeleton-variant="form"
:skeleton-section-count="2"
:skeleton-field-count="6"
:skeleton-grid-columns="3"
>
<el-form label-position="top" class="biz-dialog-form">
<div class="form-section">
@@ -12,9 +12,6 @@
<DialogFormBody
:loading="dialogFormLoading"
body-class="protocol-dialog-body min-h-[200px]"
skeleton-variant="tabs-form"
:skeleton-tab-count="formTabs.length"
:skeleton-section-count="4"
>
<div class="detail-tabs">
<div
@@ -24,13 +24,8 @@
</div>
</div>
<DialogDetailSkeleton
v-if="loading && !bundle"
variant="tabs-detail"
:tab-count="formTabs.length"
/>
<template v-else-if="bundle">
<template v-if="bundle">
<div v-loading="loading && !bundle">
<!-- KPI 摘要条 -->
<div class="kpi-strip">
<div class="kpi-card">
@@ -547,6 +542,7 @@
</el-table-column>
</el-table>
</div>
</div>
</template>
</div>
@@ -579,7 +575,6 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, CircleCheck, Close, Document, User } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import SampleQcInfoCards from '@/components/business/sample-qc-info-cards/index.vue'
import {
+4 -29
View File
@@ -295,15 +295,7 @@
class="order-module-dialog order-detail-dialog"
modal-class="order-module-dialog-mask"
>
<div class="dialog-scroll order-detail-dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="4"
:field-count="8"
:grid-columns="3"
/>
<template v-else>
<div class="dialog-scroll order-detail-dialog-scroll" v-loading="detailLoading">
<div class="view-hero order-view-hero">
<div class="order-view-hero-icon">
<el-icon><ShoppingBag /></el-icon>
@@ -818,7 +810,6 @@
</div>
</div>
</template>
</div>
<template #footer>
<el-button class="btn-ghost" @click="viewVisible = false"><el-icon><Close /></el-icon>关闭</el-button>
@@ -839,15 +830,7 @@
</el-dialog>
<div v-else v-show="viewVisible" class="order-embedded-detail">
<div class="dialog-scroll order-detail-dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="4"
:field-count="8"
:grid-columns="3"
/>
<template v-else>
<div class="dialog-scroll order-detail-dialog-scroll" v-loading="detailLoading">
<div class="view-hero order-view-hero">
<div class="order-view-hero-icon">
<el-icon><ShoppingBag /></el-icon>
@@ -1152,7 +1135,6 @@
</div>
</div>
</template>
</div>
</div>
@@ -1400,14 +1382,8 @@
modal-class="order-module-dialog-mask"
@opened="loadOrderPriceVersionDetail"
>
<div class="order-pv-body" :class="{ 'is-view-loading': orderPriceVersionLoading }">
<DialogDetailSkeleton
v-if="orderPriceVersionLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="orderPriceVersionDetail">
<div class="order-pv-body" v-loading="orderPriceVersionLoading">
<template v-if="orderPriceVersionDetail">
<div class="view-hero order-pv-hero">
<div class="order-view-hero-icon">
<el-icon><Setting /></el-icon>
@@ -1540,7 +1516,6 @@
} from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
import {
ArrowDown,
@@ -168,9 +168,6 @@
<DialogFormBody
:loading="postBindLoading"
body-class="post-bind-dialog-body"
skeleton-variant="form"
:skeleton-section-count="1"
:skeleton-field-count="4"
>
<p v-if="postBindPostName" class="post-bind-subtitle">
职位:<strong>{{ postBindPostName }}</strong>
+5 -7
View File
@@ -197,7 +197,7 @@
destroy-on-close
:close-on-click-modal="false"
>
<DialogFormBody :loading="menuDialogLoading" skeleton-variant="simple" :skeleton-section-count="1">
<DialogFormBody :loading="menuDialogLoading">
<!-- 父子关联勾选:选父级全选子级,选子级自动带上父级(与 check-strictly 互斥,故不加) -->
<el-tree
ref="menuTreeRef"
@@ -363,9 +363,8 @@
:sections="viewSections"
>
<template #menuTree>
<div class="role-view-tree-block">
<el-skeleton v-if="viewDetailLoading" animated :rows="5" class="role-view-tree-skeleton" />
<div v-else-if="viewMenuTreeData.length" class="role-view-tree-scroll">
<div class="role-view-tree-block" v-loading="viewDetailLoading">
<div v-if="viewMenuTreeData.length" class="role-view-tree-scroll">
<el-tree
:key="'menu-' + viewTreeRenderKey"
ref="viewMenuTreeRef"
@@ -382,9 +381,8 @@
</div>
</template>
<template #customDeptTree>
<div class="role-view-tree-block">
<el-skeleton v-if="viewDetailLoading" animated :rows="5" class="role-view-tree-skeleton" />
<div v-else-if="viewDeptTreeData.length" class="role-view-tree-scroll">
<div class="role-view-tree-block" v-loading="viewDetailLoading">
<div v-if="viewDeptTreeData.length" class="role-view-tree-scroll">
<el-tree
:key="'dept-' + viewTreeRenderKey"
ref="viewDeptTreeRef"
@@ -10,10 +10,7 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-if="bizLoading" class="dialog-scroll is-view-loading" style="min-height: 120px">
<DialogDetailSkeleton variant="simple" :section-count="2" :field-count="4" />
</div>
<div v-else class="dialog-scroll">
<div v-loading="bizLoading" class="dialog-scroll">
<!-- Hero header -->
<div class="view-hero">
<div class="view-hero-icon">
@@ -77,7 +74,6 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchApproveTask, fetchRejectTask, fetchInstanceDetail } from '@/api/workflow'
import { Checked, Close, Check } from '@element-plus/icons-vue'
@@ -126,14 +126,8 @@
:show-close="false"
style="backdrop-filter: none"
>
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="dialog-scroll" v-loading="detailLoading">
<template v-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -200,7 +194,6 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchMyInstances, fetchBusinessAllTasks } from '@/api/workflow'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'
import { Document, View, Search, RefreshLeft, Close } from '@element-plus/icons-vue'
@@ -127,14 +127,8 @@
:show-close="false"
style="backdrop-filter: none"
>
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="dialog-scroll" v-loading="detailLoading">
<template v-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -203,7 +197,6 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchCompletedTasks, fetchInstanceDetail } from '@/api/workflow'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'
import { Document, View, Search, RefreshLeft, Close } from '@element-plus/icons-vue'
@@ -124,14 +124,8 @@
:show-close="false"
style="backdrop-filter: none"
>
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="dialog-scroll" v-loading="detailLoading">
<template v-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -200,7 +194,6 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchPendingTasks, fetchInstanceDetail } from '@/api/workflow'
import ApprovalDialog from '../components/ApprovalDialog.vue'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'