提交
This commit is contained in:
1 parent
e4c4cbeedc
commit
0c7034e932
83 files changed
+13802
-12094
No files matched your search
@@ -104,6 +104,7 @@ export function fetchUserList(params?: {
|
||||
keyword?: string
|
||||
deptId?: string
|
||||
status?: string
|
||||
roleName?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: Api.User.UserItem[]
|
||||
|
||||
@@ -18,6 +18,7 @@ export function fetchProductionTaskList(params?: {
|
||||
workOrderId?: string
|
||||
startedTimeStart?: string
|
||||
startedTimeEnd?: string
|
||||
includeStepSummary?: boolean
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
@@ -37,6 +38,7 @@ export function fetchMyProductionTasks(params: {
|
||||
receptionSource?: string
|
||||
bizType?: string
|
||||
scope: 'current' | 'history'
|
||||
includeStepSummary?: boolean
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
@@ -87,8 +89,13 @@ export function fetchDispatchProductionTaskSteps(
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProductionTaskDetail(id: string) {
|
||||
return request.get<any>({ url: `/web/admin/production-tasks/${id}` })
|
||||
export function fetchProductionTaskDetail(
|
||||
id: string,
|
||||
options?: { includeStepSubTables?: boolean }
|
||||
) {
|
||||
const params =
|
||||
options?.includeStepSubTables === false ? { includeStepSubTables: false } : undefined
|
||||
return request.get<any>({ url: `/web/admin/production-tasks/${id}`, params })
|
||||
}
|
||||
|
||||
export function fetchUpdateProductionTask(id: string, data: Record<string, any>) {
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_ts", "label": "production-step-assignee.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L1"}, {"id": "utils_production_step_assignee_productionstepassigneeuserlistparams", "label": "productionStepAssigneeUserListParams()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L6"}, {"id": "utils_production_step_assignee_fetchproductionstepassigneeusers", "label": "fetchProductionStepAssigneeUsers()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L22"}, {"id": "utils_production_step_assignee_invalidateproductionstepassigneeusercache", "label": "invalidateProductionStepAssigneeUserCache()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L65"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_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/utils/production-step-assignee.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_ts", "target": "utils_production_step_assignee_productionstepassigneeuserlistparams", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_ts", "target": "utils_production_step_assignee_fetchproductionstepassigneeusers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L22", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_ts", "target": "utils_production_step_assignee_invalidateproductionstepassigneeusercache", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L65", "weight": 1.0}, {"source": "utils_production_step_assignee_fetchproductionstepassigneeusers", "target": "utils_production_step_assignee_productionstepassigneeuserlistparams", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L30", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_production_step_assignee_productionstepassigneeuserlistparams", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L10"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L23"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "finally", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L30"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "then", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L30"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "fetchUserList", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L30"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "has", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L43"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L44"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L48"}, {"caller_nid": "utils_production_step_assignee_fetchproductionstepassigneeusers", "callee": "finally", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L50"}, Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_task_ts", "label": "production-task.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L1"}, {"id": "api_production_task_scopequery", "label": "scopeQuery()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L5"}, {"id": "api_production_task_fetchcreateproductiontask", "label": "fetchCreateProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L9"}, {"id": "api_production_task_fetchproductiontasklist", "label": "fetchProductionTaskList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L13"}, {"id": "api_production_task_fetchmyproductiontasks", "label": "fetchMyProductionTasks()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L32"}, {"id": "api_production_task_fetchforwardproductiontask", "label": "fetchForwardProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L52"}, {"id": "api_production_task_fetchreassignproductiontask", "label": "fetchReassignProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L64"}, {"id": "api_production_task_fetchdispatchproductiontasksteps", "label": "fetchDispatchProductionTaskSteps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L74"}, {"id": "api_production_task_fetchproductiontaskdetail", "label": "fetchProductionTaskDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L92"}, {"id": "api_production_task_fetchupdateproductiontask", "label": "fetchUpdateProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L96"}, {"id": "api_production_task_fetchupdateproductiontaskstatus", "label": "fetchUpdateProductionTaskStatus()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L100"}, {"id": "api_production_task_fetchdeleteproductiontask", "label": "fetchDeleteProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L112"}, {"id": "api_production_task_fetchaddtaskstep", "label": "fetchAddTaskStep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L116"}, {"id": "api_production_task_fetchupdatetaskstep", "label": "fetchUpdateTaskStep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L128"}, {"id": "api_production_task_fetchdeletetaskstep", "label": "fetchDeleteTaskStep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L141"}, {"id": "api_production_task_fetchreplacestepreagents", "label": "fetchReplaceStepReagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L152"}, {"id": "api_production_task_fetchreplacestepconsumables", "label": "fetchReplaceStepConsumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L165"}, {"id": "api_production_task_fetchreplacestepconfiguredreagents", "label": "fetchReplaceStepConfiguredReagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L178"}, {"id": "api_production_task_fetchreplacestepdatacollection", "label": "fetchReplaceStepDataCollection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L191"}, {"id": "api_production_task_fetchsettaskinputs", "label": "fetchSetTaskInputs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L204"}, {"id": "api_production_task_fetchsettaskoutputs", "label": "fetchSetTaskOutputs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L216"}, {"id": "api_production_task_fetchreordertasksteps", "label": "fetchReorderTaskSteps()", "file_type": "code", "source_file": "/Users/wuzilongLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "label": "DispatchTaskDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "label": "resolveCreatedTaskId()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L269"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "vue_draggable_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L208", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "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/DispatchTaskDialog.vue", "source_location": "L209", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_labels", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L210", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "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/DispatchTaskDialog.vue", "source_location": "L211", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L212", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L213", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L214", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L269", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L271"}, {"caller_nid": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L271"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_cell_product_type_cellproductpricetab_vue", "label": "CellProductPriceTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/cell-product-type/CellProductPriceTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_cell_product_spec_ts", "label": "cell-product-spec.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-spec.ts", "source_location": "L1"}, {"id": "utils_cell_product_spec_resolvecellproductspecidbyname", "label": "resolveCellProductSpecIdByName()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-spec.ts", "source_location": "L4"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_cell_product_spec_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/utils/cell-product-spec.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_cell_product_spec_ts", "target": "utils_cell_product_spec_resolvecellproductspecidbyname", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-spec.ts", "source_location": "L4", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_cell_product_spec_resolvecellproductspecidbyname", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-spec.ts", "source_location": "L7"}, {"caller_nid": "utils_cell_product_spec_resolvecellproductspecidbyname", "callee": "fetchCellProductSpecList", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-spec.ts", "source_location": "L10"}, {"caller_nid": "utils_cell_product_spec_resolvecellproductspecidbyname", "callee": "find", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-spec.ts", "source_location": "L16"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "label": "DispatchStepDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchstepdialog_mergeduseroptions", "label": "mergedUserOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L117"}, {"id": "production_work_order_dispatchstepdialog_remotesearchusers", "label": "remoteSearchUsers()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L124"}, {"id": "production_work_order_dispatchstepdialog_onuserselectvisible", "label": "onUserSelectVisible()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L136"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_mergeduseroptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L117", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L124", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_onuserselectvisible", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L136", "weight": 1.0}, {"source": "production_work_order_dispatchstepdialog_onuserselectvisible", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L137", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchstepdialog_mergeduseroptions", "callee": "values", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L121"}, {"caller_nid": "production_work_order_dispatchstepdialog_remotesearchusers", "callee": "fetchProductionStepAssigneeUsers", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L127"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "label": "useProductionWorkOrderTabPage.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L1"}, {"id": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "label": "useProductionWorkOrderTabPage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L24"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_composables_useproductionworkordertabpage_ts", "target": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L24", "weight": 1.0}], "raw_calls": [{"caller_nid": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "callee": "computed", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L28"}, {"caller_nid": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "callee": "computed", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L29"}, {"caller_nid": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "callee": "computed", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L30"}, {"caller_nid": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "callee": "computed", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L31"}, {"caller_nid": "composables_useproductionworkordertabpage_useproductionworkordertabpage", "callee": "computed", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/composables/useProductionWorkOrderTabPage.ts", "source_location": "L32"}, {"caller_nid": "Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "label": "StepDetailPanel.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1"}, {"id": "production_work_order_stepdetailpanel_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L999"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "target": "production_work_order_stepdetailpanel_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L999", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1001"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "decodeURIComponent", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1004"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "pop", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1004"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1004"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1004"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_admin_ts", "label": "admin.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L1"}, {"id": "api_admin_fetchgetmenulist", "label": "fetchGetMenuList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L10"}, {"id": "api_admin_fetchgetrolelist", "label": "fetchGetRoleList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L19"}, {"id": "api_admin_fetchuseroptions", "label": "fetchUserOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L26"}, {"id": "api_admin_fetchroleoptions", "label": "fetchRoleOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L34"}, {"id": "api_admin_fetchtenantlist", "label": "fetchTenantList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L44"}, {"id": "api_admin_fetchcreatetenant", "label": "fetchCreateTenant()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L57"}, {"id": "api_admin_fetchupdatetenant", "label": "fetchUpdateTenant()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L72"}, {"id": "api_admin_fetchdeletetenant", "label": "fetchDeleteTenant()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L90"}, {"id": "api_admin_fetchuserlist", "label": "fetchUserList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L101"}, {"id": "api_admin_fetchuserdetail", "label": "fetchUserDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L121"}, {"id": "api_admin_fetchcreateuser", "label": "fetchCreateUser()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L127"}, {"id": "api_admin_fetchupdateuser", "label": "fetchUpdateUser()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L149"}, {"id": "api_admin_fetchdeleteuser", "label": "fetchDeleteUser()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L172"}, {"id": "api_admin_fetchresetpassword", "label": "fetchResetPassword()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L179"}, {"id": "api_admin_fetchuploaduseravatar", "label": "fetchUploadUserAvatar()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L187"}, {"id": "api_admin_fetchregionlist", "label": "fetchRegionList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L198"}, {"id": "api_admin_fetchactiveregions", "label": "fetchActiveRegions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L216"}, {"id": "api_admin_fetchnotdeletedregions", "label": "fetchNotDeletedRegions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L233"}, {"id": "api_admin_fetchcategorylist", "label": "fetchCategoryList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L261"}, {"id": "api_admin_fetchcreatecategory", "label": "fetchCreateCategory()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L279"}, {"id": "api_admin_fetchupdatecategory", "label": "fetchUpdateCategory()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L292"}, {"id": "api_admin_fetchdeletecategory", "label": "fetchDeleteCategory()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L309"}, {"id": "api_admin_fetchuploadcategoryimage", "label": "fetchUploadCategoryImage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L315"}, {"id": "api_admin_fetchunitlist", "label": "fetchUnitList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/admin.ts", "source_location": "L326"}, {"id": "api_admin_fetchcreateunit", "label": "fetchCrLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "label": "DispatchTaskDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "label": "resolveCreatedTaskId()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L266"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "vue_draggable_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L208", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "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/DispatchTaskDialog.vue", "source_location": "L209", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_labels", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L210", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "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/DispatchTaskDialog.vue", "source_location": "L211", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L212", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_usetaskstepeditor", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L213", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L214", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "target": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L266", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L268"}, {"caller_nid": "production_work_order_dispatchtaskdialog_resolvecreatedtaskid", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue", "source_location": "L268"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_pilot_service_cell_product_type_cellproductpricetab_vue", "label": "CellProductPriceTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/pilot-service/cell-product-type/CellProductPriceTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "label": "DispatchStepDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchstepdialog_mergeduseroptions", "label": "mergedUserOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L117"}, {"id": "production_work_order_dispatchstepdialog_remotesearchusers", "label": "remoteSearchUsers()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L124"}, {"id": "production_work_order_dispatchstepdialog_onuserselectvisible", "label": "onUserSelectVisible()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L136"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_mergeduseroptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L117", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L124", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_onuserselectvisible", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L136", "weight": 1.0}, {"source": "production_work_order_dispatchstepdialog_onuserselectvisible", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L137", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchstepdialog_mergeduseroptions", "callee": "values", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L121"}, {"caller_nid": "production_work_order_dispatchstepdialog_remotesearchusers", "callee": "fetchUserList", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L127"}, {"caller_nid": "production_work_order_dispatchstepdialog_remotesearchusers", "callee": "productionStepAssigneeUserListParams", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L127"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups_ts", "label": "production-mine-task-groups.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L1"}, {"id": "utils_production_mine_task_groups_dateinrange", "label": "dateInRange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L39"}, {"id": "utils_production_mine_task_groups_keywordmatchesworkorder", "label": "keywordMatchesWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L47"}, {"id": "utils_production_mine_task_groups_resolveworkordertabkey", "label": "resolveWorkOrderTabKey()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L66"}, {"id": "utils_production_mine_task_groups_buildworkorderfromtasks", "label": "buildWorkOrderFromTasks()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L74"}, {"id": "utils_production_mine_task_groups_groupminetasksbyworkorder", "label": "groupMineTasksByWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L108"}, {"id": "utils_production_mine_task_groups_buildpresettasksmap", "label": "buildPresetTasksMap()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L130"}, {"id": "utils_production_mine_task_groups_fetchminetasksbyscope", "label": "fetchMineTasksByScope()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L138"}, {"id": "utils_production_mine_task_groups_fetchallmineproductiontasks", "label": "fetchAllMineProductionTasks()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L170"}, {"id": "utils_production_mine_task_groups_enrichmineentrieswithworkorders", "label": "enrichMineEntriesWithWorkOrders()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L184"}, {"id": "utils_production_mine_task_groups_filtermineentriesbyworkordersearch", "label": "filterMineEntriesByWorkOrderSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L215"}, {"id": "utils_production_mine_task_groups_paginatemineentries", "label": "paginateMineEntries()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L238"}, {"id": "utils_production_mine_task_groups_buildminetablerows", "label": "buildMineTableRows()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L248"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups_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/utils/production-mine-task-groups.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups_ts", Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "label": "DispatchStepDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchstepdialog_mergeduseroptions", "label": "mergedUserOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L118"}, {"id": "production_work_order_dispatchstepdialog_remotesearchusers", "label": "remoteSearchUsers()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L125"}, {"id": "production_work_order_dispatchstepdialog_onuserselectvisible", "label": "onUserSelectVisible()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L137"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_mergeduseroptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L118", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L125", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_onuserselectvisible", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L137", "weight": 1.0}, {"source": "production_work_order_dispatchstepdialog_onuserselectvisible", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L138", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchstepdialog_mergeduseroptions", "callee": "values", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L122"}, {"caller_nid": "production_work_order_dispatchstepdialog_remotesearchusers", "callee": "fetchProductionStepAssigneeUsers", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L128"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_tabs_productionworkordertabpanel_vue", "label": "ProductionWorkOrderTabPanel.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/tabs/ProductionWorkOrderTabPanel.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertaskstepsublist_vue", "label": "WorkOrderTaskStepSubList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L1"}, {"id": "production_work_order_workordertaskstepsublist_assigneedisplayname", "label": "assigneeDisplayName()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L130"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertaskstepsublist_vue", "target": "production_work_order_workordertaskstepsublist_assigneedisplayname", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L130", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L131"}, {"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L131"}, {"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "match", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L133"}, {"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L134"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_ts", "label": "production-step-assignee.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L1"}, {"id": "utils_production_step_assignee_productionstepassigneeuserlistparams", "label": "productionStepAssigneeUserListParams()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L4"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_step_assignee_ts", "target": "utils_production_step_assignee_productionstepassigneeuserlistparams", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L4", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_production_step_assignee_productionstepassigneeuserlistparams", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-assignee.ts", "source_location": "L8"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "vue_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L104", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L105", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L106", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L107", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L114", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_menu_badge", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L118", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_productionworkordertabbar_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L119", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_tabs_productionworkordertabpanel_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L120", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L121", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L122", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchqcworkorderdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L123", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_woLine truncated
|
||||
+1
@@ -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_parsetaskattachmentsfromurls", "label": "parseTaskAttachmentsFromUrls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L47"}, {"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": "L57"}, {"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": "L61"}, {"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": "L64"}, {"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": "L92"}, {"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": "L99"}], "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_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": "L19", "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_utils_production_step_assignee", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L20", "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": "L21", "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": "L30", "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_work_order", "relation": "imports_from", "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": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L32", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_productiLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_cell_product_type_ts", "label": "cell-product-type.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L1"}, {"id": "utils_cell_product_type_cellproducttypeneedspassage", "label": "cellProductTypeNeedsPassage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L2"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_cell_product_type_ts", "target": "utils_cell_product_type_cellproducttypeneedspassage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L2", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_cell_product_type_cellproducttypeneedspassage", "callee": "toUpperCase", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L6"}, {"caller_nid": "utils_cell_product_type_cellproducttypeneedspassage", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L6"}, {"caller_nid": "utils_cell_product_type_cellproducttypeneedspassage", "callee": "toUpperCase", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L7"}, {"caller_nid": "utils_cell_product_type_cellproducttypeneedspassage", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/cell-product-type.ts", "source_location": "L7"}]}
|
||||
+1
@@ -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_parsetaskattachmentsfromurls", "label": "parseTaskAttachmentsFromUrls()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L47"}, {"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": "L57"}, {"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": "L61"}, {"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": "L64"}, {"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": "L92"}, {"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": "L99"}], "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_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": "L19", "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_utils_production_step_assignee", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L20", "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": "L21", "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": "L30", "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_work_order", "relation": "imports_from", "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": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L32", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_productiLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "label": "TaskOutputProductDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L1"}, {"id": "production_work_order_taskoutputproductdialog_resolveslotname", "label": "resolveSlotName()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L743"}, {"id": "production_work_order_taskoutputproductdialog_ensureproducttypeinoptions", "label": "ensureProductTypeInOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L748"}, {"id": "production_work_order_taskoutputproductdialog_handlesubmit", "label": "handleSubmit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L777"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "target": "production_work_order_taskoutputproductdialog_resolveslotname", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L743", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "target": "production_work_order_taskoutputproductdialog_ensureproducttypeinoptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L748", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "target": "production_work_order_taskoutputproductdialog_handlesubmit", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L777", "weight": 1.0}, {"source": "production_work_order_taskoutputproductdialog_handlesubmit", "target": "production_work_order_taskoutputproductdialog_resolveslotname", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L792", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_taskoutputproductdialog_resolveslotname", "callee": "find", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L744"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "validateProductLines", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L778"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "validate", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L779"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "buildSharedResult", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L782"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "resolveCellProductSpecIdByName", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L784"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "emit", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L785"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L788"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "all", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "label": "TaskExecutionDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L1"}, {"id": "production_work_order_taskexecutiondialog_onsteplistdrop", "label": "onStepListDrop()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L448"}, {"id": "production_work_order_taskexecutiondialog_handleforwardsuccess", "label": "handleForwardSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L453"}, {"id": "production_work_order_taskexecutiondialog_handleclose", "label": "handleClose()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L459"}, {"id": "production_work_order_taskexecutiondialog_stepseqclass", "label": "stepSeqClass()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L470"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_onsteplistdrop", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L448", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_handleforwardsuccess", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L453", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_handleclose", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L459", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_stepseqclass", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L470", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_taskexecutiondialog_onsteplistdrop", "callee": "onDropToCenter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L450"}, {"caller_nid": "production_work_order_taskexecutiondialog_handleforwardsuccess", "callee": "emit", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L456"}, {"caller_nid": "production_work_order_taskexecutiondialog_handleclose", "callee": "emit", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L460"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "label": "DispatchStepDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L1"}, {"id": "production_work_order_dispatchstepdialog_mergeduseroptions", "label": "mergedUserOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L116"}, {"id": "production_work_order_dispatchstepdialog_remotesearchusers", "label": "remoteSearchUsers()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L123"}, {"id": "production_work_order_dispatchstepdialog_onuserselectvisible", "label": "onUserSelectVisible()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L140"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_mergeduseroptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L116", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L123", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "target": "production_work_order_dispatchstepdialog_onuserselectvisible", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L140", "weight": 1.0}, {"source": "production_work_order_dispatchstepdialog_onuserselectvisible", "target": "production_work_order_dispatchstepdialog_remotesearchusers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L141", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_dispatchstepdialog_mergeduseroptions", "callee": "values", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L120"}, {"caller_nid": "production_work_order_dispatchstepdialog_remotesearchusers", "callee": "fetchUserList", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L126"}, {"caller_nid": "production_work_order_dispatchstepdialog_remotesearchusers", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchStepDialog.vue", "source_location": "L129"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "vue_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L103", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L104", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L105", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L106", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L113", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_menu_badge", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L117", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_productionworkordertabbar_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L118", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_tabs_productionworkordertabpanel_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L119", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L120", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchstepdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L121", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchqcworkorderdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L122", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_woLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertasksublist_vue", "label": "WorkOrderTaskSubList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L1"}, {"id": "production_work_order_workordertasksublist_ensureactivetaskkey", "label": "ensureActiveTaskKey()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L324"}, {"id": "production_work_order_workordertasksublist_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L336"}, {"id": "production_work_order_workordertasksublist_handletaskmutationsuccess", "label": "handleTaskMutationSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L394"}, {"id": "production_work_order_workordertasksublist_handlestepchanged", "label": "handleStepChanged()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L399"}, {"id": "production_work_order_workordertasksublist_handledispatch", "label": "handleDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L406"}, {"id": "production_work_order_workordertasksublist_handleneedstepdispatch", "label": "handleNeedStepDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L420"}, {"id": "production_work_order_workordertasksublist_openstepdispatch", "label": "openStepDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L426"}, {"id": "production_work_order_workordertasksublist_iscurrentassignee", "label": "isCurrentAssignee()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L437"}, {"id": "production_work_order_workordertasksublist_isminehistoryrow", "label": "isMineHistoryRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L445"}, {"id": "production_work_order_workordertasksublist_canenterexecution", "label": "canEnterExecution()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L451"}, {"id": "production_work_order_workordertasksublist_candispatchsteps", "label": "canDispatchSteps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L458"}, {"id": "production_work_order_workordertasksublist_canedittask", "label": "canEditTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L463"}, {"id": "production_work_order_workordertasksublist_candeletetask", "label": "canDeleteTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L469"}, {"id": "production_work_order_workordertasksublist_hasmoretaskactions", "label": "hasMoreTaskActions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L474"}, {"id": "production_work_order_workordertasksublist_handleenterexecution", "label": "handleEnterExecution()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L479"}, {"id": "production_work_order_workordertasksublist_handleviewdetail", "label": "handleViewDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L486"}, {"id": "production_work_order_workordertasksublist_handledropdowncommand", "label": "handleDropdownCommand()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertasksublist_vue", "label": "WorkOrderTaskSubList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L1"}, {"id": "production_work_order_workordertasksublist_ensureactivetaskkey", "label": "ensureActiveTaskKey()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L326"}, {"id": "production_work_order_workordertasksublist_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L338"}, {"id": "production_work_order_workordertasksublist_handletaskmutationsuccess", "label": "handleTaskMutationSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L396"}, {"id": "production_work_order_workordertasksublist_handlestepchanged", "label": "handleStepChanged()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L401"}, {"id": "production_work_order_workordertasksublist_handledispatch", "label": "handleDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L408"}, {"id": "production_work_order_workordertasksublist_refreshopentaskeditorsteps", "label": "refreshOpenTaskEditorSteps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L428"}, {"id": "production_work_order_workordertasksublist_handlestepdispatchsuccess", "label": "handleStepDispatchSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L437"}, {"id": "production_work_order_workordertasksublist_handleneedstepdispatch", "label": "handleNeedStepDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L443"}, {"id": "production_work_order_workordertasksublist_openstepdispatch", "label": "openStepDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L449"}, {"id": "production_work_order_workordertasksublist_iscurrentassignee", "label": "isCurrentAssignee()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L460"}, {"id": "production_work_order_workordertasksublist_isminehistoryrow", "label": "isMineHistoryRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L468"}, {"id": "production_work_order_workordertasksublist_canenterexecution", "label": "canEnterExecution()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L474"}, {"id": "production_work_order_workordertasksublist_candispatchsteps", "label": "canDispatchSteps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L481"}, {"id": "production_work_order_workordertasksublist_canedittask", "label": "canEditTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L486"}, {"id": "production_work_order_workordertasksublist_candeletetask", "label": "canDeleteTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L492"}, {"id": "production_work_order_workordertasksublist_hasmoretaskactions", "label": "hasMoreTaskActions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L497"}, {"id": "production_work_order_workordertasksublist_handleenterexecution", "label": "handleEnterExecution()", "file_type": "code", "source_file": "/Users/wuLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "label": "TaskOutputProductDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L1"}, {"id": "production_work_order_taskoutputproductdialog_resolveslotname", "label": "resolveSlotName()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L759"}, {"id": "production_work_order_taskoutputproductdialog_ensureproducttypeinoptions", "label": "ensureProductTypeInOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L764"}, {"id": "production_work_order_taskoutputproductdialog_handlesubmit", "label": "handleSubmit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L793"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "target": "production_work_order_taskoutputproductdialog_resolveslotname", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L759", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "target": "production_work_order_taskoutputproductdialog_ensureproducttypeinoptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L764", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskoutputproductdialog_vue", "target": "production_work_order_taskoutputproductdialog_handlesubmit", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L793", "weight": 1.0}, {"source": "production_work_order_taskoutputproductdialog_handlesubmit", "target": "production_work_order_taskoutputproductdialog_resolveslotname", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L808", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_taskoutputproductdialog_resolveslotname", "callee": "find", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L760"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "validateProductLines", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L794"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "validate", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L795"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "buildSharedResult", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L798"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "resolveSpecIdByName", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L800"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "emit", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L801"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L804"}, {"caller_nid": "production_work_order_taskoutputproductdialog_handlesubmit", "callee": "all", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputProductDialog.vue", "source_location": "L814"}, {"Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_productionworkordercardlist_vue", "label": "ProductionWorkOrderCardList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_task_ts", "label": "production-task.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L1"}, {"id": "api_production_task_scopequery", "label": "scopeQuery()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L5"}, {"id": "api_production_task_fetchcreateproductiontask", "label": "fetchCreateProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L9"}, {"id": "api_production_task_fetchproductiontasklist", "label": "fetchProductionTaskList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L13"}, {"id": "api_production_task_fetchmyproductiontasks", "label": "fetchMyProductionTasks()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L32"}, {"id": "api_production_task_fetchforwardproductiontask", "label": "fetchForwardProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L52"}, {"id": "api_production_task_fetchreassignproductiontask", "label": "fetchReassignProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L64"}, {"id": "api_production_task_fetchdispatchproductiontasksteps", "label": "fetchDispatchProductionTaskSteps()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L74"}, {"id": "api_production_task_fetchproductiontaskdetail", "label": "fetchProductionTaskDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L92"}, {"id": "api_production_task_fetchupdateproductiontask", "label": "fetchUpdateProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L101"}, {"id": "api_production_task_fetchupdateproductiontaskstatus", "label": "fetchUpdateProductionTaskStatus()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L105"}, {"id": "api_production_task_fetchdeleteproductiontask", "label": "fetchDeleteProductionTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L117"}, {"id": "api_production_task_fetchaddtaskstep", "label": "fetchAddTaskStep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L121"}, {"id": "api_production_task_fetchupdatetaskstep", "label": "fetchUpdateTaskStep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L133"}, {"id": "api_production_task_fetchdeletetaskstep", "label": "fetchDeleteTaskStep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L146"}, {"id": "api_production_task_fetchreplacestepreagents", "label": "fetchReplaceStepReagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L157"}, {"id": "api_production_task_fetchreplacestepconsumables", "label": "fetchReplaceStepConsumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L170"}, {"id": "api_production_task_fetchreplacestepconfiguredreagents", "label": "fetchReplaceStepConfiguredReagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L183"}, {"id": "api_production_task_fetchreplacestepdatacollection", "label": "fetchReplaceStepDataCollection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L196"}, {"id": "api_production_task_fetchsettaskinputs", "label": "fetchSetTaskInputs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L209"}, {"id": "api_production_task_fetchsettaskoutputs", "label": "fetchSetTaskOutputs()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-task.ts", "source_location": "L221"}, {"id": "api_production_task_fetchreordertasksteps", "label": "fetchReorderTaskSteps()", "file_type": "code", "source_file": "/Users/wuzilonLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "label": "StepDetailPanel.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L1"}, {"id": "production_work_order_stepdetailpanel_for", "label": "for()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L991"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_stepdetailpanel_vue", "target": "production_work_order_stepdetailpanel_for", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L991", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "push", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L993"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "decodeURIComponent", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L996"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "pop", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L996"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "split", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L996"}, {"caller_nid": "production_work_order_stepdetailpanel_for", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue", "source_location": "L996"}]}
|
||||
+1
@@ -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_parsetaskattachmentsfromurls", "label": "parseTaskAttachmentsFromUrls()", "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_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": "L56"}, {"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": "L60"}, {"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": "L63"}, {"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": "L91"}, {"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": "L98"}], "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_utils_production_step_assignee", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L19", "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": "L20", "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": "L29", "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_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L30", "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_sample_reception", "relation": "imports_from", "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": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_equipment_select", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L32", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_producLine truncated
|
||||
+1
@@ -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_parsetaskattachmentsfromurls", "label": "parseTaskAttachmentsFromUrls()", "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_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": "L56"}, {"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": "L60"}, {"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": "L63"}, {"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": "L91"}, {"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": "L98"}], "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_utils_production_step_assignee", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L19", "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": "L20", "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": "L29", "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_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L30", "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_sample_reception", "relation": "imports_from", "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": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_equipment_select", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts", "source_location": "L32", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_producLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertasksublist_vue", "label": "WorkOrderTaskSubList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L1"}, {"id": "production_work_order_workordertasksublist_ensureactivetaskkey", "label": "ensureActiveTaskKey()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L328"}, {"id": "production_work_order_workordertasksublist_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L340"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertasksublist_vue", "target": "production_work_order_workordertasksublist_ensureactivetaskkey", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L328", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertasksublist_vue", "target": "production_work_order_workordertasksublist_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L340", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_workordertasksublist_ensureactivetaskkey", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L333"}, {"caller_nid": "production_work_order_workordertasksublist_ensureactivetaskkey", "callee": "has", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskSubList.vue", "source_location": "L334"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertaskstepsublist_vue", "label": "WorkOrderTaskStepSubList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L1"}, {"id": "production_work_order_workordertaskstepsublist_assigneedisplayname", "label": "assigneeDisplayName()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L136"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_workordertaskstepsublist_vue", "target": "production_work_order_workordertaskstepsublist_assigneedisplayname", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L136", "weight": 1.0}], "raw_calls": [{"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L137"}, {"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L137"}, {"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "match", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L139"}, {"caller_nid": "production_work_order_workordertaskstepsublist_assigneedisplayname", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/WorkOrderTaskStepSubList.vue", "source_location": "L140"}]}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { fetchCellProductSpecList } from '@/api/admin'
|
||||
|
||||
/** 按规格名称精确匹配主数据,返回 specId(可选关联) */
|
||||
export async function resolveCellProductSpecIdByName(
|
||||
specName: string
|
||||
): Promise<string | undefined> {
|
||||
const name = specName.trim()
|
||||
if (!name) return undefined
|
||||
try {
|
||||
const res = await fetchCellProductSpecList({
|
||||
page: 1,
|
||||
pageSize: 100,
|
||||
keyword: name
|
||||
})
|
||||
const list = res?.list || res || []
|
||||
const exact = list.find((item: { specName?: string }) => item.specName === name)
|
||||
return exact?.id
|
||||
} catch {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/** 细胞产品类型是否需要代次(仅 MSC) */
|
||||
export function cellProductTypeNeedsPassage(
|
||||
productTypeName?: string | null,
|
||||
productTypeCode?: string | null
|
||||
): boolean {
|
||||
const name = (productTypeName || '').trim().toUpperCase()
|
||||
const code = (productTypeCode || '').trim().toUpperCase()
|
||||
return name === 'MSC' || code === 'MSC'
|
||||
}
|
||||
@@ -154,7 +154,8 @@ async function fetchMineTasksByScope(
|
||||
taskStatus: filters.taskStatus || undefined,
|
||||
workOrderType: listQuery.workOrderType,
|
||||
receptionSource: listQuery.receptionSource,
|
||||
bizType: listQuery.bizType
|
||||
bizType: listQuery.bizType,
|
||||
includeStepSummary: true
|
||||
})
|
||||
const list = res.list || []
|
||||
all.push(...list)
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
import { fetchUserList } from '@/api/admin'
|
||||
|
||||
/** 生产任务步骤负责人须具备的角色(与 sys_role.role_name 精确匹配) */
|
||||
export const PRODUCTION_STEP_ASSIGNEE_ROLE = '实验专员'
|
||||
|
||||
export function productionStepAssigneeUserListParams(query?: string) {
|
||||
return {
|
||||
page: 1,
|
||||
pageSize: 50,
|
||||
keyword: query?.trim() || undefined,
|
||||
status: '1',
|
||||
roleName: PRODUCTION_STEP_ASSIGNEE_ROLE
|
||||
}
|
||||
}
|
||||
|
||||
let cachedDefaultUsers: Api.User.UserItem[] | null = null
|
||||
const cacheByKeyword = new Map<string, Api.User.UserItem[]>()
|
||||
let inflightDefault: Promise<Api.User.UserItem[]> | null = null
|
||||
const inflightByKeyword = new Map<string, Promise<Api.User.UserItem[]>>()
|
||||
|
||||
/** 带会话内缓存的实验专员用户列表(派发/编辑步骤负责人下拉共用) */
|
||||
export async function fetchProductionStepAssigneeUsers(query?: string) {
|
||||
const kw = (query || '').trim()
|
||||
|
||||
if (!kw) {
|
||||
if (cachedDefaultUsers) {
|
||||
return { list: cachedDefaultUsers, total: cachedDefaultUsers.length }
|
||||
}
|
||||
if (!inflightDefault) {
|
||||
inflightDefault = fetchUserList(productionStepAssigneeUserListParams(''))
|
||||
.then((res) => {
|
||||
cachedDefaultUsers = res.list || []
|
||||
return cachedDefaultUsers
|
||||
})
|
||||
.finally(() => {
|
||||
inflightDefault = null
|
||||
})
|
||||
}
|
||||
const list = await inflightDefault
|
||||
return { list, total: list.length }
|
||||
}
|
||||
|
||||
if (cacheByKeyword.has(kw)) {
|
||||
const list = cacheByKeyword.get(kw)!
|
||||
return { list, total: list.length }
|
||||
}
|
||||
|
||||
let inflight = inflightByKeyword.get(kw)
|
||||
if (!inflight) {
|
||||
inflight = fetchUserList(productionStepAssigneeUserListParams(kw))
|
||||
.then((res) => {
|
||||
const list = res.list || []
|
||||
cacheByKeyword.set(kw, list)
|
||||
return list
|
||||
})
|
||||
.finally(() => {
|
||||
inflightByKeyword.delete(kw)
|
||||
})
|
||||
inflightByKeyword.set(kw, inflight)
|
||||
}
|
||||
const list = await inflight
|
||||
return { list, total: list.length }
|
||||
}
|
||||
|
||||
export function invalidateProductionStepAssigneeUserCache() {
|
||||
cachedDefaultUsers = null
|
||||
cacheByKeyword.clear()
|
||||
}
|
||||
@@ -441,6 +441,10 @@
|
||||
typeOptions.value = [{ id, productTypeName: name || id }, ...typeOptions.value]
|
||||
}
|
||||
|
||||
function onTypeSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchTypeOptions('')
|
||||
}
|
||||
|
||||
async function remoteSearchSpecOptions(query: string) {
|
||||
specOptionsLoading.value = true
|
||||
try {
|
||||
@@ -463,10 +467,6 @@
|
||||
specOptions.value = [{ id, specName: name || id }, ...specOptions.value]
|
||||
}
|
||||
|
||||
function onTypeSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchTypeOptions('')
|
||||
}
|
||||
|
||||
function onSpecSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchSpecOptions('')
|
||||
}
|
||||
|
||||
@@ -273,26 +273,8 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格" prop="specId">
|
||||
<el-select
|
||||
v-model="formData.specId"
|
||||
placeholder="输入名称检索"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
style="width: 100%"
|
||||
:loading="specOptionsLoading"
|
||||
:remote-method="remoteSearchSpecs"
|
||||
@visible-change="onSpecSelectVisible"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in specOptions"
|
||||
:key="item.id"
|
||||
:label="item.specName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
<el-form-item label="规格">
|
||||
<el-input v-model="formData.specName" placeholder="请输入规格" />
|
||||
</el-form-item>
|
||||
<el-form-item label="代次" prop="passage">
|
||||
<el-select
|
||||
@@ -731,7 +713,6 @@
|
||||
} from '@/api/cell-product'
|
||||
import {
|
||||
fetchCellProductTypeList,
|
||||
fetchCellProductSpecList,
|
||||
fetchItemUnitList
|
||||
} from '@/api/admin'
|
||||
import {
|
||||
@@ -739,6 +720,7 @@
|
||||
ensureStorageSlotsInOptions,
|
||||
validateUniqueStorageSlotIds
|
||||
} from '@/utils/storage-slot-options'
|
||||
import { resolveCellProductSpecIdByName } from '@/utils/cell-product-spec'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
|
||||
@@ -814,10 +796,8 @@
|
||||
|
||||
/* ---- 下拉选项 ---- */
|
||||
const productTypeOptions = ref<Array<{ id: string; productTypeName: string }>>([])
|
||||
const specOptions = ref<Array<{ id: string; specName: string }>>([])
|
||||
const storageSlotOptions = ref<Array<{ id: string; name: string }>>([])
|
||||
const productTypeOptionsLoading = ref(false)
|
||||
const specOptionsLoading = ref(false)
|
||||
const storageSlotOptionsLoading = ref(false)
|
||||
const storageSlotSearchOpts = ref<{ includeSlotIds?: string[] }>({})
|
||||
|
||||
@@ -869,7 +849,7 @@
|
||||
productCode: '',
|
||||
productName: '',
|
||||
productTypeId: '',
|
||||
specId: '',
|
||||
specName: '',
|
||||
passage: '',
|
||||
batchNo: '',
|
||||
storageSlotId: '',
|
||||
@@ -1055,28 +1035,6 @@
|
||||
productTypeOptions.value = [{ id, productTypeName: name || id }, ...productTypeOptions.value]
|
||||
}
|
||||
|
||||
async function remoteSearchSpecs(query: string) {
|
||||
specOptionsLoading.value = true
|
||||
try {
|
||||
const res = await fetchCellProductSpecList({
|
||||
page: 1,
|
||||
pageSize: 100,
|
||||
keyword: query?.trim() || undefined
|
||||
})
|
||||
specOptions.value = res?.list || res || []
|
||||
} catch {
|
||||
specOptions.value = []
|
||||
} finally {
|
||||
specOptionsLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function ensureSpecInOptions(id: string, name?: string) {
|
||||
if (!id) return
|
||||
if (specOptions.value.some((o) => o.id === id)) return
|
||||
specOptions.value = [{ id, specName: name || id }, ...specOptions.value]
|
||||
}
|
||||
|
||||
async function remoteSearchStorageSlots(query: string) {
|
||||
storageSlotOptionsLoading.value = true
|
||||
try {
|
||||
@@ -1100,10 +1058,6 @@
|
||||
if (visible) void remoteSearchProductTypes('')
|
||||
}
|
||||
|
||||
function onSpecSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchSpecs('')
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
pagination.page = 1
|
||||
loadData()
|
||||
@@ -1219,7 +1173,7 @@
|
||||
formData.productCode = ''
|
||||
formData.productName = ''
|
||||
formData.productTypeId = ''
|
||||
formData.specId = ''
|
||||
formData.specName = ''
|
||||
formData.passage = ''
|
||||
formData.batchNo = ''
|
||||
formData.storageSlotId = ''
|
||||
@@ -1246,7 +1200,6 @@
|
||||
storageSlotSearchOpts.value = {}
|
||||
await remoteSearchStorageSlots('')
|
||||
void remoteSearchProductTypes('')
|
||||
void remoteSearchSpecs('')
|
||||
dialogVisible.value = true
|
||||
void searchUnitOptions('')
|
||||
formRef.value?.clearValidate?.()
|
||||
@@ -1272,7 +1225,7 @@
|
||||
formData.productCode = row.productCode || ''
|
||||
formData.productName = row.productName || ''
|
||||
formData.productTypeId = row.productTypeId || ''
|
||||
formData.specId = row.specId || ''
|
||||
formData.specName = row.specName || ''
|
||||
formData.passage = row.passage || ''
|
||||
formData.batchNo = row.batchNo || ''
|
||||
formData.storageSlotId = row.storageSlotId || ''
|
||||
@@ -1280,13 +1233,11 @@
|
||||
includeSlotIds: row.storageSlotId ? [row.storageSlotId] : undefined
|
||||
}
|
||||
ensureProductTypeInOptions(row.productTypeId, row.productTypeName)
|
||||
ensureSpecInOptions(row.specId, row.specName)
|
||||
storageSlotOptions.value = ensureStorageSlotsInOptions([], [
|
||||
{ id: row.storageSlotId, name: row.storageSlotName }
|
||||
])
|
||||
await remoteSearchStorageSlots('')
|
||||
void remoteSearchProductTypes('')
|
||||
void remoteSearchSpecs('')
|
||||
formData.expectedCellCount = row.expectedCellCount ?? undefined
|
||||
formData.viability = row.viability ?? undefined
|
||||
formData.freezeDate = row.freezeDate || ''
|
||||
@@ -1310,10 +1261,12 @@
|
||||
submitLoading.value = true
|
||||
try {
|
||||
syncImagesToForm()
|
||||
const specId = await resolveCellProductSpecIdByName(formData.specName)
|
||||
const shared: Record<string, any> = {
|
||||
productName: formData.productName.trim(),
|
||||
productTypeId: formData.productTypeId || undefined,
|
||||
specId: formData.specId || undefined,
|
||||
specId: specId || undefined,
|
||||
specName: formData.specName?.trim() || undefined,
|
||||
passage: formData.passage || undefined,
|
||||
batchNo: formData.batchNo.trim(),
|
||||
expectedCellCount: formData.expectedCellCount ?? undefined,
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<el-option
|
||||
v-for="u in mergedUserOptions(row)"
|
||||
:key="u.id"
|
||||
:label="`${u.nickName}(${u.userNo})`"
|
||||
:label="u.nickName || '—'"
|
||||
:value="u.id"
|
||||
/>
|
||||
</el-select>
|
||||
@@ -73,9 +73,9 @@
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Close, Check } from '@element-plus/icons-vue'
|
||||
import { fetchUserList } from '@/api/admin'
|
||||
import { fetchProductionTaskDetail, fetchDispatchProductionTaskSteps } from '@/api/production-task'
|
||||
import { normalizePlannedStartDate } from '@/utils/production-labels'
|
||||
import { normalizePlannedStartDate, extractProductionTaskSteps } from '@/utils/production-labels'
|
||||
import { fetchProductionStepAssigneeUsers } from '@/utils/production-step-assignee'
|
||||
|
||||
defineOptions({ name: 'DispatchStepDialog' })
|
||||
|
||||
@@ -83,11 +83,13 @@
|
||||
visible: boolean
|
||||
taskId: string
|
||||
taskName?: string
|
||||
/** 父组件已加载的步骤摘要,传入则跳过详情请求 */
|
||||
presetSteps?: Record<string, any>[]
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:visible', val: boolean): void
|
||||
(e: 'success'): void
|
||||
(e: 'success', payload: { taskId: string; steps: Record<string, any>[] }): void
|
||||
}>()
|
||||
|
||||
const dialogVisible = computed({
|
||||
@@ -123,12 +125,7 @@
|
||||
async function remoteSearchUsers(query: string) {
|
||||
userLoading.value = true
|
||||
try {
|
||||
const res = await fetchUserList({
|
||||
page: 1,
|
||||
pageSize: 50,
|
||||
keyword: query?.trim() || undefined,
|
||||
status: '1'
|
||||
})
|
||||
const res = await fetchProductionStepAssigneeUsers(query)
|
||||
userOptions.value = res.list || []
|
||||
} catch {
|
||||
userOptions.value = []
|
||||
@@ -138,7 +135,22 @@
|
||||
}
|
||||
|
||||
function onUserSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchUsers('')
|
||||
if (visible && !userOptions.value.length) void remoteSearchUsers('')
|
||||
}
|
||||
|
||||
function applySteps(steps: Record<string, any>[]) {
|
||||
hasAnyAssignee.value = steps.some((s) => (s.assigneeUserIds || []).length > 0)
|
||||
rows.value = steps.map((s) => ({
|
||||
stepId: s.id,
|
||||
processName: s.processName || '未命名步骤',
|
||||
assigneeUserIds: [...(s.assigneeUserIds || [])],
|
||||
plannedStartTime: normalizePlannedStartDate(s.plannedStartTime),
|
||||
presetUsers: (s.assignees || []).map((a: Record<string, any>) => ({
|
||||
id: a.userId,
|
||||
nickName: a.nickName,
|
||||
userNo: a.userNo
|
||||
})) as Api.User.UserItem[]
|
||||
}))
|
||||
}
|
||||
|
||||
async function loadSteps() {
|
||||
@@ -146,22 +158,14 @@
|
||||
rows.value = []
|
||||
return
|
||||
}
|
||||
if (props.presetSteps?.length) {
|
||||
applySteps(props.presetSteps)
|
||||
return
|
||||
}
|
||||
loading.value = true
|
||||
try {
|
||||
const detail = await fetchProductionTaskDetail(props.taskId)
|
||||
const steps = (detail?.steps || []) as Record<string, any>[]
|
||||
hasAnyAssignee.value = steps.some((s) => (s.assigneeUserIds || []).length > 0)
|
||||
rows.value = steps.map((s) => ({
|
||||
stepId: s.id,
|
||||
processName: s.processName || '未命名步骤',
|
||||
assigneeUserIds: [...(s.assigneeUserIds || [])],
|
||||
plannedStartTime: normalizePlannedStartDate(s.plannedStartTime),
|
||||
presetUsers: (s.assignees || []).map((a: Record<string, any>) => ({
|
||||
id: a.userId,
|
||||
nickName: a.nickName,
|
||||
userNo: a.userNo
|
||||
})) as Api.User.UserItem[]
|
||||
}))
|
||||
const detail = await fetchProductionTaskDetail(props.taskId, { includeStepSubTables: false })
|
||||
applySteps((detail?.steps || []) as Record<string, any>[])
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -187,9 +191,10 @@
|
||||
}
|
||||
submitting.value = true
|
||||
try {
|
||||
await fetchDispatchProductionTaskSteps(props.taskId, { steps: payload })
|
||||
const result = await fetchDispatchProductionTaskSteps(props.taskId, { steps: payload })
|
||||
const steps = extractProductionTaskSteps(result)
|
||||
ElMessage.success('步骤派发成功')
|
||||
emit('success')
|
||||
emit('success', { taskId: props.taskId, steps })
|
||||
handleClose()
|
||||
} finally {
|
||||
submitting.value = false
|
||||
@@ -197,8 +202,8 @@
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.visible,
|
||||
(val) => {
|
||||
() => [props.visible, props.taskId, props.presetSteps] as const,
|
||||
([val]) => {
|
||||
if (val) {
|
||||
void remoteSearchUsers('')
|
||||
void loadSteps()
|
||||
|
||||
@@ -213,6 +213,8 @@
|
||||
import { useTaskStepEditor } from './useTaskStepEditor'
|
||||
import StepDetailPanel from './StepDetailPanel.vue'
|
||||
|
||||
defineOptions({ name: 'DispatchTaskDialog' })
|
||||
|
||||
const props = defineProps<{
|
||||
visible: boolean
|
||||
workOrderRow: Record<string, any> | null
|
||||
@@ -225,7 +227,10 @@
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:visible', val: boolean): void
|
||||
(e: 'success'): void
|
||||
(e: 'needStepDispatch', payload: { taskId: string; taskName: string }): void
|
||||
(
|
||||
e: 'needStepDispatch',
|
||||
payload: { taskId: string; taskName: string; presetSteps?: Record<string, any>[] }
|
||||
): void
|
||||
}>()
|
||||
|
||||
const dialogVisible = computed({
|
||||
@@ -266,7 +271,10 @@
|
||||
return String(raw || '').trim()
|
||||
}
|
||||
|
||||
async function enterEditPhase(taskId: string, options?: { expectSteps?: boolean }) {
|
||||
async function enterEditPhase(
|
||||
taskId: string,
|
||||
options?: { expectSteps?: boolean; initialSteps?: Record<string, any>[] }
|
||||
) {
|
||||
phase.value = 'edit'
|
||||
await nextTick()
|
||||
return editor.initEditor(taskId, options)
|
||||
@@ -325,14 +333,19 @@
|
||||
}
|
||||
createdTaskName.value = form.taskName
|
||||
const expectSteps = Boolean(form.routeId)
|
||||
const stepCount = await enterEditPhase(taskId, { expectSteps })
|
||||
const initialSteps = Array.isArray(task?.steps) ? task.steps : undefined
|
||||
const stepCount = await enterEditPhase(taskId, { expectSteps, initialSteps })
|
||||
if (expectSteps && stepCount === 0) {
|
||||
ElMessage.warning('任务已创建,但工艺步骤未加载,请关闭后从「编辑工艺」重试')
|
||||
} else {
|
||||
ElMessage.success('任务已创建,可编辑步骤')
|
||||
}
|
||||
if (expectSteps && stepCount > 0) {
|
||||
emit('needStepDispatch', { taskId, taskName: form.taskName })
|
||||
emit('needStepDispatch', {
|
||||
taskId,
|
||||
taskName: form.taskName,
|
||||
presetSteps: stepList.value
|
||||
})
|
||||
}
|
||||
emit('success')
|
||||
} catch {
|
||||
@@ -342,6 +355,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function refreshStepsIfOpen(
|
||||
targetTaskId: string,
|
||||
stepSummaries?: Record<string, any>[]
|
||||
) {
|
||||
const id = String(targetTaskId || '').trim()
|
||||
if (!id || !dialogVisible.value || phase.value !== 'edit') return
|
||||
if (String(editor.taskId.value || '') !== id) return
|
||||
await editor.reloadTaskSteps(stepSummaries)
|
||||
}
|
||||
|
||||
defineExpose({ refreshStepsIfOpen })
|
||||
|
||||
watch(
|
||||
() => props.visible,
|
||||
async (val) => {
|
||||
@@ -364,7 +389,6 @@
|
||||
form.taskName = `${props.workOrderRow.workOrderNo}任务`
|
||||
}
|
||||
void remoteSearchRoutes('')
|
||||
void editor.remoteSearchStepAssigneeUsers('')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+11
-3
@@ -212,8 +212,9 @@
|
||||
:work-order="row"
|
||||
:list-mode="isMineMode ? 'mine' : 'workOrder'"
|
||||
:preset-tasks="isMineMode ? presetTasksByWorkOrderId?.[row.id] : undefined"
|
||||
:refresh-token="taskRefreshToken"
|
||||
@changed="emit('tasks-changed')"
|
||||
:refresh-token="resolveTaskRefreshToken(row.id)"
|
||||
@changed="(detail) => emit('tasks-changed', detail)"
|
||||
@counts-changed="emit('counts-changed')"
|
||||
/>
|
||||
</section>
|
||||
</article>
|
||||
@@ -264,6 +265,7 @@
|
||||
pageSize: number
|
||||
total: number
|
||||
taskRefreshToken: number
|
||||
taskRefreshKey?: (workOrderId: string) => string
|
||||
selectedIds?: string[]
|
||||
pageMode?: 'manage' | 'mine'
|
||||
presetTasksByWorkOrderId?: Record<string, Record<string, any>[]>
|
||||
@@ -319,7 +321,8 @@
|
||||
complete: [row: ProductionWorkOrderItem]
|
||||
command: [cmd: string, row: ProductionWorkOrderItem]
|
||||
'toggle-select': [row: ProductionWorkOrderItem, checked: boolean]
|
||||
'tasks-changed': []
|
||||
'tasks-changed': [detail?: { workOrderId?: string; reloadWorkOrders?: boolean }]
|
||||
'counts-changed': []
|
||||
'page-change': [page: number]
|
||||
'page-size-change': [size: number]
|
||||
'open-sample-reception': [row: ProductionWorkOrderItem]
|
||||
@@ -331,6 +334,11 @@
|
||||
() => !isMineMode.value && cardMeta.value.allowDispatchComplete
|
||||
)
|
||||
|
||||
function resolveTaskRefreshToken(workOrderId: string) {
|
||||
if (props.taskRefreshKey) return props.taskRefreshKey(workOrderId)
|
||||
return String(props.taskRefreshToken)
|
||||
}
|
||||
|
||||
function visibleMetaFields(row: ProductionWorkOrderItem) {
|
||||
return cardMeta.value.metaFields.filter((field) => !field.visible || field.visible(row))
|
||||
}
|
||||
|
||||
@@ -60,14 +60,14 @@
|
||||
<el-form label-position="top" class="route-config-step-form">
|
||||
<div class="form-grid-4">
|
||||
<el-form-item label="工序名称">
|
||||
<el-input v-model="editor.selectedStep.value.processName" :disabled="readonly" />
|
||||
<el-input v-model="editor.selectedStep.value.processName" :disabled="stepFormReadonly" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工序分类">
|
||||
<el-select
|
||||
v-model="editor.selectedStep.value.categoryId"
|
||||
placeholder="选择分类"
|
||||
clearable
|
||||
:disabled="readonly"
|
||||
:disabled="stepFormReadonly"
|
||||
>
|
||||
<el-option
|
||||
v-for="cat in editor.categoryOptions.value"
|
||||
@@ -86,7 +86,7 @@
|
||||
multiple
|
||||
collapse-tags
|
||||
collapse-tags-tooltip
|
||||
:disabled="readonly"
|
||||
:disabled="stepFormReadonly"
|
||||
style="width: 100%"
|
||||
@change="editor.onStepEquipmentChange"
|
||||
>
|
||||
@@ -109,7 +109,7 @@
|
||||
<el-input
|
||||
v-model="editor.selectedStep.value.estimatedDuration"
|
||||
placeholder="如 2h"
|
||||
:disabled="readonly"
|
||||
:disabled="stepFormReadonly"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@@ -134,7 +134,7 @@
|
||||
<el-option
|
||||
v-for="u in editor.mergedStepAssigneeUserOptions(editor.selectedStep.value)"
|
||||
:key="u.id"
|
||||
:label="`${u.nickName}(${u.userNo})`"
|
||||
:label="u.nickName || '—'"
|
||||
:value="u.id"
|
||||
/>
|
||||
</el-select>
|
||||
@@ -193,7 +193,7 @@
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
placeholder="工序描述"
|
||||
:disabled="readonly"
|
||||
:disabled="stepFormReadonly"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联SOP" class="step-form-col-half">
|
||||
@@ -202,7 +202,7 @@
|
||||
multiple
|
||||
placeholder="选择SOP文档"
|
||||
filterable
|
||||
:disabled="readonly"
|
||||
:disabled="stepFormReadonly"
|
||||
@change="editor.onSopIdsChange"
|
||||
>
|
||||
<el-option
|
||||
@@ -236,7 +236,7 @@
|
||||
label="试剂"
|
||||
name="reagent"
|
||||
>
|
||||
<div v-if="!readonly" class="route-config-tab-toolbar">
|
||||
<div v-if="!stepFormReadonly" class="route-config-tab-toolbar">
|
||||
<el-button class="btn-main" type="primary" size="small" @click="editor.addReagentRow">
|
||||
<el-icon><Plus /></el-icon>添加试剂
|
||||
</el-button>
|
||||
@@ -262,7 +262,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.reagentCode"
|
||||
placeholder="编码"
|
||||
class="inner-cell-input"
|
||||
@@ -278,7 +278,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.reagentId"
|
||||
placeholder="请选择试剂"
|
||||
clearable
|
||||
@@ -304,7 +304,7 @@
|
||||
<el-table-column label="规格" min-width="100" align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.spec"
|
||||
placeholder="规格"
|
||||
class="inner-cell-input"
|
||||
@@ -315,7 +315,7 @@
|
||||
<el-table-column label="标准用量" min-width="110" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.standardUsage"
|
||||
placeholder="用量"
|
||||
class="inner-cell-input"
|
||||
@@ -331,7 +331,7 @@
|
||||
>
|
||||
<template #default="{ row, $index }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.requisitionUsageId"
|
||||
filterable
|
||||
remote
|
||||
@@ -367,7 +367,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.actualUsage"
|
||||
placeholder="实际用量"
|
||||
class="inner-cell-input"
|
||||
@@ -379,7 +379,7 @@
|
||||
<el-table-column label="单位" min-width="120" align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.unit"
|
||||
placeholder="请选择单位"
|
||||
clearable
|
||||
@@ -403,7 +403,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="关键物料" min-width="90" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-switch v-if="!readonly" v-model="row.isKeyMaterial" />
|
||||
<el-switch v-if="!stepFormReadonly" v-model="row.isKeyMaterial" />
|
||||
<el-tag v-else :type="row.isKeyMaterial ? 'success' : 'info'" size="small">
|
||||
{{ row.isKeyMaterial ? '是' : '否' }}
|
||||
</el-tag>
|
||||
@@ -412,7 +412,7 @@
|
||||
<el-table-column label="备注" min-width="120" align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.remark"
|
||||
placeholder="备注"
|
||||
class="inner-cell-input"
|
||||
@@ -420,7 +420,7 @@
|
||||
<span v-else>{{ row.remark || '—' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="!readonly" label="操作" min-width="80" align="center">
|
||||
<el-table-column v-if="!stepFormReadonly" label="操作" min-width="80" align="center">
|
||||
<template #default="{ $index }">
|
||||
<el-button
|
||||
link
|
||||
@@ -444,7 +444,7 @@
|
||||
label="耗材"
|
||||
name="consumable"
|
||||
>
|
||||
<div v-if="!readonly" class="route-config-tab-toolbar">
|
||||
<div v-if="!stepFormReadonly" class="route-config-tab-toolbar">
|
||||
<el-button
|
||||
class="btn-main"
|
||||
type="primary"
|
||||
@@ -475,7 +475,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.consumableCode"
|
||||
placeholder="编码"
|
||||
class="inner-cell-input"
|
||||
@@ -491,7 +491,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.consumableId"
|
||||
placeholder="请选择耗材"
|
||||
clearable
|
||||
@@ -522,7 +522,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.specModel"
|
||||
placeholder="规格型号"
|
||||
class="inner-cell-input"
|
||||
@@ -533,7 +533,7 @@
|
||||
<el-table-column label="标准用量" min-width="110" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.standardUsage"
|
||||
placeholder="用量"
|
||||
class="inner-cell-input"
|
||||
@@ -549,7 +549,7 @@
|
||||
>
|
||||
<template #default="{ row, $index }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.requisitionUsageId"
|
||||
filterable
|
||||
remote
|
||||
@@ -585,7 +585,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.actualUsage"
|
||||
placeholder="实际用量"
|
||||
class="inner-cell-input"
|
||||
@@ -597,7 +597,7 @@
|
||||
<el-table-column label="单位" min-width="120" align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.unit"
|
||||
placeholder="请选择单位"
|
||||
clearable
|
||||
@@ -621,7 +621,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="必需" min-width="80" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-switch v-if="!readonly" v-model="row.isRequired" />
|
||||
<el-switch v-if="!stepFormReadonly" v-model="row.isRequired" />
|
||||
<el-tag v-else :type="row.isRequired ? 'success' : 'info'" size="small">
|
||||
{{ row.isRequired ? '是' : '否' }}
|
||||
</el-tag>
|
||||
@@ -630,7 +630,7 @@
|
||||
<el-table-column label="备注" min-width="120" align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.remark"
|
||||
placeholder="备注"
|
||||
class="inner-cell-input"
|
||||
@@ -638,7 +638,7 @@
|
||||
<span v-else>{{ row.remark || '—' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="!readonly" label="操作" min-width="80" align="center">
|
||||
<el-table-column v-if="!stepFormReadonly" label="操作" min-width="80" align="center">
|
||||
<template #default="{ $index }">
|
||||
<el-button
|
||||
link
|
||||
@@ -663,7 +663,7 @@
|
||||
<section class="route-config-step-section">
|
||||
<h3 class="route-config-step-section-title">产出物</h3>
|
||||
<div class="route-config-tab-list">
|
||||
<div v-if="!readonly" class="list-toolbar">
|
||||
<div v-if="!stepFormReadonly" class="list-toolbar">
|
||||
<div class="list-toolbar-row">
|
||||
<el-button class="btn-main" type="primary" @click="editor.addOutputRow">
|
||||
<el-icon><Plus /></el-icon>
|
||||
@@ -696,7 +696,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.outputTypeId"
|
||||
placeholder="选择类型"
|
||||
filterable
|
||||
@@ -722,7 +722,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.outputName"
|
||||
placeholder="名称"
|
||||
class="inner-cell-input"
|
||||
@@ -740,7 +740,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.outputBarcode"
|
||||
placeholder="条码"
|
||||
class="inner-cell-input"
|
||||
@@ -758,7 +758,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.remark"
|
||||
placeholder="备注"
|
||||
class="inner-cell-input"
|
||||
@@ -768,7 +768,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
label="操作"
|
||||
min-width="80"
|
||||
align="center"
|
||||
@@ -791,7 +791,7 @@
|
||||
<section class="route-config-step-section">
|
||||
<h3 class="route-config-step-section-title">数据采集</h3>
|
||||
<div class="route-config-tab-list">
|
||||
<div v-if="!readonly" class="list-toolbar">
|
||||
<div v-if="!stepFormReadonly" class="list-toolbar">
|
||||
<div class="list-toolbar-row">
|
||||
<el-button class="btn-main" type="primary" @click="editor.addDataCollectionRow">
|
||||
<el-icon><Plus /></el-icon>
|
||||
@@ -824,7 +824,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.collectionName"
|
||||
placeholder="采集项名称"
|
||||
class="inner-cell-input"
|
||||
@@ -842,7 +842,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.unit"
|
||||
placeholder="请选择单位"
|
||||
clearable
|
||||
@@ -874,7 +874,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.collectionValue"
|
||||
placeholder="输入采集值"
|
||||
class="inner-cell-input"
|
||||
@@ -892,7 +892,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
v-model="row.remark"
|
||||
placeholder="备注"
|
||||
class="inner-cell-input"
|
||||
@@ -902,7 +902,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="!readonly"
|
||||
v-if="!stepFormReadonly"
|
||||
label="操作"
|
||||
min-width="80"
|
||||
align="center"
|
||||
@@ -946,6 +946,14 @@
|
||||
readonly?: boolean
|
||||
}>()
|
||||
|
||||
/** 弹窗可编辑但当前步骤非本人负责(mine 执行)时为只读 */
|
||||
const stepFormReadonly = computed(() => {
|
||||
if (props.readonly) return true
|
||||
const step = props.editor.selectedStep.value
|
||||
if (!step) return true
|
||||
return !props.editor.canEditStep(step)
|
||||
})
|
||||
|
||||
const activeSubTab = computed({
|
||||
get: () => props.editor.activeSubTab.value,
|
||||
set: (val: string) => {
|
||||
|
||||
@@ -76,8 +76,8 @@
|
||||
|
||||
<!-- 主体:可折叠工艺库 + 步骤列表 + 详情面板 -->
|
||||
<div class="execution-main">
|
||||
<!-- 可折叠工艺库侧栏(只读时隐藏) -->
|
||||
<template v-if="!readonly">
|
||||
<!-- 可折叠工艺库侧栏(只读 / 我的任务执行时不展示) -->
|
||||
<template v-if="!readonly && !isMineScope">
|
||||
<transition name="slide-lib">
|
||||
<div
|
||||
v-show="editor.processLibraryExpanded.value"
|
||||
@@ -150,7 +150,7 @@
|
||||
class="execution-step-list"
|
||||
v-loading="editor.stepListLoading.value"
|
||||
@dragover.prevent
|
||||
@drop="editor.onDropToCenter"
|
||||
@drop="onStepListDrop"
|
||||
>
|
||||
<div class="execution-step-list-header">
|
||||
<h3>工序步骤</h3>
|
||||
@@ -222,7 +222,8 @@
|
||||
<!-- 真实步骤列表 -->
|
||||
<draggable
|
||||
v-model="editor.stepList.value"
|
||||
:handle="readonly ? undefined : '.route-config-step-handle'"
|
||||
:handle="stepDragHandle"
|
||||
:disabled="isMineScope"
|
||||
:animation="200"
|
||||
@end="editor.onStepDragEnd"
|
||||
>
|
||||
@@ -233,11 +234,14 @@
|
||||
:class="{
|
||||
'is-active': editor.selectedStepId.value === element.id,
|
||||
'is-done': element.stepStatus === 'ywc',
|
||||
'is-readonly': !editor.canEditStep(element)
|
||||
'is-readonly': !editor.canEditStep(element),
|
||||
'is-mine-assignee': editor.isCurrentUserStepAssignee(element)
|
||||
}"
|
||||
@click="editor.selectStep(element)"
|
||||
>
|
||||
<div v-if="!readonly" class="route-config-step-handle"
|
||||
<div
|
||||
v-if="stepDragHandle && editor.canEditStep(element)"
|
||||
class="route-config-step-handle"
|
||||
><el-icon><Rank /></el-icon
|
||||
></div>
|
||||
<div class="route-config-step-order" :class="stepSeqClass(element.stepStatus)">{{
|
||||
@@ -256,7 +260,7 @@
|
||||
style="margin-right: 4px"
|
||||
>{{ editor.stepStatusTag(element.stepStatus).label }}</el-tag
|
||||
>
|
||||
<template v-if="!readonly">
|
||||
<template v-if="!readonly && editor.canEditStep(element)">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@@ -435,6 +439,17 @@
|
||||
|
||||
const forwardVisible = ref(false)
|
||||
|
||||
const isMineScope = computed(() => props.operateScope === 'mine')
|
||||
|
||||
const stepDragHandle = computed(() =>
|
||||
props.readonly || isMineScope.value ? undefined : '.route-config-step-handle'
|
||||
)
|
||||
|
||||
function onStepListDrop(e: DragEvent) {
|
||||
if (isMineScope.value) return
|
||||
editor.onDropToCenter(e)
|
||||
}
|
||||
|
||||
function handleForwardSuccess() {
|
||||
forwardVisible.value = false
|
||||
dialogVisible.value = false
|
||||
@@ -726,10 +741,33 @@
|
||||
.route-config-step-card.is-done {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.route-config-step-card.is-readonly:not(.is-active) {
|
||||
.route-config-step-card.is-readonly:not(.is-active):not(.is-mine-assignee) {
|
||||
opacity: 0.72;
|
||||
cursor: default;
|
||||
}
|
||||
.route-config-step-card.is-mine-assignee {
|
||||
background: #059669;
|
||||
border-color: #047857;
|
||||
|
||||
.route-config-step-name,
|
||||
.route-config-step-desc {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.route-config-step-order {
|
||||
background: rgba(255, 255, 255, 0.25) !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
border-color: #065f46;
|
||||
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: #065f46;
|
||||
}
|
||||
}
|
||||
|
||||
/* 右侧详情面板 */
|
||||
.execution-detail-panel {
|
||||
|
||||
+116
-115
@@ -27,7 +27,6 @@
|
||||
<el-input
|
||||
v-model="formData.productCode"
|
||||
placeholder="请输入产品编码"
|
||||
:readonly="isEdit"
|
||||
@input="onBaseProductCodeInput"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -48,6 +47,7 @@
|
||||
:loading="productTypeOptionsLoading"
|
||||
:remote-method="remoteSearchProductTypes"
|
||||
@visible-change="onProductTypeSelectVisible"
|
||||
@change="onProductTypeChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in productTypeOptions"
|
||||
@@ -59,28 +59,10 @@
|
||||
</el-form-item>
|
||||
<!-- 规格(编辑单条) -->
|
||||
<el-form-item v-if="isEdit" label="规格">
|
||||
<el-select
|
||||
v-model="formData.specId"
|
||||
placeholder="输入名称检索"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
style="width: 100%"
|
||||
:loading="specOptionsLoading"
|
||||
:remote-method="remoteSearchSpecs"
|
||||
@visible-change="onSpecSelectVisible"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in specOptions"
|
||||
:key="item.id"
|
||||
:label="item.specName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input v-model="formData.specName" placeholder="请输入规格" />
|
||||
</el-form-item>
|
||||
<!-- 代次(编辑单条) -->
|
||||
<el-form-item v-if="isEdit" label="代次">
|
||||
<!-- 代次(编辑单条,仅 MSC) -->
|
||||
<el-form-item v-if="isEdit && needsPassage" label="代次">
|
||||
<el-select
|
||||
v-model="formData.passage"
|
||||
placeholder="请选择代次"
|
||||
@@ -194,9 +176,7 @@
|
||||
<div v-if="!isEdit" class="product-lines-section">
|
||||
<div class="product-lines-head">
|
||||
<span class="product-lines-title">入库明细</span>
|
||||
<span class="form-label-tip"
|
||||
>请先选代次,编码按「产品编码-代次-序号」生成;序号延续库中同前缀最大号</span
|
||||
>
|
||||
<span class="form-label-tip">{{ productLinesHint }}</span>
|
||||
</div>
|
||||
<el-table
|
||||
:data="productLines"
|
||||
@@ -208,12 +188,11 @@
|
||||
<template #default="{ row }">
|
||||
<el-input
|
||||
v-model="row.productCode"
|
||||
placeholder="请先选择代次"
|
||||
readonly
|
||||
:placeholder="needsPassage ? '请先选择代次' : '产品编码'"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="代次" min-width="100">
|
||||
<el-table-column v-if="needsPassage" label="代次" min-width="100">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.passage"
|
||||
@@ -228,25 +207,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" min-width="140">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.specId"
|
||||
placeholder="规格"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
style="width: 100%"
|
||||
:loading="specOptionsLoading"
|
||||
:remote-method="remoteSearchSpecs"
|
||||
@visible-change="onSpecSelectVisible"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in specOptions"
|
||||
:key="item.id"
|
||||
:label="item.specName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input v-model="row.specName" placeholder="规格" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="预计细胞数量(亿)" min-width="150">
|
||||
@@ -315,8 +276,10 @@
|
||||
<script setup lang="ts">
|
||||
import { Close, Check } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { fetchCellProductTypeList, fetchCellProductSpecList } from '@/api/admin'
|
||||
import { fetchCellProductTypeList } from '@/api/admin'
|
||||
import { fetchMaxPassageProductSeq } from '@/api/cell-product'
|
||||
import { cellProductTypeNeedsPassage } from '@/utils/cell-product-type'
|
||||
import { resolveCellProductSpecIdByName } from '@/utils/cell-product-spec'
|
||||
import {
|
||||
remoteSearchStorageSlotSelectOptions,
|
||||
ensureStorageSlotsInOptions,
|
||||
@@ -330,7 +293,7 @@
|
||||
productCode: string
|
||||
storageSlotId: string
|
||||
passage: string
|
||||
specId: string
|
||||
specName: string
|
||||
expectedCellCount: number | undefined
|
||||
viability: number | undefined
|
||||
}
|
||||
@@ -360,11 +323,11 @@
|
||||
|
||||
const isEdit = computed(() => !!props.editItem)
|
||||
|
||||
const productTypeOptions = ref<Array<{ id: string; productTypeName: string }>>([])
|
||||
const specOptions = ref<Array<{ id: string; specName: string }>>([])
|
||||
const productTypeOptions = ref<
|
||||
Array<{ id: string; productTypeName: string; productTypeCode?: string }>
|
||||
>([])
|
||||
const storageSlotOptions = ref<Array<{ id: string; name: string }>>([])
|
||||
const productTypeOptionsLoading = ref(false)
|
||||
const specOptionsLoading = ref(false)
|
||||
const storageSlotOptionsLoading = ref(false)
|
||||
const storageSlotSearchOpts = ref<{ includeSlotIds?: string[] }>({})
|
||||
|
||||
@@ -384,33 +347,31 @@
|
||||
}
|
||||
}
|
||||
|
||||
function ensureProductTypeInOptions(id: string, name?: string) {
|
||||
function ensureProductTypeInOptions(id: string, name?: string, code?: string) {
|
||||
if (!id) return
|
||||
if (productTypeOptions.value.some((o) => o.id === id)) return
|
||||
productTypeOptions.value = [{ id, productTypeName: name || id }, ...productTypeOptions.value]
|
||||
productTypeOptions.value = [
|
||||
{ id, productTypeName: name || id, productTypeCode: code || '' },
|
||||
...productTypeOptions.value
|
||||
]
|
||||
}
|
||||
|
||||
async function remoteSearchSpecs(query: string) {
|
||||
specOptionsLoading.value = true
|
||||
try {
|
||||
const res = await fetchCellProductSpecList({
|
||||
page: 1,
|
||||
pageSize: 100,
|
||||
keyword: query?.trim() || undefined
|
||||
})
|
||||
specOptions.value = res?.list || res || []
|
||||
} catch {
|
||||
specOptions.value = []
|
||||
} finally {
|
||||
specOptionsLoading.value = false
|
||||
}
|
||||
}
|
||||
const selectedProductType = computed(() =>
|
||||
productTypeOptions.value.find((o) => o.id === formData.productTypeId)
|
||||
)
|
||||
|
||||
function ensureSpecInOptions(id: string, name?: string) {
|
||||
if (!id) return
|
||||
if (specOptions.value.some((o) => o.id === id)) return
|
||||
specOptions.value = [{ id, specName: name || id }, ...specOptions.value]
|
||||
}
|
||||
const needsPassage = computed(() =>
|
||||
cellProductTypeNeedsPassage(
|
||||
selectedProductType.value?.productTypeName || props.editItem?.productTypeName,
|
||||
selectedProductType.value?.productTypeCode
|
||||
)
|
||||
)
|
||||
|
||||
const productLinesHint = computed(() =>
|
||||
needsPassage.value
|
||||
? '请先选代次,编码按「产品编码-代次-序号」生成;序号延续库中同前缀最大号'
|
||||
: '每份填写编码与储物格;多份时编码为「产品编码-01、-02…」'
|
||||
)
|
||||
|
||||
async function remoteSearchStorageSlots(query: string) {
|
||||
storageSlotOptionsLoading.value = true
|
||||
@@ -434,8 +395,16 @@
|
||||
if (visible) void remoteSearchProductTypes('')
|
||||
}
|
||||
|
||||
function onSpecSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchSpecs('')
|
||||
function onProductTypeChange() {
|
||||
if (!needsPassage.value) {
|
||||
formData.passage = ''
|
||||
productLines.value.forEach((line) => {
|
||||
line.passage = ''
|
||||
})
|
||||
}
|
||||
if (!isEdit.value) {
|
||||
void applyProductCodeToLines()
|
||||
}
|
||||
}
|
||||
|
||||
const storageSlotSelectOptions = computed(() => {
|
||||
@@ -481,7 +450,7 @@
|
||||
productCode: '',
|
||||
productName: '',
|
||||
productTypeId: '',
|
||||
specId: '',
|
||||
specName: '',
|
||||
passage: '',
|
||||
batchNo: '',
|
||||
storageSlotId: '',
|
||||
@@ -526,14 +495,23 @@
|
||||
productCode: '',
|
||||
storageSlotId: '',
|
||||
passage: '',
|
||||
specId: '',
|
||||
specName: '',
|
||||
expectedCellCount: undefined,
|
||||
viability: undefined
|
||||
}
|
||||
}
|
||||
|
||||
function resolveSpecName(specId: string) {
|
||||
return specOptions.value.find((o) => o.id === specId)?.specName || ''
|
||||
function stripProductCodeSuffix(code: string) {
|
||||
const c = (code || '').trim()
|
||||
const m = c.match(/^(.+)-(\d{2})$/)
|
||||
return m ? m[1].trim() : c
|
||||
}
|
||||
|
||||
function buildLineProductCode(base: string, index: number, total: number) {
|
||||
const b = stripProductCodeSuffix(base)
|
||||
if (!b) return ''
|
||||
if (total <= 1) return b
|
||||
return `${b}-${String(index + 1).padStart(2, '0')}`
|
||||
}
|
||||
|
||||
function populateFormFromEditItem(item: Record<string, any>) {
|
||||
@@ -541,7 +519,7 @@
|
||||
formData.productCode = item.productCode || item.outputBarcode || ''
|
||||
formData.productName = item.productName || item.outputName || ''
|
||||
formData.productTypeId = item.productTypeId || ''
|
||||
formData.specId = item.specId || ''
|
||||
formData.specName = item.specName || ''
|
||||
formData.passage = item.passage || ''
|
||||
formData.batchNo = item.batchNo || ''
|
||||
formData.storageSlotId = item.storageSlotId || ''
|
||||
@@ -559,17 +537,13 @@
|
||||
resetForm()
|
||||
formData.quantity = 1
|
||||
storageSlotSearchOpts.value = {}
|
||||
await Promise.all([
|
||||
remoteSearchProductTypes(''),
|
||||
remoteSearchSpecs(''),
|
||||
remoteSearchStorageSlots('')
|
||||
])
|
||||
await Promise.all([remoteSearchProductTypes(''), remoteSearchStorageSlots('')])
|
||||
await nextTick()
|
||||
formRef.value?.clearValidate?.()
|
||||
await applyProductCodeToLines()
|
||||
}
|
||||
|
||||
/** 按入库份数同步明细行,并按「编码-代次-序号」重算产品编码 */
|
||||
/** 按入库份数同步明细行,并重算产品编码 */
|
||||
async function applyProductCodeToLines() {
|
||||
syncProductLines()
|
||||
await syncLineCodesFromBase()
|
||||
@@ -594,6 +568,15 @@
|
||||
async function syncLineCodesFromBase() {
|
||||
const token = ++lineCodeSyncToken
|
||||
const base = formData.productCode.trim()
|
||||
const total = createQuantityValue()
|
||||
|
||||
if (!needsPassage.value) {
|
||||
productLines.value.forEach((line, index) => {
|
||||
line.productCode = buildLineProductCode(base, index, total)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
const passages = [
|
||||
...new Set(
|
||||
productLines.value.map((line) => (line.passage || '').trim()).filter(Boolean)
|
||||
@@ -631,8 +614,8 @@
|
||||
lines.push({
|
||||
productCode: prev[i]?.productCode || '',
|
||||
storageSlotId: prev[i]?.storageSlotId || '',
|
||||
passage: prev[i]?.passage || '',
|
||||
specId: prev[i]?.specId || '',
|
||||
passage: needsPassage.value ? prev[i]?.passage || '' : '',
|
||||
specName: prev[i]?.specName || '',
|
||||
expectedCellCount: prev[i]?.expectedCellCount,
|
||||
viability: prev[i]?.viability
|
||||
})
|
||||
@@ -661,6 +644,14 @@
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => needsPassage.value,
|
||||
() => {
|
||||
if (isEdit.value || !props.modelValue) return
|
||||
void applyProductCodeToLines()
|
||||
}
|
||||
)
|
||||
|
||||
/** 其他行选中某格后,若本行已选同一格则清空 */
|
||||
watch(
|
||||
() => productLines.value.map((line) => line.storageSlotId),
|
||||
@@ -686,17 +677,25 @@
|
||||
const codeSeen = new Set<string>()
|
||||
for (let i = 0; i < productLines.value.length; i++) {
|
||||
const line = productLines.value[i]
|
||||
if (!line.passage?.trim()) {
|
||||
if (needsPassage.value && !line.passage?.trim()) {
|
||||
ElMessage.warning(`请选择第 ${i + 1} 份产品的代次`)
|
||||
return false
|
||||
}
|
||||
if (!line.productCode?.trim()) {
|
||||
ElMessage.warning(`第 ${i + 1} 份产品编码未生成,请确认已填写产品编码并选择代次`)
|
||||
ElMessage.warning(
|
||||
needsPassage.value
|
||||
? `第 ${i + 1} 份产品编码未生成,请确认已填写产品编码并选择代次`
|
||||
: `请填写第 ${i + 1} 份产品编码`
|
||||
)
|
||||
return false
|
||||
}
|
||||
const code = line.productCode.trim()
|
||||
if (codeSeen.has(code)) {
|
||||
ElMessage.warning(`产品编码 ${code} 重复,请调整代次或入库份数`)
|
||||
ElMessage.warning(
|
||||
needsPassage.value
|
||||
? `产品编码 ${code} 重复,请调整代次或入库份数`
|
||||
: `产品编码 ${code} 重复,请调整入库份数`
|
||||
)
|
||||
return false
|
||||
}
|
||||
codeSeen.add(code)
|
||||
@@ -731,10 +730,10 @@
|
||||
remark: formData.remark?.trim() || undefined
|
||||
}
|
||||
if (isEdit.value) {
|
||||
const spec = specOptions.value.find((o) => o.id === formData.specId)
|
||||
shared.specId = formData.specId || undefined
|
||||
shared.specName = spec?.specName || props.editItem?.specName || ''
|
||||
shared.passage = formData.passage || undefined
|
||||
shared.specName = formData.specName?.trim() || props.editItem?.specName || ''
|
||||
if (needsPassage.value) {
|
||||
shared.passage = formData.passage || undefined
|
||||
}
|
||||
shared.expectedCellCount = formData.expectedCellCount ?? undefined
|
||||
shared.viability = formData.viability ?? undefined
|
||||
}
|
||||
@@ -747,18 +746,13 @@
|
||||
|
||||
async function hydrateLookupOptionsFromEdit(item: Record<string, any>) {
|
||||
ensureProductTypeInOptions(item.productTypeId, item.productTypeName)
|
||||
ensureSpecInOptions(item.specId, item.specName)
|
||||
storageSlotSearchOpts.value = {
|
||||
includeSlotIds: item.storageSlotId ? [item.storageSlotId] : undefined
|
||||
}
|
||||
storageSlotOptions.value = ensureStorageSlotsInOptions([], [
|
||||
{ id: item.storageSlotId, name: item.storageSlotName || item.storage_slot_name }
|
||||
])
|
||||
await Promise.all([
|
||||
remoteSearchProductTypes(''),
|
||||
remoteSearchSpecs(''),
|
||||
remoteSearchStorageSlots('')
|
||||
])
|
||||
await Promise.all([remoteSearchProductTypes(''), remoteSearchStorageSlots('')])
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
@@ -766,7 +760,7 @@
|
||||
formData.productCode = ''
|
||||
formData.productName = ''
|
||||
formData.productTypeId = ''
|
||||
formData.specId = ''
|
||||
formData.specName = ''
|
||||
formData.passage = ''
|
||||
formData.batchNo = ''
|
||||
formData.storageSlotId = ''
|
||||
@@ -787,10 +781,12 @@
|
||||
try {
|
||||
const shared = buildSharedResult()
|
||||
if (isEdit.value) {
|
||||
const specId = await resolveCellProductSpecIdByName(formData.specName)
|
||||
emit('confirm', {
|
||||
...shared,
|
||||
cellProductId: formData.cellProductId || undefined,
|
||||
productCode: formData.productCode.trim(),
|
||||
specId: specId || undefined,
|
||||
storageSlotId: formData.storageSlotId || undefined,
|
||||
storageSlotName:
|
||||
resolveSlotName(formData.storageSlotId) ||
|
||||
@@ -799,18 +795,23 @@
|
||||
quantity: formData.quantity
|
||||
})
|
||||
} else {
|
||||
const results = productLines.value.map((line) => ({
|
||||
...shared,
|
||||
productCode: line.productCode.trim(),
|
||||
storageSlotId: line.storageSlotId,
|
||||
storageSlotName: resolveSlotName(line.storageSlotId),
|
||||
passage: line.passage || undefined,
|
||||
specId: line.specId || undefined,
|
||||
specName: resolveSpecName(line.specId),
|
||||
expectedCellCount: line.expectedCellCount ?? undefined,
|
||||
viability: line.viability ?? undefined,
|
||||
quantity: 1
|
||||
}))
|
||||
const results = await Promise.all(
|
||||
productLines.value.map(async (line) => {
|
||||
const specId = await resolveCellProductSpecIdByName(line.specName)
|
||||
return {
|
||||
...shared,
|
||||
productCode: line.productCode.trim(),
|
||||
storageSlotId: line.storageSlotId,
|
||||
storageSlotName: resolveSlotName(line.storageSlotId),
|
||||
passage: needsPassage.value ? line.passage || undefined : undefined,
|
||||
specId: specId || undefined,
|
||||
specName: line.specName?.trim() || undefined,
|
||||
expectedCellCount: line.expectedCellCount ?? undefined,
|
||||
viability: line.viability ?? undefined,
|
||||
quantity: 1
|
||||
}
|
||||
})
|
||||
)
|
||||
emit('confirm', results)
|
||||
}
|
||||
emit('update:modelValue', false)
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
:class="{ 'work-order-task-step-sublist--embedded': embedded }"
|
||||
v-loading="loading"
|
||||
>
|
||||
<div v-if="tableData.length" class="work-order-step-cards-wrap">
|
||||
<div v-if="visibleSteps.length" class="work-order-step-cards-wrap">
|
||||
<div class="work-order-step-cards-grid">
|
||||
<div
|
||||
v-for="(row, idx) in tableData"
|
||||
v-for="(row, idx) in visibleSteps"
|
||||
:key="row.id || idx"
|
||||
class="work-order-step-card work-order-step-card--compact"
|
||||
:class="{ 'work-order-step-card--mine-mine': isStepAssignee(row) }"
|
||||
@dblclick="handleViewStep(row)"
|
||||
>
|
||||
<div class="work-order-step-card__main">
|
||||
@@ -104,7 +105,7 @@
|
||||
task: Record<string, any>
|
||||
listMode?: 'workOrder' | 'mine' | 'mine-current' | 'mine-history'
|
||||
embedded?: boolean
|
||||
refreshToken?: number
|
||||
refreshToken?: number | string
|
||||
presetSteps?: Record<string, any>[]
|
||||
}>(),
|
||||
{
|
||||
@@ -127,6 +128,11 @@
|
||||
const tableData = ref<Record<string, any>[]>([])
|
||||
const loading = ref(false)
|
||||
|
||||
const visibleSteps = computed(() => {
|
||||
if (!isMineMode.value) return tableData.value
|
||||
return tableData.value.filter((row) => isStepAssignee(row))
|
||||
})
|
||||
|
||||
function assigneeDisplayName(raw: string): string {
|
||||
const s = String(raw || '').trim()
|
||||
if (!s) return ''
|
||||
@@ -166,21 +172,10 @@
|
||||
return formatPlannedStartDate(row.plannedStartTime)
|
||||
}
|
||||
|
||||
function isCurrentTaskAssignee() {
|
||||
const uid = String(userStore.info?.id || userStore.info?.userId || '').trim()
|
||||
if (!uid) return false
|
||||
if (String(props.task.currentAssigneeUserId || '') === uid) return true
|
||||
if (isMineMode.value && props.listMode !== 'mine-history' && !props.task.handoverTime) return true
|
||||
return false
|
||||
}
|
||||
|
||||
function isStepAssignee(row: Record<string, any>) {
|
||||
const uid = String(userStore.info?.id || userStore.info?.userId || '').trim()
|
||||
if (!uid) return false
|
||||
const ids: string[] = row.assigneeUserIds || []
|
||||
if (ids.includes(uid)) return true
|
||||
if (!ids.length && isCurrentTaskAssignee()) return true
|
||||
return false
|
||||
return (row.assigneeUserIds || []).includes(uid)
|
||||
}
|
||||
|
||||
function canEnterStep(row: Record<string, any>) {
|
||||
@@ -292,6 +287,27 @@
|
||||
min-height: 96px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
|
||||
&--mine-mine {
|
||||
background: #059669;
|
||||
border-color: #047857;
|
||||
|
||||
&:hover {
|
||||
border-color: #065f46;
|
||||
box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
|
||||
}
|
||||
|
||||
.work-order-step-card__name,
|
||||
.work-order-step-card__assignee-item,
|
||||
.work-order-step-card__start-time {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.work-order-step-card__seq {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.work-order-step-card__main {
|
||||
|
||||
@@ -177,6 +177,7 @@
|
||||
|
||||
<DispatchTaskDialog
|
||||
v-if="workOrder"
|
||||
ref="dispatchTaskDialogRef"
|
||||
v-model:visible="dispatchVisible"
|
||||
:work-order-row="workOrder"
|
||||
@success="handleTaskMutationSuccess"
|
||||
@@ -187,11 +188,13 @@
|
||||
v-model:visible="stepDispatchVisible"
|
||||
:task-id="stepDispatchTaskId"
|
||||
:task-name="stepDispatchTaskName"
|
||||
@success="handleTaskMutationSuccess"
|
||||
:preset-steps="stepDispatchPresetSteps"
|
||||
@success="handleStepDispatchSuccess"
|
||||
/>
|
||||
|
||||
<DispatchTaskDialog
|
||||
v-if="workOrder"
|
||||
ref="editRouteTaskDialogRef"
|
||||
v-model:visible="editRouteVisible"
|
||||
:work-order-row="workOrder"
|
||||
:edit-task-id="editRouteTaskId"
|
||||
@@ -266,13 +269,14 @@
|
||||
}
|
||||
page?: number
|
||||
pageSize?: number
|
||||
refreshToken?: number
|
||||
refreshToken?: number | string
|
||||
embedded?: boolean
|
||||
presetTasks?: Record<string, any>[]
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
changed: []
|
||||
changed: [detail?: { workOrderId?: string; reloadWorkOrders?: boolean }]
|
||||
'counts-changed': []
|
||||
'update:total': [number]
|
||||
}>()
|
||||
|
||||
@@ -339,6 +343,9 @@
|
||||
}
|
||||
const sections = await Promise.all(
|
||||
tasks.map(async (task) => {
|
||||
if (Array.isArray(task.steps)) {
|
||||
return buildSection(task, task.steps)
|
||||
}
|
||||
try {
|
||||
const detail = await fetchProductionTaskDetail(task.id)
|
||||
const steps = extractProductionTaskSteps(detail)
|
||||
@@ -366,7 +373,8 @@
|
||||
pageSize: props.pageSize || 30,
|
||||
keyword: props.mineFilters?.keyword || undefined,
|
||||
taskStatus: props.mineFilters?.taskStatus || undefined,
|
||||
workOrderType: props.mineFilters?.workOrderType || undefined
|
||||
workOrderType: props.mineFilters?.workOrderType || undefined,
|
||||
includeStepSummary: true
|
||||
})
|
||||
const tasks = (res.list || []).filter(
|
||||
(t) => !props.workOrder?.id || t.workOrderId === props.workOrder.id
|
||||
@@ -380,23 +388,30 @@
|
||||
taskSections.value = []
|
||||
return
|
||||
}
|
||||
const res = await fetchProductionTaskList({ workOrderId, pageSize: 100 })
|
||||
const res = await fetchProductionTaskList({ workOrderId, pageSize: 100, includeStepSummary: true })
|
||||
await loadTaskSections(res.list || [])
|
||||
} finally {
|
||||
sectionsLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function emitTaskChanged(options?: { reloadWorkOrders?: boolean }) {
|
||||
emit('changed', {
|
||||
workOrderId: props.workOrder?.id,
|
||||
reloadWorkOrders: options?.reloadWorkOrders
|
||||
})
|
||||
}
|
||||
|
||||
function handleTaskMutationSuccess() {
|
||||
loadData()
|
||||
emit('changed')
|
||||
emitTaskChanged({ reloadWorkOrders: false })
|
||||
}
|
||||
|
||||
function handleStepChanged() {
|
||||
if (!usesPresetTasks.value) {
|
||||
loadData()
|
||||
}
|
||||
emit('changed')
|
||||
emitTaskChanged({ reloadWorkOrders: false })
|
||||
}
|
||||
|
||||
function handleDispatch() {
|
||||
@@ -408,20 +423,61 @@
|
||||
}
|
||||
|
||||
const dispatchVisible = ref(false)
|
||||
const dispatchTaskDialogRef = ref<{
|
||||
refreshStepsIfOpen: (
|
||||
targetTaskId: string,
|
||||
stepSummaries?: Record<string, any>[]
|
||||
) => Promise<void>
|
||||
} | null>(null)
|
||||
const editRouteTaskDialogRef = ref<{
|
||||
refreshStepsIfOpen: (
|
||||
targetTaskId: string,
|
||||
stepSummaries?: Record<string, any>[]
|
||||
) => Promise<void>
|
||||
} | null>(null)
|
||||
|
||||
const stepDispatchVisible = ref(false)
|
||||
const stepDispatchTaskId = ref('')
|
||||
const stepDispatchTaskName = ref('')
|
||||
const stepDispatchPresetSteps = ref<Record<string, any>[] | undefined>(undefined)
|
||||
|
||||
function handleNeedStepDispatch(payload: { taskId: string; taskName: string }) {
|
||||
async function refreshOpenTaskEditorSteps(
|
||||
taskId: string,
|
||||
stepSummaries?: Record<string, any>[]
|
||||
) {
|
||||
const id = String(taskId || '').trim()
|
||||
if (!id) return
|
||||
await Promise.all([
|
||||
dispatchTaskDialogRef.value?.refreshStepsIfOpen(id, stepSummaries),
|
||||
editRouteTaskDialogRef.value?.refreshStepsIfOpen(id, stepSummaries)
|
||||
])
|
||||
}
|
||||
|
||||
async function handleStepDispatchSuccess(payload: {
|
||||
taskId: string
|
||||
steps: Record<string, any>[]
|
||||
}) {
|
||||
const taskId = payload.taskId
|
||||
await refreshOpenTaskEditorSteps(taskId, payload.steps)
|
||||
await loadData()
|
||||
emit('counts-changed')
|
||||
}
|
||||
|
||||
function handleNeedStepDispatch(payload: {
|
||||
taskId: string
|
||||
taskName: string
|
||||
presetSteps?: Record<string, any>[]
|
||||
}) {
|
||||
stepDispatchTaskId.value = payload.taskId
|
||||
stepDispatchTaskName.value = payload.taskName
|
||||
stepDispatchPresetSteps.value = payload.presetSteps
|
||||
stepDispatchVisible.value = true
|
||||
}
|
||||
|
||||
function openStepDispatch(row: Record<string, any>) {
|
||||
stepDispatchTaskId.value = row.id
|
||||
stepDispatchTaskName.value = row.taskName || ''
|
||||
stepDispatchPresetSteps.value = undefined
|
||||
stepDispatchVisible.value = true
|
||||
}
|
||||
|
||||
|
||||
+26
-5
@@ -48,6 +48,7 @@ export function useProductionWorkOrderTabPage(
|
||||
const loading = ref(false)
|
||||
const pagination = reactive({ page: 1, pageSize: 10, total: 0 })
|
||||
const taskSubListRefreshToken = ref(0)
|
||||
const taskSubListRefreshByWorkOrderId = ref<Record<string, number>>({})
|
||||
const selectedRows = ref<ProductionWorkOrderItem[]>([])
|
||||
const selectedIds = computed(() => selectedRows.value.map((r) => r.id))
|
||||
|
||||
@@ -146,9 +147,14 @@ export function useProductionWorkOrderTabPage(
|
||||
loadData()
|
||||
}
|
||||
|
||||
async function handleWorkOrderTasksChanged() {
|
||||
taskSubListRefreshToken.value += 1
|
||||
await loadData()
|
||||
async function handleWorkOrderTasksChanged(
|
||||
workOrderId?: string,
|
||||
options?: { reloadWorkOrders?: boolean }
|
||||
) {
|
||||
bumpTaskRefresh(workOrderId)
|
||||
if (options?.reloadWorkOrders !== false) {
|
||||
await loadData()
|
||||
}
|
||||
}
|
||||
|
||||
function handleView(row: ProductionWorkOrderItem) {
|
||||
@@ -170,10 +176,23 @@ export function useProductionWorkOrderTabPage(
|
||||
selectedRows.value = []
|
||||
}
|
||||
|
||||
function bumpTaskRefresh() {
|
||||
function bumpTaskRefresh(workOrderId?: string) {
|
||||
const id = String(workOrderId || '').trim()
|
||||
if (id) {
|
||||
taskSubListRefreshByWorkOrderId.value = {
|
||||
...taskSubListRefreshByWorkOrderId.value,
|
||||
[id]: (taskSubListRefreshByWorkOrderId.value[id] || 0) + 1
|
||||
}
|
||||
return
|
||||
}
|
||||
taskSubListRefreshToken.value += 1
|
||||
}
|
||||
|
||||
function taskRefreshKey(workOrderId: string) {
|
||||
const scoped = taskSubListRefreshByWorkOrderId.value[workOrderId] || 0
|
||||
return `${taskSubListRefreshToken.value}:${scoped}`
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
})
|
||||
@@ -200,6 +219,7 @@ export function useProductionWorkOrderTabPage(
|
||||
loading,
|
||||
pagination,
|
||||
taskSubListRefreshToken,
|
||||
taskSubListRefreshByWorkOrderId,
|
||||
selectedRows,
|
||||
selectedIds,
|
||||
viewVisible,
|
||||
@@ -213,6 +233,7 @@ export function useProductionWorkOrderTabPage(
|
||||
handleView,
|
||||
handleCardToggleSelect,
|
||||
clearSelection,
|
||||
bumpTaskRefresh
|
||||
bumpTaskRefresh,
|
||||
taskRefreshKey
|
||||
}
|
||||
}
|
||||
@@ -60,6 +60,7 @@
|
||||
</el-dialog>
|
||||
|
||||
<DispatchTaskDialog
|
||||
ref="dispatchTaskDialogRef"
|
||||
v-model:visible="dispatchVisible"
|
||||
:work-order-row="dispatchRow"
|
||||
@success="refreshActiveTab"
|
||||
@@ -70,7 +71,8 @@
|
||||
v-model:visible="stepDispatchVisible"
|
||||
:task-id="stepDispatchTaskId"
|
||||
:task-name="stepDispatchTaskName"
|
||||
@success="refreshActiveTab"
|
||||
:preset-steps="stepDispatchPresetSteps"
|
||||
@success="handleStepDispatchSuccess"
|
||||
/>
|
||||
|
||||
<DispatchQcWorkOrderDialog
|
||||
@@ -222,13 +224,33 @@
|
||||
|
||||
const dispatchVisible = ref(false)
|
||||
const dispatchRow = ref<ProductionWorkOrderItem | null>(null)
|
||||
const dispatchTaskDialogRef = ref<{
|
||||
refreshStepsIfOpen: (
|
||||
targetTaskId: string,
|
||||
stepSummaries?: Record<string, any>[]
|
||||
) => Promise<void>
|
||||
} | null>(null)
|
||||
const stepDispatchVisible = ref(false)
|
||||
const stepDispatchTaskId = ref('')
|
||||
const stepDispatchTaskName = ref('')
|
||||
const stepDispatchPresetSteps = ref<Record<string, any>[] | undefined>(undefined)
|
||||
|
||||
function handleNeedStepDispatch(payload: { taskId: string; taskName: string }) {
|
||||
async function handleStepDispatchSuccess(payload: {
|
||||
taskId: string
|
||||
steps: Record<string, any>[]
|
||||
}) {
|
||||
await dispatchTaskDialogRef.value?.refreshStepsIfOpen(payload.taskId, payload.steps)
|
||||
reloadTabCounts()
|
||||
}
|
||||
|
||||
function handleNeedStepDispatch(payload: {
|
||||
taskId: string
|
||||
taskName: string
|
||||
presetSteps?: Record<string, any>[]
|
||||
}) {
|
||||
stepDispatchTaskId.value = payload.taskId
|
||||
stepDispatchTaskName.value = payload.taskName
|
||||
stepDispatchPresetSteps.value = payload.presetSteps
|
||||
stepDispatchVisible.value = true
|
||||
}
|
||||
|
||||
|
||||
+17
-3
@@ -129,6 +129,7 @@
|
||||
:page-size="pagination.pageSize"
|
||||
:total="pagination.total"
|
||||
:task-refresh-token="taskSubListRefreshToken"
|
||||
:task-refresh-key="taskRefreshKey"
|
||||
:selected-ids="selectedIds"
|
||||
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
|
||||
@view="handleView"
|
||||
@@ -138,6 +139,7 @@
|
||||
@command="handleCommand"
|
||||
@toggle-select="handleCardToggleSelect"
|
||||
@tasks-changed="onTasksChanged"
|
||||
@counts-changed="onCountsChanged"
|
||||
@open-sample-reception="handleOpenSampleReception"
|
||||
@page-change="onWorkOrderPageChange"
|
||||
@page-size-change="onWorkOrderPageSizeChange"
|
||||
@@ -221,11 +223,23 @@
|
||||
handleView,
|
||||
handleCardToggleSelect,
|
||||
clearSelection,
|
||||
bumpTaskRefresh
|
||||
bumpTaskRefresh,
|
||||
taskRefreshKey
|
||||
} = useProductionWorkOrderTabPage(tabKeyRef, pageModeComputed)
|
||||
|
||||
async function onTasksChanged() {
|
||||
await handleWorkOrderTasksChanged()
|
||||
type TaskSubListChangeDetail = {
|
||||
workOrderId?: string
|
||||
reloadWorkOrders?: boolean
|
||||
}
|
||||
|
||||
async function onTasksChanged(detail?: TaskSubListChangeDetail) {
|
||||
await handleWorkOrderTasksChanged(detail?.workOrderId, {
|
||||
reloadWorkOrders: detail?.reloadWorkOrders
|
||||
})
|
||||
emit('data-changed')
|
||||
}
|
||||
|
||||
function onCountsChanged() {
|
||||
emit('data-changed')
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
fetchSetTaskOutputs,
|
||||
fetchDispatchProductionTaskSteps
|
||||
} from '@/api/production-task'
|
||||
import { fetchUserList } from '@/api/admin'
|
||||
import { fetchProductionStepAssigneeUsers } from '@/utils/production-step-assignee'
|
||||
import {
|
||||
fetchAllProcesses,
|
||||
fetchAllProcessCategories,
|
||||
@@ -103,39 +103,30 @@ export function useTaskStepEditor() {
|
||||
const taskId = ref('')
|
||||
const stepList = ref<Record<string, any>[]>([])
|
||||
|
||||
function isCurrentUserStepAssignee(step: Record<string, any> | null | undefined): boolean {
|
||||
if (!step) return false
|
||||
const uid = String(userStore.info?.id || userStore.info?.userId || '').trim()
|
||||
if (!uid) return false
|
||||
return (step.assigneeUserIds || []).includes(uid)
|
||||
}
|
||||
|
||||
function canEditStep(step: Record<string, any> | null | undefined): boolean {
|
||||
if (!step) return false
|
||||
if (operateScope.value !== 'mine') return true
|
||||
const uid = String(userStore.info?.id || userStore.info?.userId || '').trim()
|
||||
const ids: string[] = step.assigneeUserIds || []
|
||||
if (uid && ids.includes(uid)) return true
|
||||
if (!ids.length && canEditStepOnTaskForMine(uid)) return true
|
||||
return false
|
||||
return isCurrentUserStepAssignee(step)
|
||||
}
|
||||
|
||||
/** 步骤负责人与计划开始时间是否可在详情中编辑(执行弹窗 manage / mine 均可) */
|
||||
/** 步骤负责人与计划开始时间是否可在详情中编辑(manage 模式;mine 模式仅本人负责步骤) */
|
||||
function canEditStepDispatch(): boolean {
|
||||
if (operateScope.value === 'mine') {
|
||||
return canEditStep(selectedStep.value)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
function canEditStepOnTaskForMine(uid: string): boolean {
|
||||
if (!uid) return false
|
||||
if (stepList.value.some((s) => (s.assigneeUserIds || []).includes(uid))) return true
|
||||
const taskAssignee = String(taskDetail.value?.currentAssigneeUserId || '').trim()
|
||||
return taskAssignee === uid
|
||||
}
|
||||
/** 任务执行弹窗:展示全部工艺步骤(mine 下只读/可操作由 canEditStep 区分) */
|
||||
const executionStepList = computed(() => stepList.value)
|
||||
|
||||
const executionStepList = computed(() => {
|
||||
if (operateScope.value !== 'mine') return stepList.value
|
||||
const uid = String(userStore.info?.id || userStore.info?.userId || '').trim()
|
||||
return stepList.value.filter((s) => {
|
||||
const ids: string[] = s.assigneeUserIds || []
|
||||
if (uid && ids.includes(uid)) return true
|
||||
// 未派发步骤:任务内任一步负责人可在执行弹窗中看见并配置(含工艺库新增)
|
||||
if (!ids.length && canEditStepOnTaskForMine(uid)) return true
|
||||
return false
|
||||
})
|
||||
})
|
||||
const selectedStepId = ref('')
|
||||
const stepListLoading = ref(false)
|
||||
const processLibraryLoading = ref(false)
|
||||
@@ -184,6 +175,19 @@ export function useTaskStepEditor() {
|
||||
const configuredReagentRequisitionOptions = ref<ProductionMaterialRequisitionOption[]>([])
|
||||
const configuredReagentRequisitionOptionsLoading = ref(false)
|
||||
|
||||
let stepConfigOptionsLoaded = false
|
||||
async function ensureStepConfigOptionsLoaded() {
|
||||
if (stepConfigOptionsLoaded) return
|
||||
stepConfigOptionsLoaded = true
|
||||
await Promise.all([
|
||||
searchItemUnitOptions(''),
|
||||
searchReagentOptions(''),
|
||||
searchConsumableOptions(''),
|
||||
searchCellProductOptions(''),
|
||||
searchSampleCodeOptions('')
|
||||
])
|
||||
}
|
||||
|
||||
const cellProductOptions = ref<
|
||||
Array<{
|
||||
id: string
|
||||
@@ -769,13 +773,6 @@ export function useTaskStepEditor() {
|
||||
} finally {
|
||||
processLibraryLoading.value = false
|
||||
}
|
||||
await Promise.all([
|
||||
searchItemUnitOptions(''),
|
||||
searchReagentOptions(''),
|
||||
searchConsumableOptions(''),
|
||||
searchCellProductOptions(''),
|
||||
searchSampleCodeOptions('')
|
||||
])
|
||||
}
|
||||
|
||||
function enrichTaskOutputRow(row: Record<string, any>) {
|
||||
@@ -811,7 +808,7 @@ export function useTaskStepEditor() {
|
||||
}
|
||||
if (stepList.value.length > 0 && !selectedStepId.value) {
|
||||
const firstPending = stepList.value.find((s) => s.stepStatus !== 'ywc')
|
||||
selectedStepId.value = firstPending ? firstPending.id : stepList.value[0].id
|
||||
selectStep(firstPending || stepList.value[0])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -819,16 +816,7 @@ export function useTaskStepEditor() {
|
||||
const id = overrideId || taskId.value
|
||||
if (!id) return 0
|
||||
try {
|
||||
let detail = await fetchProductionTaskDetail(id)
|
||||
let steps = extractTaskSteps(detail)
|
||||
if (options?.expectSteps && steps.length === 0) {
|
||||
for (const delayMs of [200, 400, 800]) {
|
||||
await new Promise((resolve) => setTimeout(resolve, delayMs))
|
||||
detail = await fetchProductionTaskDetail(id)
|
||||
steps = extractTaskSteps(detail)
|
||||
if (steps.length > 0) break
|
||||
}
|
||||
}
|
||||
const detail = await fetchProductionTaskDetail(id)
|
||||
applyTaskDetailSteps(detail || {})
|
||||
if (mode.value === 'execution') {
|
||||
let executionDetail = detail
|
||||
@@ -918,6 +906,7 @@ export function useTaskStepEditor() {
|
||||
ensureStepAssigneeFields(step)
|
||||
selectedStepId.value = step.id
|
||||
selectedVirtualStep.value = null
|
||||
void ensureStepConfigOptionsLoaded()
|
||||
}
|
||||
function selectVirtualStep(type: 'input' | 'output' | 'paper') {
|
||||
selectedVirtualStep.value = type
|
||||
@@ -982,12 +971,7 @@ export function useTaskStepEditor() {
|
||||
async function remoteSearchStepAssigneeUsers(query: string) {
|
||||
stepAssigneeUserOptionsLoading.value = true
|
||||
try {
|
||||
const res = await fetchUserList({
|
||||
page: 1,
|
||||
pageSize: 50,
|
||||
keyword: query?.trim() || undefined,
|
||||
status: '1'
|
||||
})
|
||||
const res = await fetchProductionStepAssigneeUsers(query)
|
||||
stepAssigneeUserOptions.value = res.list || []
|
||||
} catch {
|
||||
stepAssigneeUserOptions.value = []
|
||||
@@ -997,7 +981,7 @@ export function useTaskStepEditor() {
|
||||
}
|
||||
|
||||
function onStepAssigneeSelectVisible(visible: boolean) {
|
||||
if (visible) void remoteSearchStepAssigneeUsers('')
|
||||
if (visible && !stepAssigneeUserOptions.value.length) void remoteSearchStepAssigneeUsers('')
|
||||
}
|
||||
|
||||
function ensureStepAssigneeFields(step: Record<string, any>) {
|
||||
@@ -1767,12 +1751,53 @@ export function useTaskStepEditor() {
|
||||
return map[status] || { label: status, type: 'info' }
|
||||
}
|
||||
|
||||
/** 用步骤摘要合并负责人/计划时间,避免步骤派发成功后全量拉详情 */
|
||||
function mergeStepDispatchSummaries(steps: Record<string, any>[]) {
|
||||
if (!steps.length || !stepList.value.length) return
|
||||
const byId = new Map(steps.map((s) => [String(s.id || ''), s]))
|
||||
const prevSelected = selectedStepId.value
|
||||
stepList.value = stepList.value.map((step) => {
|
||||
const incoming = byId.get(String(step.id || ''))
|
||||
if (!incoming) return step
|
||||
const assigneeUserIds = [...(incoming.assigneeUserIds || [])]
|
||||
const plannedStartTime = normalizePlannedStartDate(incoming.plannedStartTime)
|
||||
return {
|
||||
...step,
|
||||
assigneeUserIds,
|
||||
assignees: incoming.assignees || [],
|
||||
assigneeNames: incoming.assigneeNames || [],
|
||||
plannedStartTime,
|
||||
_snapshotAssigneeUserIds: [...assigneeUserIds],
|
||||
_snapshotPlannedStartTime: plannedStartTime || ''
|
||||
}
|
||||
})
|
||||
if (prevSelected && stepList.value.some((s) => s.id === prevSelected)) {
|
||||
selectedStepId.value = prevSelected
|
||||
}
|
||||
}
|
||||
|
||||
/** 重新拉取当前任务步骤(保留已选步骤 id,供步骤派发成功后刷新编辑弹窗) */
|
||||
async function reloadTaskSteps(stepSummaries?: Record<string, any>[]): Promise<void> {
|
||||
if (!taskId.value) return
|
||||
if (stepSummaries?.length) {
|
||||
mergeStepDispatchSummaries(stepSummaries)
|
||||
return
|
||||
}
|
||||
stepListLoading.value = true
|
||||
try {
|
||||
await loadTaskDetail(taskId.value)
|
||||
} finally {
|
||||
stepListLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function initEditor(
|
||||
id: string,
|
||||
options?: {
|
||||
mode?: 'edit' | 'execution'
|
||||
operateScope?: import('@/api/production-task').ProductionTaskOperateScope
|
||||
expectSteps?: boolean
|
||||
initialSteps?: Record<string, any>[]
|
||||
}
|
||||
): Promise<number> {
|
||||
operateScope.value = options?.operateScope
|
||||
@@ -1782,11 +1807,20 @@ export function useTaskStepEditor() {
|
||||
activeSubTab.value = PROCESS_ROUTE_DEFAULT_SUB_TAB
|
||||
processSearchKeyword.value = ''
|
||||
configSuppressSave.value = true
|
||||
stepConfigOptionsLoaded = false
|
||||
stepListLoading.value = true
|
||||
let stepCount = 0
|
||||
try {
|
||||
// 先拉任务步骤,避免参考数据加载失败/过慢导致工序列表一直为空
|
||||
stepCount = await loadTaskDetail(id, { expectSteps: options?.expectSteps })
|
||||
const initialSteps = options?.initialSteps
|
||||
if (initialSteps?.length) {
|
||||
applyTaskDetailSteps({ steps: initialSteps })
|
||||
stepCount = stepList.value.length
|
||||
void loadTaskDetail(id).catch(() => {
|
||||
/* 后台补全步骤子表,失败不阻断已展示的步骤列表 */
|
||||
})
|
||||
} else {
|
||||
stepCount = await loadTaskDetail(id, { expectSteps: options?.expectSteps })
|
||||
}
|
||||
void loadConfigReferenceData().catch(() => {
|
||||
/* 工艺库参考数据失败不阻断步骤展示 */
|
||||
})
|
||||
@@ -1807,6 +1841,7 @@ export function useTaskStepEditor() {
|
||||
executionStepList,
|
||||
canEditStep,
|
||||
canEditStepDispatch,
|
||||
isCurrentUserStepAssignee,
|
||||
selectedStepId,
|
||||
selectedStep,
|
||||
stepListLoading,
|
||||
@@ -1929,6 +1964,8 @@ export function useTaskStepEditor() {
|
||||
manualSaveLoading,
|
||||
stepActionLoading,
|
||||
handleManualSave,
|
||||
initEditor
|
||||
initEditor,
|
||||
reloadTaskSteps,
|
||||
mergeStepDispatchSummaries
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user