This commit is contained in:
zlwu committed 2026-05-24 16:58:51 +08:00
1 parent 9dd7eb56ba
commit 7cec1f2190
112 files changed
+22684 -6952

No files matched your search

+5
View File
@@ -6,6 +6,7 @@ export function fetchCellProductList(params?: {
keyword?: string
productStatus?: string
passage?: string
sourceType?: string
}) {
return request.get<{
list: any[]
@@ -38,3 +39,7 @@ export function fetchNextCellProductCode(count = 1) {
params: count > 1 ? { count } : undefined
})
}
export function fetchCellProductChain(productId: string) {
return request.get<any>({ url: `/web/admin/cell-products/${productId}/chain` })
}
@@ -4,6 +4,7 @@ import type { QcWorkOrderReceptionDetail } from '@/api/qc-work-order'
export interface ProductionWorkOrderItem {
id: string
workOrderNo: string
workOrderType?: string
protocolNo?: string
sampleCode?: string
receptionSource?: string
@@ -25,6 +26,7 @@ export function fetchProductionWorkOrderList(params?: {
pageSize?: number
keyword?: string
workOrderStatus?: string
workOrderType?: string
}) {
return request.get<{
list: ProductionWorkOrderItem[]
@@ -42,3 +44,36 @@ export function fetchProductionWorkOrderDetail(id: string) {
export function fetchCompleteProductionWorkOrder(id: string, data: Record<string, any>) {
return request.put({ url: `/web/admin/production-work-orders/${id}/complete`, params: data })
}
export function fetchCreateProductionWorkOrder(data: {
workOrderType?: string
protocolNo?: string
sampleCode?: string
receptionSource?: string
remark?: string
}) {
return request.post<ProductionWorkOrderItem>({
url: '/web/admin/production-work-orders',
data
})
}
export function fetchConfigureProductionWorkOrder(
id: string,
data: {
taskName?: string
taskType?: string
routeId?: string
description?: string
remark?: string
}
) {
return request.post<ProductionWorkOrderItem>({
url: `/web/admin/production-work-orders/${id}/configure`,
data
})
}
export function fetchDeleteProductionWorkOrder(id: string) {
return request.del({ url: `/web/admin/production-work-orders/${id}` })
}
+29
View File
@@ -42,6 +42,7 @@ export type QcTask = {
id: string
workOrderId: string
workOrderNo?: string
orderSource?: string
taskNo: string
taskType: string
itemCode: string
@@ -62,6 +63,12 @@ export type QcTask = {
receptionTime?: string
handlerName?: string
workOrderStatus?: string
cellProductId?: string
cellProductCode?: string
cellProductName?: string
cellProductTypeName?: string
cellProductPassage?: string
cellProductSpecName?: string
thirdPartyAttachments?: string
attachmentFiles?: Array<{ id?: string; fileUrl: string; fileName?: string; fileType?: string }>
completedTime?: string
@@ -121,3 +128,25 @@ export function fetchUpdateQcTaskAttachments(id: string, thirdPartyAttachments:
data: { thirdPartyAttachments }
})
}
export function fetchCreateQcTask(data: {
taskType: string
itemCode: string
itemName: string
companyId?: string
companyName?: string
feeAmount?: number
sampleCode?: string
qcBizType?: string
workOrderId?: string
remark?: string
}) {
return request.post<QcTask>({
url: '/web/admin/qc-tasks',
params: data
})
}
export function fetchDeleteQcTask(id: string) {
return request.del({ url: `/web/admin/qc-tasks/${id}` })
}
+36
View File
@@ -50,6 +50,7 @@ export type QcWorkOrderReceptionDetail = {
export type QcWorkOrder = {
id: string
workOrderNo: string
workOrderType?: string
receptionId: string
protocolSampleId: string
collectionProtocolId: string
@@ -57,6 +58,14 @@ export type QcWorkOrder = {
sampleCode: string
receptionSource?: string
receptionSourceLabel?: string
qcBizType?: string
qcBizTypeLabel?: string
cellProductId?: string
cellProductCode?: string
cellProductName?: string
cellProductTypeName?: string
cellProductPassage?: string
cellProductSpecName?: string
sampleTypeName?: string
receptionTime?: string
handlerName?: string
@@ -106,6 +115,7 @@ export function fetchQcWorkOrderList(params?: {
pageSize?: number
keyword?: string
workOrderStatus?: string
workOrderType?: string
}) {
return request.get<PageList<QcWorkOrder>>({
url: '/web/admin/qc-work-orders',
@@ -133,3 +143,29 @@ export function fetchConfigureQcWorkOrder(
data
})
}
export function fetchCreateQcWorkOrder(data: {
workOrderType?: string
protocolNo?: string
sampleCode?: string
receptionSource?: string
qcBizType?: string
cellProductId?: string
remark?: string
}) {
return request.post<QcWorkOrder>({
url: '/web/admin/qc-work-orders',
data
})
}
export function fetchUpdateQcWorkOrder(id: string, data: { cellProductId?: string; remark?: string }) {
return request.put<QcWorkOrder>({
url: `/web/admin/qc-work-orders/${id}`,
data
})
}
export function fetchDeleteQcWorkOrder(id: string) {
return request.del({ url: `/web/admin/qc-work-orders/${id}` })
}
@@ -91,6 +91,7 @@
taskTypeLabel,
taskStatusLabel,
qcBizTypeLabel,
qcBizTypeTagType,
receptionSourceLabel,
acceptConclusionLabel,
transportTypeLabel,
@@ -232,6 +233,7 @@
const d = viewDetail.value
if (!d) return []
const r = d.reception || {}
const isTempQc = d.qcBizType === 'temporary'
const transportFields: ViewSection['fields'] = [
{ label: '运输方式', value: transportTypeLabel(String(r.transportType || '')) }
]
@@ -249,6 +251,62 @@
if (r.etaTime) {
transportFields.push({ label: '预计到达', value: r.etaTime })
}
const cellProductSection: ViewSection[] = isTempQc
? [
{
title: '质检对象',
fields: [
{ label: '产品编码', value: d.cellProductCode || '—' },
{ label: '产品名称', value: d.cellProductName || '—' },
{ label: '产品类型', value: d.cellProductTypeName || '—' },
{ label: '代次', value: d.cellProductPassage || '—' },
{ label: '规格', value: d.cellProductSpecName || '—' }
]
}
]
: []
const sampleSections: ViewSection[] = isTempQc
? []
: [
{
title: '样本信息',
fields: [
{ label: '协议号', value: r.protocolNo || d.protocolNo || '—' },
{ label: '样本编码', value: r.sampleCode || d.sampleCode || '—' },
{
label: '样本来源',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary'
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
]
},
...(transportFields.length > 1 || r.transportType
? [{ title: '运输信息', fields: transportFields }]
: []),
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
},
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value:
r.acceptConclusionLabel ||
acceptConclusionLabel(String(r.acceptConclusion || ''))
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
}
]
const taskResultSummaryFields: ViewSection['fields'] = [
{
label: '任务状态',
@@ -295,7 +353,7 @@
title: '任务信息',
fields: [
{ label: '任务号', value: d.taskNo },
{ label: '业务类型', value: d.qcBizTypeLabel || qcBizTypeLabel(d.qcBizType || ''), tagType: 'success' },
{ label: '业务类型', value: d.qcBizTypeLabel || qcBizTypeLabel(d.qcBizType || ''), tagType: qcBizTypeTagType(d.qcBizType || '') },
{ label: '工单号', value: d.workOrderNo || '—' },
{
label: '工单状态',
@@ -310,44 +368,8 @@
{ label: '创建时间', value: d.createTime || '—' }
]
},
{
title: '样本信息',
fields: [
{ label: '协议号', value: r.protocolNo || d.protocolNo || '—' },
{ label: '样本编码', value: r.sampleCode || d.sampleCode || '—' },
{
label: '样本来源',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary'
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
]
},
...(transportFields.length > 1 || r.transportType
? [{ title: '运输信息', fields: transportFields }]
: []),
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
},
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value:
r.acceptConclusionLabel ||
acceptConclusionLabel(String(r.acceptConclusion || ''))
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
},
...cellProductSection,
...sampleSections,
...resultSection,
...tailSections
]
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_temp_production_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L1"}, {"id": "temp_production_work_order_index_statustagtype", "label": "statusTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L312"}, {"id": "temp_production_work_order_index_statuslabel", "label": "statusLabel()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L316"}, {"id": "temp_production_work_order_index_loaddata", "label": "loadData()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L327"}, {"id": "temp_production_work_order_index_handlesearch", "label": "handleSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L343"}, {"id": "temp_production_work_order_index_handlereset", "label": "handleReset()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L348"}, {"id": "temp_production_work_order_index_handleadd", "label": "handleAdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L361"}, {"id": "temp_production_work_order_index_submitadd", "label": "submitAdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L366"}, {"id": "temp_production_work_order_index_loadrouteoptions", "label": "loadRouteOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L398"}, {"id": "temp_production_work_order_index_handleconfigure", "label": "handleConfigure()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L407"}, {"id": "temp_production_work_order_index_submitconfigure", "label": "submitConfigure()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L419"}, {"id": "temp_production_work_order_index_handleview", "label": "handleView()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L467"}, {"id": "temp_production_work_order_index_handledelete", "label": "handleDelete()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L473"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_temp_production_work_order_index_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L287", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_temp_production_work_order_index_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/temp-production-work-order/index.vue", "source_location": "L288", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_temp_production_work_order_index_vue", "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/views/production/temp-production-work-order/index.vue", "source_location": "L298", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_temp_production_work_order_index_vue", "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/views/production/temp-production-work-order/index.vue", "source_location": "L299", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_temp_prodLine truncated
@@ -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_fetchqcworkorderlist", "label": "fetchQcWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L104"}, {"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": "L116"}, {"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": "L122"}, {"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": "L137"}, {"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": "L150"}], "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": "api_qc_work_order_fetchqcworkorderlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L104", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchqcworkorderdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L116", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchconfigureqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L122", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchcreateqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L137", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchdeleteqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L150", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_qc_work_order_fetchqcworkorderlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L110"}, {"caller_nid": "api_qc_work_order_fetchqcworkorderdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L117"}, {"caller_nid": "api_qc_work_order_fetchconfigureqcworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L131"}, {"caller_nid": "api_qc_work_order_fetchcreateqcworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L144"}, {"caller_nid": "api_qc_work_order_fetchdeleteqcworkorder", "callee": "del", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L151"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_qc_work_order_ts", "label": "temp-qc-work-order.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L1"}, {"id": "api_temp_qc_work_order_fetchtempqcworkorderlist", "label": "fetchTempQcWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L50"}, {"id": "api_temp_qc_work_order_fetchtempqcworkorderdetail", "label": "fetchTempQcWorkOrderDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L62"}, {"id": "api_temp_qc_work_order_fetchcreatetempqcworkorder", "label": "fetchCreateTempQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L68"}, {"id": "api_temp_qc_work_order_fetchconfiguretempqcworkorder", "label": "fetchConfigureTempQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L75"}, {"id": "api_temp_qc_work_order_fetchdeletetempqcworkorder", "label": "fetchDeleteTempQcWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L90"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_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/temp-qc-work-order.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_qc_work_order_ts", "target": "api_temp_qc_work_order_fetchtempqcworkorderlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L50", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_qc_work_order_ts", "target": "api_temp_qc_work_order_fetchtempqcworkorderdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L62", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_qc_work_order_ts", "target": "api_temp_qc_work_order_fetchcreatetempqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L68", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_qc_work_order_ts", "target": "api_temp_qc_work_order_fetchconfiguretempqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L75", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_qc_work_order_ts", "target": "api_temp_qc_work_order_fetchdeletetempqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L90", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_temp_qc_work_order_fetchtempqcworkorderlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L56"}, {"caller_nid": "api_temp_qc_work_order_fetchtempqcworkorderdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L63"}, {"caller_nid": "api_temp_qc_work_order_fetchcreatetempqcworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L69"}, {"caller_nid": "api_temp_qc_work_order_fetchconfiguretempqcworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L84"}, {"caller_nid": "api_temp_qc_work_order_fetchdeletetempqcworkorder", "callee": "del", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-qc-work-order.ts", "source_location": "L91"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainlinkedge_vue", "label": "ChainLinkEdge.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L1"}, {"id": "source_chain_chainlinkedge_handledblclick", "label": "handleDblClick()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L94"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainlinkedge_vue", "target": "source_chain_chainlinkedge_handledblclick", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L94", "weight": 1.0}], "raw_calls": [{"caller_nid": "source_chain_chainlinkedge_handledblclick", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L95"}, {"caller_nid": "source_chain_chainlinkedge_handledblclick", "callee": "warning", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L97"}, {"caller_nid": "source_chain_chainlinkedge_handledblclick", "callee": "openTask", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L100"}, {"caller_nid": "source_chain_chainlinkedge_handledblclick", "callee": "trim", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L100"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainnodecard_vue", "label": "ChainNodeCard.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainNodeCard.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types_ts", "label": "chain-types.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chain-types.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_sourcechaingraph_vue", "label": "SourceChainGraph.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/SourceChainGraph.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "label": "production-work-order.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L1"}, {"id": "api_production_work_order_fetchproductionworkorderlist", "label": "fetchProductionWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L23"}, {"id": "api_production_work_order_fetchproductionworkorderdetail", "label": "fetchProductionWorkOrderDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L38"}, {"id": "api_production_work_order_fetchcompleteproductionworkorder", "label": "fetchCompleteProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L42"}, {"id": "api_production_work_order_fetchcreateproductionworkorder", "label": "fetchCreateProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L46"}, {"id": "api_production_work_order_fetchdeleteproductionworkorder", "label": "fetchDeleteProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L58"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_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/production-work-order.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_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/api/production-work-order.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchproductionworkorderlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L23", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchproductionworkorderdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L38", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchcompleteproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L42", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchcreateproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L46", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchdeleteproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L58", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_production_work_order_fetchproductionworkorderlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L29"}, {"caller_nid": "api_production_work_order_fetchproductionworkorderdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L39"}, {"caller_nid": "api_production_work_order_fetchcompleteproductionworkorder", "callee": "put", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L43"}, {"caller_nid": "api_production_work_order_fetchcreateproductionworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L52"}, {"caller_nid": "api_production_work_order_fetchdeleteproductionworkorder", "callee": "del", "source_file": "/Users/wuzilong/work/00code/zkxw/Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainnodecard_vue", "label": "ChainNodeCard.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainNodeCard.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types_ts", "label": "chain-types.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chain-types.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_sourcechaingraph_vue", "label": "SourceChainGraph.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/SourceChainGraph.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_router_modules_sqxp_ts", "label": "sqxp.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/sqxp.ts", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_modules_sqxp_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_types_router", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/sqxp.ts", "source_location": "L1", "weight": 1.0}], "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"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "label": "chainToFlow.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L1"}, {"id": "source_chain_chaintoflow_nextancestorlink", "label": "nextAncestorLink()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L16"}, {"id": "source_chain_chaintoflow_makeflownode", "label": "makeFlowNode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L24"}, {"id": "source_chain_chaintoflow_makeflowedge", "label": "makeFlowEdge()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L33"}, {"id": "source_chain_chaintoflow_chainapitoelements", "label": "chainApiToElements()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L54"}, {"id": "source_chain_chaintoflow_annotateforkedges", "label": "annotateForkEdges()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L109"}, {"id": "source_chain_chaintoflow_layoutchainelements", "label": "layoutChainElements()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L129"}, {"id": "source_chain_chaintoflow_haschaingraphcontent", "label": "hasChainGraphContent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L168"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "dagre", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "core", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_nextancestorlink", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L16", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_makeflownode", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_makeflowedge", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L33", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_chainapitoelements", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L54", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_annotateforkedgLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L1"}, {"id": "qc_work_order_index_handlereceptionattachmentpreview", "label": "handleReceptionAttachmentPreview()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L391"}, {"id": "qc_work_order_index_handlereceptionattachmentdownload", "label": "handleReceptionAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L396"}, {"id": "qc_work_order_index_taskattachmentfullurl", "label": "taskAttachmentFullUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L400"}, {"id": "qc_work_order_index_handletaskattachmentpreview", "label": "handleTaskAttachmentPreview()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L407"}, {"id": "qc_work_order_index_handletaskattachmentdownload", "label": "handleTaskAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L412"}, {"id": "qc_work_order_index_formatconfiguredlabitems", "label": "formatConfiguredLabItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L428"}, {"id": "qc_work_order_index_formatconfiguredthirditems", "label": "formatConfiguredThirdItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L434"}, {"id": "qc_work_order_index_buildtasktypesections", "label": "buildTaskTypeSections()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L442"}, {"id": "qc_work_order_index_buildconfiguredonlysection", "label": "buildConfiguredOnlySection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L501"}, {"id": "qc_work_order_index_formatdetectmethods", "label": "formatDetectMethods()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L519"}, {"id": "qc_work_order_index_formatmetric", "label": "formatMetric()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L526"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handlereceptionattachmentpreview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L391", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handlereceptionattachmentdownload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L396", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_taskattachmentfullurl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L400", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handletaskattachmentpreview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L407", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handletaskattachmentdownload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue",Line truncated
@@ -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_fetchqcworkorderlist", "label": "fetchQcWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L104"}, {"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": "L116"}, {"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": "L122"}, {"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": "L137"}], "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": "api_qc_work_order_fetchqcworkorderlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L104", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchqcworkorderdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L116", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchconfigureqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L122", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_work_order_ts", "target": "api_qc_work_order_fetchcreateqcworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L137", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_qc_work_order_fetchqcworkorderlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L110"}, {"caller_nid": "api_qc_work_order_fetchqcworkorderdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L117"}, {"caller_nid": "api_qc_work_order_fetchconfigureqcworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L131"}, {"caller_nid": "api_qc_work_order_fetchcreateqcworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-work-order.ts", "source_location": "L144"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L1"}, {"id": "qc_task_index_canfillresult", "label": "canFillResult()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L528"}, {"id": "qc_task_index_clearmaterialrow", "label": "clearMaterialRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L550"}, {"id": "qc_task_index_ismaterialoptiondisabled", "label": "isMaterialOptionDisabled()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L557"}, {"id": "qc_task_index_isduplicatematerial", "label": "isDuplicateMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L562"}, {"id": "qc_task_index_handlereceptionattachmentdownload", "label": "handleReceptionAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L709"}, {"id": "qc_task_index_normalizeresultparams", "label": "normalizeResultParams()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L713"}, {"id": "qc_task_index_toresultnumber", "label": "toResultNumber()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L721"}, {"id": "qc_task_index_setresultnumber", "label": "setResultNumber()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L727"}, {"id": "qc_task_index_hasresultvalue", "label": "hasResultValue()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L731"}, {"id": "qc_task_index_formatmetric", "label": "formatMetric()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L735"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_canfillresult", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L528", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_clearmaterialrow", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L550", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_ismaterialoptiondisabled", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L557", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_isduplicatematerial", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L562", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_handlereceptionattachmentdownload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L709", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_normalizeresultparams", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L713", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_toresultnumber", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "label": "qc-task.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L1"}, {"id": "api_qc_task_fetchqctasklist", "label": "fetchQcTaskList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L85"}, {"id": "api_qc_task_fetchqctaskdetail", "label": "fetchQcTaskDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L100"}, {"id": "api_qc_task_fetchstartqctask", "label": "fetchStartQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L106"}, {"id": "api_qc_task_fetchcompleteqctask", "label": "fetchCompleteQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L112"}, {"id": "api_qc_task_fetchupdateqctaskattachments", "label": "fetchUpdateQcTaskAttachments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L118"}, {"id": "api_qc_task_fetchcreateqctask", "label": "fetchCreateQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L125"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_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-task.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchqctasklist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L85", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchqctaskdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L100", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchstartqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L106", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchcompleteqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L112", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchupdateqctaskattachments", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L118", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchcreateqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L125", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_qc_task_fetchqctasklist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L94"}, {"caller_nid": "api_qc_task_fetchqctaskdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L101"}, {"caller_nid": "api_qc_task_fetchstartqctask", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L107"}, {"caller_nid": "api_qc_task_fetchcompleteqctask", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L113"}, {"caller_nid": "api_qc_task_fetchupdateqctaskattachments", "callee": "put", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L119"}, {"caller_nid": "api_qc_task_fetchcreateqctask", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L137"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L1"}, {"id": "production_work_order_index_handleview", "label": "handleView()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L576"}, {"id": "production_work_order_index_handlecomplete", "label": "handleComplete()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L580"}, {"id": "production_work_order_index_handleopendispatch", "label": "handleOpenDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L590"}, {"id": "production_work_order_index_handleedittask", "label": "handleEditTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L607"}, {"id": "production_work_order_index_opentaskeditor", "label": "openTaskEditor()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L622"}, {"id": "production_work_order_index_openedittaskinfo", "label": "openEditTaskInfo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L634"}, {"id": "production_work_order_index_handleedittaskinfosuccess", "label": "handleEditTaskInfoSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L639"}, {"id": "production_work_order_index_handledeletetask", "label": "handleDeleteTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L645"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L576", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handlecomplete", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L580", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleopendispatch", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L590", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleedittask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L607", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_opentaskeditor", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L622", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_openedittaskinfo", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L634", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleedittaskinfosuccess", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L639", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "label": "production-work-order.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L1"}, {"id": "api_production_work_order_fetchproductionworkorderlist", "label": "fetchProductionWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L23"}, {"id": "api_production_work_order_fetchproductionworkorderdetail", "label": "fetchProductionWorkOrderDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L38"}, {"id": "api_production_work_order_fetchcompleteproductionworkorder", "label": "fetchCompleteProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L42"}, {"id": "api_production_work_order_fetchcreateproductionworkorder", "label": "fetchCreateProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L46"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_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/production-work-order.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_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/api/production-work-order.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchproductionworkorderlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L23", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchproductionworkorderdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L38", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchcompleteproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L42", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order_ts", "target": "api_production_work_order_fetchcreateproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L46", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_production_work_order_fetchproductionworkorderlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L29"}, {"caller_nid": "api_production_work_order_fetchproductionworkorderdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L39"}, {"caller_nid": "api_production_work_order_fetchcompleteproductionworkorder", "callee": "put", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L43"}, {"caller_nid": "api_production_work_order_fetchcreateproductionworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts", "source_location": "L52"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "label": "cell-product.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L1"}, {"id": "api_cell_product_fetchcellproductlist", "label": "fetchCellProductList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L3"}, {"id": "api_cell_product_fetchcellproductdetail", "label": "fetchCellProductDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L20"}, {"id": "api_cell_product_fetchcreatecellproduct", "label": "fetchCreateCellProduct()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L24"}, {"id": "api_cell_product_fetchupdatecellproduct", "label": "fetchUpdateCellProduct()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L28"}, {"id": "api_cell_product_fetchdeletecellproduct", "label": "fetchDeleteCellProduct()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L32"}, {"id": "api_cell_product_fetchnextcellproductcode", "label": "fetchNextCellProductCode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L36"}, {"id": "api_cell_product_fetchcellproductchain", "label": "fetchCellProductChain()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L43"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_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/cell-product.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchcellproductlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchcellproductdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchcreatecellproduct", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchupdatecellproduct", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L28", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchdeletecellproduct", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L32", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchnextcellproductcode", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L36", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_cell_product_ts", "target": "api_cell_product_fetchcellproductchain", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L43", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_cell_product_fetchcellproductlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L11"}, {"caller_nid": "api_cell_product_fetchcellproductdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L21"}, {"caller_nid": "api_cell_product_fetchcreatecellproduct", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts", "source_location": "L25"}, {"caller_nid": "api_cell_product_fetchupdatecellproduct", "callee": "put", "source_file": "/Users/wuzilong/work/00code/zkxwLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_temp_qc_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L1"}, {"id": "temp_qc_work_order_index_formatconfiguredlabitems", "label": "formatConfiguredLabItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L336"}, {"id": "temp_qc_work_order_index_formatconfiguredthirditems", "label": "formatConfiguredThirdItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L342"}, {"id": "temp_qc_work_order_index_buildtasktypesections", "label": "buildTaskTypeSections()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L350"}, {"id": "temp_qc_work_order_index_buildconfiguredonlysection", "label": "buildConfiguredOnlySection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L408"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_temp_qc_work_order_index_vue", "target": "temp_qc_work_order_index_formatconfiguredlabitems", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L336", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_temp_qc_work_order_index_vue", "target": "temp_qc_work_order_index_formatconfiguredthirditems", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L342", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_temp_qc_work_order_index_vue", "target": "temp_qc_work_order_index_buildtasktypesections", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L350", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_temp_qc_work_order_index_vue", "target": "temp_qc_work_order_index_buildconfiguredonlysection", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L408", "weight": 1.0}], "raw_calls": [{"caller_nid": "temp_qc_work_order_index_formatconfiguredlabitems", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L338"}, {"caller_nid": "temp_qc_work_order_index_formatconfiguredlabitems", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L338"}, {"caller_nid": "temp_qc_work_order_index_formatconfiguredthirditems", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L344"}, {"caller_nid": "temp_qc_work_order_index_formatconfiguredthirditems", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L344"}, {"caller_nid": "temp_qc_work_order_index_buildtasktypesections", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L355"}, {"caller_nid": "temp_qc_work_order_index_buildtasktypesections", "callee": "map", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/temp-qc-work-order/index.vue", "source_location": "L358"}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_samplecustomerviewdialog_vue", "label": "SampleCustomerViewDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/SampleCustomerViewDialog.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_samplecustomerviewdialog_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/SampleCustomerViewDialog.vue", "source_location": "L19", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_samplecustomerviewdialog_vue", "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/views/production/cell-product/source-chain/SampleCustomerViewDialog.vue", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_samplecustomerviewdialog_vue", "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/views/production/cell-product/source-chain/SampleCustomerViewDialog.vue", "source_location": "L21", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_samplecustomerviewdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/SampleCustomerViewDialog.vue", "source_location": "L22", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_task_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-task/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "label": "qc-task.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L1"}, {"id": "api_qc_task_fetchqctasklist", "label": "fetchQcTaskList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L86"}, {"id": "api_qc_task_fetchqctaskdetail", "label": "fetchQcTaskDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L101"}, {"id": "api_qc_task_fetchstartqctask", "label": "fetchStartQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L107"}, {"id": "api_qc_task_fetchcompleteqctask", "label": "fetchCompleteQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L113"}, {"id": "api_qc_task_fetchupdateqctaskattachments", "label": "fetchUpdateQcTaskAttachments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L119"}, {"id": "api_qc_task_fetchcreateqctask", "label": "fetchCreateQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L126"}, {"id": "api_qc_task_fetchdeleteqctask", "label": "fetchDeleteQcTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L144"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_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-task.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchqctasklist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L86", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchqctaskdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L101", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchstartqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L107", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchcompleteqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L113", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchupdateqctaskattachments", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L119", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchcreateqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L126", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_qc_task_ts", "target": "api_qc_task_fetchdeleteqctask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L144", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_qc_task_fetchqctasklist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L95"}, {"caller_nid": "api_qc_task_fetchqctaskdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L102"}, {"caller_nid": "api_qc_task_fetchstartqctask", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L108"}, {"caller_nid": "api_qc_task_fetchcompleteqctask", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L114"}, {"caller_nid": "api_qc_task_fetchupdateqctaskattachments", "callee": "put", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts", "source_location": "L120"}, {"caller_nid": "api_qc_task_fetchcreateqctask", "callee": "post",Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_task_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-task/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaininject_ts", "label": "chainInject.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainInject.ts", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaininject_ts", "target": "vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainInject.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaininject_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainInject.ts", "source_location": "L2", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L1"}, {"id": "production_work_order_index_handleview", "label": "handleView()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L567"}, {"id": "production_work_order_index_handlecomplete", "label": "handleComplete()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L571"}, {"id": "production_work_order_index_handleopendispatch", "label": "handleOpenDispatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L581"}, {"id": "production_work_order_index_handleedittask", "label": "handleEditTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L598"}, {"id": "production_work_order_index_opentaskeditor", "label": "openTaskEditor()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L613"}, {"id": "production_work_order_index_openedittaskinfo", "label": "openEditTaskInfo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L625"}, {"id": "production_work_order_index_handleedittaskinfosuccess", "label": "handleEditTaskInfoSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L630"}, {"id": "production_work_order_index_handledeletetask", "label": "handleDeleteTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L636"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L567", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handlecomplete", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L571", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleopendispatch", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L581", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleedittask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L598", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_opentaskeditor", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L613", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_openedittaskinfo", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L625", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "production_work_order_index_handleedittaskinfosuccess", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L630", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L1"}, {"id": "qc_task_index_canfillresult", "label": "canFillResult()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L519"}, {"id": "qc_task_index_clearmaterialrow", "label": "clearMaterialRow()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L541"}, {"id": "qc_task_index_ismaterialoptiondisabled", "label": "isMaterialOptionDisabled()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L548"}, {"id": "qc_task_index_isduplicatematerial", "label": "isDuplicateMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L553"}, {"id": "qc_task_index_handlereceptionattachmentdownload", "label": "handleReceptionAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L700"}, {"id": "qc_task_index_normalizeresultparams", "label": "normalizeResultParams()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L704"}, {"id": "qc_task_index_toresultnumber", "label": "toResultNumber()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L712"}, {"id": "qc_task_index_setresultnumber", "label": "setResultNumber()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L718"}, {"id": "qc_task_index_hasresultvalue", "label": "hasResultValue()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L722"}, {"id": "qc_task_index_formatmetric", "label": "formatMetric()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L726"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_canfillresult", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L519", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_clearmaterialrow", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L541", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_ismaterialoptiondisabled", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L548", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_isduplicatematerial", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L553", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_handlereceptionattachmentdownload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L700", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_normalizeresultparams", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-task/index.vue", "source_location": "L704", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_task_index_vue", "target": "qc_task_index_toresultnumber", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry_ts", "label": "status-tag-registry.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts", "source_location": "L1"}, {"id": "utils_status_tag_registry_createlabelgetter", "label": "createLabelGetter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts", "source_location": "L29"}, {"id": "utils_status_tag_registry_createtagtypegetter", "label": "createTagTypeGetter()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts", "source_location": "L33"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry_ts", "target": "utils_status_tag_registry_createlabelgetter", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts", "source_location": "L29", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry_ts", "target": "utils_status_tag_registry_createtagtypegetter", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts", "source_location": "L33", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "label": "chainToFlow.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L1"}, {"id": "source_chain_chaintoflow_nextancestorlink", "label": "nextAncestorLink()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L16"}, {"id": "source_chain_chaintoflow_makeflownode", "label": "makeFlowNode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L24"}, {"id": "source_chain_chaintoflow_makeflowedge", "label": "makeFlowEdge()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L33"}, {"id": "source_chain_chaintoflow_chainapitoelements", "label": "chainApiToElements()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L52"}, {"id": "source_chain_chaintoflow_layoutchainelements", "label": "layoutChainElements()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L104"}, {"id": "source_chain_chaintoflow_haschaingraphcontent", "label": "hasChainGraphContent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L143"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "dagre", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "core", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_nextancestorlink", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L16", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_makeflownode", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_makeflowedge", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L33", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_chainapitoelements", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L52", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chaintoflow_ts", "target": "source_chain_chaintoflow_layoutchainelements", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainToFlow.ts", "source_location": "L104", "weight": 1.0}, {"source": "users_wuzilong_work_0Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainflowtheme_ts", "label": "chainFlowTheme.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainFlowTheme.ts", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainflowtheme_ts", "target": "core", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/chainFlowTheme.ts", "source_location": "L1", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainlinkedge_vue", "label": "ChainLinkEdge.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainlinkedge_vue", "target": "core", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L21", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chainlinkedge_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cell_product_source_chain_chain_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/source-chain/ChainLinkEdge.vue", "source_location": "L27", "weight": 1.0}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_work_order_ts", "label": "temp-production-work-order.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L1"}, {"id": "api_temp_production_work_order_fetchtempproductionworkorderlist", "label": "fetchTempProductionWorkOrderList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L24"}, {"id": "api_temp_production_work_order_fetchtempproductionworkorderdetail", "label": "fetchTempProductionWorkOrderDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L39"}, {"id": "api_temp_production_work_order_fetchcreatetempproductionworkorder", "label": "fetchCreateTempProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L45"}, {"id": "api_temp_production_work_order_fetchconfiguretempproductionworkorder", "label": "fetchConfigureTempProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L52"}, {"id": "api_temp_production_work_order_fetchdeletetempproductionworkorder", "label": "fetchDeleteTempProductionWorkOrder()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L68"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_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/temp-production-work-order.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_work_order_ts", "target": "api_temp_production_work_order_fetchtempproductionworkorderlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L24", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_work_order_ts", "target": "api_temp_production_work_order_fetchtempproductionworkorderdetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L39", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_work_order_ts", "target": "api_temp_production_work_order_fetchcreatetempproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_work_order_ts", "target": "api_temp_production_work_order_fetchconfiguretempproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L52", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_temp_production_work_order_ts", "target": "api_temp_production_work_order_fetchdeletetempproductionworkorder", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L68", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_temp_production_work_order_fetchtempproductionworkorderlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L30"}, {"caller_nid": "api_temp_production_work_order_fetchtempproductionworkorderdetail", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L40"}, {"caller_nid": "api_temp_production_work_order_fetchcreatetempproductionworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L46"}, {"caller_nid": "api_temp_production_work_order_fetchconfiguretempproductionworkorder", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L62"}, {"caller_nid": "api_temp_production_work_order_fetchdeletetempproductionworkorder", "callee": "del", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/temp-production-work-order.ts", "source_location": "L69"}]Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L1"}, {"id": "qc_work_order_index_handlereceptionattachmentpreview", "label": "handleReceptionAttachmentPreview()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L392"}, {"id": "qc_work_order_index_handlereceptionattachmentdownload", "label": "handleReceptionAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L397"}, {"id": "qc_work_order_index_taskattachmentfullurl", "label": "taskAttachmentFullUrl()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L401"}, {"id": "qc_work_order_index_handletaskattachmentpreview", "label": "handleTaskAttachmentPreview()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L408"}, {"id": "qc_work_order_index_handletaskattachmentdownload", "label": "handleTaskAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L413"}, {"id": "qc_work_order_index_formatconfiguredlabitems", "label": "formatConfiguredLabItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L429"}, {"id": "qc_work_order_index_formatconfiguredthirditems", "label": "formatConfiguredThirdItems()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L435"}, {"id": "qc_work_order_index_buildtasktypesections", "label": "buildTaskTypeSections()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L443"}, {"id": "qc_work_order_index_buildconfiguredonlysection", "label": "buildConfiguredOnlySection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L502"}, {"id": "qc_work_order_index_formatdetectmethods", "label": "formatDetectMethods()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L520"}, {"id": "qc_work_order_index_formatmetric", "label": "formatMetric()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L527"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handlereceptionattachmentpreview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L392", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handlereceptionattachmentdownload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L397", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_taskattachmentfullurl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L401", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handletaskattachmentpreview", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue", "source_location": "L408", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_index_vue", "target": "qc_work_order_index_handletaskattachmentdownload", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue",Line truncated
+2 -2
View File
@@ -381,7 +381,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
path: 'qc-work-order',
component: '/quality-inspection/qc-work-order/index',
meta: {
title: '入库质检工单',
title: '质检工单',
keepAlive: true,
menuCode: 'biz:qcWorkOrder:list'
}
@@ -553,7 +553,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
name: 'ProductionWorkOrder',
path: 'production-work-order',
component: '/production/production-work-order/index',
meta: { title: '入库生产工单', keepAlive: true, menuCode: 'production:work-order:list' }
meta: { title: '生产工单', keepAlive: true, menuCode: 'production:work-order:list' }
},
{
id: '90000000000000000000000000000100',
+2 -1
View File
@@ -141,7 +141,8 @@ export const sourceTypeTagType = createTagTypeGetter(sourceType)
export const qcBizType: StatusRegistry = {
inbound: { label: '入库质检', tagType: 'success' },
outbound: { label: '出库质检', tagType: 'primary' }
outbound: { label: '出库质检', tagType: 'primary' },
temporary: { label: '临时质检', tagType: 'warning' }
}
export const qcBizTypeLabel = createLabelGetter(qcBizType)
export const qcBizTypeTagType = createTagTypeGetter(qcBizType)
@@ -0,0 +1,300 @@
<!-- 细胞产品来源链路图(Vue Flow) -->
<template>
<div class="source-chain-graph" v-loading="loading">
<div v-if="chainData" class="chain-container">
<div class="chain-section-title">来源链路</div>
<p v-if="showFlow" class="chain-hint">双击连线查看生产任务;双击卡片查看产品或客户信息</p>
<div v-if="!showFlow" class="chain-empty">该产品暂无来源及衍生链路信息</div>
<div v-else class="chain-flow-viewport">
<VueFlow
v-model:nodes="nodes"
v-model:edges="edges"
:nodes-draggable="false"
:nodes-connectable="false"
:elements-selectable="false"
:pan-on-drag="true"
:zoom-on-scroll="true"
:zoom-on-pinch="true"
:min-zoom="0.25"
:max-zoom="1.5"
:zoom-on-double-click="false"
:default-edge-options="defaultEdgeOptions"
@node-double-click="onNodeDoubleClick"
@edge-double-click="onEdgeDoubleClick"
>
<template #node-chainNode="nodeProps">
<ChainNodeCard v-bind="nodeProps" />
</template>
<template #edge-chainLink="edgeProps">
<ChainLinkEdge v-bind="edgeProps" />
</template>
</VueFlow>
</div>
</div>
<TaskExecutionDialog
v-model:visible="executionDialogVisible"
:task-id="executionTaskId"
:task-name="executionTaskName"
:readonly="true"
append-to-body
/>
<SampleCustomerViewDialog v-model:visible="sampleViewVisible" :sample="sampleViewNode" />
</div>
</template>
<script setup lang="ts">
import { ref, watch, nextTick, computed, provide } from 'vue'
import { ElMessage } from 'element-plus'
import { VueFlow, useVueFlow, type Edge, type Node, type NodeMouseEvent, type EdgeMouseEvent } from '@vue-flow/core'
import '@vue-flow/core/dist/style.css'
import '@vue-flow/core/dist/theme-default.css'
import { fetchCellProductChain } from '@/api/cell-product'
import { fetchCollectionProtocolDetail } from '@/api/collection-protocol'
import TaskExecutionDialog from '../production-work-order/TaskExecutionDialog.vue'
import ChainNodeCard from './source-chain/ChainNodeCard.vue'
import ChainLinkEdge from './source-chain/ChainLinkEdge.vue'
import SampleCustomerViewDialog from './source-chain/SampleCustomerViewDialog.vue'
import type { ChainApiData, ChainEdgeData, ChainNode, ChainNodeData } from './source-chain/chain-types'
import {
chainApiToElements,
hasChainGraphContent,
layoutChainElements,
} from './source-chain/chainToFlow'
import { chainDefaultEdgeOptions } from './source-chain/chainFlowTheme'
import { CHAIN_OPEN_TASK_KEY } from './source-chain/chainInject'
const props = defineProps<{
productId: string
visible: boolean
}>()
const emit = defineEmits<{
(e: 'openProduct', productId: string): void
}>()
const loading = ref(false)
const chainData = ref<ChainApiData | null>(null)
const nodes = ref<Node<ChainNodeData>[]>([])
const edges = ref<Edge<ChainEdgeData>[]>([])
const executionDialogVisible = ref(false)
const executionTaskId = ref('')
const executionTaskName = ref('')
const sampleViewVisible = ref(false)
const sampleViewNode = ref<ChainNode | null>(null)
const showFlow = computed(
() => chainData.value && hasChainGraphContent(chainData.value)
)
const defaultEdgeOptions = chainDefaultEdgeOptions
const { fitView, onNodesInitialized } = useVueFlow()
function scheduleFitView() {
nextTick(() => {
requestAnimationFrame(() => {
fitView({ padding: 0.15, duration: 280 })
})
})
}
onNodesInitialized(() => {
scheduleFitView()
})
async function applyChainData(data: ChainApiData) {
const { nodes: rawNodes, edges: rawEdges } = chainApiToElements(data)
nodes.value = layoutChainElements(rawNodes, rawEdges)
edges.value = rawEdges
scheduleFitView()
}
function onNodeDoubleClick({ node }: NodeMouseEvent) {
const chainNode = (node.data as ChainNodeData | undefined)?.node
if (!chainNode) return
if (chainNode.nodeType === 'cell_product') {
emit('openProduct', chainNode.id)
return
}
if (chainNode.nodeType === 'sample') {
openSampleCustomer(chainNode)
}
}
function openTaskById(taskId?: string, taskName?: string) {
const id = taskId?.trim()
if (!id) {
ElMessage.warning('该连线暂无关联生产任务')
return
}
executionTaskId.value = id
executionTaskName.value = taskName?.trim() || ''
executionDialogVisible.value = true
}
provide(CHAIN_OPEN_TASK_KEY, openTaskById)
function onEdgeDoubleClick(evt: EdgeMouseEvent) {
const data = evt.edge.data as ChainEdgeData | undefined
openTaskById(data?.taskId, data?.taskName)
}
async function openSampleCustomer(chainNode: ChainNode) {
let node = chainNode
const c = chainNode.customer
const hasCustomer =
c &&
(c.motherName || c.motherPhone || c.motherIdCard || c.newbornName)
if (!hasCustomer && chainNode.collectionProtocolId) {
try {
const detail = await fetchCollectionProtocolDetail(chainNode.collectionProtocolId)
const pc = detail?.partyCustomer as Record<string, string> | null
if (pc) {
node = {
...chainNode,
protocolNo:
chainNode.protocolNo ||
String((detail?.protocol as Record<string, string>)?.protocolNo || ''),
customer: {
motherName: pc.motherName || '',
motherPhone: pc.motherPhone || '',
motherIdCard: pc.motherIdCard || '',
newbornName: pc.newbornName || '',
},
}
}
} catch {
/* 全局错误处理 */
}
}
const final = node.customer
if (!final?.motherName && !final?.motherPhone && !final?.motherIdCard && !final?.newbornName) {
ElMessage.warning('暂无客户信息')
return
}
sampleViewNode.value = node
sampleViewVisible.value = true
}
async function loadChain() {
if (!props.productId || !props.visible) return
loading.value = true
try {
const res = await fetchCellProductChain(props.productId)
chainData.value = (res as ChainApiData) || null
nodes.value = []
edges.value = []
if (chainData.value && hasChainGraphContent(chainData.value)) {
await applyChainData(chainData.value)
}
} catch {
chainData.value = null
nodes.value = []
edges.value = []
} finally {
loading.value = false
}
}
watch(
() => [props.productId, props.visible],
([id, vis]) => {
if (id && vis) loadChain()
},
{ immediate: true }
)
</script>
<script lang="ts">
export default {
name: 'SourceChainGraph',
}
</script>
<style lang="scss">
.source-chain-graph {
min-height: 80px;
}
.chain-section-title {
font-size: 13px;
font-weight: 600;
color: #1e293b;
padding-left: 10px;
border-left: 3px solid #10b981;
margin-bottom: 8px;
line-height: 1;
}
.chain-hint {
margin: 0 0 10px 12px;
font-size: 11px;
color: #94a3b8;
line-height: 1.4;
}
.chain-container {
width: 100%;
}
.chain-empty {
text-align: center;
color: #94a3b8;
font-size: 13px;
padding: 32px 0;
}
.chain-flow-viewport {
width: 100%;
height: 320px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #f8fafc;
overflow: hidden;
.vue-flow {
width: 100%;
height: 100%;
}
.vue-flow__pane {
cursor: grab;
}
.vue-flow__pane.dragging {
cursor: grabbing;
}
.vue-flow__edge-path {
stroke: #10b981;
stroke-width: 2;
}
.vue-flow__edge.selected .vue-flow__edge-path {
stroke: #059669;
}
.vue-flow__edges marker path {
fill: #10b981 !important;
stroke: #10b981 !important;
}
.vue-flow__edge .chain-flow-edge {
stroke: #10b981;
}
.vue-flow__edge-interaction {
cursor: pointer;
}
}
</style>
@@ -52,6 +52,17 @@
/>
</el-select>
</el-form-item>
<el-form-item label="来源类型">
<el-select
v-model="searchForm.sourceType"
placeholder="全部"
clearable
style="width: 100%"
>
<el-option label="生产入库" value="production" />
<el-option label="手动录入" value="manual" />
</el-select>
</el-form-item>
</div>
<div class="filter-actions-row">
<span class="filter-hint">按产品编码、产品名称模糊查询,支持按状态和代次筛选。</span>
@@ -204,6 +215,42 @@
</el-tag>
</template>
</el-table-column>
<el-table-column label="来源类型" min-width="110" align="center">
<template #default="{ row }">
<el-tag
v-if="row.sourceTypeLabel"
:type="row.sourceType === 'production' ? 'success' : 'info'"
size="small"
>
{{ row.sourceTypeLabel }}
</el-tag>
<span v-else>—</span>
</template>
</el-table-column>
<el-table-column
label="来源协议号"
min-width="160"
align="center"
show-overflow-tooltip
>
<template #default="{ row }">{{ row.sourceProtocolNo || '—' }}</template>
</el-table-column>
<el-table-column
label="来源工单号"
min-width="140"
align="center"
show-overflow-tooltip
>
<template #default="{ row }">{{ row.sourceWorkOrderNo || '—' }}</template>
</el-table-column>
<el-table-column
label="来源任务号"
min-width="140"
align="center"
show-overflow-tooltip
>
<template #default="{ row }">{{ row.sourceTaskNo || '—' }}</template>
</el-table-column>
<el-table-column
prop="expiryDate"
label="有效期"
@@ -583,6 +630,8 @@
:icon="Box"
:meta="viewRow?.productCode || ''"
:sections="viewSections"
width="1200px"
:grid-columns="4"
>
<template #images>
<div class="attachment-upload attachment-upload--readonly">
@@ -612,6 +661,13 @@
<span v-else class="upload-hint">暂无图片</span>
</div>
</template>
<template #sourceChain>
<SourceChainGraph
:product-id="viewRow?.id"
:visible="viewVisible"
@open-product="handleChainOpenProduct"
/>
</template>
</SystemViewDialog>
</section>
</div>
@@ -634,6 +690,7 @@
} from '@element-plus/icons-vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
import SourceChainGraph from './SourceChainGraph.vue'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
import {
fetchCellProductList,
@@ -691,7 +748,7 @@
}
/* ---- 搜索 & 分页 ---- */
const searchForm = reactive({ keyword: '', productStatus: '', passage: '' })
const searchForm = reactive({ keyword: '', productStatus: '', passage: '', sourceType: '' })
const tableData = ref<any[]>([])
const selectedRows = ref<any[]>([])
const loading = ref(false)
@@ -934,6 +991,12 @@
slot: 'images',
fields: [],
},
{
title: '来源链路',
titleStyle: 'field' as const,
slot: 'sourceChain',
fields: [],
},
]
})
@@ -947,6 +1010,7 @@
keyword: searchForm.keyword || undefined,
productStatus: searchForm.productStatus || undefined,
passage: searchForm.passage || undefined,
sourceType: searchForm.sourceType || undefined,
})
tableData.value = res.list || []
pagination.total = res.total ?? 0
@@ -987,6 +1051,7 @@
searchForm.keyword = ''
searchForm.productStatus = ''
searchForm.passage = ''
searchForm.sourceType = ''
pagination.page = 1
loadData()
}
@@ -1220,6 +1285,11 @@
}
}
async function handleChainOpenProduct(productId: string) {
if (!productId) return
await handleView({ id: productId })
}
/* ---- 查看 ---- */
async function handleView(row: any) {
try {
@@ -0,0 +1,163 @@
<!-- eslint-disable vue/no-multiple-template-root -->
<!-- 来源链路 · 单链折线 / 分叉贝塞尔曲线(组件内处理双击,避免被画布缩放拦截) -->
<template>
<g class="chain-link-edge-group" @dblclick.stop="handleDblClick">
<BaseEdge
:id="id"
:path="edgePath"
:marker-end="markerEnd"
:marker-start="markerStart"
:interaction-width="edgeInteractionWidth"
class="chain-flow-edge"
/>
<EdgeLabelRenderer v-if="hasLabel">
<div
class="chain-edge-label-compact nodrag nopan"
:style="labelStyle"
@dblclick.stop="handleDblClick"
>
<div v-if="workOrderLabel" class="label-line">
<span class="label-k">工单</span>
<span class="label-v wo" :title="workOrderLabel">{{ workOrderLabel }}</span>
</div>
<div v-if="taskLabel" class="label-line">
<span class="label-k">任务</span>
<span class="label-v task" :title="taskLabel">{{ taskLabel }}</span>
</div>
</div>
</EdgeLabelRenderer>
</g>
</template>
<script setup lang="ts">
import { computed, inject } from 'vue'
import { ElMessage } from 'element-plus'
import {
BaseEdge,
EdgeLabelRenderer,
getBezierPath,
getSmoothStepPath,
type EdgeProps,
} from '@vue-flow/core'
import type { ChainEdgeData } from './chain-types'
import { CHAIN_OPEN_TASK_KEY } from './chainInject'
const props = defineProps<EdgeProps<ChainEdgeData>>()
const openTask = inject(CHAIN_OPEN_TASK_KEY)
const edgeInteractionWidth = computed(() => props.interactionWidth ?? 28)
const pathInput = computed(() => ({
sourceX: props.sourceX,
sourceY: props.sourceY,
sourcePosition: props.sourcePosition,
targetX: props.targetX,
targetY: props.targetY,
targetPosition: props.targetPosition,
}))
const bezierCurvature = computed(() => {
const dy = props.targetY - props.sourceY
if (Math.abs(dy) < 4) {
return 0.28
}
const sign = dy > 0 ? 1 : -1
return sign * Math.min(0.55, 0.32 + Math.abs(dy) / 280)
})
const path = computed(() => {
if (props.data?.curved) {
return getBezierPath({
...pathInput.value,
curvature: bezierCurvature.value,
})
}
return getSmoothStepPath({
...pathInput.value,
borderRadius: 8,
})
})
const edgePath = computed(() => path.value[0])
const labelX = computed(() => path.value[1])
const labelY = computed(() => path.value[2])
const workOrderLabel = computed(() => props.data?.workOrderNo?.trim() || '')
const taskLabel = computed(() => props.data?.taskNo?.trim() || '')
const hasLabel = computed(() => Boolean(workOrderLabel.value || taskLabel.value))
const labelStyle = computed(() => ({
transform: `translate(-50%, -50%) translate(${labelX.value}px, ${labelY.value}px)`,
}))
function handleDblClick() {
const taskId = props.data?.taskId?.trim()
if (!taskId) {
ElMessage.warning('该连线暂无关联生产任务')
return
}
openTask?.(taskId, props.data?.taskName?.trim())
}
</script>
<style lang="scss">
.chain-link-edge-group {
cursor: pointer;
}
.chain-flow-edge {
stroke: #10b981;
stroke-width: 2;
fill: none;
}
.chain-edge-label-compact {
position: absolute;
pointer-events: all;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 1px;
padding: 3px 6px;
background: #fff;
border: 1px solid #d1fae5;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
max-width: 118px;
z-index: 2;
}
.label-line {
display: flex;
align-items: baseline;
gap: 3px;
line-height: 1.2;
min-width: 0;
}
.label-k {
flex-shrink: 0;
font-size: 8px;
color: #94a3b8;
}
.label-v {
font-size: 8px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
&.wo {
color: #059669;
}
&.task {
color: #64748b;
font-weight: 500;
}
}
</style>
@@ -0,0 +1,218 @@
<!-- 来源链路 · 样本/产品卡片节点 -->
<template>
<div
class="chain-node-card nodrag nopan"
:title="hintTitle"
:class="{
'is-sample': isSample,
'is-product': isProduct && !isCurrent,
'is-current': isCurrent,
}"
>
<Handle type="target" :position="Position.Left" class="chain-handle" />
<Handle type="source" :position="Position.Right" class="chain-handle" />
<div class="node-header">
<span class="node-type-badge">{{ isSample ? '样本' : '产品' }}</span>
<span v-if="isCurrent" class="current-badge">当前</span>
</div>
<div class="node-body">
<div class="node-code">{{ node.productCode || '—' }}</div>
<div v-if="node.productName" class="node-name">{{ node.productName }}</div>
<template v-if="!isSample">
<div v-if="node.passage || node.productStatus" class="node-meta-row">
<span v-if="node.passage" class="node-passage">代次 {{ node.passage }}</span>
<el-tag
v-if="node.productStatus"
:type="statusTag.type"
size="small"
class="node-status-tag"
>
{{ statusTag.label }}
</el-tag>
</div>
</template>
<template v-else>
<div class="node-sample-info">
<div v-if="node.sampleTypeName" class="node-info-line">{{ node.sampleTypeName }}</div>
<div v-if="node.receptionSourceLabel" class="node-info-line">
{{ node.receptionSourceLabel }}
</div>
<div v-if="node.protocolNo" class="node-info-line">协议 {{ node.protocolNo }}</div>
</div>
</template>
</div>
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { Handle, Position, type NodeProps } from '@vue-flow/core'
import type { ChainNodeData } from './chain-types'
const props = defineProps<NodeProps<ChainNodeData>>()
const node = computed(() => props.data.node)
const isCurrent = computed(() => props.data.isCurrent)
const isSample = computed(() => node.value.nodeType === 'sample')
const isProduct = computed(() => node.value.nodeType === 'cell_product')
const hintTitle = computed(() =>
isSample.value ? '双击查看客户信息' : '双击查看产品详情'
)
const statusTag = computed(() => {
const map: Record<string, { label: string; type: 'success' | 'warning' | 'info' | 'danger' }> =
{
frozen: { label: '已冻存', type: 'success' },
in_production: { label: '生产中', type: 'warning' },
sold: { label: '已售卖', type: 'warning' },
used: { label: '已使用', type: 'info' },
voided: { label: '已作废', type: 'danger' },
thawed: { label: '已复苏', type: 'info' },
}
const s = node.value.productStatus || ''
return map[s] || { label: s, type: 'info' as const }
})
</script>
<style lang="scss" scoped>
.chain-node-card {
width: 148px;
height: 100px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background: #fff;
display: flex;
flex-direction: column;
box-sizing: border-box;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
cursor: pointer;
&.is-product {
background: #ecfdf5;
border-color: #a7f3d0;
}
&.is-sample {
background: #fff7ed;
border-color: #fb923c;
.node-type-badge {
background: #ffedd5;
color: #c2410c;
}
}
&.is-current {
border-color: #10b981;
border-width: 2px;
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 60%);
}
}
.chain-handle {
width: 6px;
height: 6px;
min-width: 6px;
min-height: 6px;
opacity: 0;
border: none;
background: transparent;
}
.node-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 2px 8px;
border-bottom: 1px solid #f1f5f9;
}
.node-type-badge {
font-size: 9px;
font-weight: 600;
padding: 0 4px;
border-radius: 2px;
background: #ecfdf5;
color: #059669;
line-height: 1.4;
}
.current-badge {
font-size: 9px;
font-weight: 700;
color: #10b981;
background: #d1fae5;
padding: 0 4px;
border-radius: 2px;
line-height: 1.35;
}
.node-body {
padding: 4px 8px;
display: flex;
flex-direction: column;
gap: 1px;
flex: 1;
min-height: 0;
}
.node-code {
font-size: 10px;
font-weight: 600;
color: #1e293b;
word-break: break-all;
line-height: 1.3;
}
.node-name {
font-size: 9px;
color: #64748b;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.3;
}
.node-meta-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
margin-top: 1px;
min-height: 16px;
}
.node-status-tag {
height: 18px !important;
padding: 0 4px !important;
font-size: 9px !important;
}
.node-passage {
font-size: 9px;
color: #64748b;
line-height: 1.3;
flex-shrink: 0;
}
.node-sample-info {
display: flex;
flex-direction: column;
gap: 2px;
margin-top: 2px;
}
.node-info-line {
font-size: 9px;
color: #64748b;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
@@ -0,0 +1,67 @@
<!-- 来源链路 · 样本关联客户信息 -->
<template>
<SystemViewDialog
v-model:visible="innerVisible"
title="客户信息"
width="640px"
:grid-columns="2"
:icon="User"
:meta="metaText"
:sections="sections"
append-to-body
compact
modal-class="sample-customer-view-dialog-mask"
/>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { User } from '@element-plus/icons-vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
import type { ChainCustomerInfo, ChainNode } from './chain-types'
const props = defineProps<{
visible: boolean
sample?: ChainNode | null
}>()
const emit = defineEmits<{
(e: 'update:visible', val: boolean): void
}>()
const innerVisible = computed({
get: () => props.visible,
set: (val) => emit('update:visible', val),
})
const customer = computed(() => props.sample?.customer || {})
const metaText = computed(() => {
const parts = [props.sample?.sampleCode, props.sample?.protocolNo].filter(Boolean)
return parts.join(' · ') || ''
})
const sections = computed((): ViewSection[] => {
const c = customer.value as ChainCustomerInfo
return [
{
title: '客户信息',
fields: [
{ label: '母亲姓名', value: c.motherName || '—' },
{ label: '母亲手机', value: c.motherPhone || '—' },
{ label: '母亲证件号', value: c.motherIdCard || '—' },
{ label: '新生儿姓名', value: c.newbornName || '—' },
{ label: '样本编码', value: props.sample?.sampleCode || '—' },
{ label: '协议号', value: props.sample?.protocolNo || '—' },
],
},
]
})
</script>
<style lang="scss">
.sample-customer-view-dialog-mask {
backdrop-filter: none;
}
</style>
@@ -0,0 +1,65 @@
/** 来源链路 API 与 Vue Flow 图数据类型 */
export interface ChainCustomerInfo {
motherName?: string
motherPhone?: string
motherIdCard?: string
newbornName?: string
}
export interface ChainNode {
id: string
productCode: string
productName: string
nodeType: 'cell_product' | 'sample'
productStatus?: string
passage?: string
sampleCode?: string
sampleTypeName?: string
protocolNo?: string
collectionProtocolId?: string
receptionSource?: string
receptionSourceLabel?: string
customer?: ChainCustomerInfo
isCurrent: boolean
}
export interface ChainEdgeMeta {
workOrderNo: string
workOrderType: string
taskNo: string
taskName: string
taskId?: string
}
export interface AncestorItem {
node: ChainNode
edge: ChainEdgeMeta
parent: AncestorItem | AncestorItem[] | null
}
export interface DescendantItem {
node: ChainNode
edge: ChainEdgeMeta
children: DescendantItem[]
}
export interface ChainApiData {
current: ChainNode
ancestors: AncestorItem[]
descendants: DescendantItem[]
}
export interface ChainNodeData {
node: ChainNode
isCurrent: boolean
}
export interface ChainEdgeData {
workOrderNo?: string
taskNo?: string
taskId?: string
taskName?: string
/** 同源分叉子节点连线使用贝塞尔曲线 */
curved?: boolean
}
@@ -0,0 +1,18 @@
import { MarkerType } from '@vue-flow/core'
/** 来源链路 · 连线与箭头主题色 */
export const CHAIN_EDGE_COLOR = '#10b981'
export const CHAIN_EDGE_COLOR_DARK = '#059669'
export const chainEdgeMarkerEnd = {
type: MarkerType.ArrowClosed,
color: CHAIN_EDGE_COLOR,
width: 12,
height: 12,
}
export const chainDefaultEdgeOptions = {
type: 'chainLink',
markerEnd: chainEdgeMarkerEnd,
interactionWidth: 28,
}
@@ -0,0 +1,14 @@
import type { InjectionKey } from 'vue'
import type { ChainEdgeData, ChainNode } from './chain-types'
export const CHAIN_OPEN_TASK_KEY: InjectionKey<
(taskId: string, taskName?: string) => void
> = Symbol('chainOpenTask')
export const CHAIN_OPEN_PRODUCT_KEY: InjectionKey<(productId: string) => void> =
Symbol('chainOpenProduct')
export const CHAIN_OPEN_SAMPLE_KEY: InjectionKey<(node: ChainNode) => void> =
Symbol('chainOpenSample')
export type { ChainEdgeData }
@@ -0,0 +1,170 @@
import dagre from 'dagre'
import { Position, type Edge, type Node } from '@vue-flow/core'
import type {
AncestorItem,
ChainApiData,
ChainEdgeData,
ChainEdgeMeta,
ChainNode,
ChainNodeData,
DescendantItem,
} from './chain-types'
export const CHAIN_NODE_WIDTH = 148
export const CHAIN_NODE_HEIGHT = 100
export function nextAncestorLink(
parent: AncestorItem['parent']
): AncestorItem | null {
if (!parent) return null
if (Array.isArray(parent)) return parent[0] ?? null
return parent
}
function makeFlowNode(n: ChainNode, isCurrent: boolean): Node<ChainNodeData> {
return {
id: n.id,
type: 'chainNode',
position: { x: 0, y: 0 },
data: { node: n, isCurrent },
}
}
function makeFlowEdge(
source: string,
target: string,
edge: ChainEdgeMeta,
index: number
): Edge<ChainEdgeData> {
return {
id: `e-${source}-${target}-${index}`,
source,
target,
type: 'chainLink',
data: {
workOrderNo: edge.workOrderNo || undefined,
taskNo: edge.taskNo || undefined,
taskId: edge.taskId || undefined,
taskName: edge.taskName || undefined,
},
}
}
/** 将 /chain API 数据转为 Vue Flow 节点与边(未布局) */
export function chainApiToElements(data: ChainApiData): {
nodes: Node<ChainNodeData>[]
edges: Edge<ChainEdgeData>[]
} {
const nodeMap = new Map<string, Node<ChainNodeData>>()
const edges: Edge<ChainEdgeData>[] = []
let edgeIndex = 0
const addNode = (n: ChainNode, isCurrent = false) => {
if (!nodeMap.has(n.id)) {
nodeMap.set(n.id, makeFlowNode(n, isCurrent))
} else if (isCurrent) {
nodeMap.set(n.id, makeFlowNode(n, true))
}
}
const addEdge = (source: string, target: string, meta: ChainEdgeMeta) => {
if (source === target) return
edges.push(makeFlowEdge(source, target, meta, edgeIndex++))
}
const current = data.current
addNode(current, true)
if (data.ancestors.length) {
let link: AncestorItem | null = data.ancestors[0]
let downstreamId = current.id
while (link) {
addNode(link.node)
addEdge(link.node.id, downstreamId, link.edge)
downstreamId = link.node.id
link = nextAncestorLink(link.parent)
}
}
const walkDescendants = (items: DescendantItem[], sourceId: string) => {
for (const item of items) {
addNode(item.node)
addEdge(sourceId, item.node.id, item.edge)
if (item.children?.length) {
walkDescendants(item.children, item.node.id)
}
}
}
walkDescendants(data.descendants, current.id)
return {
nodes: Array.from(nodeMap.values()),
edges: annotateForkEdges(edges),
}
}
/** 同一源节点连出 2 条及以上边时标记为分叉曲线 */
function annotateForkEdges(edges: Edge<ChainEdgeData>[]): Edge<ChainEdgeData>[] {
const outCount = new Map<string, number>()
for (const e of edges) {
outCount.set(e.source, (outCount.get(e.source) || 0) + 1)
}
return edges.map((e) => {
if ((outCount.get(e.source) || 0) < 2) {
return e
}
return {
...e,
data: {
...e.data,
curved: true,
},
}
})
}
/** Dagre 横向布局 */
export function layoutChainElements(
nodes: Node<ChainNodeData>[],
edges: Edge<ChainEdgeData>[]
): Node<ChainNodeData>[] {
if (!nodes.length) return nodes
const g = new dagre.graphlib.Graph()
g.setDefaultEdgeLabel(() => ({}))
g.setGraph({
rankdir: 'LR',
nodesep: 44,
ranksep: 180,
marginx: 24,
marginy: 24,
})
nodes.forEach((node) => {
g.setNode(node.id, { width: CHAIN_NODE_WIDTH, height: CHAIN_NODE_HEIGHT })
})
edges.forEach((edge) => {
g.setEdge(edge.source, edge.target)
})
dagre.layout(g)
return nodes.map((node) => {
const pos = g.node(node.id)
return {
...node,
position: {
x: pos.x - CHAIN_NODE_WIDTH / 2,
y: pos.y - CHAIN_NODE_HEIGHT / 2,
},
sourcePosition: Position.Right,
targetPosition: Position.Left,
}
})
}
export function hasChainGraphContent(data: ChainApiData): boolean {
return data.ancestors.length > 0 || data.descendants.length > 0
}
@@ -45,12 +45,21 @@
<el-table-column type="index" label="序号" min-width="68" align="center" :index="(i: number) => (pagination.page - 1) * pagination.pageSize + i + 1" />
<el-table-column prop="taskNo" label="任务号" min-width="150" align="center" />
<el-table-column prop="workOrderNo" label="所属工单号" min-width="140" align="center" />
<el-table-column prop="orderSource" label="来源" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.orderSource === 'temporary' ? 'warning' : 'success'" size="small">
{{ row.orderSource === 'temporary' ? '临时' : '入库' }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="protocolNo" label="协议号" min-width="140" align="center">
<template #default="{ row }">{{ row.protocolNo || '—' }}</template>
</el-table-column>
<el-table-column prop="protocolStatus" label="协议状态" min-width="100" align="center">
<template #default="{ row }">
<span v-if="shouldShowTempEmptyField(row, row.protocolStatus)">—</span>
<el-tag
v-else
:type="protocolStatusTagTypeBySource(String(row.protocolStatus || ''), row.receptionSource || 'cell_storage')"
size="small"
>{{ protocolStatusLabelBySource(String(row.protocolStatus || ''), row.receptionSource || 'cell_storage') }}</el-tag>
@@ -64,7 +73,7 @@
</el-table-column>
<el-table-column prop="taskType" label="任务类型" min-width="120" align="center">
<template #default="{ row }">
<el-tag :type="taskTypeTag(row.taskType).type" size="small">{{ taskTypeTag(row.taskType).label }}</el-tag>
<el-tag :type="taskTypeTag(row.taskType, row.orderSource).type" size="small">{{ taskTypeTag(row.taskType, row.orderSource).label }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="taskName" label="任务名称" min-width="160" align="center" show-overflow-tooltip />
@@ -88,10 +97,11 @@
<el-table-column prop="completedTime" label="完成时间" min-width="170" align="center">
<template #default="{ row }">{{ row.completedTime || '—' }}</template>
</el-table-column>
<el-table-column label="操作" min-width="260" fixed="right" align="center">
<el-table-column label="操作" min-width="320" fixed="right" align="center">
<template #default="{ row }">
<el-button class="btn-op-item primary" @click="handleEnterExecution(row)"><el-icon><VideoPlay /></el-icon>进入执行</el-button>
<el-button class="btn-op-item" @click="handleViewDetail(row)"><el-icon><View /></el-icon>查看详情</el-button>
<el-button v-if="row.taskStatus === 'dpz'" class="btn-op-item" @click="handleDelete(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -116,13 +126,79 @@
:readonly="executionReadonly"
@success="loadData"
/>
<el-dialog
v-model="addSelectWoVisible"
title="选择生产工单"
width="800px"
align-center
destroy-on-close
>
<div style="margin-bottom: 12px">
<el-input
v-model="addSelectWoKeyword"
placeholder="搜索工单号/协议号/样本编码"
clearable
@keyup.enter="searchWorkOrders"
>
<template #append>
<el-button @click="searchWorkOrders"><el-icon><Search /></el-icon></el-button>
</template>
</el-input>
</div>
<el-table
:data="addSelectWoList"
v-loading="addSelectWoLoading"
stripe
style="width: 100%"
max-height="400"
@row-click="selectWorkOrder"
highlight-current-row
>
<el-table-column prop="workOrderNo" label="工单号" min-width="150" align="center" />
<el-table-column prop="protocolNo" label="协议号" min-width="140" align="center">
<template #default="{ row }">{{ row.protocolNo || '—' }}</template>
</el-table-column>
<el-table-column prop="sampleCode" label="样本编码" min-width="120" align="center">
<template #default="{ row }">{{ row.sampleCode || '—' }}</template>
</el-table-column>
<el-table-column prop="receptionSource" label="来源" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.receptionSource === 'research_donation' ? 'warning' : 'success'" size="small">
{{ row.receptionSourceLabel || (row.receptionSource === 'research_donation' ? '科研捐赠' : '细胞存储') }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="workOrderStatus" label="状态" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.workOrderStatus === 'jxz' ? 'warning' : 'info'" size="small">
{{ row.workOrderStatus === 'jxz' ? '进行中' : '待配置' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" min-width="100" align="center" fixed="right">
<template #default="{ row }">
<el-button link type="primary" size="small" @click.stop="selectWorkOrder(row)">选择</el-button>
</template>
</el-table-column>
</el-table>
<el-empty v-if="!addSelectWoLoading && !addSelectWoList.length" description="暂无可选工单" :image-size="48" />
</el-dialog>
<DispatchTaskDialog
v-model:visible="addDispatchVisible"
:work-order-row="addDispatchRow"
@success="loadData"
/>
</section>
</div>
</template>
<script setup lang="ts">
import { RefreshLeft, Search, VideoPlay, View } from '@element-plus/icons-vue'
import { fetchProductionTaskList } from '@/api/production-task'
import { ElMessage, ElMessageBox } from 'element-plus'
import { RefreshLeft, Search, VideoPlay, View, Plus, Close, Check } from '@element-plus/icons-vue'
import { fetchProductionTaskList, fetchDeleteProductionTask } from '@/api/production-task'
import { fetchProductionWorkOrderList } from '@/api/production-work-order'
import {
protocolStatusLabel,
protocolStatusTagType,
@@ -131,6 +207,7 @@
} from '@/utils/status-tag-registry'
import type { TagType } from '@/utils/status-tag-registry'
import TaskExecutionDialog from '../production-work-order/TaskExecutionDialog.vue'
import DispatchTaskDialog from '../production-work-order/DispatchTaskDialog.vue'
/** 根据来源类型返回协议状态标签 */
function protocolStatusLabelBySource(status: string, source: string): string {
@@ -140,8 +217,60 @@
return source === 'research_donation' ? donationStatusTagType(status) : protocolStatusTagType(status)
}
/** 临时工单无关联协议/样本时,空字段展示为 — */
function shouldShowTempEmptyField(row: { orderSource?: string }, value?: string | null) {
return row.orderSource === 'temporary' && !String(value || '').trim()
}
defineOptions({ name: 'ProductionProductionTask' })
// ── 新增任务(工单选择 → 复用 DispatchTaskDialog) ──
const addSelectWoVisible = ref(false)
const addSelectWoList = ref<Record<string, any>[]>([])
const addSelectWoLoading = ref(false)
const addSelectWoKeyword = ref('')
const addDispatchVisible = ref(false)
const addDispatchRow = ref<Record<string, any> | null>(null)
async function handleAdd() {
addSelectWoKeyword.value = ''
addSelectWoVisible.value = true
addSelectWoLoading.value = true
try {
const res = await fetchProductionWorkOrderList({ pageSize: 100 })
addSelectWoList.value = (res.list || []).filter(
(wo: Record<string, any>) => wo.workOrderStatus === 'dpz' || wo.workOrderStatus === 'jxz'
)
} catch {
addSelectWoList.value = []
} finally {
addSelectWoLoading.value = false
}
}
async function searchWorkOrders() {
addSelectWoLoading.value = true
try {
const res = await fetchProductionWorkOrderList({
keyword: addSelectWoKeyword.value || undefined,
pageSize: 100
})
addSelectWoList.value = (res.list || []).filter(
(wo: Record<string, any>) => wo.workOrderStatus === 'dpz' || wo.workOrderStatus === 'jxz'
)
} catch {
addSelectWoList.value = []
} finally {
addSelectWoLoading.value = false
}
}
function selectWorkOrder(row: Record<string, any>) {
addDispatchRow.value = row
addSelectWoVisible.value = false
addDispatchVisible.value = true
}
const route = useRoute()
// ---------------------------------------------------------------------------
@@ -156,7 +285,10 @@
return map[status] || { label: status, type: 'info' }
}
function taskTypeTag(taskType: string) {
function taskTypeTag(taskType: string, orderSource?: string) {
if (orderSource === 'temporary') {
return { label: '临时生产单', type: 'warning' }
}
const map: Record<string, { label: string; type: string }> = {
cell_storage: { label: '入库生产单', type: 'primary' },
outbound: { label: '出库生产单', type: 'warning' }
@@ -172,6 +304,13 @@
const loading = ref(false)
const pagination = reactive({ page: 1, pageSize: 10, total: 0 })
async function handleDelete(row: any) {
await ElMessageBox.confirm('确定要删除该生产任务吗?', '提示', { type: 'warning' })
await fetchDeleteProductionTask(row.id)
ElMessage.success('删除成功')
await loadData()
}
async function loadData() {
loading.value = true
try {
@@ -294,6 +294,13 @@
} else {
// 新建任务:走阶段一表单
phase.value = 'form'
form.taskName = ''
form.routeId = ''
form.description = ''
form.remark = ''
if (props.workOrderRow?.workOrderType === 'temporary' && props.workOrderRow?.workOrderNo) {
form.taskName = `${props.workOrderRow.workOrderNo}任务`
}
loadRouteOptions()
}
}
@@ -7,6 +7,7 @@
align-center
destroy-on-close
:close-on-click-modal="false"
:append-to-body="appendToBody"
@close="handleClose"
>
<!-- 顶部:任务基本信息一行展示 -->
@@ -317,6 +318,8 @@
taskId: string
taskName: string
readonly?: boolean
/** 嵌套在其他弹窗内打开时挂到 body,避免层级被遮挡 */
appendToBody?: boolean
}>()
const emit = defineEmits<{
@@ -1,10 +1,10 @@
<!-- 生产管理 — 入库生产工单 -->
<!-- 生产管理 — 生产工单 -->
<!-- eslint-disable vue/no-v-model-argument -->
<template>
<div class="page-container">
<header class="page-head">
<h1>入库生产工单</h1>
<p class="page-desc">入库生产工单管理,查看工单详情、派发生产任务并完成工单。</p>
<h1>生产工单</h1>
<p class="page-desc">管理入库与临时生产工单;入库工单关联样本接收,临时工单可独立创建并派发任务。</p>
</header>
<section class="panel">
@@ -12,11 +12,21 @@
<h2>工单列表</h2>
</div>
<el-tabs v-model="activeTypeTab" class="work-order-type-tabs" @tab-change="handleTypeTabChange">
<el-tab-pane label="入库生产工单" name="inbound" />
<el-tab-pane label="临时生产工单" name="temporary" />
<el-tab-pane label="全部生产工单" name="all" />
</el-tabs>
<div class="filter-block">
<el-form :model="searchForm" class="filter-form" @submit.prevent>
<div class="filter-grid">
<el-form-item label="关键词">
<el-input v-model="searchForm.keyword" placeholder="工单号/协议号/样本编码" clearable />
<el-input
v-model="searchForm.keyword"
:placeholder="activeTypeTab === 'temporary' ? '工单号' : '工单号/协议号/样本编码'"
clearable
/>
</el-form-item>
<el-form-item label="工单状态">
<el-select
@@ -44,6 +54,14 @@
</el-form>
</div>
<div v-if="activeTypeTab !== 'all'" class="list-toolbar">
<div class="list-toolbar-row">
<el-button class="btn-main" type="primary" @click="handleAdd">
<el-icon><Plus /></el-icon>{{ activeTypeTab === 'temporary' ? '新增临时工单' : '新增生产工单' }}
</el-button>
</div>
</div>
<div class="list-body list-wrap">
<el-table
ref="workOrderListTableRef"
@@ -61,32 +79,49 @@
:index="(i) => (pagination.page - 1) * pagination.pageSize + i + 1"
/>
<el-table-column prop="workOrderNo" label="工单号" min-width="150" align="center" />
<el-table-column prop="protocolNo" label="协议号" min-width="140" align="center" />
<el-table-column prop="protocolStatus" label="协议状态" min-width="100" align="center">
<el-table-column v-if="activeTypeTab === 'all'" prop="workOrderType" label="工单类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.workOrderType === 'temporary' ? 'warning' : 'success'" size="small">
{{ row.workOrderType === 'temporary' ? '临时' : '入库' }}
</el-tag>
</template>
</el-table-column>
<el-table-column v-if="showReceptionCols" prop="protocolNo" label="协议号" min-width="140" align="center">
<template #default="{ row }">{{ formatTempEmptyField(row, row.protocolNo) }}</template>
</el-table-column>
<el-table-column v-if="showReceptionCols" prop="protocolStatus" label="协议状态" min-width="100" align="center">
<template #default="{ row }">
<span v-if="shouldShowTempEmptyField(row, row.protocolStatus)">—</span>
<el-tag
v-else
:type="protocolStatusTagTypeBySource(String(row.protocolStatus || ''), row.receptionSource || 'cell_storage')"
size="small"
>{{ protocolStatusLabelBySource(String(row.protocolStatus || ''), row.receptionSource || 'cell_storage') }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="sampleCode" label="样本编码" min-width="120" align="center" />
<el-table-column prop="receptionSource" label="来源类型" min-width="110" align="center">
<el-table-column v-if="showReceptionCols" prop="sampleCode" label="样本编码" min-width="120" align="center">
<template #default="{ row }">{{ formatTempEmptyField(row, row.sampleCode) }}</template>
</el-table-column>
<el-table-column v-if="showReceptionCols" prop="receptionSource" label="来源类型" min-width="110" align="center">
<template #default="{ row }">
<el-tag :type="sourceTag(row.receptionSource).type" size="small">
<span v-if="shouldShowTempEmptyField(row, row.receptionSource)">—</span>
<el-tag v-else :type="sourceTag(row.receptionSource).type" size="small">
{{ row.receptionSourceLabel || sourceTag(row.receptionSource).label }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="sampleTypeName" label="样本类型" min-width="110" align="center">
<el-table-column v-if="showReceptionCols" prop="sampleTypeName" label="样本类型" min-width="110" align="center">
<template #default="{ row }">{{ row.sampleTypeName || '—' }}</template>
</el-table-column>
<el-table-column prop="handlerName" label="接收人" min-width="100" align="center">
<el-table-column v-if="showReceptionCols" prop="handlerName" label="接收人" min-width="100" align="center">
<template #default="{ row }">{{ row.handlerName || '—' }}</template>
</el-table-column>
<el-table-column prop="receptionTime" label="接收时间" min-width="170" align="center">
<el-table-column v-if="showReceptionCols" prop="receptionTime" label="接收时间" min-width="170" align="center">
<template #default="{ row }">{{ row.receptionTime || '—' }}</template>
</el-table-column>
<el-table-column prop="remark" label="备注" min-width="140" align="center">
<template #default="{ row }">{{ row.remark || '—' }}</template>
</el-table-column>
<el-table-column prop="workOrderStatus" label="工单状态" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="woStatusTag(row.workOrderStatus).type" size="small">
@@ -97,7 +132,7 @@
<el-table-column prop="createTime" label="创建时间" min-width="170" align="center" />
<el-table-column
label="操作"
min-width="460"
min-width="540"
fixed="right"
align="center"
header-align="center"
@@ -123,6 +158,7 @@
>
<el-icon><Check /></el-icon>完成工单
</el-button>
<el-button v-if="row.workOrderStatus !== 'ywc'" class="btn-op-item" @click="handleDelete(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -238,6 +274,52 @@
/>
</div>
</el-dialog>
<!-- 新增生产工单弹窗 -->
<el-dialog
v-model="addVisible"
:title="addMode === 'temporary' ? '新增临时生产工单' : '新增入库生产工单'"
width="560px"
class="dialog-form-layout"
align-center
destroy-on-close
:close-on-click-modal="false"
>
<el-form ref="addFormRef" :model="addForm" :rules="addRules" label-position="top">
<p v-if="addMode === 'temporary'" class="hint-muted">临时工单不关联样本与协议,创建后请派发任务。</p>
<div v-if="addMode === 'temporary'" class="form-grid-2">
<el-form-item label="备注" class="form-col-span-2">
<el-input v-model="addForm.remark" type="textarea" :rows="3" placeholder="选填" maxlength="512" />
</el-form-item>
</div>
<div v-else class="form-grid-2">
<el-form-item label="协议号">
<el-input v-model="addForm.protocolNo" placeholder="请输入协议号(可选)" clearable />
</el-form-item>
<el-form-item label="样本编码">
<el-input v-model="addForm.sampleCode" placeholder="请输入样本编码(可选)" clearable />
</el-form-item>
<el-form-item label="来源类型" prop="receptionSource">
<el-select v-model="addForm.receptionSource" style="width: 100%">
<el-option label="细胞存储" value="cell_storage" />
<el-option label="科研捐赠" value="research_donation" />
</el-select>
</el-form-item>
<el-form-item label="备注" class="form-col-span-2">
<el-input v-model="addForm.remark" type="textarea" :rows="3" placeholder="选填" maxlength="512" />
</el-form-item>
</div>
</el-form>
<template #footer>
<el-button class="btn-ghost" @click="addVisible = false">
<el-icon><Close /></el-icon>取消
</el-button>
<el-button class="btn-main" type="primary" :loading="addLoading" @click="submitAdd">
<el-icon><Check /></el-icon>确认
</el-button>
</template>
</el-dialog>
</section>
</div>
</template>
@@ -247,10 +329,12 @@
import type { TableInstance } from 'element-plus'
import { ElMessage, ElMessageBox } from 'element-plus'
import {
Plus,
Close,
Check,
Search,
RefreshLeft,
View,
Check,
Document,
Position,
EditPen
@@ -259,6 +343,8 @@
fetchProductionWorkOrderList,
fetchProductionWorkOrderDetail,
fetchCompleteProductionWorkOrder,
fetchCreateProductionWorkOrder,
fetchDeleteProductionWorkOrder,
type ProductionWorkOrderDetail
} from '@/api/production-work-order'
import {
@@ -281,6 +367,14 @@
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
return source === 'research_donation' ? donationStatusTagType(status) : protocolStatusTagType(status)
}
/** 临时工单无关联协议/样本时,空字段展示为 — */
function shouldShowTempEmptyField(row: { workOrderType?: string }, value?: string | null) {
return row.workOrderType === 'temporary' && !String(value || '').trim()
}
function formatTempEmptyField(row: { workOrderType?: string }, value?: string | null) {
return shouldShowTempEmptyField(row, value) ? '—' : String(value || '')
}
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
@@ -294,6 +388,58 @@
defineOptions({ name: 'ProductionProductionWorkOrder' })
type WorkOrderTypeTab = 'inbound' | 'temporary' | 'all'
const activeTypeTab = ref<WorkOrderTypeTab>('inbound')
const showReceptionCols = computed(() => activeTypeTab.value !== 'temporary')
const addMode = ref<'inbound' | 'temporary'>('inbound')
// ── 新增工单 ──────────────────────────────────────────
const addVisible = ref(false)
const addLoading = ref(false)
const addFormRef = ref()
const addForm = reactive({
protocolNo: '',
sampleCode: '',
receptionSource: 'cell_storage',
remark: ''
})
const addRules = {
receptionSource: [{ required: true, message: '请选择来源类型', trigger: 'change' }]
}
function handleAdd() {
addMode.value = activeTypeTab.value === 'temporary' ? 'temporary' : 'inbound'
addForm.protocolNo = ''
addForm.sampleCode = ''
addForm.receptionSource = 'cell_storage'
addForm.remark = ''
addVisible.value = true
}
function handleTypeTabChange() {
pagination.page = 1
loadData()
}
async function submitAdd() {
if (addMode.value !== 'temporary') {
await addFormRef.value?.validate()
}
addLoading.value = true
try {
if (addMode.value === 'temporary') {
await fetchCreateProductionWorkOrder({ workOrderType: 'temporary', remark: addForm.remark })
} else {
await fetchCreateProductionWorkOrder({ workOrderType: 'inbound', ...addForm })
}
ElMessage.success('创建成功')
addVisible.value = false
loadData()
} finally {
addLoading.value = false
}
}
const woStatusTag = (status: string) => {
const map: Record<string, { label: string; type: string }> = {
dpz: { label: '待配置', type: 'info' },
@@ -328,6 +474,13 @@
await nextTick()
workOrderListTableRef.value?.doLayout?.()
}
async function handleDelete(row: any) {
await ElMessageBox.confirm('确定要删除该生产工单吗?', '提示', { type: 'warning' })
await fetchDeleteProductionWorkOrder(row.id)
ElMessage.success('删除成功')
await loadData()
}
async function loadData() {
loading.value = true
try {
@@ -335,7 +488,8 @@
page: pagination.page,
pageSize: pagination.pageSize,
keyword: searchForm.keyword || undefined,
workOrderStatus: searchForm.workOrderStatus || undefined
workOrderStatus: searchForm.workOrderStatus || undefined,
workOrderType: activeTypeTab.value === 'all' ? undefined : activeTypeTab.value
})
tableData.value = res.list || []
pagination.total = res.total ?? 0
@@ -401,6 +555,7 @@
const viewSections = computed<ViewSection[]>(() => {
if (!detail.value) return []
const d = detail.value
const isTemp = d.workOrderType === 'temporary'
const r = d.reception || {}
const transportFields: ViewSection['fields'] = [
{ label: '运输方式', value: transportTypeLabel(String(r.transportType || '')) }
@@ -426,56 +581,69 @@
title: '基本信息',
fields: [
{ label: '工单号', value: d.workOrderNo },
{ label: '协议号', value: d.protocolNo },
{
label: '协议状态',
value: protocolStatusLabelBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage'),
tagType: protocolStatusTagTypeBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage')
label: '工单类型',
value: isTemp ? '临时' : '入库',
tagType: isTemp ? 'warning' : 'success'
},
{ label: '样本编码', value: d.sampleCode },
{
label: '来源类型',
value:
r.sourceTypeLabel ||
d.receptionSourceLabel ||
receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary'
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' },
...(isTemp
? []
: [
{ label: '协议号', value: d.protocolNo },
{
label: '协议状态',
value: protocolStatusLabelBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage'),
tagType: protocolStatusTagTypeBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage')
},
{ label: '样本编码', value: d.sampleCode },
{
label: '来源类型',
value:
r.sourceTypeLabel ||
d.receptionSourceLabel ||
receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary' as const
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
]),
{
label: '工单状态',
value: woStatusTag(d.workOrderStatus).label,
tagType: woStatusTag(d.workOrderStatus).type as any
},
{ label: '创建时间', value: d.createTime || '—' },
{ label: '备注', value: d.remark || '—', span: true }
{ label: '备注', value: d.remark || '—', span: true },
{ label: '创建时间', value: d.createTime || '—' }
]
},
...transportSection,
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{ label: '接收温度(℃)', value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—' },
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value:
r.acceptConclusionLabel || acceptConclusionLabel(String(r.acceptConclusion || '')),
tagType:
r.acceptConclusion === 'js'
? 'success'
: r.acceptConclusion === 'jj'
? 'danger'
: 'info'
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
}
...(isTemp ? [] : transportSection),
...(isTemp
? []
: [
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{ label: '接收温度(℃)', value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—' },
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value:
r.acceptConclusionLabel || acceptConclusionLabel(String(r.acceptConclusion || '')),
tagType:
r.acceptConclusion === 'js'
? 'success'
: r.acceptConclusion === 'jj'
? 'danger'
: 'info'
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
}
])
]
})
@@ -571,6 +739,17 @@
</script>
<style scoped lang="scss">
.work-order-type-tabs {
padding: 0 16px;
margin-bottom: 4px;
}
.hint-muted {
margin: 0 0 12px;
font-size: 13px;
color: var(--mint-text-muted, #64748b);
}
.view-reception-attachments {
margin-top: 4px;
@@ -26,6 +26,7 @@
<el-select v-model="searchForm.qcBizType" placeholder="全部" clearable style="width: 100%">
<el-option label="入库质检" value="inbound" />
<el-option label="出库质检" value="outbound" />
<el-option label="临时质检" value="temporary" />
</el-select>
</el-form-item>
<el-form-item label="任务类型">
@@ -57,13 +58,27 @@
<el-table-column prop="taskNo" label="任务号" min-width="150" align="center" />
<el-table-column prop="qcBizTypeLabel" label="业务类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag type="success" size="small">{{ row.qcBizTypeLabel || qcBizTypeLabel(row.qcBizType || '') }}</el-tag>
<el-tag :type="qcBizTypeTagType(row.qcBizType || '')" size="small">
{{ row.qcBizTypeLabel || qcBizTypeLabel(row.qcBizType || '') }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="workOrderNo" label="工单号" min-width="140" align="center" />
<el-table-column prop="orderSource" label="来源" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.orderSource === 'temporary' ? 'warning' : 'success'" size="small">
{{ row.orderSource === 'temporary' ? '临时' : '入库' }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="receptionSourceLabel" label="样本来源" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.receptionSource === 'research_donation' ? 'warning' : 'success'" size="small">
<span v-if="shouldShowTempEmptyReceptionSource(row)">—</span>
<el-tag
v-else
:type="row.receptionSource === 'research_donation' ? 'warning' : 'success'"
size="small"
>
{{ row.receptionSourceLabel || receptionSourceLabel(row.receptionSource || '') }}
</el-tag>
</template>
@@ -118,7 +133,7 @@
<el-table-column prop="remark" label="备注" min-width="140" align="center" show-overflow-tooltip>
<template #default="{ row }">{{ row.remark || '—' }}</template>
</el-table-column>
<el-table-column label="操作" min-width="260" fixed="right" align="center">
<el-table-column label="操作" min-width="320" fixed="right" align="center">
<template #default="{ row }">
<template v-if="row.taskType === 'sysz' && row.taskStatus === 'dzx'">
<el-button class="btn-op-item primary" @click="handleStart(row)"><el-icon><VideoPlay /></el-icon>开始</el-button>
@@ -127,6 +142,7 @@
<el-button class="btn-op-item primary" @click="openResult(row)"><el-icon><EditPen /></el-icon>填写结果</el-button>
</template>
<el-button class="btn-op-item" @click="handleView(row)"><el-icon><View /></el-icon>查看</el-button>
<el-button v-if="row.taskStatus === 'dzx'" class="btn-op-item" @click="handleDelete(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -357,13 +373,14 @@
/>
</template>
</SystemViewDialog>
</section>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, computed, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Close, Check, Search, RefreshLeft, VideoPlay, View, Tickets, EditPen, Plus } from '@element-plus/icons-vue'
import ProtocolFinanceConfirmFields from '@/components/business/protocol-finance-confirm-fields/index.vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
@@ -378,6 +395,8 @@
fetchQcTaskList,
fetchQcTaskDetail,
fetchStartQcTask,
fetchCreateQcTask,
fetchDeleteQcTask,
type QcTask,
type QcTaskDetail
} from '@/api/qc-task'
@@ -393,6 +412,7 @@
taskTypeLabel,
taskStatusLabel,
qcBizTypeLabel,
qcBizTypeTagType,
receptionSourceLabel,
acceptConclusionLabel,
transportTypeLabel,
@@ -414,10 +434,74 @@
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
return source === 'research_donation' ? donationStatusTagType(status) : protocolStatusTagType(status)
}
/** 临时来源任务无关联样本,样本来源展示为 — */
function shouldShowTempEmptyReceptionSource(row: { orderSource?: string }) {
return row.orderSource === 'temporary'
}
import { downloadAttachmentFile } from '@/utils/download-attachment'
defineOptions({ name: 'QualityInspectionQcTask' })
const addVisible = ref(false)
const addLoading = ref(false)
const addFormRef = ref()
const addForm = reactive({
taskType: 'sysz',
itemCode: '',
itemName: '',
companyId: '',
companyName: '',
feeAmount: undefined as number | undefined,
sampleCode: '',
qcBizType: 'inbound',
remark: ''
})
const addRules = {
taskType: [{ required: true, message: '请选择检测类型', trigger: 'change' }],
itemCode: [{ required: true, message: '请输入项目编码', trigger: 'blur' }],
itemName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }]
}
function handleAdd() {
addForm.taskType = 'sysz'
addForm.itemCode = ''
addForm.itemName = ''
addForm.companyId = ''
addForm.companyName = ''
addForm.feeAmount = undefined
addForm.sampleCode = ''
addForm.qcBizType = 'inbound'
addForm.remark = ''
addVisible.value = true
}
async function submitAdd() {
await addFormRef.value?.validate()
addLoading.value = true
try {
const payload: Record<string, any> = {
taskType: addForm.taskType,
itemCode: addForm.itemCode,
itemName: addForm.itemName,
sampleCode: addForm.sampleCode || undefined,
qcBizType: addForm.qcBizType,
remark: addForm.remark || undefined
}
if (addForm.taskType === 'dsfjc') {
payload.companyId = addForm.companyId || undefined
payload.companyName = addForm.companyName || undefined
payload.feeAmount = addForm.feeAmount
}
await fetchCreateQcTask(payload)
ElMessage.success('创建成功')
addVisible.value = false
loadData()
} finally {
addLoading.value = false
}
}
const searchForm = reactive({ keyword: '', qcBizType: '', taskType: '', taskStatus: '' })
const tableData = ref<QcTask[]>([])
const loading = ref(false)
@@ -676,6 +760,7 @@
const d = viewDetail.value
if (!d) return []
const r = d.reception || {}
const isTempQc = d.qcBizType === 'temporary'
const transportFields: ViewSection['fields'] = [
{ label: '运输方式', value: transportTypeLabel(String(r.transportType || '')) }
]
@@ -693,6 +778,73 @@
if (r.etaTime) {
transportFields.push({ label: '预计到达', value: r.etaTime })
}
const cellProductSection: ViewSection[] = isTempQc
? [
{
title: '质检对象',
fields: [
{ label: '产品编码', value: d.cellProductCode || '—' },
{ label: '产品名称', value: d.cellProductName || '—' },
{ label: '产品类型', value: d.cellProductTypeName || '—' },
{ label: '代次', value: d.cellProductPassage || '—' },
{ label: '规格', value: d.cellProductSpecName || '—' }
]
}
]
: []
const sampleSections: ViewSection[] = isTempQc
? []
: [
{
title: '样本信息',
fields: [
{ label: '协议号', value: r.protocolNo || d.protocolNo || '—' },
{
label: '协议状态',
value: protocolStatusLabelBySource(
String(d.protocolStatus || r.protocolStatus || ''),
d.receptionSource || r.sourceType || 'cell_storage'
),
tagType: protocolStatusTagTypeBySource(
String(d.protocolStatus || r.protocolStatus || ''),
d.receptionSource || r.sourceType || 'cell_storage'
)
},
{ label: '样本编码', value: r.sampleCode || d.sampleCode || '—' },
{
label: '样本来源',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary' as const
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
]
},
...(transportFields.length > 1 || r.transportType
? [{ title: '运输信息', fields: transportFields }]
: []),
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
},
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value:
r.acceptConclusionLabel ||
acceptConclusionLabel(String(r.acceptConclusion || ''))
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
}
]
const resultSection =
d.results && d.results.length > 0
? [
@@ -721,7 +873,7 @@
title: '任务信息',
fields: [
{ label: '任务号', value: d.taskNo },
{ label: '业务类型', value: d.qcBizTypeLabel || qcBizTypeLabel(d.qcBizType || ''), tagType: 'success' },
{ label: '业务类型', value: d.qcBizTypeLabel || qcBizTypeLabel(d.qcBizType || ''), tagType: qcBizTypeTagType(d.qcBizType || '') },
{ label: '工单号', value: d.workOrderNo },
{
label: '工单状态',
@@ -744,54 +896,20 @@
{ label: '备注', value: d.remark || '—', span: true }
]
},
{
title: '样本信息',
fields: [
{ label: '协议号', value: r.protocolNo || d.protocolNo || '—' },
{
label: '协议状态',
value: protocolStatusLabelBySource(String(d.protocolStatus || r.protocolStatus || ''), d.receptionSource || r.sourceType || 'cell_storage'),
tagType: protocolStatusTagTypeBySource(String(d.protocolStatus || r.protocolStatus || ''), d.receptionSource || r.sourceType || 'cell_storage')
},
{ label: '样本编码', value: r.sampleCode || d.sampleCode || '—' },
{
label: '样本来源',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary'
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
]
},
...(transportFields.length > 1 || r.transportType
? [{ title: '运输信息', fields: transportFields }]
: []),
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
},
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value:
r.acceptConclusionLabel ||
acceptConclusionLabel(String(r.acceptConclusion || ''))
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
},
...cellProductSection,
...sampleSections,
...resultSection,
...tailSections
]
})
async function handleDelete(row: QcTask) {
await ElMessageBox.confirm('确定要删除该质检任务吗?', '提示', { type: 'warning' })
await fetchDeleteQcTask(row.id)
ElMessage.success('删除成功')
await loadData()
}
async function loadData() {
loading.value = true
try {
@@ -1,10 +1,10 @@
<!-- 质量检测 — 入库质检工单 -->
<!-- 质量检测 — 质检工单 -->
<!-- eslint-disable vue/no-v-model-argument -->
<template>
<div class="page-container">
<header class="page-head">
<h1>入库质检工单</h1>
<p class="page-desc">样本接收(结论为接收)后自动生成工单;在此配置或调整检测方式与具体项目。</p>
<h1>质检工单</h1>
<p class="page-desc">管理入库与临时质检工单;入库工单由样本接收后自动生成,临时工单可独立创建并配置检测项目。</p>
</header>
<section class="panel">
@@ -12,11 +12,21 @@
<h2>工单列表</h2>
</div>
<el-tabs v-model="activeTypeTab" class="work-order-type-tabs" @tab-change="handleTypeTabChange">
<el-tab-pane label="入库质检工单" name="inbound" />
<el-tab-pane label="临时质检工单" name="temporary" />
<el-tab-pane label="全部质检工单" name="all" />
</el-tabs>
<div class="filter-block">
<el-form :model="searchForm" class="filter-form" @submit.prevent>
<div class="filter-grid">
<el-form-item label="关键词">
<el-input v-model="searchForm.keyword" placeholder="工单号/协议号/样本编码" clearable />
<el-input
v-model="searchForm.keyword"
:placeholder="activeTypeTab === 'temporary' ? '工单号' : '工单号/协议号/样本编码'"
clearable
/>
</el-form-item>
<el-form-item label="工单状态">
<el-select v-model="searchForm.workOrderStatus" placeholder="全部" clearable style="width: 100%">
@@ -35,36 +45,84 @@
</el-form>
</div>
<div v-if="activeTypeTab !== 'all'" class="list-toolbar">
<div class="list-toolbar-row">
<el-button class="btn-main" type="primary" @click="handleAdd">
<el-icon><Plus /></el-icon>{{ activeTypeTab === 'temporary' ? '新增临时工单' : '新增入库质检工单' }}
</el-button>
</div>
</div>
<div class="list-body list-wrap">
<el-table class="list-table" :data="tableData" v-loading="loading" stripe @row-dblclick="handleView">
<el-table-column type="index" label="序号" min-width="68" align="center" :index="(i) => (pagination.page - 1) * pagination.pageSize + i + 1" />
<el-table-column prop="workOrderNo" label="工单号" min-width="150" align="center" />
<el-table-column prop="protocolNo" label="协议号" min-width="140" align="center" />
<el-table-column prop="protocolStatus" label="协议状态" min-width="100" align="center">
<el-table-column v-if="activeTypeTab === 'all'" prop="workOrderType" label="工单类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.workOrderType === 'temporary' ? 'warning' : 'success'" size="small">
{{ row.workOrderType === 'temporary' ? '临时' : '入库' }}
</el-tag>
</template>
</el-table-column>
<el-table-column v-if="activeTypeTab !== 'inbound'" prop="qcBizTypeLabel" label="业务类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag
:type="qcBizTypeTagType(row.workOrderType === 'temporary' ? 'temporary' : (row.qcBizType || 'inbound'))"
size="small"
>
{{ row.qcBizTypeLabel || qcBizTypeLabel(row.workOrderType === 'temporary' ? 'temporary' : (row.qcBizType || 'inbound')) }}
</el-tag>
</template>
</el-table-column>
<el-table-column v-if="showTempProductCols" prop="cellProductCode" label="产品编码" min-width="130" align="center">
<template #default="{ row }">{{ formatTempCellProductField(row, row.cellProductCode) }}</template>
</el-table-column>
<el-table-column v-if="showTempProductCols" prop="cellProductName" label="产品名称" min-width="140" align="center">
<template #default="{ row }">{{ formatTempCellProductField(row, row.cellProductName) }}</template>
</el-table-column>
<el-table-column v-if="showTempProductCols" prop="cellProductTypeName" label="产品类型" min-width="110" align="center">
<template #default="{ row }">{{ formatTempCellProductField(row, row.cellProductTypeName) }}</template>
</el-table-column>
<el-table-column v-if="showReceptionCols" prop="protocolNo" label="协议号" min-width="140" align="center">
<template #default="{ row }">{{ formatTempEmptyField(row, row.protocolNo) }}</template>
</el-table-column>
<el-table-column v-if="showReceptionCols" prop="protocolStatus" label="协议状态" min-width="100" align="center">
<template #default="{ row }">
<span v-if="shouldShowTempEmptyField(row, row.protocolStatus)">—</span>
<el-tag
v-else
:type="protocolStatusTagTypeBySource(String(row.protocolStatus || ''), row.receptionSource || 'cell_storage')"
size="small"
>{{ protocolStatusLabelBySource(String(row.protocolStatus || ''), row.receptionSource || 'cell_storage') }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="sampleCode" label="样本编码" min-width="120" align="center" />
<el-table-column prop="receptionSourceLabel" label="来源类型" min-width="100" align="center">
<el-table-column v-if="showReceptionCols" prop="sampleCode" label="样本编码" min-width="120" align="center">
<template #default="{ row }">{{ formatTempEmptyField(row, row.sampleCode) }}</template>
</el-table-column>
<el-table-column v-if="showReceptionCols" prop="receptionSourceLabel" label="来源类型" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.receptionSource === 'research_donation' ? 'warning' : 'success'" size="small">
<span v-if="shouldShowTempEmptyField(row, row.receptionSource)">—</span>
<el-tag
v-else
:type="row.receptionSource === 'research_donation' ? 'warning' : 'success'"
size="small"
>
{{ row.receptionSourceLabel || receptionSourceLabel(row.receptionSource || '') }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="sampleTypeName" label="样本类型" min-width="110" align="center">
<el-table-column v-if="showReceptionCols" prop="sampleTypeName" label="样本类型" min-width="110" align="center">
<template #default="{ row }">{{ row.sampleTypeName || '—' }}</template>
</el-table-column>
<el-table-column prop="receptionTime" label="接收时间" min-width="170" align="center">
<el-table-column v-if="showReceptionCols" prop="receptionTime" label="接收时间" min-width="170" align="center">
<template #default="{ row }">{{ row.receptionTime || '—' }}</template>
</el-table-column>
<el-table-column prop="handlerName" label="接收经手人" min-width="110" align="center">
<el-table-column v-if="showReceptionCols" prop="handlerName" label="接收经手人" min-width="110" align="center">
<template #default="{ row }">{{ row.handlerName || '—' }}</template>
</el-table-column>
<el-table-column prop="remark" label="备注" min-width="140" align="center">
<template #default="{ row }">{{ row.remark || '—' }}</template>
</el-table-column>
<el-table-column prop="workOrderStatus" label="状态" min-width="100" align="center">
<template #default="{ row }">
<el-tag :type="row.workOrderStatus === 'ywc' ? 'success' : row.workOrderStatus === 'ypz' ? 'warning' : 'info'" size="small">
@@ -78,9 +136,16 @@
</template>
</el-table-column>
<el-table-column prop="createTime" label="创建时间" min-width="170" align="center" />
<el-table-column label="操作" min-width="280" fixed="right" align="center">
<el-table-column label="操作" :min-width="activeTypeTab === 'temporary' ? 380 : 320" fixed="right" align="center">
<template #default="{ row }">
<el-button class="btn-op-item" @click="handleView(row)"><el-icon><View /></el-icon>查看</el-button>
<el-button
v-if="activeTypeTab === 'temporary'"
class="btn-op-item"
@click="handleEdit(row)"
>
<el-icon><EditPen /></el-icon>编辑
</el-button>
<el-button
v-if="row.workOrderStatus === 'dpz' || row.workOrderStatus === 'ypz'"
class="btn-op-item primary"
@@ -88,6 +153,7 @@
>
<el-icon><Setting /></el-icon>{{ row.workOrderStatus === 'ypz' ? '调整检测' : '配置检测' }}
</el-button>
<el-button v-if="row.workOrderStatus !== 'ywc'" class="btn-op-item" @click="handleDelete(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -179,23 +245,98 @@
</div>
</template>
</SystemViewDialog>
<el-dialog
v-model="addVisible"
:title="formDialogTitle"
width="720px"
class="dialog-form-layout"
align-center
destroy-on-close
:close-on-click-modal="false"
>
<el-form ref="addFormRef" :model="addForm" :rules="addRules" label-position="top">
<p v-if="addMode === 'temporary' && !editingId" class="hint-muted">临时工单需选择质检对象(细胞产品),创建后请配置检测项目。</p>
<div v-if="addMode === 'temporary'" class="form-grid-2">
<el-form-item v-if="editingId" label="工单号" class="form-col-span-2">
<el-input :model-value="editingWorkOrderNo" disabled />
</el-form-item>
<el-form-item label="质检对象" prop="cellProductId" class="form-col-span-2">
<el-select
v-model="addForm.cellProductId"
filterable
remote
reserve-keyword
placeholder="搜索产品名称或编码"
:remote-method="searchCellProductOptions"
:loading="cellProductOptionsLoading"
style="width: 100%"
>
<el-option
v-for="item in cellProductOptions"
:key="item.id"
:label="item.label"
:value="item.id"
/>
</el-select>
</el-form-item>
<el-form-item label="备注" class="form-col-span-2">
<el-input v-model="addForm.remark" type="textarea" :rows="3" placeholder="选填" maxlength="512" />
</el-form-item>
</div>
<div v-else class="form-grid-2">
<el-form-item label="协议号">
<el-input v-model="addForm.protocolNo" placeholder="请输入协议号(可选)" clearable />
</el-form-item>
<el-form-item label="样本编码">
<el-input v-model="addForm.sampleCode" placeholder="请输入样本编码(可选)" clearable />
</el-form-item>
<el-form-item label="来源类型" prop="receptionSource">
<el-select v-model="addForm.receptionSource" style="width: 100%">
<el-option label="细胞存储" value="cell_storage" />
<el-option label="科研捐赠" value="research_donation" />
</el-select>
</el-form-item>
<el-form-item label="业务类型" prop="qcBizType">
<el-select v-model="addForm.qcBizType" style="width: 100%">
<el-option label="入库质检" value="inbound" />
</el-select>
</el-form-item>
<el-form-item label="备注" class="form-col-span-2">
<el-input v-model="addForm.remark" type="textarea" :rows="3" placeholder="选填" maxlength="512" />
</el-form-item>
</div>
</el-form>
<template #footer>
<el-button class="btn-ghost" @click="addVisible = false">
<el-icon><Close /></el-icon>取消
</el-button>
<el-button class="btn-main" type="primary" :loading="addLoading" @click="submitAdd">
<el-icon><Check /></el-icon>确认
</el-button>
</template>
</el-dialog>
</section>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, computed, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import { Close, Check, Search, RefreshLeft, View, Setting, Document } from '@element-plus/icons-vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Close, Check, Search, RefreshLeft, View, Setting, Document, Plus, EditPen } from '@element-plus/icons-vue'
import { fetchQcLabTestItemsActive, type QcLabTestItem } from '@/api/qc-lab-test-item'
import { fetchQcThirdPartyItemsActive, type QcThirdPartyItem } from '@/api/qc-third-party-item'
import {
fetchQcWorkOrderList,
fetchQcWorkOrderDetail,
fetchConfigureQcWorkOrder,
fetchCreateQcWorkOrder,
fetchUpdateQcWorkOrder,
fetchDeleteQcWorkOrder,
type QcWorkOrder,
type QcWorkOrderDetail
} from '@/api/qc-work-order'
import { fetchCellProductList } from '@/api/cell-product'
import { fetchQcTaskResults, type QcTaskResultItem } from '@/api/qc-task-result'
import type { QcTask } from '@/api/qc-task'
import {
@@ -211,6 +352,8 @@
protocolStatusTagType,
donationStatusLabel,
donationStatusTagType,
qcBizTypeLabel,
qcBizTypeTagType,
} from '@/utils/status-tag-registry'
import type { TagType } from '@/utils/status-tag-registry'
@@ -221,6 +364,14 @@
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
return source === 'research_donation' ? donationStatusTagType(status) : protocolStatusTagType(status)
}
/** 临时工单无关联协议/样本时,空字段展示为 — */
function shouldShowTempEmptyField(row: QcWorkOrder, value?: string | null) {
return row.workOrderType === 'temporary' && !String(value || '').trim()
}
function formatTempEmptyField(row: QcWorkOrder, value?: string | null) {
return shouldShowTempEmptyField(row, value) ? '—' : String(value || '')
}
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import type { ViewField, ViewSection } from '@/components/business/system-view-dialog/index.vue'
@@ -228,6 +379,160 @@
defineOptions({ name: 'QualityInspectionQcWorkOrder' })
type WorkOrderTypeTab = 'inbound' | 'temporary' | 'all'
const activeTypeTab = ref<WorkOrderTypeTab>('inbound')
const showReceptionCols = computed(() => activeTypeTab.value !== 'temporary')
const showTempProductCols = computed(() => activeTypeTab.value !== 'inbound')
const addMode = ref<'inbound' | 'temporary'>('inbound')
const editingId = ref('')
const editingWorkOrderNo = ref('')
const formDialogTitle = computed(() => {
if (editingId.value) return '编辑临时质检工单'
return addMode.value === 'temporary' ? '新增临时质检工单' : '新增入库质检工单'
})
const addVisible = ref(false)
const addLoading = ref(false)
const addFormRef = ref()
function formatTempCellProductField(row: QcWorkOrder, value?: string | null) {
if (row.workOrderType !== 'temporary') return '—'
return String(value || '').trim() || '—'
}
type CellProductOption = {
id: string
label: string
productCode?: string
productName?: string
}
const cellProductOptions = ref<CellProductOption[]>([])
const cellProductOptionsLoading = ref(false)
function mapCellProductOptionLabel(p: { productName?: string; productCode?: string }) {
const name = (p.productName || '').trim()
const code = (p.productCode || '').trim()
return code ? `${name}(${code})` : name
}
function ensureCellProductOption(row?: Pick<QcWorkOrder, 'cellProductId' | 'cellProductCode' | 'cellProductName'>) {
if (!row?.cellProductId) return
if (cellProductOptions.value.some((o) => o.id === row.cellProductId)) return
cellProductOptions.value = [
{
id: row.cellProductId,
label: mapCellProductOptionLabel({
productName: row.cellProductName,
productCode: row.cellProductCode
}),
productCode: row.cellProductCode,
productName: row.cellProductName
},
...cellProductOptions.value
]
}
async function searchCellProductOptions(query: string) {
cellProductOptionsLoading.value = true
try {
const res = await fetchCellProductList({
page: 1,
pageSize: 100,
keyword: query?.trim() || undefined
})
cellProductOptions.value = (res.list || [])
.filter((p) => (p.productName || '').trim() || (p.productCode || '').trim())
.map((p) => ({
id: p.id,
label: mapCellProductOptionLabel(p),
productCode: p.productCode || '',
productName: p.productName || ''
}))
} finally {
cellProductOptionsLoading.value = false
}
}
const addForm = reactive({
protocolNo: '',
sampleCode: '',
receptionSource: 'cell_storage',
qcBizType: 'inbound',
cellProductId: '',
remark: ''
})
const addRules = computed(() => {
if (addMode.value === 'temporary') {
return {
cellProductId: [{ required: true, message: '请选择质检对象(细胞产品)', trigger: 'change' }]
}
}
return {
receptionSource: [{ required: true, message: '请选择来源类型', trigger: 'change' }],
qcBizType: [{ required: true, message: '请选择业务类型', trigger: 'change' }]
}
})
function handleAdd() {
editingId.value = ''
editingWorkOrderNo.value = ''
addMode.value = activeTypeTab.value === 'temporary' ? 'temporary' : 'inbound'
addForm.protocolNo = ''
addForm.sampleCode = ''
addForm.receptionSource = 'cell_storage'
addForm.qcBizType = 'inbound'
addForm.cellProductId = ''
addForm.remark = ''
cellProductOptions.value = []
searchCellProductOptions('')
addVisible.value = true
}
function handleEdit(row: QcWorkOrder) {
editingId.value = row.id
editingWorkOrderNo.value = row.workOrderNo || ''
addMode.value = 'temporary'
addForm.cellProductId = row.cellProductId || ''
addForm.remark = row.remark || ''
cellProductOptions.value = []
ensureCellProductOption(row)
searchCellProductOptions(row.cellProductCode || row.cellProductName || '')
addVisible.value = true
}
function handleTypeTabChange() {
pagination.page = 1
loadData()
}
async function submitAdd() {
await addFormRef.value?.validate()
addLoading.value = true
try {
if (editingId.value) {
await fetchUpdateQcWorkOrder(editingId.value, {
cellProductId: addForm.cellProductId,
remark: addForm.remark
})
ElMessage.success('保存成功')
} else if (addMode.value === 'temporary') {
await fetchCreateQcWorkOrder({
workOrderType: 'temporary',
cellProductId: addForm.cellProductId,
remark: addForm.remark
})
ElMessage.success('创建成功')
} else {
await fetchCreateQcWorkOrder({ workOrderType: 'inbound', ...addForm })
ElMessage.success('创建成功')
}
addVisible.value = false
loadData()
} finally {
addLoading.value = false
}
}
const searchForm = reactive({ keyword: '', workOrderStatus: '' })
const tableData = ref<QcWorkOrder[]>([])
const loading = ref(false)
@@ -448,6 +753,7 @@
const viewSections = computed<ViewSection[]>(() => {
if (!detail.value) return []
const d = detail.value
const isTemp = d.workOrderType === 'temporary'
const r = d.reception || {}
const transportFields: ViewSection['fields'] = [
{
@@ -479,45 +785,73 @@
title: '基本信息',
fields: [
{ label: '工单号', value: d.workOrderNo },
{ label: '协议号', value: d.protocolNo },
{
label: '协议状态',
value: protocolStatusLabelBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage'),
tagType: protocolStatusTagTypeBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage')
label: '工单类型',
value: isTemp ? '临时' : '入库',
tagType: isTemp ? 'warning' : 'success'
},
{ label: '样本编码', value: d.sampleCode },
{
label: '来源类型',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary'
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' },
...(isTemp
? [
{
label: '业务类型',
value: d.qcBizTypeLabel || qcBizTypeLabel('temporary'),
tagType: 'warning' as const
},
{ label: '产品编码', value: d.cellProductCode || '—' },
{ label: '产品名称', value: d.cellProductName || '—' },
{ label: '产品类型', value: d.cellProductTypeName || '—' },
{ label: '代次', value: d.cellProductPassage || '—' },
{ label: '规格', value: d.cellProductSpecName || '—' }
]
: []),
...(isTemp
? []
: [
{ label: '协议号', value: d.protocolNo },
{
label: '协议状态',
value: protocolStatusLabelBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage'),
tagType: protocolStatusTagTypeBySource(String(d.protocolStatus || ''), d.receptionSource || 'cell_storage')
},
{ label: '样本编码', value: d.sampleCode },
{
label: '来源类型',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary' as const
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
]),
{ label: '状态', value: workOrderStatusLabel(d.workOrderStatus), tagType: d.workOrderStatus === 'ywc' ? 'success' : d.workOrderStatus === 'ypz' ? 'warning' : 'info' },
{ label: '备注', value: d.remark || '—', span: true },
{ label: '创建时间', value: d.createTime || '—' }
]
},
...transportSection,
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
},
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value: r.acceptConclusionLabel || acceptConclusionLabel(String(r.acceptConclusion || '')),
tagType: r.acceptConclusion === 'js' ? 'success' : r.acceptConclusion === 'jj' ? 'danger' : 'info'
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
},
...(isTemp ? [] : transportSection),
...(isTemp
? []
: [
{
title: '样本接收',
slot: 'reception-extra',
fields: [
{ label: '接收时间', value: r.receptionTime || d.receptionTime || '—' },
{ label: '接收经手人', value: r.handlerName || d.handlerName || '—' },
{
label: '接收温度(℃)',
value: r.receiveTemperature ? `${r.receiveTemperature}℃` : '—'
},
{ label: '体积(ml)', value: formatMetric(r.volumeMl) },
{ label: '净重(g)', value: formatMetric(r.netWeightG) },
{
label: '结论',
value: r.acceptConclusionLabel || acceptConclusionLabel(String(r.acceptConclusion || '')),
tagType: r.acceptConclusion === 'js' ? 'success' : r.acceptConclusion === 'jj' ? 'danger' : 'info'
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
]
}
]),
...(viewTasks.value.some((t) => t.taskType === 'sysz')
? buildTaskTypeSections(viewTasks.value, 'sysz', '实验室项目')
: d.hasLab
@@ -538,6 +872,13 @@
]
})
async function handleDelete(row: QcWorkOrder) {
await ElMessageBox.confirm('确定要删除该质检工单吗?', '提示', { type: 'warning' })
await fetchDeleteQcWorkOrder(row.id)
ElMessage.success('删除成功')
await loadData()
}
async function loadData() {
loading.value = true
try {
@@ -545,7 +886,8 @@
page: pagination.page,
pageSize: pagination.pageSize,
keyword: searchForm.keyword || undefined,
workOrderStatus: searchForm.workOrderStatus || undefined
workOrderStatus: searchForm.workOrderStatus || undefined,
workOrderType: activeTypeTab.value === 'all' ? undefined : activeTypeTab.value
})
tableData.value = res.list || []
pagination.total = res.total ?? 0
@@ -643,6 +985,11 @@
</script>
<style scoped lang="scss">
.work-order-type-tabs {
padding: 0 16px;
margin-bottom: 4px;
}
.qc-config-check-group {
display: grid;
grid-template-columns: repeat(2, 1fr);