This commit is contained in:
zlwu committed 2026-07-07 11:10:48 +08:00
1 parent 731bbf878a
commit f4bbe3e06e
56 files changed
+13599 -11335

No files matched your search

+7
View File
@@ -215,6 +215,13 @@ export function fetchMineQcWorkOrderTabUnfinishedCounts() {
})
}
export function fetchQcWorkOrdersBySample(params: { sampleCode: string; receptionSource: string }) {
return request.get<{ list: QcWorkOrder[] }>({
url: '/web/admin/qc-work-orders/by-sample',
params
})
}
export function fetchQcWorkOrderList(params?: {
page?: number
pageSize?: number
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "label": "QcWorkOrderCardList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L190", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L191", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_inspection_batch", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L192", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L193", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L199", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_composables_useinboundsiblingnavigation", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L204", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_card_meta", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L208", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_card_meta", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L209", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L214", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordersamplegroup_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue", "source_location": "L215", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordercardlist_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkorLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_sample_reception_samplereceptioncardlist_vue", "label": "SampleReceptionCardList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/SampleReceptionCardList.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_ts", "label": "production-work-order-category.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L1"}, {"id": "utils_production_work_order_category_resolveworkordercategorykey", "label": "resolveWorkOrderCategoryKey()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L40"}, {"id": "utils_production_work_order_category_productionworkordercategorylabel", "label": "productionWorkOrderCategoryLabel()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L50"}, {"id": "utils_production_work_order_category_productionworkordercategorytagtype", "label": "productionWorkOrderCategoryTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L54"}, {"id": "utils_production_work_order_category_toalltablistquery", "label": "toAllTabListQuery()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L58"}, {"id": "utils_production_work_order_category_workordermatchescategory", "label": "workOrderMatchesCategory()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L82"}, {"id": "utils_production_work_order_category_shouldshowtaskheaderlabstoragecode", "label": "shouldShowTaskHeaderLabStorageCode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L97"}, {"id": "utils_production_work_order_category_istemporaryproductionworkorder", "label": "isTemporaryProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L105"}, {"id": "utils_production_work_order_category_temporaryproductionexecutiondialogtitle", "label": "temporaryProductionExecutionDialogTitle()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L110"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_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-work-order-category.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_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-work-order-category.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_ts", "target": "utils_production_work_order_category_resolveworkordercategorykey", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L40", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_ts", "target": "utils_production_work_order_category_productionworkordercategorylabel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L50", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_ts", "target": "utils_production_work_order_category_productionworkordercategorytagtype", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-category.ts", "source_location": "L54", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_category_ts", "target": "utils_production_work_order_category_toalltablistquery", "relatLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_tabs_qcworkordertabpanel_vue", "label": "QcWorkOrderTabPanel.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L1"}, {"id": "tabs_qcworkordertabpanel_clearworkorderselection", "label": "clearWorkOrderSelection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L399"}, {"id": "tabs_qcworkordertabpanel_handlesearch", "label": "handleSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L489"}, {"id": "tabs_qcworkordertabpanel_handlereset", "label": "handleReset()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L494"}, {"id": "tabs_qcworkordertabpanel_issampletypechipactive", "label": "isSampleTypeChipActive()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L499"}, {"id": "tabs_qcworkordertabpanel_handlesampletypechipclick", "label": "handleSampleTypeChipClick()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L503"}, {"id": "tabs_qcworkordertabpanel_handleworkorderpagechange", "label": "handleWorkOrderPageChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L510"}, {"id": "tabs_qcworkordertabpanel_handleworkorderpagesizechange", "label": "handleWorkOrderPageSizeChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L515"}, {"id": "tabs_qcworkordertabpanel_handleexportattachments", "label": "handleExportAttachments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L520"}, {"id": "tabs_qcworkordertabpanel_onworkordertaskschanged", "label": "onWorkOrderTasksChanged()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L524"}, {"id": "tabs_qcworkordertabpanel_onsamplespecialchanged", "label": "onSampleSpecialChanged()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L529"}, {"id": "tabs_qcworkordertabpanel_handlecommand", "label": "handleCommand()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L534"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_tabs_qcworkordertabpanel_vue", "target": "tabs_qcworkordertabpanel_clearworkorderselection", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L399", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_tabs_qcworkordertabpanel_vue", "target": "tabs_qcworkordertabpanel_handlesearch", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L489", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_tabs_qcworkordertabpanel_vue", "target": "tabs_qcworkordertabpanel_handlereset", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location": "L494", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_tabs_qcworkordertabpanel_vue", "target": "tabs_qcworkordertabpanel_issampletypechipactive", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/tabs/QcWorkOrderTabPanel.vue", "source_location"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_sample_reception_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue", "source_location": "L1"}, {"id": "sample_reception_index_ensurecurrentuserinoptions", "label": "ensureCurrentUserInOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue", "source_location": "L1210"}, {"id": "sample_reception_index_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue", "source_location": "L1469"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_sample_reception_index_vue", "target": "sample_reception_index_ensurecurrentuserinoptions", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue", "source_location": "L1210", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_sample_reception_index_vue", "target": "sample_reception_index_if", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue", "source_location": "L1469", "weight": 1.0}], "raw_calls": [{"caller_nid": "sample_reception_index_if", "callee": "warning", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/sample-reception/index.vue", "source_location": "L1470"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_ts", "label": "production-work-order-card-meta.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L1"}, {"id": "utils_production_work_order_card_meta_formatoutboundschedulesortno", "label": "formatOutboundScheduleSortNo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L43"}, {"id": "utils_production_work_order_card_meta_formatoutboundscheduletotalcount", "label": "formatOutboundScheduleTotalCount()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L49"}, {"id": "utils_production_work_order_card_meta_protocolstatuslabelfortab", "label": "protocolStatusLabelForTab()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L61"}, {"id": "utils_production_work_order_card_meta_protocolstatustagtypefortab", "label": "protocolStatusTagTypeForTab()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L71"}, {"id": "utils_production_work_order_card_meta_buildinboundmetafields", "label": "buildInboundMetaFields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L80"}, {"id": "utils_production_work_order_card_meta_getcardmetaconfig", "label": "getCardMetaConfig()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L266"}, {"id": "utils_production_work_order_card_meta_resolvecardmetaforrow", "label": "resolveCardMetaForRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L270"}, {"id": "utils_production_work_order_card_meta_getcardmetaconfigforlegacytab", "label": "getCardMetaConfigForLegacyTab()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L284"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_datetime_display", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_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-work-order-card-meta.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_labels", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-card-meta.ts", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_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-work-order-card-meta.ts", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_card_meta_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_work_order_tabs", "relation": "iLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_pre_transit_sample_pretransitprotocolcardlist_vue", "label": "PreTransitProtocolCardList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/pre-transit-sample/PreTransitProtocolCardList.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_protocol_audit_samplereceptioninfotab_vue", "label": "SampleReceptionInfoTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/SampleReceptionInfoTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -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": "L655"}, {"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": "L660"}, {"id": "production_work_order_taskexecutiondialog_openforwarddialog", "label": "openForwardDialog()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L666"}, {"id": "production_work_order_taskexecutiondialog_savetaskoutputsmanual", "label": "saveTaskOutputsManual()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L671"}, {"id": "production_work_order_taskexecutiondialog_savetaskattachmentsmanual", "label": "saveTaskAttachmentsManual()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L675"}, {"id": "production_work_order_taskexecutiondialog_savetaskequipmentmanual", "label": "saveTaskEquipmentManual()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L679"}, {"id": "production_work_order_taskexecutiondialog_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L684"}, {"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": "L703"}], "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": "L655", "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": "L660", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_openforwarddialog", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L666", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_savetaskoutputsmanual", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L671", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_savetaskattachmentsmanual", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue", "source_location": "L675", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_taskexecutiondialog_vue", "target": "production_work_order_taskexecutiondialog_savetaskequipmentmanual", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/vLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordersamplegroup_vue", "label": "QcWorkOrderSampleGroup.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L1"}, {"id": "qc_work_order_qcworkordersamplegroup_workordertabtitle", "label": "workOrderTabTitle()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L300"}, {"id": "qc_work_order_qcworkordersamplegroup_handlesiblinglinkclick", "label": "handleSiblingLinkClick()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L304"}, {"id": "qc_work_order_qcworkordersamplegroup_workorderstatustagtype", "label": "workOrderStatusTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L322"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordersamplegroup_vue", "target": "qc_work_order_qcworkordersamplegroup_workordertabtitle", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L300", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordersamplegroup_vue", "target": "qc_work_order_qcworkordersamplegroup_handlesiblinglinkclick", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L304", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkordersamplegroup_vue", "target": "qc_work_order_qcworkordersamplegroup_workorderstatustagtype", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L322", "weight": 1.0}], "raw_calls": [{"caller_nid": "qc_work_order_qcworkordersamplegroup_handlesiblinglinkclick", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L306"}, {"caller_nid": "qc_work_order_qcworkordersamplegroup_handlesiblinglinkclick", "callee": "scrollToInboundSampleCard", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L309"}, {"caller_nid": "qc_work_order_qcworkordersamplegroup_handlesiblinglinkclick", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L313"}, {"caller_nid": "qc_work_order_qcworkordersamplegroup_handlesiblinglinkclick", "callee": "emit", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSampleGroup.vue", "source_location": "L314"}]}
@@ -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": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "label": "useQcWorkOrderTabPage.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L1"}, {"id": "composables_useqcworkordertabpage_shouldapplytriggersourcefilter", "label": "shouldApplyTriggerSourceFilter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L30"}, {"id": "composables_useqcworkordertabpage_useqcworkordertabpage", "label": "useQcWorkOrderTabPage()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L37"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_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/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_mine_task_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_category", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L23", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_card_meta", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useqcworkordertabpage_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useQcWorkOrderTabPage.ts", "source_location": "L25", "weight": Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "label": "useInboundSiblingNavigation.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L1"}, {"id": "composables_useinboundsiblingnavigation_resolveshowprotocolpaymentatgroup", "label": "resolveShowProtocolPaymentAtGroup()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L33"}, {"id": "composables_useinboundsiblingnavigation_buildinsertedsiblingcard", "label": "buildInsertedSiblingCard()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L37"}, {"id": "composables_useinboundsiblingnavigation_fetchminetasksforworkorders", "label": "fetchMineTasksForWorkOrders()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L61"}, {"id": "composables_useinboundsiblingnavigation_useinboundsiblingnavigation", "label": "useInboundSiblingNavigation()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L81"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L6", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/composables/useInboundSiblingNavigation.ts", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_composables_useinboundsiblingnavigation_ts", "target": "users_wuzilong_work_00coLine truncated
@@ -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": "L67"}, {"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": "L77"}, {"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": "L81"}, {"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": "L84"}, {"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": "L111"}, {"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": "L118"}], "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": "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_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": "L33", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_prodLine truncated
@@ -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": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "label": "qc-work-order.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L1"}, {"id": "api_qc_work_order_formatqcworkordertabbadgecount", "label": "formatQcWorkOrderTabBadgeCount()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L202"}, {"id": "api_qc_work_order_fetchqcworkordertabunfinishedcounts", "label": "fetchQcWorkOrderTabUnfinishedCounts()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L206"}, {"id": "api_qc_work_order_fetchmineqcworkordertabunfinishedcounts", "label": "fetchMineQcWorkOrderTabUnfinishedCounts()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L212"}, {"id": "api_qc_work_order_fetchqcworkordersbysample", "label": "fetchQcWorkOrdersBySample()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L218"}, {"id": "api_qc_work_order_fetchqcworkorderlist", "label": "fetchQcWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L225"}, {"id": "api_qc_work_order_fetchqcworkorderdetail", "label": "fetchQcWorkOrderDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L246"}, {"id": "api_qc_work_order_fetchconfigureqcworkorder", "label": "fetchConfigureQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L252"}, {"id": "api_qc_work_order_fetchcreateqcworkorder", "label": "fetchCreateQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L278"}, {"id": "api_qc_work_order_fetchupdateqcworkorder", "label": "fetchUpdateQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L293"}, {"id": "api_qc_work_order_fetchdeleteqcworkorder", "label": "fetchDeleteQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L303"}, {"id": "api_qc_work_order_fetchoutboundqcdetail", "label": "fetchOutboundQcDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L377"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_http", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_inspection_batch", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_tabs", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_formatqcworkordertabbadgecount", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L202", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchqcworkordertabunfinishedcounts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L206", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchmineqcworkordertabunfinishedcounts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L212", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchqcworkordersbysample", "relation": "contains", "confidence": "EXTRACTED", "soLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "label": "qc-work-order-inbound-sample-cards.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L1"}, {"id": "utils_qc_work_order_inbound_sample_cards_buildinboundsamplecardanchorid", "label": "buildInboundSampleCardAnchorId()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L24"}, {"id": "utils_qc_work_order_inbound_sample_cards_sampletypenameforgroup", "label": "sampleTypeNameForGroup()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L31"}, {"id": "utils_qc_work_order_inbound_sample_cards_protocolsorttime", "label": "protocolSortTime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L36"}, {"id": "utils_qc_work_order_inbound_sample_cards_resolveprotocolsiblingsamplesforgroup", "label": "resolveProtocolSiblingSamplesForGroup()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L45"}, {"id": "utils_qc_work_order_inbound_sample_cards_buildprotocolsiblinglinksfromsamples", "label": "buildProtocolSiblingLinksFromSamples()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L56"}, {"id": "utils_qc_work_order_inbound_sample_cards_buildlinksfromvisiblegroups", "label": "buildLinksFromVisibleGroups()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L73"}, {"id": "utils_qc_work_order_inbound_sample_cards_resolveprotocolsiblinglinksforgroup", "label": "resolveProtocolSiblingLinksForGroup()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L88"}, {"id": "utils_qc_work_order_inbound_sample_cards_buildinboundsamplelistitems", "label": "buildInboundSampleListItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L99"}, {"id": "utils_qc_work_order_inbound_sample_cards_scrolltoinboundsamplecard", "label": "scrollToInboundSampleCard()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L163"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_card_meta", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "target": "utils_qc_work_order_inbound_sample_cards_buildinboundsamplecardanchorid", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "target": "utils_qc_work_order_inbound_sample_cards_sampletypenameforgroup", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-inbound-sample-cards.ts", "source_location": "L31", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_work_order_inbound_sample_cards_ts", "target": "utils_qc_work_order_inbound_sample_cards_protocolsorttime", "relation": "conLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "label": "sample-reception-view-sections.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L1"}, {"id": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "label": "buildQcReceptionViewFields()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L11"}, {"id": "utils_sample_reception_view_sections_buildproductionreceptionviewsection", "label": "buildProductionReceptionViewSection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L44"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_system_view_dialog_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_qc_labels", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_datetime_display", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_production_reception_fields", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "target": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_sample_reception_view_sections_ts", "target": "utils_sample_reception_view_sections_buildproductionreceptionviewsection", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L44", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L15"}, {"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "formatDisplayOrDash", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L17"}, {"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L18"}, {"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L21"}, {"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L30"}, {"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "acceptConclusionLabel", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L31"}, {"caller_nid": "utils_sample_reception_view_sections_buildqcreceptionviewfields", "callee": "String", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts", "source_location": "L40"}, {"caller_nid": "utils_sample_reception_view_sections_buildproductionreceptionviewsection", "callee": "formatProcessTimeDLine truncated
@@ -179,7 +179,7 @@ const CARD_META_BY_TAB: Record<ProductionWorkOrderTabKey, ProductionWorkOrderCar
inbound_cell_storage: {
tabKey: 'inbound_cell_storage',
showCategoryTag: false,
showProtocolFeeSummary: true,
showProtocolFeeSummary: false,
showOutboundFeeSummary: false,
showCellProducts: false,
metaFields: buildInboundMetaFields('inbound_cell_storage'),
@@ -101,3 +101,15 @@ export function shouldShowTaskHeaderLabStorageCode(row: {
}): boolean {
return INBOUND_LAB_STORAGE_HEADER_CATEGORIES.has(resolveWorkOrderCategoryKey(row))
}
export function isTemporaryProductionWorkOrder(row: { workOrderType?: string }): boolean {
return row.workOrderType === 'temporary'
}
/** 临时生产工单:任务执行弹窗标题后缀(与卡片主标题一致) */
export function temporaryProductionExecutionDialogTitle(row: {
workOrderRemark?: string
workOrderNo?: string
}): string {
return (row.workOrderRemark || '').trim() || row.workOrderNo || '—'
}
@@ -8,6 +8,7 @@ import {
import { resolveInboundSampleGroupCardTitle } from '@/utils/qc-work-order-card-meta'
export type QcInboundProtocolSiblingLink = {
sampleCode: string
anchorId: string
labStorageCode: string
sampleTypeName: string
@@ -56,13 +57,12 @@ export function buildProtocolSiblingLinksFromSamples(
group: QcWorkOrderSampleGroupModel,
samples: QcProtocolSiblingSample[]
): QcInboundProtocolSiblingLink[] {
const sorted = [...samples].sort((a, b) =>
(a.sampleCode || '').localeCompare(b.sampleCode || '')
)
const sorted = [...samples].sort((a, b) => (a.sampleCode || '').localeCompare(b.sampleCode || ''))
return sorted.map((sample) => {
const sampleCode = (sample.sampleCode || '').trim() || group.groupKey
const labStorageCode = (sample.labStorageCode || '').trim()
return {
sampleCode,
anchorId: buildInboundSampleCardAnchorId(sampleCode),
labStorageCode: labStorageCode || '—',
sampleTypeName: (sample.sampleTypeName || '').trim()
@@ -77,6 +77,7 @@ function buildLinksFromVisibleGroups(
(a.sampleCode || '').localeCompare(b.sampleCode || '')
)
return sorted.map((group) => ({
sampleCode: (group.sampleCode || group.groupKey || '').trim(),
anchorId: buildInboundSampleCardAnchorId(group.groupKey),
labStorageCode: resolveInboundSampleGroupCardTitle(group.workOrders),
sampleTypeName: sampleTypeNameForGroup(group)
@@ -16,14 +16,10 @@ export function buildQcReceptionViewFields(
return [
{ label: '接收时间', value: formatDisplayOrDash(r.receptionTime || d?.receptionTime) },
{ label: '接收经手人', value: String(r.handlerName || d?.handlerName || '—') },
...(accept === 'js'
? [
{
label: '实验室入库编码',
value: String(r.labStorageCode || d?.labStorageCode || '—')
}
]
: []),
{
label: '实验室入库编码',
value: String(r.labStorageCode || d?.labStorageCode || '—')
},
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
@@ -126,7 +126,7 @@
header-align="center"
>
<template #default="{ row }">
{{ row.acceptConclusion === 'js' ? row.labStorageCode || '—' : '—' }}
{{ row.labStorageCode || '—' }}
</template>
</el-table-column>
<el-table-column
@@ -2847,15 +2847,6 @@
if (parsed.contractAmount != null) {
filledLabels.push('合同金额')
const sampleTotal = formData.samples.reduce(
(sum, s) => sum + (Number(s.price) || 0),
0
)
if (sampleTotal > 0 && Math.abs(sampleTotal - Number(parsed.contractAmount)) > 0.01) {
warnings.push(
`样本优惠价合计 ${sampleTotal} 与合同金额 ${parsed.contractAmount} 不一致,请核对样本价格`
)
}
}
if (parsed.transportModeText && !parsed.transportType) {
@@ -2,7 +2,7 @@
<div class="task-execution-dialog-root">
<el-dialog
v-model="dialogVisible"
:title="readonly ? `任务详情 — ${taskName}` : `任务执行 — ${taskName}`"
:title="executionDialogTitle"
width="96vw"
class="dialog-form-layout execution-dialog"
align-center
@@ -19,13 +19,17 @@
<span v-if="showHeaderLabStorageCode" class="execution-header-item"
>实验室入库编码:<b>{{ headerLabStorageCode }}</b></span
>
<span v-if="!showHeaderLabStorageCode" class="execution-header-item"
<span
v-if="!showHeaderLabStorageCode && !isTemporaryWorkOrder"
class="execution-header-item"
>任务号:<b>{{ editor.taskDetail.value.taskNo }}</b></span
>
<span v-if="!showHeaderLabStorageCode" class="execution-header-item"
<span
v-if="!showHeaderLabStorageCode && !isTemporaryWorkOrder"
class="execution-header-item"
>工单号:{{ editor.taskDetail.value.workOrderNo || '—' }}</span
>
<span class="execution-header-item"
<span v-if="!isTemporaryWorkOrder" class="execution-header-item"
>任务名称:{{ editor.taskDetail.value.taskName || '—' }}</span
>
<el-tag :type="editor.taskStatusTag(editor.taskDetail.value.taskStatus).type">
@@ -565,7 +569,11 @@
productionStepAssigneeText,
productionStepPlannedStartText
} from '@/utils/production-labels'
import { shouldShowTaskHeaderLabStorageCode } from '@/utils/production-work-order-category'
import {
shouldShowTaskHeaderLabStorageCode,
isTemporaryProductionWorkOrder,
temporaryProductionExecutionDialogTitle
} from '@/utils/production-work-order-category'
const props = withDefaults(
defineProps<{
@@ -616,6 +624,22 @@
taskDetail.value ? shouldShowTaskHeaderLabStorageCode(taskDetail.value) : false
)
const isTemporaryWorkOrder = computed(() =>
taskDetail.value ? isTemporaryProductionWorkOrder(taskDetail.value) : false
)
const executionDialogTitleLabel = computed(() => {
if (isTemporaryWorkOrder.value && taskDetail.value) {
return temporaryProductionExecutionDialogTitle(taskDetail.value)
}
return props.taskName || '—'
})
const executionDialogTitle = computed(() => {
const prefix = props.readonly ? '任务详情' : '任务执行'
return `${prefix} — ${executionDialogTitleLabel.value}`
})
const headerLabStorageCode = computed(
() => (taskDetail.value?.labStorageCode || '').trim() || '—'
)
@@ -982,7 +982,11 @@ export function useTaskStepEditor() {
const workOrderId = String(executionDetail.workOrderId || '').trim()
if (!workOrderId) return executionDetail
const needsWo = !(executionDetail.labStorageCode || '').trim() || !executionDetail.workOrderType
const isTemporary = executionDetail.workOrderType === 'temporary'
const needsWo =
!(executionDetail.labStorageCode || '').trim() ||
!executionDetail.workOrderType ||
(isTemporary && !(executionDetail.workOrderRemark || '').trim())
if (!needsWo) return executionDetail
try {
@@ -1005,6 +1009,9 @@ export function useTaskStepEditor() {
if (wo?.bizType && !executionDetail.bizType) {
patch.bizType = wo.bizType
}
if (isTemporary || wo?.workOrderType === 'temporary') {
patch.workOrderRemark = (wo?.remark || '').trim()
}
return Object.keys(patch).length ? { ...executionDetail, ...patch } : executionDetail
} catch {
return executionDetail
@@ -499,20 +499,22 @@
const expandedKey = ref<string | null>(null)
let resizeObserver: ResizeObserver | null = null
function minColWidthForViewport(width: number) {
if (width <= 768) return 160
if (width <= 1200) return 176
return 196
/** 与 scoped 样式中 --compact-card-width 及 .protocol-card-row gap 保持一致 */
function compactCardLayoutForViewport() {
const vw = window.innerWidth
if (vw <= 768) return { cardWidth: 184, gap: 8 }
if (vw <= 1200) return { cardWidth: 200, gap: GRID_GAP }
return { cardWidth: 220, gap: GRID_GAP }
}
function updateColumnsPerRow() {
const el = listRef.value
if (!el) return
const innerWidth = Math.max(0, el.clientWidth - LIST_PADDING)
const minCol = minColWidthForViewport(window.innerWidth)
const { cardWidth, gap } = compactCardLayoutForViewport()
columnsPerRow.value = Math.max(
1,
Math.floor((innerWidth + GRID_GAP) / (minCol + GRID_GAP))
Math.floor((innerWidth + gap) / (cardWidth + gap))
)
}
@@ -3,28 +3,54 @@
<div class="list-body list-wrap qc-work-order-cards-body">
<div v-loading="loading" class="qc-work-order-cards-wrap">
<template v-if="isAllTabList">
<template v-for="(item, idx) in allTabListItems">
<QcWorkOrderSampleGroup
v-if="item.kind === 'sample-group'"
:key="allTabItemKey(item, idx)"
:id="allTabInboundAnchorId(item.group)"
:group="item.group"
:group-index="cardIndex(idx)"
:card-anchor-id="allTabInboundAnchorId(item.group)"
:protocol-sibling-links="resolveProtocolSiblingLinksForGroup(item.group)"
:card-meta-config="cardMetaConfig"
:task-refresh-token="taskRefreshToken"
:show-work-order-ops="!isMineMode"
:show-work-order-view-only="isMineMode"
:task-list-mode="isMineMode ? 'mine' : 'workOrder'"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
@configure="(row) => emit('configure', row)"
@view="(row) => emit('view', row)"
@command="(cmd, row) => emit('command', cmd, row)"
@tasks-changed="emit('tasks-changed')"
@sample-special-changed="emit('sample-special-changed')"
/>
<template v-for="(item, idx) in allTabListItems" :key="allTabItemKey(item, idx)">
<template v-if="item.kind === 'sample-group'">
<QcWorkOrderSampleGroup
:id="allTabInboundAnchorId(item.group)"
:group="item.group"
:group-index="cardIndex(idx)"
:card-anchor-id="allTabInboundAnchorId(item.group)"
:protocol-sibling-links="resolveProtocolSiblingLinksForGroup(item.group)"
:sibling-nav-loading="isSiblingNavLoading(allTabInboundAnchorId(item.group))"
:card-meta-config="cardMetaConfig"
:task-refresh-token="taskRefreshToken"
:show-work-order-ops="!isMineMode"
:show-work-order-view-only="isMineMode"
:task-list-mode="isMineMode ? 'mine' : 'workOrder'"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
@sibling-navigate="(payload) => emit('sibling-navigate', payload)"
@configure="(row) => emit('configure', row)"
@view="(row) => emit('view', row)"
@command="(cmd, row) => emit('command', cmd, row)"
@tasks-changed="emit('tasks-changed')"
@sample-special-changed="emit('sample-special-changed')"
/>
<QcWorkOrderSampleGroup
v-for="ins in insertedCardsAfter(allTabInboundAnchorId(item.group))"
:key="'ins-all-' + ins.sampleCode"
:id="ins.anchorId"
:group="ins.group"
:group-index="cardIndex(idx)"
:card-anchor-id="ins.anchorId"
:protocol-sibling-links="ins.protocolSiblingLinks"
:show-protocol-payment-at-group="ins.showProtocolPaymentAtGroup"
is-inserted-sibling
:card-meta-config="cardMetaConfig"
:task-refresh-token="taskRefreshToken"
:show-work-order-ops="!isMineMode"
:show-work-order-view-only="isMineMode"
:task-list-mode="isMineMode ? 'mine' : 'workOrder'"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
@sibling-navigate="(payload) => emit('sibling-navigate', payload)"
@configure="(row) => emit('configure', row)"
@view="(row) => emit('view', row)"
@command="(cmd, row) => emit('command', cmd, row)"
@tasks-changed="emit('tasks-changed')"
@sample-special-changed="emit('sample-special-changed')"
/>
</template>
<QcWorkOrderSingleCard
v-else
:key="allTabItemKey(item, idx)"
@@ -48,28 +74,54 @@
</template>
<template v-else-if="useGroupedList">
<template v-if="cardMetaUsesInboundGroups(cardMetaConfig.tabKey)">
<QcWorkOrderSampleGroup
v-for="(item, idx) in inboundSampleListItems"
:key="item.group.groupKey"
:id="item.cardAnchorId"
:group="item.group"
:group-index="cardIndex(idx)"
:card-anchor-id="item.cardAnchorId"
:protocol-sibling-links="item.protocolSiblingLinks"
:show-protocol-payment-at-group="item.showProtocolPaymentAtGroup"
:card-meta-config="cardMetaConfig"
:task-refresh-token="taskRefreshToken"
:show-work-order-ops="!isMineMode"
:show-work-order-view-only="isMineMode"
:task-list-mode="isMineMode ? 'mine' : 'workOrder'"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
@configure="(row) => emit('configure', row)"
@view="(row) => emit('view', row)"
@command="(cmd, row) => emit('command', cmd, row)"
@tasks-changed="emit('tasks-changed')"
@sample-special-changed="emit('sample-special-changed')"
/>
<template v-for="(item, idx) in inboundSampleListItems" :key="item.group.groupKey">
<QcWorkOrderSampleGroup
:id="item.cardAnchorId"
:group="item.group"
:group-index="cardIndex(idx)"
:card-anchor-id="item.cardAnchorId"
:protocol-sibling-links="item.protocolSiblingLinks"
:show-protocol-payment-at-group="item.showProtocolPaymentAtGroup"
:sibling-nav-loading="isSiblingNavLoading(item.cardAnchorId)"
:card-meta-config="cardMetaConfig"
:task-refresh-token="taskRefreshToken"
:show-work-order-ops="!isMineMode"
:show-work-order-view-only="isMineMode"
:task-list-mode="isMineMode ? 'mine' : 'workOrder'"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
@sibling-navigate="(payload) => emit('sibling-navigate', payload)"
@configure="(row) => emit('configure', row)"
@view="(row) => emit('view', row)"
@command="(cmd, row) => emit('command', cmd, row)"
@tasks-changed="emit('tasks-changed')"
@sample-special-changed="emit('sample-special-changed')"
/>
<QcWorkOrderSampleGroup
v-for="ins in insertedCardsAfter(item.cardAnchorId)"
:key="'ins-' + ins.sampleCode"
:id="ins.anchorId"
:group="ins.group"
:group-index="cardIndex(idx)"
:card-anchor-id="ins.anchorId"
:protocol-sibling-links="ins.protocolSiblingLinks"
:show-protocol-payment-at-group="ins.showProtocolPaymentAtGroup"
is-inserted-sibling
:card-meta-config="cardMetaConfig"
:task-refresh-token="taskRefreshToken"
:show-work-order-ops="!isMineMode"
:show-work-order-view-only="isMineMode"
:task-list-mode="isMineMode ? 'mine' : 'workOrder'"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
@sibling-navigate="(payload) => emit('sibling-navigate', payload)"
@configure="(row) => emit('configure', row)"
@view="(row) => emit('view', row)"
@command="(cmd, row) => emit('command', cmd, row)"
@tasks-changed="emit('tasks-changed')"
@sample-special-changed="emit('sample-special-changed')"
/>
</template>
</template>
<template v-else>
<QcWorkOrderSampleGroup
@@ -149,6 +201,10 @@
buildInboundSampleCardAnchorId,
resolveProtocolSiblingLinksForGroup
} from '@/utils/qc-work-order-inbound-sample-cards'
import type {
InsertedInboundSiblingCard,
InboundSiblingNavigatePayload
} from '../composables/useInboundSiblingNavigation'
import type { QcWorkOrderCardMetaConfig } from '@/utils/qc-work-order-card-meta'
import {
cardMetaUsesInboundGroups,
@@ -173,9 +229,13 @@
pageMode?: 'manage' | 'mine'
presetTasksByWorkOrderId?: Record<string, QcTask[]>
presetBatchesByWorkOrderId?: Record<string, QcInspectionBatch[]>
insertedCardsAfter?: (anchorId: string) => InsertedInboundSiblingCard[]
siblingNavLoadingAfterAnchorId?: string
}>(),
{
pageMode: 'manage'
pageMode: 'manage',
insertedCardsAfter: () => () => [],
siblingNavLoadingAfterAnchorId: ''
}
)
@@ -194,6 +254,7 @@
'sample-special-changed': []
'page-change': [page: number]
'page-size-change': [size: number]
'sibling-navigate': [payload: InboundSiblingNavigatePayload]
}>()
const isAllTabList = computed(() => isAllQcWorkOrderTab(props.cardMetaConfig.tabKey))
@@ -228,6 +289,10 @@
function allTabInboundAnchorId(group: QcWorkOrderSampleGroupModel) {
return buildInboundSampleCardAnchorId(group.groupKey)
}
function isSiblingNavLoading(anchorId: string) {
return props.siblingNavLoadingAfterAnchorId === anchorId
}
</script>
<style scoped lang="scss">
@@ -13,23 +13,30 @@
monospace
/>
<span class="qc-sample-row__sub">{{ contextSubtitle }}</span>
<span v-if="isInsertedSibling" class="qc-sample-row__inserted-tag">同协议关联</span>
<div
v-if="protocolSiblingLinks.length > 1"
class="qc-sample-row__protocol-inline"
aria-label="同协议样本"
>
<span class="qc-sample-row__protocol-label">同协议样本</span>
<span
<button
v-for="link in protocolSiblingLinks"
:key="link.anchorId"
type="button"
class="qc-sample-row__protocol-chip"
:class="{ 'is-current': link.anchorId === cardAnchorId }"
:class="{
'is-current': link.anchorId === cardAnchorId,
'is-clickable': link.anchorId !== cardAnchorId
}"
:disabled="siblingNavLoading"
@click="handleSiblingLinkClick(link)"
>
<span class="qc-sample-row__protocol-chip-code">{{ link.labStorageCode }}</span>
<span v-if="link.sampleTypeName" class="qc-sample-row__protocol-chip-type">
{{ link.sampleTypeName }}
</span>
</span>
</button>
</div>
<el-tag v-if="showInboundProtocolStatus" :type="protocolStatus.tagType" size="small">
{{ protocolStatus.label }}
@@ -132,6 +139,8 @@
resolveProtocolGroupStatus
} from '@/utils/qc-work-order-card-meta'
import type { QcInboundProtocolSiblingLink } from '@/utils/qc-work-order-inbound-sample-cards'
import { scrollToInboundSampleCard } from '@/utils/qc-work-order-inbound-sample-cards'
import type { InboundSiblingNavigatePayload } from './composables/useInboundSiblingNavigation'
import { resolveEffectiveRowTabKey } from '@/utils/qc-work-order-tabs'
import { sumQcWorkOrderGroupUnfinishedBadgeCount } from '@/utils/qc-work-order-unfinished-badge'
import QcUnfinishedBadge from './QcUnfinishedBadge.vue'
@@ -160,6 +169,8 @@
cardAnchorId?: string
protocolSiblingLinks?: QcInboundProtocolSiblingLink[]
showProtocolPaymentAtGroup?: boolean
isInsertedSibling?: boolean
siblingNavLoading?: boolean
}>(),
{
showWorkOrderOps: true,
@@ -169,7 +180,9 @@
hideProtocolFeeSummary: false,
cardAnchorId: '',
protocolSiblingLinks: () => [],
showProtocolPaymentAtGroup: false
showProtocolPaymentAtGroup: false,
isInsertedSibling: false,
siblingNavLoading: false
}
)
@@ -179,6 +192,7 @@
command: [cmd: string, row: QcWorkOrder]
'tasks-changed': []
'sample-special-changed': []
'sibling-navigate': [payload: InboundSiblingNavigatePayload]
}>()
const sampleSpecialDialogVisible = ref(false)
@@ -287,6 +301,24 @@
return wo.workOrderNo || '—'
}
function handleSiblingLinkClick(link: QcInboundProtocolSiblingLink) {
if (props.siblingNavLoading) return
const targetSampleCode = (link.sampleCode || '').trim()
if (!targetSampleCode) return
if (link.anchorId === props.cardAnchorId) {
scrollToInboundSampleCard(link.anchorId)
return
}
const row = contextRow.value
const receptionSource = (row?.receptionSource || 'cell_storage').trim() || 'cell_storage'
emit('sibling-navigate', {
targetSampleCode,
sourceAnchorId: props.cardAnchorId,
receptionSource,
protocolSiblingLinks: props.protocolSiblingLinks
})
}
function workOrderStatusTagType(status: string): TagType {
if (status === 'ywc') return 'success'
if (status === 'ypz') return 'warning'
@@ -348,12 +380,39 @@
background: #fff;
font-size: 12px;
color: #047857;
font-family: inherit;
line-height: 1.4;
&.is-current {
border-color: var(--primary, #10b981);
background: var(--primary-bg, #ecfdf5);
font-weight: 600;
cursor: default;
}
&.is-clickable {
cursor: pointer;
&:hover:not(:disabled) {
border-color: var(--primary, #10b981);
background: var(--primary-bg, #ecfdf5);
}
}
&:disabled {
opacity: 0.65;
cursor: not-allowed;
}
}
.qc-sample-row__inserted-tag {
flex-shrink: 0;
font-size: 11px;
color: var(--mint-text-muted, #64748b);
padding: 2px 8px;
border-radius: 999px;
background: #f1f5f9;
border: 1px solid #e2e8f0;
}
.qc-sample-row__protocol-chip-code {
@@ -0,0 +1,208 @@
import { ref, computed, nextTick, type Ref } from 'vue'
import { ElMessage } from 'element-plus'
import { fetchQcWorkOrdersBySample, type QcWorkOrder } from '@/api/qc-work-order'
import { fetchMyQcTaskList, type QcTask } from '@/api/qc-task'
import { groupInboundQcWorkOrders } from '@/utils/qc-work-order-groups'
import {
buildInboundSampleCardAnchorId,
buildProtocolSiblingLinksFromSamples,
scrollToInboundSampleCard,
type QcInboundProtocolSiblingLink
} from '@/utils/qc-work-order-inbound-sample-cards'
import type { QcWorkOrderSampleGroupModel } from '@/utils/qc-work-order-groups'
import { fetchQcInspectionBatchesBatch, type QcInspectionBatch } from '@/utils/qc-inspection-batch'
import type { QcWorkOrderTabPageMode } from './useQcWorkOrderTabPage'
export type InsertedInboundSiblingCard = {
sampleCode: string
anchorId: string
insertedAfterAnchorId: string
group: QcWorkOrderSampleGroupModel
protocolSiblingLinks: QcInboundProtocolSiblingLink[]
showProtocolPaymentAtGroup: boolean
isInserted: true
}
export type InboundSiblingNavigatePayload = {
targetSampleCode: string
sourceAnchorId: string
receptionSource: string
protocolSiblingLinks: QcInboundProtocolSiblingLink[]
}
function resolveShowProtocolPaymentAtGroup(workOrders: QcWorkOrder[]) {
return workOrders.some((wo) => wo.receptionSource === 'cell_storage' && !!wo.paymentSummary)
}
function buildInsertedSiblingCard(
workOrders: QcWorkOrder[],
sampleCode: string,
insertedAfterAnchorId: string,
protocolSiblingLinks: QcInboundProtocolSiblingLink[]
): InsertedInboundSiblingCard | null {
const groups = groupInboundQcWorkOrders(workOrders)
const group = groups[0]
if (!group) return null
const links =
protocolSiblingLinks.length > 1
? protocolSiblingLinks
: buildProtocolSiblingLinksFromSamples(group, workOrders[0]?.protocolSiblingSamples || [])
return {
sampleCode,
anchorId: buildInboundSampleCardAnchorId(sampleCode),
insertedAfterAnchorId,
group,
protocolSiblingLinks: links,
showProtocolPaymentAtGroup: resolveShowProtocolPaymentAtGroup(workOrders),
isInserted: true
}
}
async function fetchMineTasksForWorkOrders(
workOrders: QcWorkOrder[],
sampleCode: string
): Promise<Record<string, QcTask[]>> {
const idSet = new Set(workOrders.map((wo) => wo.id).filter(Boolean))
if (!idSet.size) return {}
const res = await fetchMyQcTaskList({
keyword: sampleCode,
page: 1,
pageSize: 100
})
const map: Record<string, QcTask[]> = {}
for (const task of res.list || []) {
if (!idSet.has(task.workOrderId)) continue
if (!map[task.workOrderId]) map[task.workOrderId] = []
map[task.workOrderId].push(task)
}
return map
}
export function useInboundSiblingNavigation(options: {
listRows: Ref<QcWorkOrder[]>
pageMode: Ref<QcWorkOrderTabPageMode>
}) {
const insertedCards = ref<InsertedInboundSiblingCard[]>([])
const insertedPresetTasksByWorkOrderId = ref<Record<string, QcTask[]>>({})
const insertedPresetBatchesByWorkOrderId = ref<Record<string, QcInspectionBatch[]>>({})
const siblingNavLoadingAfterAnchorId = ref('')
const navigating = ref(false)
const mergedPresetTasksByWorkOrderId = computed(() => ({
...insertedPresetTasksByWorkOrderId.value
}))
const mergedPresetBatchesByWorkOrderId = computed(() => ({
...insertedPresetBatchesByWorkOrderId.value
}))
function clearInsertedCards() {
insertedCards.value = []
insertedPresetTasksByWorkOrderId.value = {}
insertedPresetBatchesByWorkOrderId.value = {}
siblingNavLoadingAfterAnchorId.value = ''
}
function insertedCardsAfter(anchorId: string) {
return insertedCards.value.filter((card) => card.insertedAfterAnchorId === anchorId)
}
function isSampleInMainList(sampleCode: string) {
const code = sampleCode.trim()
return options.listRows.value.some((row) => (row.sampleCode || '').trim() === code)
}
function findExistingAnchorId(sampleCode: string): string | null {
const code = sampleCode.trim()
if (!code) return null
const anchorId = buildInboundSampleCardAnchorId(code)
if (document.getElementById(anchorId)) return anchorId
const inserted = insertedCards.value.find((card) => card.sampleCode === code)
if (inserted) return inserted.anchorId
if (isSampleInMainList(code)) return anchorId
return null
}
async function enrichInsertedPresets(workOrders: QcWorkOrder[], sampleCode: string) {
if (options.pageMode.value === 'mine') {
const taskMap = await fetchMineTasksForWorkOrders(workOrders, sampleCode)
insertedPresetTasksByWorkOrderId.value = {
...insertedPresetTasksByWorkOrderId.value,
...taskMap
}
return
}
const ids = workOrders.map((wo) => wo.id).filter(Boolean)
if (!ids.length) return
const batchMap = (await fetchQcInspectionBatchesBatch(ids).catch(() => ({}))) || {}
insertedPresetBatchesByWorkOrderId.value = {
...insertedPresetBatchesByWorkOrderId.value,
...batchMap
}
}
async function navigateToSibling(payload: InboundSiblingNavigatePayload) {
const targetSampleCode = (payload.targetSampleCode || '').trim()
const sourceAnchorId = (payload.sourceAnchorId || '').trim()
const receptionSource = (payload.receptionSource || '').trim()
if (!targetSampleCode || !sourceAnchorId || navigating.value) return
const targetAnchorId = buildInboundSampleCardAnchorId(targetSampleCode)
if (targetAnchorId === sourceAnchorId) {
scrollToInboundSampleCard(targetAnchorId)
return
}
const existingAnchor = findExistingAnchorId(targetSampleCode)
if (existingAnchor) {
scrollToInboundSampleCard(existingAnchor)
return
}
navigating.value = true
siblingNavLoadingAfterAnchorId.value = sourceAnchorId
try {
const res = await fetchQcWorkOrdersBySample({
sampleCode: targetSampleCode,
receptionSource
})
const workOrders = res.list || []
if (!workOrders.length) {
ElMessage.info('该样本暂无质检工单')
return
}
const card = buildInsertedSiblingCard(
workOrders,
targetSampleCode,
sourceAnchorId,
payload.protocolSiblingLinks
)
if (!card) {
ElMessage.info('该样本暂无质检工单')
return
}
insertedCards.value = [
...insertedCards.value.filter((c) => c.sampleCode !== targetSampleCode),
card
]
await enrichInsertedPresets(workOrders, targetSampleCode)
await nextTick()
scrollToInboundSampleCard(card.anchorId)
} catch {
ElMessage.error('加载同协议样本失败,请稍后重试')
} finally {
navigating.value = false
siblingNavLoadingAfterAnchorId.value = ''
}
}
return {
insertedCards,
insertedCardsAfter,
siblingNavLoadingAfterAnchorId,
mergedPresetTasksByWorkOrderId,
mergedPresetBatchesByWorkOrderId,
navigateToSibling,
clearInsertedCards
}
}
@@ -25,6 +25,7 @@ import { getCardMetaConfig } from '@/utils/qc-work-order-card-meta'
import { joinWorkOrderStatusFilter } from '@/utils/status-tag-registry'
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
import { fetchQcInspectionBatchesBatch, type QcInspectionBatch } from '@/utils/qc-inspection-batch'
import { useInboundSiblingNavigation } from './useInboundSiblingNavigation'
function shouldApplyTriggerSourceFilter(tabKey: QcWorkOrderTabKey, tabLayout: string) {
if (isAllQcWorkOrderTab(tabKey)) return true
@@ -62,6 +63,34 @@ export function useQcWorkOrderTabPage(
const pagination = reactive({ page: 1, pageSize: 100, total: 0 })
const taskSubListRefreshToken = ref(0)
const {
insertedCardsAfter,
siblingNavLoadingAfterAnchorId,
mergedPresetTasksByWorkOrderId: insertedPresetTasksByWorkOrderId,
mergedPresetBatchesByWorkOrderId: insertedPresetBatchesByWorkOrderId,
navigateToSibling,
clearInsertedCards
} = useInboundSiblingNavigation({
listRows: tableData,
pageMode: pageModeValue
})
const cardPresetTasksByWorkOrderId = computed(() => ({
...presetTasksByWorkOrderId.value,
...insertedPresetTasksByWorkOrderId.value
}))
const cardPresetBatchesByWorkOrderId = computed(() => {
const base = presetBatchesByWorkOrderId.value
if (!base && !Object.keys(insertedPresetBatchesByWorkOrderId.value).length) {
return undefined
}
return {
...(base || {}),
...insertedPresetBatchesByWorkOrderId.value
}
})
const viewVisible = ref(false)
const viewWorkOrderId = ref('')
const viewTabKey = ref<QcWorkOrderTabKey>(tabKey.value)
@@ -101,6 +130,7 @@ export function useQcWorkOrderTabPage(
}
async function loadData() {
clearInsertedCards()
loading.value = true
try {
if (pageModeValue.value === 'mine') {
@@ -269,6 +299,11 @@ export function useQcWorkOrderTabPage(
tableData,
presetTasksByWorkOrderId,
presetBatchesByWorkOrderId,
cardPresetTasksByWorkOrderId,
cardPresetBatchesByWorkOrderId,
insertedCardsAfter,
siblingNavLoadingAfterAnchorId,
navigateToSibling,
loading,
pagination,
taskSubListRefreshToken,
@@ -324,8 +324,11 @@
:page-size="pagination.pageSize"
:total="pagination.total"
:task-refresh-token="taskSubListRefreshToken"
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
:preset-batches-by-work-order-id="presetBatchesByWorkOrderId"
:preset-tasks-by-work-order-id="cardPresetTasksByWorkOrderId"
:preset-batches-by-work-order-id="cardPresetBatchesByWorkOrderId"
:inserted-cards-after="insertedCardsAfter"
:sibling-nav-loading-after-anchor-id="siblingNavLoadingAfterAnchorId"
@sibling-navigate="navigateToSibling"
@configure="(row) => emit('configure', row)"
@view="handleView"
@command="handleCommand"
@@ -442,8 +445,11 @@
createTimeRange,
filterExpanded,
tableData,
presetTasksByWorkOrderId,
presetBatchesByWorkOrderId,
cardPresetTasksByWorkOrderId,
cardPresetBatchesByWorkOrderId,
insertedCardsAfter,
siblingNavLoadingAfterAnchorId,
navigateToSibling,
loading,
pagination,
taskSubListRefreshToken,
@@ -69,9 +69,7 @@
>
<dt>实验室入库编码</dt>
<dd>
{{
row.acceptConclusion === 'js' ? row.labStorageCode || '—' : '—'
}}
{{ row.labStorageCode || '—' }}
</dd>
</div>
<div class="sample-reception-card__meta-item">
@@ -293,11 +293,7 @@
<el-radio value="bj">拒收</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if="showLabStorageCodeField"
label="实验室入库编码"
prop="labStorageCode"
>
<el-form-item label="实验室入库编码" prop="labStorageCode">
<el-input
v-model="receiveForm.labStorageCode"
placeholder="请填写"
@@ -462,10 +458,7 @@
><span class="label">接收温度(℃)</span
>{{ viewRow.receiveTemperature ? viewRow.receiveTemperature + '℃' : '-' }}</div
>
<div
v-if="viewRow.acceptConclusion === 'js'"
class="readonly-item"
>
<div class="readonly-item">
<span class="label">实验室入库编码</span>{{ viewRow.labStorageCode || '-' }}
</div>
<div class="readonly-item">
@@ -653,10 +646,10 @@
<el-radio value="bj">拒收</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item v-if="entry.acceptConclusion === 'js'" label="实验室入库编码" required>
<template #label>
实验室入库编码
</template>
<el-form-item
label="实验室入库编码"
:required="entry.acceptConclusion === 'js'"
>
<el-input
v-model="entry.labStorageCode"
placeholder="请填写"
@@ -891,10 +884,6 @@
const labStorageCodeManuallyEdited = ref(false)
const lastAllocatedReceptionDate = ref('')
const showLabStorageCodeField = computed(
() => receiveForm.acceptConclusion === 'js'
)
const receiveRules = {
receptionTime: [{ required: true, message: '请选择样本接收时间', trigger: 'change' }],
handlerUserId: [{ required: true, message: '请选择经手人', trigger: 'change' }],
@@ -1137,10 +1126,7 @@
}
function refreshReceiveLabStorageCode(force = false) {
if (receiveForm.acceptConclusion !== 'js') {
receiveForm.labStorageCode = ''
return
}
if (receiveForm.acceptConclusion !== 'js') return
if (!force && labStorageCodeManuallyEdited.value) return
const row = currentRow.value
@@ -1166,23 +1152,13 @@
}
function onReceiveAcceptConclusionChange(val: string | number | boolean | undefined) {
if (val === 'bj') {
receiveForm.labStorageCode = ''
labStorageCodeManuallyEdited.value = false
lastAllocatedReceptionDate.value = ''
return
}
if (val === 'bj') return
refreshReceiveLabStorageCode(true)
}
function allocateBatchLabStorageCodes() {
for (const entry of batchEntries.value) {
if (entry.acceptConclusion !== 'js') {
entry.labStorageCode = ''
entry.labStorageCodeManuallyEdited = false
entry.lastAllocatedReceptionDate = ''
continue
}
if (entry.acceptConclusion !== 'js') continue
if (entry.labStorageCodeManuallyEdited) continue
entry.labStorageCode = resolvePrefilledLabStorageCode(
entry.sourceType,
@@ -1194,12 +1170,7 @@
}
function refreshBatchEntryLabStorageCode(entry: BatchReceiveEntry, force = false) {
if (entry.acceptConclusion !== 'js') {
entry.labStorageCode = ''
entry.labStorageCodeManuallyEdited = false
entry.lastAllocatedReceptionDate = ''
return
}
if (entry.acceptConclusion !== 'js') return
if (!force && entry.labStorageCodeManuallyEdited) return
entry.labStorageCode = resolvePrefilledLabStorageCode(
entry.sourceType,
@@ -1219,12 +1190,7 @@
}
function onBatchAcceptConclusionChange(entry: BatchReceiveEntry) {
if (entry.acceptConclusion === 'bj') {
entry.labStorageCode = ''
entry.labStorageCodeManuallyEdited = false
entry.lastAllocatedReceptionDate = ''
return
}
if (entry.acceptConclusion === 'bj') return
refreshBatchEntryLabStorageCode(entry, true)
}
@@ -1370,8 +1336,7 @@
receiveTemperature: entry.receiveTemperature || undefined,
checks: buildChecksFromEntry(entry),
acceptConclusion: entry.acceptConclusion,
labStorageCode:
entry.acceptConclusion === 'js' ? entry.labStorageCode || undefined : undefined,
labStorageCode: String(entry.labStorageCode || '').trim() || undefined,
receiveAttachments: financeAttachmentsToUrlString(entry.attachments) || undefined,
remark: entry.remark || undefined
})
@@ -1582,10 +1547,7 @@
checked: !!checkValues[item.id]
})),
acceptConclusion: receiveForm.acceptConclusion,
labStorageCode:
receiveForm.acceptConclusion === 'js'
? receiveForm.labStorageCode || undefined
: undefined,
labStorageCode: String(receiveForm.labStorageCode || '').trim() || undefined,
receiveAttachments: financeAttachmentsToUrlString(attachments.value) || undefined,
remark: receiveForm.remark || undefined
}