提交
This commit is contained in:
1 parent
5f0d7c70f9
commit
22685bfd23
132 files changed
+24992
-11338
No files matched your search
@@ -154,6 +154,10 @@ export type ProductionMaterialUsage = {
|
||||
requisitionReceiverName?: string
|
||||
productionTaskId: string
|
||||
productionTaskNo: string
|
||||
taskNo?: string
|
||||
prepId?: string
|
||||
prepNo?: string
|
||||
configuredMaterialName?: string
|
||||
receiver?: string
|
||||
purpose?: string
|
||||
useTime?: string
|
||||
@@ -415,7 +419,7 @@ export function fetchProductionMaterialRequisitionOptions(params?: {
|
||||
|
||||
export function fetchProductionMaterialLinkedStepUsages(parentUsageId: string) {
|
||||
return request.get<ProductionMaterialUsage[]>({
|
||||
url: `/web/admin/production-material-requisitions/${parentUsageId}/step-usages`
|
||||
url: `/web/admin/production-material-usages/${parentUsageId}/linked-step-usages`
|
||||
})
|
||||
}
|
||||
|
||||
@@ -551,6 +555,12 @@ export type ProductionMaterialPrep = {
|
||||
outputQty: number
|
||||
outputUnit: string
|
||||
batchNo: string
|
||||
specModel?: string
|
||||
catalogNo?: string
|
||||
manufacturer?: string
|
||||
stockInDate?: string
|
||||
unitPrice?: number | null
|
||||
amount?: number | null
|
||||
storageLocation?: string
|
||||
expireDate: string
|
||||
stockInNo: string
|
||||
@@ -612,3 +622,122 @@ export function fetchDeleteProductionMaterialPrep(id: string) {
|
||||
url: `/web/admin/production-material-preps/${id}`
|
||||
})
|
||||
}
|
||||
|
||||
export type QuickPrepLine = {
|
||||
requisitionUsageId: string
|
||||
componentMaterialId: string
|
||||
componentMaterialType: string
|
||||
batchId?: string
|
||||
consumptionQty: number
|
||||
usageUnit?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export type QuickPrepPayload = {
|
||||
configuredMaterialName: string
|
||||
outputQty: number
|
||||
lines: QuickPrepLine[]
|
||||
specModel?: string
|
||||
outputUnit?: string
|
||||
stockInNo?: string
|
||||
stockInDate?: string
|
||||
catalogNo?: string
|
||||
batchNo?: string
|
||||
manufacturer?: string
|
||||
storageLocation?: string
|
||||
expireDate?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export function fetchQuickProductionMaterialPrep(data: QuickPrepPayload) {
|
||||
return request.post<ProductionMaterialPrep>({
|
||||
url: '/web/admin/production-material-preps/quick',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export type AvailableMaterialBatch = {
|
||||
requisitionUsageId: string
|
||||
batchId: string
|
||||
materialId: string
|
||||
materialType: string
|
||||
materialCode: string
|
||||
materialName: string
|
||||
specModel?: string
|
||||
unit?: string
|
||||
stockInNo: string
|
||||
stockInDate?: string
|
||||
expireDate?: string
|
||||
catalogNo?: string
|
||||
batchNo: string
|
||||
manufacturer: string
|
||||
storageLocation?: string
|
||||
requisitionQty: number
|
||||
unitPrice?: number | null
|
||||
receiver?: string
|
||||
receiverName?: string
|
||||
useTime?: string
|
||||
}
|
||||
|
||||
export function fetchAvailableMaterialBatches(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
materialType?: string
|
||||
}) {
|
||||
return request.get<PageList<AvailableMaterialBatch>>({
|
||||
url: '/web/admin/production-material-preps/available-materials',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export type MaterialConsumption = {
|
||||
id: string
|
||||
materialId: string
|
||||
materialType: string
|
||||
materialCode: string
|
||||
materialName: string
|
||||
batchId?: string
|
||||
stockInNo?: string
|
||||
batchNo?: string
|
||||
manufacturer?: string
|
||||
unitPrice?: number | null
|
||||
changeQty: number
|
||||
usageUnit?: string
|
||||
prepId?: string
|
||||
prepNo: string
|
||||
configuredMaterialName: string
|
||||
sourceType: string
|
||||
remark: string
|
||||
createBy: string
|
||||
createByName?: string
|
||||
createTime: string
|
||||
}
|
||||
|
||||
export function fetchProductionMaterialConsumptions(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
materialType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}) {
|
||||
return request.get<PageList<MaterialConsumption>>({
|
||||
url: '/web/admin/production-material-consumptions',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchMyProductionMaterialConsumptions(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
materialType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}) {
|
||||
return request.get<PageList<MaterialConsumption>>({
|
||||
url: '/web/admin/my-production-material-consumptions',
|
||||
params
|
||||
})
|
||||
}
|
||||
@@ -92,7 +92,11 @@ export function fetchCreateEquipment(data: Record<string, any>) {
|
||||
}
|
||||
|
||||
export function fetchUpdateEquipment(id: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/equipments/${id}`, params: data })
|
||||
const cleanedData: Record<string, any> = {}
|
||||
for (const [key, value] of Object.entries(data)) {
|
||||
cleanedData[key] = value === undefined ? null : value
|
||||
}
|
||||
return request.put({ url: `/web/admin/equipments/${id}`, params: cleanedData })
|
||||
}
|
||||
|
||||
export function fetchDeleteEquipment(id: string) {
|
||||
|
||||
@@ -101,3 +101,20 @@ export function fetchSampleReceptionSubmit(data: {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据样本编码查询样本接收记录
|
||||
* @returns 包含 receptionId(有记录时)和 sampleInfo(样本信息)的对象;无记录时 receptionId 为空
|
||||
*/
|
||||
export function fetchSampleReceptionBySampleCode(params: {
|
||||
sampleCode: string
|
||||
sourceType?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
receptionId?: string
|
||||
sampleInfo?: Record<string, unknown> | null
|
||||
}>({
|
||||
url: '/web/admin/sample-receptions/by-sample-code',
|
||||
params
|
||||
})
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material_ts", "label": "production-material.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L1"}, {"id": "api_production_material_fetchproductionmaterialbatchlist", "label": "fetchProductionMaterialBatchList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L260"}, {"id": "api_production_material_fetchproductionmaterialbatchoptions", "label": "fetchProductionMaterialBatchOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L274"}, {"id": "api_production_material_fetchproductionmateriallist", "label": "fetchProductionMaterialList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L286"}, {"id": "api_production_material_fetchproductionmaterialoptions", "label": "fetchProductionMaterialOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L299"}, {"id": "api_production_material_fetchcreateproductionmaterial", "label": "fetchCreateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L306"}, {"id": "api_production_material_fetchupdateproductionmaterial", "label": "fetchUpdateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L313"}, {"id": "api_production_material_fetchdeleteproductionmaterial", "label": "fetchDeleteProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L320"}, {"id": "api_production_material_fetchstockinproductionmaterial", "label": "fetchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L326"}, {"id": "api_production_material_fetchbatchstockinproductionmaterial", "label": "fetchBatchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L333"}, {"id": "api_production_material_fetchupdateproductionmaterialbatch", "label": "fetchUpdateProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L344"}, {"id": "api_production_material_fetchdeleteproductionmaterialbatch", "label": "fetchDeleteProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L351"}, {"id": "api_production_material_fetchbatchstockoutproductionmaterial", "label": "fetchBatchStockOutProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L357"}, {"id": "api_production_material_fetchbatchdiscardproductionmaterial", "label": "fetchBatchDiscardProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L370"}, {"id": "api_production_material_fetchproductionmaterialusagelist", "label": "fetchProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L382"}, {"id": "api_production_material_fetchmarkproductionmaterialusagefullyused", "label": "fetchMarkProductionMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L399"}, {"id": "api_production_material_fetchproductionmaterialrequisitionoptions", "label": "fetchProductionMaterialRequisitionOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L405"}, {"id": "api_production_material_fetchproductionmateriallinkedstepusages", "label": "fetchProductionMaterialLinkedStepUsages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L416"}, {"id": "api_production_material_fetchmyproductionmaterialusagelist", "label": "fetchMyProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L422"}, {"id": "api_production_material_fetchproductionmaterialstockchecklist", "label": "fetchPrLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialusagetab_vue", "label": "ProductionMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "label": "ProductionMaterialStockCheckTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L1"}, {"id": "production_material_productionmaterialstockchecktab_handleselectionchange", "label": "handleSelectionChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L847"}, {"id": "production_material_productionmaterialstockchecktab_statustagtype", "label": "statusTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L851"}, {"id": "production_material_productionmaterialstockchecktab_formatnowdatetime", "label": "formatNowDatetime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L857"}, {"id": "production_material_productionmaterialstockchecktab_displaytext", "label": "displayText()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L863"}, {"id": "production_material_productionmaterialstockchecktab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L1061"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L802", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L803", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "xlsx", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L815", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "file_saver", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L816", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_money_format", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L817", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_dialog_form_body_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L818", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L819", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material", "relLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_ts", "label": "production.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L1"}, {"id": "api_production_fetchconsumablelist", "label": "fetchConsumableList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L7"}, {"id": "api_production_fetchallconsumables", "label": "fetchAllConsumables()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L21"}, {"id": "api_production_fetchcreateconsumable", "label": "fetchCreateConsumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L25"}, {"id": "api_production_fetchupdateconsumable", "label": "fetchUpdateConsumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L29"}, {"id": "api_production_fetchdeleteconsumable", "label": "fetchDeleteConsumable()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L33"}, {"id": "api_production_fetchreagentlist", "label": "fetchReagentList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L41"}, {"id": "api_production_fetchallreagents", "label": "fetchAllReagents()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L51"}, {"id": "api_production_fetchcreatereagent", "label": "fetchCreateReagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L55"}, {"id": "api_production_fetchupdatereagent", "label": "fetchUpdateReagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L59"}, {"id": "api_production_fetchdeletereagent", "label": "fetchDeleteReagent()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L63"}, {"id": "api_production_fetchequipmentlist", "label": "fetchEquipmentList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L71"}, {"id": "api_production_fetchallequipments", "label": "fetchAllEquipments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L86"}, {"id": "api_production_fetchcreateequipment", "label": "fetchCreateEquipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L90"}, {"id": "api_production_fetchupdateequipment", "label": "fetchUpdateEquipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L94"}, {"id": "api_production_fetchdeleteequipment", "label": "fetchDeleteEquipment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L102"}, {"id": "api_production_fetchcleanroomgarmentlist", "label": "fetchCleanroomGarmentList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L110"}, {"id": "api_production_fetchcleanroomgarmentdetail", "label": "fetchCleanroomGarmentDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L126"}, {"id": "api_production_fetchcreatecleanroomgarment", "label": "fetchCreateCleanroomGarment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L130"}, {"id": "api_production_fetchupdatecleanroomgarment", "label": "fetchUpdateCleanroomGarment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L134"}, {"id": "api_production_fetchdeletecleanroomgarment", "label": "fetchDeleteCleanroomGarment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L138"}, {"id": "api_production_fetchbatchdeletecleanroomgarments", "label": "fetchBatchDeleteCleanroomGarments()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L142"}, {"id": "api_production_fetchdiscardcleanroomgarment", "label": "fetchDiscardCleanroomGarment()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production.ts", "source_location": "L146"}, {"id": "api_pLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "label": "material-usage.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L1"}, {"id": "api_material_usage_fetchmaterialusagelist", "label": "fetchMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L41"}, {"id": "api_material_usage_fetchmarkmaterialusagefullyused", "label": "fetchMarkMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L58"}, {"id": "api_material_usage_fetchmymaterialusagelist", "label": "fetchMyMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L64"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_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/material-usage.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "target": "api_material_usage_fetchmaterialusagelist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L41", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "target": "api_material_usage_fetchmarkmaterialusagefullyused", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L58", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_material_usage_ts", "target": "api_material_usage_fetchmymaterialusagelist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L64", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_material_usage_fetchmaterialusagelist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L52"}, {"caller_nid": "api_material_usage_fetchmarkmaterialusagefullyused", "callee": "post", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L59"}, {"caller_nid": "api_material_usage_fetchmymaterialusagelist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-usage.ts", "source_location": "L74"}]}
|
||||
+1
@@ -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": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "label": "MaterialConsumptionTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L1"}, {"id": "production_material_materialconsumptiontab_displayconsumptionqty", "label": "displayConsumptionQty()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L242"}, {"id": "production_material_materialconsumptiontab_loaddata", "label": "loadData()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L248"}, {"id": "production_material_materialconsumptiontab_handlesearch", "label": "handleSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L266"}, {"id": "production_material_materialconsumptiontab_handlereset", "label": "handleReset()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L271"}, {"id": "production_material_materialconsumptiontab_handleviewprep", "label": "handleViewPrep()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L278"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L207", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L208", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L209", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_dialog_form_body_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L214", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "production_material_materialconsumptiontab_displayconsumptionqty", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L242", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "production_material_materialconsumptiontab_loaddata", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L248", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "production_material_materialconsumptiontab_handlesearch", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_location": "L266", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "target": "production_material_materialconsumptiontab_handlereset", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/MaterialConsumptionTab.vue", "source_Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "label": "sample-reception.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L1"}, {"id": "api_sample_reception_fetchsamplereceptionpendinglist", "label": "fetchSampleReceptionPendingList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L11"}, {"id": "api_sample_reception_fetchsamplereceptionreceivedlist", "label": "fetchSampleReceptionReceivedList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L25"}, {"id": "api_sample_reception_fetchsamplereceptiondetail", "label": "fetchSampleReceptionDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L39"}, {"id": "api_sample_reception_fetchallocatelabstoragecodes", "label": "fetchAllocateLabStorageCodes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L45"}, {"id": "api_sample_reception_fetchsamplereceptionupdate", "label": "fetchSampleReceptionUpdate()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L61"}, {"id": "api_sample_reception_fetchsamplereceptionsubmit", "label": "fetchSampleReceptionSubmit()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L83"}, {"id": "api_sample_reception_fetchsamplereceptionbysamplecode", "label": "fetchSampleReceptionBySampleCode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L109"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_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/sample-reception.ts", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchsamplereceptionpendinglist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchsamplereceptionreceivedlist", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L25", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchsamplereceptiondetail", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L39", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchallocatelabstoragecodes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L45", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchsamplereceptionupdate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L61", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchsamplereceptionsubmit", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L83", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_api_sample_reception_ts", "target": "api_sample_reception_fetchsamplereceptionbysamplecode", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L109", "weight": 1.0}], "raw_calls": [{"caller_nid": "api_sample_reception_fetchsamplereceptionpendinglist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-reception.ts", "source_location": "L19"}, {"caller_nid": "api_sample_reception_fetchsamplereceptionreceivedlist", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-receptioLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L1"}, {"id": "production_work_order_index_handleadd", "label": "handleAdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L438"}, {"id": "production_work_order_index_handletypetabchange", "label": "handleTypeTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L446"}, {"id": "production_work_order_index_handletabchange", "label": "handleTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L452"}, {"id": "production_work_order_index_submitadd", "label": "submitAdd()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L458"}, {"id": "production_work_order_index_handlereceptionattachmentpreview", "label": "handleReceptionAttachmentPreview()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L721"}, {"id": "production_work_order_index_handlereceptionattachmentdownload", "label": "handleReceptionAttachmentDownload()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L725"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_system_view_dialog_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L385", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_work_order_qcworkorderprotocolpaymentpanel_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L386", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_system_view_dialog_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L387", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_money_format", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L388", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L389", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_download_attachment", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L390", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_dispatchtaskdialog_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue", "source_location": "L391", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_prodLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_material_materialusagetab_vue", "label": "MaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/material/MaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_quality_inspection_qc_material_qcmaterialusagetab_vue", "label": "QcMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-material/QcMaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialpreptab_vue", "label": "ProductionMaterialPrepTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cleanroom_garment_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cleanroom-garment/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialpreptab_vue", "label": "ProductionMaterialPrepTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialusagetab_vue", "label": "ProductionMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_samplereceptiondialog_vue", "label": "SampleReceptionDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L1"}, {"id": "production_work_order_samplereceptiondialog_protocolstatuslabelbysource", "label": "protocolStatusLabelBySource()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L378"}, {"id": "production_work_order_samplereceptiondialog_protocolstatustagtypebysource", "label": "protocolStatusTagTypeBySource()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L382"}, {"id": "production_work_order_samplereceptiondialog_scrollreceivetosection", "label": "scrollReceiveToSection()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L386"}, {"id": "production_work_order_samplereceptiondialog_getcurrentuserhandler", "label": "getCurrentUserHandler()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L394"}, {"id": "production_work_order_samplereceptiondialog_ensurecurrentuserinoptions", "label": "ensureCurrentUserInOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L401"}, {"id": "production_work_order_samplereceptiondialog_onhandlerchange", "label": "onHandlerChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L409"}, {"id": "production_work_order_samplereceptiondialog_formatnowdatetime", "label": "formatNowDatetime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L414"}, {"id": "production_work_order_samplereceptiondialog_extractreceptiondate", "label": "extractReceptionDate()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L420"}, {"id": "production_work_order_samplereceptiondialog_allocatelabstoragecodes", "label": "allocateLabStorageCodes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L425"}, {"id": "production_work_order_samplereceptiondialog_refreshreceivelabstoragecode", "label": "refreshReceiveLabStorageCode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L432"}, {"id": "production_work_order_samplereceptiondialog_onlabstoragecodemanualinput", "label": "onLabStorageCodeManualInput()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L452"}, {"id": "production_work_order_samplereceptiondialog_onreceivereceptiontimechange", "label": "onReceiveReceptionTimeChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L456"}, {"id": "production_work_order_samplereceptiondialog_onreceiveacceptconclusionchange", "label": "onReceiveAcceptConclusionChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L464"}, {"id": "production_work_order_samplereceptiondialog_resetcheckvalues", "label": "resetCheckValues()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L475"}, {"id": "production_work_order_samplereceptiondialog_applycheckresultsfromdetail", "label": "applyCheckResultsFromDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue", "source_location": "L482"}, {"id": "production_work_order_samplereceptiondialog_populatereceiveformfromdetail", "label": "populateReceiveFormFromDetail()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-aLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_productionworkordercardlist_vue", "label": "ProductionWorkOrderCardList.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L1"}, {"id": "production_work_order_productionworkordercardlist_protocolstatuslabelbysource", "label": "protocolStatusLabelBySource()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L339"}, {"id": "production_work_order_productionworkordercardlist_protocolstatustagtypebysource", "label": "protocolStatusTagTypeBySource()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L343"}, {"id": "production_work_order_productionworkordercardlist_shouldshowtempemptyfield", "label": "shouldShowTempEmptyField()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L347"}, {"id": "production_work_order_productionworkordercardlist_formattempemptyfield", "label": "formatTempEmptyField()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L351"}, {"id": "production_work_order_productionworkordercardlist_formatoutboundschedulesortno", "label": "formatOutboundScheduleSortNo()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L355"}, {"id": "production_work_order_productionworkordercardlist_formatoutboundscheduletotalcount", "label": "formatOutboundScheduleTotalCount()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L361"}, {"id": "production_work_order_productionworkordercardlist_productionwostatustag", "label": "productionWoStatusTag()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L381"}, {"id": "production_work_order_productionworkordercardlist_handlecardselect", "label": "handleCardSelect()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L391"}, {"id": "production_work_order_productionworkordercardlist_showprotocolfeesummary", "label": "showProtocolFeeSummary()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L395"}, {"id": "production_work_order_productionworkordercardlist_showoutboundfeesummary", "label": "showOutboundFeeSummary()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L401"}, {"id": "production_work_order_productionworkordercardlist_cardindex", "label": "cardIndex()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L408"}, {"id": "production_work_order_productionworkordercardlist_isselected", "label": "isSelected()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L412"}, {"id": "production_work_order_productionworkordercardlist_candispatchtask", "label": "canDispatchTask()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L416"}, {"id": "production_work_order_productionworkordercardlist_candispatchqc", "label": "canDispatchQc()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L420"}, {"id": "production_work_order_productionworkordercardlist_dispatchqctooltip", "label": "dispatchQcTooltip()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderCardList.vue", "source_location": "L426"}, {"id": "production_work_order_productionworkordercardlist_cancomplete", "label": "canComplete()", "file_type"Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material_ts", "label": "production-material.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L1"}, {"id": "api_production_material_fetchproductionmaterialbatchlist", "label": "fetchProductionMaterialBatchList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L260"}, {"id": "api_production_material_fetchproductionmaterialbatchoptions", "label": "fetchProductionMaterialBatchOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L274"}, {"id": "api_production_material_fetchproductionmateriallist", "label": "fetchProductionMaterialList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L286"}, {"id": "api_production_material_fetchproductionmaterialoptions", "label": "fetchProductionMaterialOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L299"}, {"id": "api_production_material_fetchcreateproductionmaterial", "label": "fetchCreateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L306"}, {"id": "api_production_material_fetchupdateproductionmaterial", "label": "fetchUpdateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L313"}, {"id": "api_production_material_fetchdeleteproductionmaterial", "label": "fetchDeleteProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L320"}, {"id": "api_production_material_fetchstockinproductionmaterial", "label": "fetchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L326"}, {"id": "api_production_material_fetchbatchstockinproductionmaterial", "label": "fetchBatchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L333"}, {"id": "api_production_material_fetchupdateproductionmaterialbatch", "label": "fetchUpdateProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L344"}, {"id": "api_production_material_fetchdeleteproductionmaterialbatch", "label": "fetchDeleteProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L351"}, {"id": "api_production_material_fetchbatchstockoutproductionmaterial", "label": "fetchBatchStockOutProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L357"}, {"id": "api_production_material_fetchbatchdiscardproductionmaterial", "label": "fetchBatchDiscardProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L370"}, {"id": "api_production_material_fetchproductionmaterialusagelist", "label": "fetchProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L382"}, {"id": "api_production_material_fetchmarkproductionmaterialusagefullyused", "label": "fetchMarkProductionMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L399"}, {"id": "api_production_material_fetchproductionmaterialrequisitionoptions", "label": "fetchProductionMaterialRequisitionOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L405"}, {"id": "api_production_material_fetchproductionmateriallinkedstepusages", "label": "fetchProductionMaterialLinkedStepUsages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L416"}, {"id": "api_production_material_fetchmyproductionmaterialusagelist", "label": "fetchMyProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L422"}, {"id": "api_production_material_fetchproductionmaterialstockchecklist", "label": "fetchPrLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialpreptab_vue", "label": "ProductionMaterialPrepTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialpreptab_vue", "label": "ProductionMaterialPrepTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cleanroom_garment_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cleanroom-garment/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material_ts", "label": "production-material.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L1"}, {"id": "api_production_material_fetchproductionmaterialbatchlist", "label": "fetchProductionMaterialBatchList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L260"}, {"id": "api_production_material_fetchproductionmaterialbatchoptions", "label": "fetchProductionMaterialBatchOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L274"}, {"id": "api_production_material_fetchproductionmateriallist", "label": "fetchProductionMaterialList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L286"}, {"id": "api_production_material_fetchproductionmaterialoptions", "label": "fetchProductionMaterialOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L299"}, {"id": "api_production_material_fetchcreateproductionmaterial", "label": "fetchCreateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L306"}, {"id": "api_production_material_fetchupdateproductionmaterial", "label": "fetchUpdateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L313"}, {"id": "api_production_material_fetchdeleteproductionmaterial", "label": "fetchDeleteProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L320"}, {"id": "api_production_material_fetchstockinproductionmaterial", "label": "fetchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L326"}, {"id": "api_production_material_fetchbatchstockinproductionmaterial", "label": "fetchBatchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L333"}, {"id": "api_production_material_fetchupdateproductionmaterialbatch", "label": "fetchUpdateProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L344"}, {"id": "api_production_material_fetchdeleteproductionmaterialbatch", "label": "fetchDeleteProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L351"}, {"id": "api_production_material_fetchbatchstockoutproductionmaterial", "label": "fetchBatchStockOutProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L357"}, {"id": "api_production_material_fetchbatchdiscardproductionmaterial", "label": "fetchBatchDiscardProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L370"}, {"id": "api_production_material_fetchproductionmaterialusagelist", "label": "fetchProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L382"}, {"id": "api_production_material_fetchmarkproductionmaterialusagefullyused", "label": "fetchMarkProductionMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L399"}, {"id": "api_production_material_fetchproductionmaterialrequisitionoptions", "label": "fetchProductionMaterialRequisitionOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L405"}, {"id": "api_production_material_fetchproductionmateriallinkedstepusages", "label": "fetchProductionMaterialLinkedStepUsages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L416"}, {"id": "api_production_material_fetchmyproductionmaterialusagelist", "label": "fetchMyProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L422"}, {"id": "api_production_material_fetchproductionmaterialstockchecklist", "label": "fetchPrLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cleanroom_garment_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cleanroom-garment/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialpreptab_vue", "label": "ProductionMaterialPrepTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_router_core_menuprocessor_ts", "label": "MenuProcessor.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L1"}, {"id": "core_menuprocessor_menuprocessor", "label": "MenuProcessor", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L19"}, {"id": "core_menuprocessor_menuprocessor_normalizemenucode", "label": ".normalizeMenuCode()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L24"}, {"id": "core_menuprocessor_menuprocessor_getmenulist", "label": ".getMenuList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L40"}, {"id": "core_menuprocessor_menuprocessor_processfrontendmenu", "label": ".processFrontendMenu()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L60"}, {"id": "core_menuprocessor_menuprocessor_processbackendmenu", "label": ".processBackendMenu()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L92"}, {"id": "core_menuprocessor_menuprocessor_filtermenubyroles", "label": ".filterMenuByRoles()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L100"}, {"id": "core_menuprocessor_menuprocessor_filtermenubycodes", "label": ".filterMenuByCodes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L120"}, {"id": "core_menuprocessor_menuprocessor_filteremptymenus", "label": ".filterEmptyMenus()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L146"}, {"id": "core_menuprocessor_menuprocessor_validatemenulist", "label": ".validateMenuList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L188"}, {"id": "core_menuprocessor_menuprocessor_normalizemenupaths", "label": ".normalizeMenuPaths()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L196"}, {"id": "core_menuprocessor_menuprocessor_resolvedefaultredirect", "label": ".resolveDefaultRedirect()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L220"}, {"id": "core_menuprocessor_menuprocessor_isnavigableroute", "label": ".isNavigableRoute()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L242"}, {"id": "core_menuprocessor_menuprocessor_validatemenupaths", "label": ".validateMenuPaths()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L262"}, {"id": "core_menuprocessor_menuprocessor_isvalidabsolutepath", "label": ".isValidAbsolutePath()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L288"}, {"id": "core_menuprocessor_menuprocessor_logpatherror", "label": ".logPathError()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L299"}, {"id": "core_menuprocessor_menuprocessor_buildfullpath", "label": ".buildFullPath()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L321"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_core_menuprocessor_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/core/MenuProcessor.ts", "source_location": "L10", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_core_menuprocessor_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_store_modules_user", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/router/core/MenuProcessor.ts", "source_location": "L11", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_router_core_menuprocessor_ts", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_useappmode", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialusagetab_vue", "label": "ProductionMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_cell_storage_my_material_usage_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/my-material-usage/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialpreptab_vue", "label": "ProductionMaterialPrepTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_types_import_components_d_ts", "label": "components.d.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_task_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L1"}, {"id": "my_production_task_index_handleopensamplereception", "label": "handleOpenSampleReception()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L157"}, {"id": "my_production_task_index_handlesamplereceptionsuccess", "label": "handleSampleReceptionSuccess()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L162"}, {"id": "my_production_task_index_formatlocaldate", "label": "formatLocalDate()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L191"}, {"id": "my_production_task_index_buildworkordersearchfilters", "label": "buildWorkOrderSearchFilters()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L217"}, {"id": "my_production_task_index_loaddata", "label": "loadData()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L237"}, {"id": "my_production_task_index_handlesearch", "label": "handleSearch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L258"}, {"id": "my_production_task_index_handlereset", "label": "handleReset()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L263"}, {"id": "my_production_task_index_handletypetabchange", "label": "handleTypeTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L273"}, {"id": "my_production_task_index_handletabchange", "label": "handleTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L278"}, {"id": "my_production_task_index_handleworkordertaskschanged", "label": "handleWorkOrderTasksChanged()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L284"}, {"id": "my_production_task_index_onworkorderpagechange", "label": "onWorkOrderPageChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L289"}, {"id": "my_production_task_index_onworkorderpagesizechange", "label": "onWorkOrderPageSizeChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L294"}, {"id": "my_production_task_index_handleview", "label": "handleView()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L300"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_task_index_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L134", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_task_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_work_order", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L135", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_task_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_production_mine_task_groups", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue", "source_location": "L136", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_task_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_productionworkordercardlist_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuziloLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material_ts", "label": "production-material.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L1"}, {"id": "api_production_material_fetchproductionmaterialbatchlist", "label": "fetchProductionMaterialBatchList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L264"}, {"id": "api_production_material_fetchproductionmaterialbatchoptions", "label": "fetchProductionMaterialBatchOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L278"}, {"id": "api_production_material_fetchproductionmateriallist", "label": "fetchProductionMaterialList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L290"}, {"id": "api_production_material_fetchproductionmaterialoptions", "label": "fetchProductionMaterialOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L303"}, {"id": "api_production_material_fetchcreateproductionmaterial", "label": "fetchCreateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L310"}, {"id": "api_production_material_fetchupdateproductionmaterial", "label": "fetchUpdateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L317"}, {"id": "api_production_material_fetchdeleteproductionmaterial", "label": "fetchDeleteProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L324"}, {"id": "api_production_material_fetchstockinproductionmaterial", "label": "fetchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L330"}, {"id": "api_production_material_fetchbatchstockinproductionmaterial", "label": "fetchBatchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L337"}, {"id": "api_production_material_fetchupdateproductionmaterialbatch", "label": "fetchUpdateProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L348"}, {"id": "api_production_material_fetchdeleteproductionmaterialbatch", "label": "fetchDeleteProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L355"}, {"id": "api_production_material_fetchbatchstockoutproductionmaterial", "label": "fetchBatchStockOutProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L361"}, {"id": "api_production_material_fetchbatchdiscardproductionmaterial", "label": "fetchBatchDiscardProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L374"}, {"id": "api_production_material_fetchproductionmaterialusagelist", "label": "fetchProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L386"}, {"id": "api_production_material_fetchmarkproductionmaterialusagefullyused", "label": "fetchMarkProductionMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L403"}, {"id": "api_production_material_fetchproductionmaterialrequisitionoptions", "label": "fetchProductionMaterialRequisitionOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L409"}, {"id": "api_production_material_fetchproductionmateriallinkedstepusages", "label": "fetchProductionMaterialLinkedStepUsages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L420"}, {"id": "api_production_material_fetchmyproductionmaterialusagelist", "label": "fetchMyProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L426"}, {"id": "api_production_material_fetchproductionmaterialstockchecklist", "label": "fetchPrLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material_ts", "label": "production-material.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L1"}, {"id": "api_production_material_fetchproductionmaterialbatchlist", "label": "fetchProductionMaterialBatchList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L260"}, {"id": "api_production_material_fetchproductionmaterialbatchoptions", "label": "fetchProductionMaterialBatchOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L274"}, {"id": "api_production_material_fetchproductionmateriallist", "label": "fetchProductionMaterialList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L286"}, {"id": "api_production_material_fetchproductionmaterialoptions", "label": "fetchProductionMaterialOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L299"}, {"id": "api_production_material_fetchcreateproductionmaterial", "label": "fetchCreateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L306"}, {"id": "api_production_material_fetchupdateproductionmaterial", "label": "fetchUpdateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L313"}, {"id": "api_production_material_fetchdeleteproductionmaterial", "label": "fetchDeleteProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L320"}, {"id": "api_production_material_fetchstockinproductionmaterial", "label": "fetchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L326"}, {"id": "api_production_material_fetchbatchstockinproductionmaterial", "label": "fetchBatchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L333"}, {"id": "api_production_material_fetchupdateproductionmaterialbatch", "label": "fetchUpdateProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L344"}, {"id": "api_production_material_fetchdeleteproductionmaterialbatch", "label": "fetchDeleteProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L351"}, {"id": "api_production_material_fetchbatchstockoutproductionmaterial", "label": "fetchBatchStockOutProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L357"}, {"id": "api_production_material_fetchbatchdiscardproductionmaterial", "label": "fetchBatchDiscardProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L370"}, {"id": "api_production_material_fetchproductionmaterialusagelist", "label": "fetchProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L382"}, {"id": "api_production_material_fetchmarkproductionmaterialusagefullyused", "label": "fetchMarkProductionMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L399"}, {"id": "api_production_material_fetchproductionmaterialrequisitionoptions", "label": "fetchProductionMaterialRequisitionOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L405"}, {"id": "api_production_material_fetchproductionmateriallinkedstepusages", "label": "fetchProductionMaterialLinkedStepUsages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L416"}, {"id": "api_production_material_fetchmyproductionmaterialusagelist", "label": "fetchMyProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L422"}, {"id": "api_production_material_fetchproductionmaterialstockchecklist", "label": "fetchPrLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialusagetab_vue", "label": "ProductionMaterialUsageTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialUsageTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialconfiguredcatalogdialog_vue", "label": "ProductionMaterialConfiguredCatalogDialog.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialConfiguredCatalogDialog.vue", "source_location": "L1"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialconfiguredcatalogdialog_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialConfiguredCatalogDialog.vue", "source_location": "L138", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialconfiguredcatalogdialog_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialConfiguredCatalogDialog.vue", "source_location": "L139", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialconfiguredcatalogdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_dialog_form_body_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialConfiguredCatalogDialog.vue", "source_location": "L140", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialconfiguredcatalogdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialConfiguredCatalogDialog.vue", "source_location": "L141", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialconfiguredcatalogdialog_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_status_tag_registry", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialConfiguredCatalogDialog.vue", "source_location": "L150", "weight": 1.0}], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L1"}, {"id": "my_production_material_usage_index_handletabchange", "label": "handleTabChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L47"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialusagetab_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L35", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_materialconsumptiontab_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L36", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_my_production_material_usage_index_vue", "target": "my_production_material_usage_index_handletabchange", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-material-usage/index.vue", "source_location": "L47", "weight": 1.0}], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "label": "ProductionMaterialStockCheckTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "label": "ProductionMaterialStockCheckTab.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L1"}, {"id": "production_material_productionmaterialstockchecktab_handleselectionchange", "label": "handleSelectionChange()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L847"}, {"id": "production_material_productionmaterialstockchecktab_statustagtype", "label": "statusTagType()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L851"}, {"id": "production_material_productionmaterialstockchecktab_formatnowdatetime", "label": "formatNowDatetime()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L857"}, {"id": "production_material_productionmaterialstockchecktab_displaytext", "label": "displayText()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L863"}, {"id": "production_material_productionmaterialstockchecktab_if", "label": "if()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L1063"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "element_plus", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L802", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "icons_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L803", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "xlsx", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L815", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "file_saver", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L816", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_utils_money_format", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L817", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_components_business_dialog_form_body_index_vue", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L818", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue", "source_location": "L819", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_material_productionmaterialstockchecktab_vue", "target": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material", "relLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_api_production_material_ts", "label": "production-material.ts", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L1"}, {"id": "api_production_material_fetchproductionmaterialbatchlist", "label": "fetchProductionMaterialBatchList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L260"}, {"id": "api_production_material_fetchproductionmaterialbatchoptions", "label": "fetchProductionMaterialBatchOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L274"}, {"id": "api_production_material_fetchproductionmateriallist", "label": "fetchProductionMaterialList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L286"}, {"id": "api_production_material_fetchproductionmaterialoptions", "label": "fetchProductionMaterialOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L299"}, {"id": "api_production_material_fetchcreateproductionmaterial", "label": "fetchCreateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L306"}, {"id": "api_production_material_fetchupdateproductionmaterial", "label": "fetchUpdateProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L313"}, {"id": "api_production_material_fetchdeleteproductionmaterial", "label": "fetchDeleteProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L320"}, {"id": "api_production_material_fetchstockinproductionmaterial", "label": "fetchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L326"}, {"id": "api_production_material_fetchbatchstockinproductionmaterial", "label": "fetchBatchStockInProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L333"}, {"id": "api_production_material_fetchupdateproductionmaterialbatch", "label": "fetchUpdateProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L344"}, {"id": "api_production_material_fetchdeleteproductionmaterialbatch", "label": "fetchDeleteProductionMaterialBatch()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L351"}, {"id": "api_production_material_fetchbatchstockoutproductionmaterial", "label": "fetchBatchStockOutProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L357"}, {"id": "api_production_material_fetchbatchdiscardproductionmaterial", "label": "fetchBatchDiscardProductionMaterial()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L370"}, {"id": "api_production_material_fetchproductionmaterialusagelist", "label": "fetchProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L382"}, {"id": "api_production_material_fetchmarkproductionmaterialusagefullyused", "label": "fetchMarkProductionMaterialUsageFullyUsed()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L399"}, {"id": "api_production_material_fetchproductionmaterialrequisitionoptions", "label": "fetchProductionMaterialRequisitionOptions()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L405"}, {"id": "api_production_material_fetchproductionmateriallinkedstepusages", "label": "fetchProductionMaterialLinkedStepUsages()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L416"}, {"id": "api_production_material_fetchmyproductionmaterialusagelist", "label": "fetchMyProductionMaterialUsageList()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-material.ts", "source_location": "L422"}, {"id": "api_production_material_fetchproductionmaterialstockchecklist", "label": "fetchPrLine truncated
|
||||
+1
@@ -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": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_cleanroom_garment_index_vue", "label": "index.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cleanroom-garment/index.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_web_admin_src_views_production_production_work_order_productionworkorderviewdialoghost_vue", "label": "ProductionWorkOrderViewDialogHost.vue", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionWorkOrderViewDialogHost.vue", "source_location": "L1"}], "edges": [], "raw_calls": []}
|
||||
@@ -157,6 +157,11 @@ export class MenuProcessor {
|
||||
return item
|
||||
})
|
||||
.filter((item) => {
|
||||
// hidden: true 的菜单在菜单栏中不展示(但路由仍可用)
|
||||
if (item.meta?.hidden === true) {
|
||||
return false
|
||||
}
|
||||
|
||||
// 如果定义了 children 属性(即使是空数组),说明这是一个目录菜单,应该保留
|
||||
if ('children' in item) {
|
||||
return true
|
||||
|
||||
@@ -474,6 +474,17 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
menuCode: 'biz:material:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: '95000000000000000000000000000003',
|
||||
name: 'MarketMyMaterialUsage',
|
||||
path: 'my-material-usage',
|
||||
component: '/cell-storage/my-material-usage/index',
|
||||
meta: {
|
||||
title: '我的物料领用记录',
|
||||
keepAlive: true,
|
||||
menuCode: 'market:material-usage:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: '50000000000000000000000000000010',
|
||||
name: 'MarketMaterialStockLog',
|
||||
@@ -743,7 +754,9 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
meta: {
|
||||
title: '样本接收信息完善',
|
||||
keepAlive: true,
|
||||
menuCode: 'production:sample-reception-completion:list'
|
||||
menuCode: 'production:sample-reception-completion:list',
|
||||
/** 入口已转移至入库生产工单卡片,此路由保留但隐藏菜单 */
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- 市场基础信息 — 我的物料领用记录 -->
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的物料领用记录</h2>
|
||||
</div>
|
||||
<MaterialUsageTab mine-only />
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import MaterialUsageTab from '../material/MaterialUsageTab.vue'
|
||||
|
||||
defineOptions({ name: 'MarketMyMaterialUsage' })
|
||||
</script>
|
||||
@@ -45,13 +45,13 @@
|
||||
<el-button class="btn-main" type="primary" @click="handleAdd">
|
||||
<el-icon><Plus /></el-icon>新增洁净服
|
||||
</el-button>
|
||||
<el-button class="btn-ghost" :disabled="!canBatchActive" @click="openBatchWash">
|
||||
<el-button class="btn-ghost" @click="openBatchWash">
|
||||
<el-icon><Brush /></el-icon>批量清洗登记
|
||||
</el-button>
|
||||
<el-button class="btn-ghost" :disabled="!canBatchActive" @click="openBatchSterilize">
|
||||
<el-button class="btn-ghost" @click="openBatchSterilize">
|
||||
<el-icon><FirstAidKit /></el-icon>批量灭菌登记
|
||||
</el-button>
|
||||
<el-button class="btn-ghost" :disabled="!canBatchActive" @click="openBatchDiscard">
|
||||
<el-button class="btn-ghost" @click="openBatchDiscard">
|
||||
<el-icon><CircleClose /></el-icon>批量确认废弃
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -112,40 +112,18 @@
|
||||
<el-table-column prop="discardDate" label="废弃日期" min-width="120" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.discardDate || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="320" fixed="right" align="center" header-align="center">
|
||||
<el-table-column label="操作" min-width="240" fixed="right" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<div style="display: flex; justify-content: center; gap: 8px; flex-wrap: wrap">
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click="handleWashLog(row)">
|
||||
<el-icon><Brush /></el-icon>清洗记录
|
||||
<el-button class="btn-op-item" @click="handleEdit(row)">
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click="handleSterilizeLog(row)">
|
||||
<el-icon><FirstAidKit /></el-icon>灭菌记录
|
||||
<el-button class="btn-op-item" @click="handleDelete(row)">
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="row.garmentStatus === 'zc'"
|
||||
class="btn-op-item"
|
||||
@click="handleDiscard(row)"
|
||||
>
|
||||
<el-icon><CircleClose /></el-icon>确认废弃
|
||||
</el-button>
|
||||
<el-dropdown trigger="hover" @command="handleDropdownCommand($event, row)">
|
||||
<el-button class="btn-op-item">
|
||||
<el-icon><More /></el-icon>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="edit">
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="delete" divided>
|
||||
<el-icon><Delete /></el-icon>删除
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -223,24 +201,47 @@
|
||||
<el-dialog
|
||||
v-model="discardVisible"
|
||||
title="确认废弃"
|
||||
width="560px"
|
||||
width="1000px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form ref="discardFormRef" :model="discardForm" :rules="discardRules" label-position="top">
|
||||
<el-form-item label="废弃日期" prop="discardDate">
|
||||
<el-date-picker
|
||||
v-model="discardForm.discardDate"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model="discardForm.remark" type="textarea" :rows="2" placeholder="可选" />
|
||||
</el-form-item>
|
||||
<el-table
|
||||
ref="discardTableRef"
|
||||
:data="discardTableData"
|
||||
class="list-table"
|
||||
stripe
|
||||
row-key="id"
|
||||
max-height="280"
|
||||
@selection-change="handleDiscardSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column prop="garmentCode" label="编号" min-width="120" align="center" header-align="center" />
|
||||
<el-table-column prop="garmentName" label="名称" min-width="140" align="center" header-align="center" />
|
||||
<el-table-column label="清洗" min-width="90" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.washCount }}/{{ row.washDiscardLimit }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="灭菌" min-width="90" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.sterilizeCount }}/{{ row.sterilizeDiscardLimit }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="batch-register-tip">请勾选需要废弃的洁净服(仅显示"正常"状态的记录)</div>
|
||||
<el-form ref="discardFormRef" :model="discardForm" :rules="discardRules" label-position="top" style="margin-top: 16px">
|
||||
<div class="form-grid-2">
|
||||
<el-form-item label="废弃日期" prop="discardDate">
|
||||
<el-date-picker
|
||||
v-model="discardForm.discardDate"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model="discardForm.remark" placeholder="可选" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<p v-if="discardTargetLabel" class="discard-tip">将废弃:{{ discardTargetLabel }}</p>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
@@ -263,7 +264,16 @@
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-table :data="batchRegisterRows" class="list-table" stripe row-key="id" max-height="240">
|
||||
<el-table
|
||||
ref="batchRegisterTableRef"
|
||||
:data="batchRegisterTableData"
|
||||
class="list-table"
|
||||
stripe
|
||||
row-key="id"
|
||||
max-height="280"
|
||||
@selection-change="handleBatchRegisterSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column prop="garmentCode" label="编号" min-width="120" align="center" header-align="center" />
|
||||
<el-table-column prop="garmentName" label="名称" min-width="140" align="center" header-align="center" />
|
||||
@@ -274,6 +284,7 @@
|
||||
<template #default="{ row }">{{ row.sterilizeCount }}/{{ row.sterilizeDiscardLimit }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="batch-register-tip">请勾选需要登记的洁净服(仅显示"正常"状态的记录)</div>
|
||||
<el-form
|
||||
ref="batchRegisterFormRef"
|
||||
:model="batchRegisterForm"
|
||||
@@ -471,19 +482,88 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<SystemViewDialog
|
||||
v-model:visible="viewVisible"
|
||||
:title="viewRow?.garmentName || '洁净服详情'"
|
||||
:icon="ShoppingBag"
|
||||
:meta="viewRow?.garmentCode || ''"
|
||||
:sections="viewSections"
|
||||
/>
|
||||
<el-dialog
|
||||
v-model="viewVisible"
|
||||
:title="`查看洁净服 — ${viewRow?.garmentName || ''}`"
|
||||
width="1000px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
destroy-on-close
|
||||
>
|
||||
<div class="view-dialog-content">
|
||||
<div class="view-base-info">
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">编号:</span>
|
||||
<span class="view-info-value">{{ viewRow?.garmentCode }}</span>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">名称:</span>
|
||||
<span class="view-info-value">{{ viewRow?.garmentName }}</span>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">入库日期:</span>
|
||||
<span class="view-info-value">{{ viewRow?.inboundDate }}</span>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">清洗次数:</span>
|
||||
<span class="view-info-value">{{ viewRow?.washCount }}/{{ viewRow?.washDiscardLimit }}</span>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">灭菌次数:</span>
|
||||
<span class="view-info-value">{{ viewRow?.sterilizeCount }}/{{ viewRow?.sterilizeDiscardLimit }}</span>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">状态:</span>
|
||||
<el-tag :type="garmentStatusTagType(viewRow?.garmentStatus || '')" size="small">
|
||||
{{ garmentStatusLabel(viewRow?.garmentStatus || '') }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">废弃日期:</span>
|
||||
<span class="view-info-value">{{ viewRow?.discardDate || '—' }}</span>
|
||||
</div>
|
||||
<div class="view-info-item">
|
||||
<span class="view-info-label">备注:</span>
|
||||
<span class="view-info-value">{{ viewRow?.remark || '—' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="view-log-section">
|
||||
<div class="view-log-title">
|
||||
<el-icon><Brush /></el-icon>清洗记录
|
||||
</div>
|
||||
<el-table :data="viewWashLogData" v-loading="viewWashLogLoading" class="list-table" stripe max-height="200">
|
||||
<el-table-column prop="washTime" label="清洗时间" min-width="160" align="center" header-align="center" />
|
||||
<el-table-column prop="operatorName" label="登记人" min-width="120" align="center" header-align="center" />
|
||||
<el-table-column prop="remark" label="备注" min-width="160" align="center" header-align="center" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<el-empty v-if="!viewWashLogLoading && viewWashLogData.length === 0" :image-size="60" description="暂无清洗记录" />
|
||||
</div>
|
||||
|
||||
<div class="view-log-section">
|
||||
<div class="view-log-title">
|
||||
<el-icon><FirstAidKit /></el-icon>灭菌记录
|
||||
</div>
|
||||
<el-table :data="viewSterLogData" v-loading="viewSterLogLoading" class="list-table" stripe max-height="200">
|
||||
<el-table-column prop="sterilizeTime" label="灭菌时间" min-width="160" align="center" header-align="center" />
|
||||
<el-table-column prop="operatorName" label="登记人" min-width="120" align="center" header-align="center" />
|
||||
<el-table-column prop="remark" label="备注" min-width="160" align="center" header-align="center" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<el-empty v-if="!viewSterLogLoading && viewSterLogData.length === 0" :image-size="60" description="暂无灭菌记录" />
|
||||
</div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="viewVisible = false">
|
||||
<el-icon><Close /></el-icon>关闭
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, onMounted } from 'vue'
|
||||
import { ref, reactive, computed, onMounted, nextTick } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import {
|
||||
Plus,
|
||||
@@ -492,17 +572,15 @@
|
||||
View,
|
||||
Edit,
|
||||
Delete,
|
||||
More,
|
||||
RefreshLeft,
|
||||
Search,
|
||||
Brush,
|
||||
FirstAidKit,
|
||||
CircleClose,
|
||||
ShoppingBag
|
||||
CircleClose
|
||||
} from '@element-plus/icons-vue'
|
||||
import { watchDebounced } from '@vueuse/core'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import { garmentStatusLabel, garmentStatusTagType } from '@/utils/status-tag-registry'
|
||||
import {
|
||||
@@ -511,7 +589,6 @@
|
||||
fetchUpdateCleanroomGarment,
|
||||
fetchDeleteCleanroomGarment,
|
||||
fetchBatchDeleteCleanroomGarments,
|
||||
fetchDiscardCleanroomGarment,
|
||||
fetchBatchDiscardCleanroomGarments,
|
||||
fetchCleanroomGarmentWashLogList,
|
||||
fetchCreateCleanroomGarmentWashLog,
|
||||
@@ -574,10 +651,6 @@
|
||||
const loading = ref(false)
|
||||
const pagination = reactive({ page: 1, pageSize: 10, total: 0 })
|
||||
|
||||
const canBatchActive = computed(
|
||||
() => selectedRows.value.length > 0 && selectedRows.value.every((r) => r.garmentStatus === 'zc')
|
||||
)
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const dialogTitle = ref('新增洁净服')
|
||||
const isEdit = ref(false)
|
||||
@@ -587,8 +660,8 @@
|
||||
const formData = reactive({
|
||||
garmentCode: '',
|
||||
garmentName: '',
|
||||
washDiscardLimit: 50,
|
||||
sterilizeDiscardLimit: 30,
|
||||
washDiscardLimit: 10,
|
||||
sterilizeDiscardLimit: 10,
|
||||
inboundDate: '',
|
||||
remark: ''
|
||||
})
|
||||
@@ -602,23 +675,35 @@
|
||||
|
||||
const viewVisible = ref(false)
|
||||
const viewRow = ref<GarmentItem | null>(null)
|
||||
const viewWashLogData = ref<any[]>([])
|
||||
const viewWashLogLoading = ref(false)
|
||||
const viewSterLogData = ref<any[]>([])
|
||||
const viewSterLogLoading = ref(false)
|
||||
|
||||
const discardVisible = ref(false)
|
||||
const discardLoading = ref(false)
|
||||
const discardFormRef = ref()
|
||||
const discardMode = ref<'single' | 'batch'>('single')
|
||||
const discardTargetIds = ref<string[]>([])
|
||||
const discardTargetLabel = ref('')
|
||||
const discardTableRef = ref()
|
||||
const discardTableData = ref<GarmentItem[]>([])
|
||||
const discardSelectedRows = ref<GarmentItem[]>([])
|
||||
const discardForm = reactive({ discardDate: todayStr(), remark: '' })
|
||||
const discardRules = {
|
||||
discardDate: [{ required: true, message: '请选择废弃日期', trigger: 'change' }]
|
||||
}
|
||||
const discardTargetLabel = computed(() => {
|
||||
const rows = discardSelectedRows.value
|
||||
if (!rows.length) return ''
|
||||
if (rows.length === 1) return `${rows[0].garmentCode} ${rows[0].garmentName}`
|
||||
return `共 ${rows.length} 件`
|
||||
})
|
||||
|
||||
const batchRegisterVisible = ref(false)
|
||||
const batchRegisterMode = ref<'wash' | 'sterilize'>('wash')
|
||||
const batchRegisterLoading = ref(false)
|
||||
const batchRegisterFormRef = ref()
|
||||
const batchRegisterRows = ref<GarmentItem[]>([])
|
||||
const batchRegisterTableRef = ref()
|
||||
const batchRegisterTableData = ref<GarmentItem[]>([])
|
||||
const batchRegisterSelectedRows = ref<GarmentItem[]>([])
|
||||
const batchRegisterForm = reactive({
|
||||
eventTime: nowDateTimeStr(),
|
||||
operatorName: '',
|
||||
@@ -669,35 +754,57 @@
|
||||
operatorName: [{ required: true, message: '请输入登记人', trigger: 'blur' }]
|
||||
}
|
||||
|
||||
const viewSections = computed(() => {
|
||||
if (!viewRow.value) return []
|
||||
const row = viewRow.value
|
||||
const alertTags: string[] = []
|
||||
if (row.washLimitReached) alertTags.push('清洗达限')
|
||||
if (row.sterilizeLimitReached) alertTags.push('灭菌达限')
|
||||
return [
|
||||
{
|
||||
title: '基本信息',
|
||||
fields: [
|
||||
{ label: '编号', value: row.garmentCode },
|
||||
{ label: '名称', value: row.garmentName },
|
||||
{ label: '入库日期', value: row.inboundDate },
|
||||
{ label: '清洗次数', value: `${row.washCount}/${row.washDiscardLimit}` },
|
||||
{ label: '灭菌次数', value: `${row.sterilizeCount}/${row.sterilizeDiscardLimit}` },
|
||||
{
|
||||
label: '状态',
|
||||
value: garmentStatusLabel(row.garmentStatus),
|
||||
tagType: garmentStatusTagType(row.garmentStatus)
|
||||
},
|
||||
{ label: '废弃日期', value: row.discardDate || '—' },
|
||||
{ label: '提醒', value: alertTags.length ? alertTags.join('、') : '—' },
|
||||
{ label: '备注', value: row.remark, span: true },
|
||||
{ label: '创建时间', value: row.createTime },
|
||||
{ label: '更新时间', value: row.updateTime }
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
||||
async function loadActiveGarments() {
|
||||
return fetchAllPagedRecords((page, pageSize) =>
|
||||
fetchCleanroomGarmentList({ page, pageSize, garmentStatus: 'zc' })
|
||||
)
|
||||
}
|
||||
|
||||
function syncTableSelection(
|
||||
tableRef: { value?: { clearSelection: () => void; toggleRowSelection: (row: GarmentItem, selected?: boolean) => void } },
|
||||
rows: GarmentItem[],
|
||||
selected: GarmentItem[]
|
||||
) {
|
||||
nextTick(() => {
|
||||
const table = tableRef.value
|
||||
if (!table) return
|
||||
table.clearSelection()
|
||||
const selectedIds = new Set(selected.map((r) => r.id))
|
||||
rows.forEach((row) => {
|
||||
if (selectedIds.has(row.id)) table.toggleRowSelection(row, true)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function handleBatchRegisterSelectionChange(rows: GarmentItem[]) {
|
||||
batchRegisterSelectedRows.value = rows
|
||||
}
|
||||
|
||||
function handleDiscardSelectionChange(rows: GarmentItem[]) {
|
||||
discardSelectedRows.value = rows
|
||||
}
|
||||
|
||||
async function loadViewLogs(garmentId: string) {
|
||||
viewWashLogLoading.value = true
|
||||
viewSterLogLoading.value = true
|
||||
try {
|
||||
const [washRes, sterRes] = await Promise.all([
|
||||
fetchCleanroomGarmentWashLogList({ page: 1, pageSize: 100, garmentId }),
|
||||
fetchCleanroomGarmentSterilizeLogList({ page: 1, pageSize: 100, garmentId })
|
||||
])
|
||||
viewWashLogData.value = washRes.list || []
|
||||
viewSterLogData.value = sterRes.list || []
|
||||
} finally {
|
||||
viewWashLogLoading.value = false
|
||||
viewSterLogLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleView(row: GarmentItem) {
|
||||
viewRow.value = row
|
||||
viewVisible.value = true
|
||||
loadViewLogs(row.id)
|
||||
}
|
||||
|
||||
async function loadData() {
|
||||
loading.value = true
|
||||
@@ -736,8 +843,8 @@
|
||||
function resetForm() {
|
||||
formData.garmentCode = ''
|
||||
formData.garmentName = ''
|
||||
formData.washDiscardLimit = 50
|
||||
formData.sterilizeDiscardLimit = 30
|
||||
formData.washDiscardLimit = 10
|
||||
formData.sterilizeDiscardLimit = 10
|
||||
formData.inboundDate = todayStr()
|
||||
formData.remark = ''
|
||||
editingId.value = null
|
||||
@@ -792,16 +899,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
function handleView(row: GarmentItem) {
|
||||
viewRow.value = row
|
||||
viewVisible.value = true
|
||||
}
|
||||
|
||||
function handleDropdownCommand(command: string, row: GarmentItem) {
|
||||
if (command === 'edit') handleEdit(row)
|
||||
if (command === 'delete') handleDelete(row)
|
||||
}
|
||||
|
||||
async function handleDelete(row: GarmentItem) {
|
||||
await ElMessageBox.confirm(`确定要删除洁净服「${row.garmentName}」吗?`, '提示', { type: 'warning' })
|
||||
await fetchDeleteCleanroomGarment(row.id)
|
||||
@@ -821,40 +918,35 @@
|
||||
}, fullscreenLoadingText.batchDelete)
|
||||
}
|
||||
|
||||
function handleDiscard(row: GarmentItem) {
|
||||
discardMode.value = 'single'
|
||||
discardTargetIds.value = [row.id]
|
||||
discardTargetLabel.value = `${row.garmentCode} ${row.garmentName}`
|
||||
discardForm.discardDate = todayStr()
|
||||
discardForm.remark = ''
|
||||
discardVisible.value = true
|
||||
}
|
||||
|
||||
function openBatchDiscard() {
|
||||
discardMode.value = 'batch'
|
||||
discardTargetIds.value = selectedRows.value.filter((r) => r.garmentStatus === 'zc').map((r) => r.id)
|
||||
discardTargetLabel.value = `共 ${discardTargetIds.value.length} 件`
|
||||
async function openBatchDiscard() {
|
||||
discardForm.discardDate = todayStr()
|
||||
discardForm.remark = ''
|
||||
discardVisible.value = true
|
||||
discardTableData.value = await loadActiveGarments()
|
||||
const preSelected = selectedRows.value.filter((r) => r.garmentStatus === 'zc')
|
||||
discardSelectedRows.value = preSelected.filter((r) =>
|
||||
discardTableData.value.some((d) => d.id === r.id)
|
||||
)
|
||||
syncTableSelection(discardTableRef, discardTableData.value, discardSelectedRows.value)
|
||||
}
|
||||
|
||||
async function submitDiscard() {
|
||||
await discardFormRef.value?.validate?.()
|
||||
const ids = discardSelectedRows.value.map((r) => r.id)
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请至少选择一件洁净服')
|
||||
return
|
||||
}
|
||||
discardLoading.value = true
|
||||
try {
|
||||
const payload = {
|
||||
discardDate: discardForm.discardDate,
|
||||
remark: discardForm.remark?.trim() || undefined
|
||||
}
|
||||
if (discardMode.value === 'single' && discardTargetIds.value[0]) {
|
||||
await fetchDiscardCleanroomGarment(discardTargetIds.value[0], payload)
|
||||
} else {
|
||||
await fetchBatchDiscardCleanroomGarments({
|
||||
garmentIds: discardTargetIds.value,
|
||||
...payload
|
||||
})
|
||||
}
|
||||
await fetchBatchDiscardCleanroomGarments({
|
||||
garmentIds: ids,
|
||||
...payload
|
||||
})
|
||||
ElMessage.success('废弃成功')
|
||||
discardVisible.value = false
|
||||
await loadData()
|
||||
@@ -865,22 +957,32 @@
|
||||
}
|
||||
}
|
||||
|
||||
function openBatchWash() {
|
||||
async function openBatchWash() {
|
||||
batchRegisterMode.value = 'wash'
|
||||
batchRegisterRows.value = selectedRows.value.filter((r) => r.garmentStatus === 'zc')
|
||||
batchRegisterForm.eventTime = nowDateTimeStr()
|
||||
batchRegisterForm.operatorName = defaultOperatorName()
|
||||
batchRegisterForm.remark = ''
|
||||
batchRegisterVisible.value = true
|
||||
batchRegisterTableData.value = await loadActiveGarments()
|
||||
const preSelected = selectedRows.value.filter((r) => r.garmentStatus === 'zc')
|
||||
batchRegisterSelectedRows.value = preSelected.filter((r) =>
|
||||
batchRegisterTableData.value.some((d) => d.id === r.id)
|
||||
)
|
||||
syncTableSelection(batchRegisterTableRef, batchRegisterTableData.value, batchRegisterSelectedRows.value)
|
||||
}
|
||||
|
||||
function openBatchSterilize() {
|
||||
async function openBatchSterilize() {
|
||||
batchRegisterMode.value = 'sterilize'
|
||||
batchRegisterRows.value = selectedRows.value.filter((r) => r.garmentStatus === 'zc')
|
||||
batchRegisterForm.eventTime = nowDateTimeStr()
|
||||
batchRegisterForm.operatorName = defaultOperatorName()
|
||||
batchRegisterForm.remark = ''
|
||||
batchRegisterVisible.value = true
|
||||
batchRegisterTableData.value = await loadActiveGarments()
|
||||
const preSelected = selectedRows.value.filter((r) => r.garmentStatus === 'zc')
|
||||
batchRegisterSelectedRows.value = preSelected.filter((r) =>
|
||||
batchRegisterTableData.value.some((d) => d.id === r.id)
|
||||
)
|
||||
syncTableSelection(batchRegisterTableRef, batchRegisterTableData.value, batchRegisterSelectedRows.value)
|
||||
}
|
||||
|
||||
function warnNeedAttention(items: any[]) {
|
||||
@@ -892,9 +994,13 @@
|
||||
|
||||
async function submitBatchRegister() {
|
||||
await batchRegisterFormRef.value?.validate?.()
|
||||
const ids = batchRegisterSelectedRows.value.map((r) => r.id)
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请至少选择一件洁净服')
|
||||
return
|
||||
}
|
||||
batchRegisterLoading.value = true
|
||||
try {
|
||||
const ids = batchRegisterRows.value.map((r) => r.id)
|
||||
const payload = {
|
||||
garmentIds: ids,
|
||||
operatorName: batchRegisterForm.operatorName.trim(),
|
||||
@@ -1096,9 +1202,53 @@
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.discard-tip {
|
||||
margin: 0;
|
||||
.discard-tip,
|
||||
.batch-register-tip {
|
||||
margin: 8px 0 0;
|
||||
font-size: 13px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
|
||||
.view-dialog-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.view-base-info {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px 24px;
|
||||
}
|
||||
|
||||
.view-info-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.view-info-label {
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.view-info-value {
|
||||
color: var(--mint-text, #334155);
|
||||
}
|
||||
|
||||
.view-log-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.view-log-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--mint-text, #334155);
|
||||
}
|
||||
</style>
|
||||
@@ -1,17 +1,50 @@
|
||||
<!-- 生产管理 — 我的物料领用记录 -->
|
||||
<!-- 生产管理 — 我的物料领用记录(含消耗明细 Tab)-->
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<section class="panel">
|
||||
<div class="panel-top">
|
||||
<h2 class="title-bar-heading">我的物料领用记录</h2>
|
||||
</div>
|
||||
<ProductionMaterialUsageTab mine-only />
|
||||
|
||||
<div class="panel-pill-tabs">
|
||||
<div class="panel-pill-tabs__track" role="tablist">
|
||||
<button
|
||||
v-for="tab in TABS"
|
||||
:key="tab.name"
|
||||
type="button"
|
||||
role="tab"
|
||||
class="panel-pill-tabs__btn"
|
||||
:class="{ 'is-active': activeTab === tab.name }"
|
||||
:aria-selected="activeTab === tab.name"
|
||||
@click="handleTabChange(tab.name)"
|
||||
>
|
||||
{{ tab.label }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ProductionMaterialUsageTab v-if="activeTab === 'usage'" mine-only />
|
||||
|
||||
<MaterialConsumptionTab v-if="activeTab === 'consumption'" mine-only />
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import ProductionMaterialUsageTab from '../production-material/ProductionMaterialUsageTab.vue'
|
||||
import MaterialConsumptionTab from '../production-material/MaterialConsumptionTab.vue'
|
||||
|
||||
defineOptions({ name: 'ProductionMyMaterialUsage' })
|
||||
|
||||
const TABS = [
|
||||
{ name: 'usage', label: '领用记录' },
|
||||
{ name: 'consumption', label: '消耗明细' }
|
||||
] as const
|
||||
|
||||
const activeTab = ref<(typeof TABS)[number]['name']>('usage')
|
||||
|
||||
function handleTabChange(tab: (typeof TABS)[number]['name']) {
|
||||
activeTab.value = tab
|
||||
}
|
||||
</script>
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="filter-block">
|
||||
<el-form :model="searchForm" class="filter-form" label-position="top" @submit.prevent>
|
||||
<p class="filter-hint">{{ filterHint }}</p>
|
||||
<div class="filter-grid my-production-task-filter-main-grid">
|
||||
<div class="filter-grid my-production-task-filter-main-grid" :style="filterGridStyle">
|
||||
<el-form-item label="关键词">
|
||||
<el-input
|
||||
v-model="searchForm.keyword"
|
||||
@@ -67,46 +67,27 @@
|
||||
<el-option label="已完成" value="ywc" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div v-show="filterExpanded" id="my-production-task-filter-extra" class="filter-extra">
|
||||
<div class="filter-grid my-production-task-filter-extra-grid">
|
||||
<el-form-item v-if="activeTypeTab === 'outbound'" label="业务类型">
|
||||
<el-select v-model="searchForm.bizType" placeholder="全部" clearable style="width: 100%">
|
||||
<el-option label="中试服务" value="pilot_service" />
|
||||
<el-option label="临床应用" value="clinical_application" />
|
||||
<el-option label="基础实验" value="basic_experiment" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="filterTimeLabel">
|
||||
<el-date-picker
|
||||
v-model="createTimeRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
value-format="YYYY-MM-DD"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item v-if="activeTypeTab === 'outbound'" label="业务类型">
|
||||
<el-select v-model="searchForm.bizType" placeholder="全部" clearable style="width: 100%">
|
||||
<el-option label="中试服务" value="pilot_service" />
|
||||
<el-option label="临床应用" value="clinical_application" />
|
||||
<el-option label="基础实验" value="basic_experiment" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="filterTimeLabel">
|
||||
<el-date-picker
|
||||
v-model="createTimeRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
value-format="YYYY-MM-DD"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div class="filter-actions">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
class="btn-filter-toggle"
|
||||
:aria-expanded="String(filterExpanded)"
|
||||
aria-controls="my-production-task-filter-extra"
|
||||
@click="filterExpanded = !filterExpanded"
|
||||
>
|
||||
<el-icon class="btn-filter-toggle-ic">
|
||||
<ArrowDown v-if="!filterExpanded" />
|
||||
<ArrowUp v-else />
|
||||
</el-icon>
|
||||
{{ filterExpanded ? '收起更多条件' : '展开更多条件' }}
|
||||
</el-button>
|
||||
<div class="filter-actions-end">
|
||||
<el-button class="btn-ghost" @click="handleReset"
|
||||
><el-icon><RefreshLeft /></el-icon>重置</el-button
|
||||
@@ -131,18 +112,26 @@
|
||||
:preset-tasks-by-work-order-id="presetTasksByWorkOrderId"
|
||||
@view="handleView"
|
||||
@tasks-changed="handleWorkOrderTasksChanged"
|
||||
@open-sample-reception="handleOpenSampleReception"
|
||||
@page-change="onWorkOrderPageChange"
|
||||
@page-size-change="onWorkOrderPageSizeChange"
|
||||
/>
|
||||
|
||||
<ProductionWorkOrderViewDialogHost ref="viewDialogHostRef" />
|
||||
|
||||
<SampleReceptionDialog
|
||||
v-model="sampleReceptionDialogVisible"
|
||||
:sample-code="sampleReceptionSampleCode"
|
||||
:source-type="sampleReceptionSourceType"
|
||||
@success="handleSampleReceptionSuccess"
|
||||
/>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, onMounted } from 'vue'
|
||||
import { Search, RefreshLeft, ArrowDown, ArrowUp } from '@element-plus/icons-vue'
|
||||
import { Search, RefreshLeft } from '@element-plus/icons-vue'
|
||||
import type { ProductionWorkOrderItem } from '@/api/production-work-order'
|
||||
import {
|
||||
fetchAllMineProductionTasks,
|
||||
@@ -154,12 +143,26 @@
|
||||
} from '@/utils/production-mine-task-groups'
|
||||
import ProductionWorkOrderCardList from '../production-work-order/ProductionWorkOrderCardList.vue'
|
||||
import ProductionWorkOrderViewDialogHost from '../production-work-order/ProductionWorkOrderViewDialogHost.vue'
|
||||
import SampleReceptionDialog from '../production-work-order/SampleReceptionDialog.vue'
|
||||
|
||||
defineOptions({ name: 'ProductionMyProductionTask' })
|
||||
|
||||
const taskSubListRefreshToken = ref(0)
|
||||
const viewDialogHostRef = ref<InstanceType<typeof ProductionWorkOrderViewDialogHost> | null>(null)
|
||||
|
||||
// ── 样本接收信息填写弹窗 ──────────────────────────────────
|
||||
const sampleReceptionDialogVisible = ref(false)
|
||||
const sampleReceptionSampleCode = ref('')
|
||||
const sampleReceptionSourceType = ref<string | undefined>(undefined)
|
||||
function handleOpenSampleReception(row: ProductionWorkOrderItem) {
|
||||
sampleReceptionSampleCode.value = row.sampleCode || ''
|
||||
sampleReceptionSourceType.value = row.receptionSource
|
||||
sampleReceptionDialogVisible.value = true
|
||||
}
|
||||
function handleSampleReceptionSuccess() {
|
||||
taskSubListRefreshToken.value += 1
|
||||
}
|
||||
|
||||
type WorkOrderTypeTab = 'inbound' | 'temporary' | 'outbound'
|
||||
|
||||
const WORK_ORDER_TYPE_TABS = [
|
||||
@@ -173,6 +176,10 @@
|
||||
const filterTimeLabel = computed(() =>
|
||||
activeTypeTab.value === 'outbound' ? '输注时间' : '创建时间'
|
||||
)
|
||||
const filterGridColumns = computed(() => (activeTypeTab.value === 'outbound' ? 5 : 4))
|
||||
const filterGridStyle = computed(() => ({
|
||||
gridTemplateColumns: `repeat(${filterGridColumns.value}, minmax(0, 1fr))`
|
||||
}))
|
||||
const filterHint = computed(() => {
|
||||
const timeHint =
|
||||
activeTypeTab.value === 'outbound'
|
||||
@@ -259,17 +266,12 @@
|
||||
searchForm.taskStatus = ''
|
||||
searchForm.bizType = ''
|
||||
createTimeRange.value = getDefaultLast30DaysRange()
|
||||
filterExpanded.value = false
|
||||
pagination.page = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleTypeTabChange() {
|
||||
pagination.page = 1
|
||||
filterExpanded.value = false
|
||||
if (activeTypeTab.value !== 'outbound') {
|
||||
searchForm.bizType = ''
|
||||
}
|
||||
loadData()
|
||||
}
|
||||
|
||||
@@ -314,21 +316,18 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.my-production-task-filter-main-grid,
|
||||
.my-production-task-filter-extra-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
.my-production-task-filter-main-grid {
|
||||
grid-template-columns: repeat(var(--my-production-task-filter-columns, 4), minmax(0, 1fr));
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.my-production-task-filter-main-grid,
|
||||
.my-production-task-filter-extra-grid {
|
||||
.my-production-task-filter-main-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.my-production-task-filter-main-grid,
|
||||
.my-production-task-filter-extra-grid {
|
||||
.my-production-task-filter-main-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,329 @@
|
||||
<!-- 生产物料库 · 消耗明细 Tab -->
|
||||
<!-- eslint-disable vue/no-v-model-argument -->
|
||||
<template>
|
||||
<div class="production-material-consumption-tab">
|
||||
<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-form-item>
|
||||
<el-form-item label="物料类型">
|
||||
<el-select v-model="searchForm.materialType" placeholder="全部" clearable>
|
||||
<el-option label="试剂" value="reagent" />
|
||||
<el-option label="耗材" value="consumable" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="时间范围">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
value-format="YYYY-MM-DD"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="filter-actions-row">
|
||||
<span class="filter-hint">查看配制消耗的子物料明细,关联配制单可跳转查看。</span>
|
||||
<div class="filter-actions-end">
|
||||
<el-button class="btn-ghost" @click="handleReset">
|
||||
<el-icon><RefreshLeft /></el-icon>重置
|
||||
</el-button>
|
||||
<el-button class="btn-main" type="primary" @click="handleSearch">
|
||||
<el-icon><Search /></el-icon>搜索
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<el-table class="list-table" :data="tableData" v-loading="loading" stripe row-key="id">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="68"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="(index) => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="materialCode"
|
||||
label="物料编码"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="materialName"
|
||||
label="物料名称"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column label="物料类型" min-width="90" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="row.materialType === 'reagent' ? 'success' : 'warning'" size="small">
|
||||
{{ row.materialType === 'reagent' ? '试剂' : '耗材' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="批次号" min-width="120" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.batchNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="stockInNo"
|
||||
label="入库编号"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ row.stockInNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="消耗数量" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ displayConsumptionQty(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="prepNo"
|
||||
label="关联配制单"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-link v-if="row.prepNo" type="primary" @click="handleViewPrep(row)">
|
||||
{{ row.prepNo }}
|
||||
</el-link>
|
||||
<span v-else>—</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="configuredMaterialName"
|
||||
label="产出配置试剂"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ row.configuredMaterialName || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="消耗时间" min-width="170" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.createTime || '—' }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
<el-pagination
|
||||
:current-page="pagination.page"
|
||||
:page-size="pagination.pageSize"
|
||||
:total="pagination.total"
|
||||
:page-sizes="[10, 20, 50]"
|
||||
layout="total, sizes, prev, pager, next"
|
||||
@size-change="(val) => ((pagination.page = 1), (pagination.pageSize = val), loadData())"
|
||||
@current-change="(val) => ((pagination.page = val), loadData())"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 配制单查看弹窗 -->
|
||||
<el-dialog
|
||||
v-model="prepViewVisible"
|
||||
title="查看配制详情"
|
||||
width="900px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
append-to-body
|
||||
modal-class="protocol-dialog-mask"
|
||||
destroy-on-close
|
||||
>
|
||||
<DialogFormBody :loading="prepViewLoading">
|
||||
<div v-if="prepDetail" class="prep-detail-wrap">
|
||||
<div class="prep-header-info">
|
||||
<div class="info-item">
|
||||
<span class="label">配制单号:</span>
|
||||
<span class="value">{{ prepDetail.prepNo }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">配置试剂:</span>
|
||||
<span class="value">{{ prepDetail.configuredMaterialName }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">配制时间:</span>
|
||||
<span class="value">{{ prepDetail.prepTime }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">产出数量:</span>
|
||||
<span class="value"
|
||||
>{{ prepDetail.outputQty }} {{ prepDetail.outputUnit || '' }}</span
|
||||
>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">操作人:</span>
|
||||
<span class="value">{{ prepDetail.createByName || '—' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="prep-lines-section">
|
||||
<div class="section-title">子物料消耗明细</div>
|
||||
<el-table :data="prepDetail.lines || []" stripe class="list-table">
|
||||
<el-table-column type="index" label="序号" min-width="56" align="center" />
|
||||
<el-table-column
|
||||
prop="componentMaterialName"
|
||||
label="物料名称"
|
||||
min-width="140"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column label="类型" min-width="80" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag
|
||||
:type="row.componentMaterialType === 'reagent' ? 'success' : 'warning'"
|
||||
size="small"
|
||||
>
|
||||
{{ row.componentMaterialType === 'reagent' ? '试剂' : '耗材' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="actualQty" label="消耗数量" min-width="100" align="center" />
|
||||
<el-table-column prop="usageUnit" label="单位" min-width="80" align="center" />
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</DialogFormBody>
|
||||
<template #footer>
|
||||
<el-button @click="prepViewVisible = false"
|
||||
><el-icon><Close /></el-icon>关闭</el-button
|
||||
>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref, reactive } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Search, RefreshLeft, Close } from '@element-plus/icons-vue'
|
||||
import {
|
||||
fetchMyProductionMaterialConsumptions,
|
||||
fetchProductionMaterialPrepDetail,
|
||||
type MaterialConsumption
|
||||
} from '@/api/production-material'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
mineOnly?: boolean
|
||||
}>(),
|
||||
{
|
||||
mineOnly: true
|
||||
}
|
||||
)
|
||||
|
||||
const searchForm = reactive<{
|
||||
keyword: string
|
||||
materialType: string
|
||||
}>({
|
||||
keyword: '',
|
||||
materialType: ''
|
||||
})
|
||||
|
||||
const dateRange = ref<[string, string] | null>(null)
|
||||
const tableData = ref<MaterialConsumption[]>([])
|
||||
const loading = ref(false)
|
||||
const pagination = reactive({ page: 1, pageSize: 10, total: 0 })
|
||||
|
||||
const prepViewVisible = ref(false)
|
||||
const prepViewLoading = ref(false)
|
||||
const prepDetail = ref<any>(null)
|
||||
|
||||
function displayConsumptionQty(row: MaterialConsumption) {
|
||||
const qty = Math.abs(Number(row.changeQty) || 0)
|
||||
const unit = (row.usageUnit || '').trim()
|
||||
return unit ? `${qty}${unit}` : String(qty)
|
||||
}
|
||||
|
||||
async function loadData() {
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await fetchMyProductionMaterialConsumptions({
|
||||
page: pagination.page,
|
||||
pageSize: pagination.pageSize,
|
||||
keyword: searchForm.keyword || undefined,
|
||||
materialType: searchForm.materialType || undefined,
|
||||
startTime: dateRange.value?.[0] || undefined,
|
||||
endTime: dateRange.value?.[1] || undefined
|
||||
})
|
||||
tableData.value = res.list || []
|
||||
pagination.total = res.total || 0
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
pagination.page = 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleReset() {
|
||||
searchForm.keyword = ''
|
||||
searchForm.materialType = ''
|
||||
dateRange.value = null
|
||||
handleSearch()
|
||||
}
|
||||
|
||||
async function handleViewPrep(row: MaterialConsumption) {
|
||||
if (!row.prepId) return
|
||||
prepViewVisible.value = true
|
||||
prepViewLoading.value = true
|
||||
try {
|
||||
prepDetail.value = await fetchProductionMaterialPrepDetail(row.prepId)
|
||||
} catch {
|
||||
ElMessage.error('加载配制详情失败')
|
||||
prepDetail.value = null
|
||||
} finally {
|
||||
prepViewLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.production-material-consumption-tab {
|
||||
.prep-detail-wrap {
|
||||
.prep-header-info {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
padding: 12px 16px;
|
||||
background: var(--el-fill-color-light);
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
.info-item {
|
||||
.label {
|
||||
color: var(--el-text-color-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
.value {
|
||||
color: var(--el-text-color-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
.prep-lines-section {
|
||||
.section-title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--el-text-color-regular);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
+115
-92
@@ -2,106 +2,126 @@
|
||||
<!-- eslint-disable vue/no-v-model-argument -->
|
||||
<template>
|
||||
<el-dialog
|
||||
v-model="visible"
|
||||
:model-value="visible"
|
||||
:title="isEdit ? '编辑配置试剂' : '新增配置试剂'"
|
||||
width="960px"
|
||||
class="dialog-form-layout"
|
||||
align-center
|
||||
append-to-body
|
||||
modal-class="protocol-dialog-mask"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
@closed="handleClosed"
|
||||
>
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-position="top"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
<div class="form-grid-2">
|
||||
<el-form-item label="物料编码" prop="materialCode">
|
||||
<el-input v-model="formData.materialCode" placeholder="请输入物料编码" :disabled="isEdit" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="materialName">
|
||||
<el-input v-model="formData.materialName" placeholder="请输入物料名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="规格型号">
|
||||
<el-input v-model="formData.specModel" placeholder="可选" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单位">
|
||||
<el-input v-model="formData.unit" placeholder="可选" />
|
||||
</el-form-item>
|
||||
<el-form-item label="预警库存">
|
||||
<el-input-number v-model="formData.warningQty" :min="0" :precision="4" style="width: 100%" />
|
||||
</el-form-item>
|
||||
<el-form-item label="状态">
|
||||
<el-select v-model="formData.status" style="width: 100%">
|
||||
<el-option label="正常" value="1" />
|
||||
<el-option label="停用" value="0" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
<el-input v-model="formData.remark" type="textarea" :rows="2" placeholder="可选" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div class="inner-table-toolbar" style="margin-top: 8px">
|
||||
<span class="inner-table-title">配方 BOM(试剂/耗材子项)</span>
|
||||
<el-button class="btn-ghost" size="small" @click="addFormulaLine">
|
||||
<el-icon><Plus /></el-icon>添加子项
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table :data="formulaLines" stripe class="list-table inner-table" max-height="280">
|
||||
<el-table-column type="index" label="序号" min-width="56" align="center" />
|
||||
<el-table-column label="子物料" min-width="220" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.componentMaterialId"
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
clearable
|
||||
placeholder="输入名称检索试剂/耗材"
|
||||
class="inner-cell-select"
|
||||
:loading="componentOptionsLoading"
|
||||
:remote-method="remoteSearchComponents"
|
||||
@visible-change="onComponentSelectVisible"
|
||||
@change="(id: string) => onComponentSelect(row, id)"
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in componentOptions"
|
||||
:key="opt.id"
|
||||
:label="`${opt.materialName}(${opt.materialCode})`"
|
||||
:value="opt.id"
|
||||
/>
|
||||
<DialogFormBody :loading="saving" body-class="min-h-[200px]">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-position="top"
|
||||
scroll-to-error
|
||||
:scroll-into-view-options="{ behavior: 'smooth', block: 'center' }"
|
||||
>
|
||||
<div class="form-grid-2">
|
||||
<el-form-item label="物料编码" prop="materialCode">
|
||||
<el-input
|
||||
v-model="formData.materialCode"
|
||||
placeholder="请输入物料编码"
|
||||
:disabled="isEdit"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称" prop="materialName">
|
||||
<el-input v-model="formData.materialName" placeholder="请输入物料名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="规格型号">
|
||||
<el-input v-model="formData.specModel" placeholder="可选" />
|
||||
</el-form-item>
|
||||
<el-form-item label="单位">
|
||||
<el-input v-model="formData.unit" placeholder="可选" />
|
||||
</el-form-item>
|
||||
<el-form-item label="预警库存">
|
||||
<el-input-number
|
||||
v-model="formData.warningQty"
|
||||
:min="0"
|
||||
:precision="4"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态">
|
||||
<el-select v-model="formData.status" style="width: 100%">
|
||||
<el-option label="正常" value="1" />
|
||||
<el-option label="停用" value="0" />
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类型" min-width="90" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="productionMaterialTypeTagType(row.componentMaterialType)" size="small">
|
||||
{{ productionMaterialTypeLabel(row.componentMaterialType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="标准用量" min-width="120" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input-number v-model="row.standardQty" :min="0.0001" :precision="4" size="small" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" min-width="100" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input v-model="row.usageUnit" size="small" placeholder="单位" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="80" align="center">
|
||||
<template #default="{ $index }">
|
||||
<el-button link type="danger" size="small" @click="formulaLines.splice($index, 1)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
<el-input v-model="formData.remark" type="textarea" :rows="2" placeholder="可选" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div class="inner-table-toolbar" style="margin-top: 8px">
|
||||
<span class="inner-table-title">配方 BOM(试剂/耗材子项)</span>
|
||||
<el-button class="btn-ghost" size="small" @click="addFormulaLine">
|
||||
<el-icon><Plus /></el-icon>添加子项
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table :data="formulaLines" stripe class="list-table inner-table" max-height="280">
|
||||
<el-table-column type="index" label="序号" min-width="56" align="center" />
|
||||
<el-table-column label="子物料" min-width="220" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.componentMaterialId"
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
clearable
|
||||
placeholder="输入名称检索试剂/耗材"
|
||||
class="inner-cell-select"
|
||||
:loading="componentOptionsLoading"
|
||||
:remote-method="remoteSearchComponents"
|
||||
@visible-change="onComponentSelectVisible"
|
||||
@change="(id: string) => onComponentSelect(row, id)"
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in componentOptions"
|
||||
:key="opt.id"
|
||||
:label="`${opt.materialName}(${opt.materialCode})`"
|
||||
:value="opt.id"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类型" min-width="90" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="productionMaterialTypeTagType(row.componentMaterialType)" size="small">
|
||||
{{ productionMaterialTypeLabel(row.componentMaterialType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="标准用量" min-width="120" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input-number
|
||||
v-model="row.standardQty"
|
||||
:min="0.0001"
|
||||
:precision="4"
|
||||
size="small"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" min-width="100" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input v-model="row.usageUnit" size="small" placeholder="单位" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="80" align="center">
|
||||
<template #default="{ $index }">
|
||||
<el-button link type="danger" size="small" @click="formulaLines.splice($index, 1)"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
</DialogFormBody>
|
||||
<template #footer>
|
||||
<el-button @click="visible = false">
|
||||
<el-icon><Close /></el-icon>取消
|
||||
@@ -117,6 +137,7 @@
|
||||
import { ref, reactive } from 'vue'
|
||||
import { ElMessage, type FormInstance, type FormRules } from 'element-plus'
|
||||
import { Plus, Close, Check } from '@element-plus/icons-vue'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import {
|
||||
fetchCreateProductionMaterial,
|
||||
fetchUpdateProductionMaterial,
|
||||
@@ -156,7 +177,9 @@
|
||||
const componentOptions = ref<ProductionMaterialOption[]>([])
|
||||
const componentOptionsLoading = ref(false)
|
||||
|
||||
function mapProductionMaterialListToOptions(list: Array<Record<string, any>>): ProductionMaterialOption[] {
|
||||
function mapProductionMaterialListToOptions(
|
||||
list: Array<Record<string, any>>
|
||||
): ProductionMaterialOption[] {
|
||||
return (list || []).map((m) => ({
|
||||
id: String(m.id || ''),
|
||||
label: `${m.materialName || ''}(${m.materialCode || ''})`.trim(),
|
||||
|
||||
+923
-410
File diff suppressed because it is too large.
Load diff
+725
-393
File diff suppressed because it is too large.
Load diff
+409
-355
@@ -2,359 +2,360 @@
|
||||
<!-- eslint-disable vue/no-v-model-argument -->
|
||||
<template>
|
||||
<div class="production-material-usage-tab">
|
||||
<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-form-item>
|
||||
<el-form-item label="物料筛选">
|
||||
<el-select
|
||||
v-model="searchForm.materialId"
|
||||
placeholder="输入物料名称检索"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
:loading="materialOptionsLoading"
|
||||
:remote-method="remoteSearchMaterials"
|
||||
@visible-change="onMaterialSelectVisible"
|
||||
>
|
||||
<el-option
|
||||
v-for="m in materialOptions"
|
||||
:key="m.id"
|
||||
:label="m.label"
|
||||
:value="m.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料类型">
|
||||
<el-select v-model="searchForm.materialType" placeholder="全部" clearable>
|
||||
<el-option label="试剂" value="reagent" />
|
||||
<el-option label="耗材" value="consumable" />
|
||||
<el-option label="配置试剂" value="configured_reagent" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="变动类型">
|
||||
<el-select v-model="searchForm.changeType" placeholder="全部" clearable>
|
||||
<el-option v-if="!mineOnly" label="入库" value="in" />
|
||||
<el-option label="出库" value="out" />
|
||||
<el-option label="任务使用" value="use" />
|
||||
<el-option label="废弃" value="discard" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="时间范围">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
value-format="YYYY-MM-DD"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<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-form-item>
|
||||
<el-form-item label="物料筛选">
|
||||
<el-select
|
||||
v-model="searchForm.materialId"
|
||||
placeholder="输入物料名称检索"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
:loading="materialOptionsLoading"
|
||||
:remote-method="remoteSearchMaterials"
|
||||
@visible-change="onMaterialSelectVisible"
|
||||
>
|
||||
<el-option v-for="m in materialOptions" :key="m.id" :label="m.label" :value="m.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料类型">
|
||||
<el-select v-model="searchForm.materialType" placeholder="全部" clearable>
|
||||
<el-option label="试剂" value="reagent" />
|
||||
<el-option label="耗材" value="consumable" />
|
||||
<el-option label="配置试剂" value="configured_reagent" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="变动类型">
|
||||
<el-select v-model="searchForm.changeType" placeholder="全部" clearable>
|
||||
<el-option v-if="!mineOnly" label="入库" value="in" />
|
||||
<el-option label="出库" value="out" />
|
||||
<el-option label="任务使用" value="use" />
|
||||
<el-option label="废弃" value="discard" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="时间范围">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
value-format="YYYY-MM-DD"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="filter-actions-row">
|
||||
<span class="filter-hint">{{
|
||||
mineOnly
|
||||
? '查看本人物料领用记录,可按物料、批号、类型与时间范围筛选。'
|
||||
: '按物料、入库编号、批号、变动类型和时间范围查询变动记录。'
|
||||
}}</span>
|
||||
<div class="filter-actions-end">
|
||||
<el-button class="btn-ghost" @click="handleReset">
|
||||
<el-icon><RefreshLeft /></el-icon>重置
|
||||
</el-button>
|
||||
<el-button class="btn-main" type="primary" @click="handleSearch">
|
||||
<el-icon><Search /></el-icon>搜索
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="filter-actions-row">
|
||||
<span class="filter-hint">{{
|
||||
mineOnly
|
||||
? '查看本人物料领用记录,可按物料、批号、类型与时间范围筛选。'
|
||||
: '按物料、入库编号、批号、变动类型和时间范围查询变动记录。'
|
||||
}}</span>
|
||||
<div class="filter-actions-end">
|
||||
<el-button class="btn-ghost" @click="handleReset">
|
||||
<el-icon><RefreshLeft /></el-icon>重置
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<el-table
|
||||
class="list-table"
|
||||
:data="tableData"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
row-key="id"
|
||||
@row-dblclick="handleView"
|
||||
>
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="68"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="(index) => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="materialCode"
|
||||
label="物料编码"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="materialName"
|
||||
label="物料名称"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column label="物料类型" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="productionMaterialTypeTagType(row.materialType)" size="small">
|
||||
{{ productionMaterialTypeLabel(row.materialType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="stockInNo"
|
||||
label="入库编号"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ row.stockInNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库日期" min-width="110" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.stockInDate || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="货号" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.catalogNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="批号" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.batchNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="厂家"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">{{ row.manufacturer || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价(元)" min-width="110" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ row.unitPrice != null ? formatMoneyDisplay(row.unitPrice) : '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="金额(元)" min-width="110" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ row.amount != null ? formatMoneyDisplay(row.amount) : '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="changeType"
|
||||
label="变动类型"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="getChangeTypeTagType(row)" size="small">
|
||||
{{ getChangeTypeLabel(row) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="changeQty"
|
||||
label="领用数量"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ displayUsageQty(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="变动前库存" min-width="120" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ displayStockBefore(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="stockAfter"
|
||||
label="变动后库存"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column label="使用状态" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<template v-if="isManualOutRow(row)">
|
||||
<el-tag :type="getRequisitionStatusTagType(row)" size="small">
|
||||
{{ getRequisitionStatusLabel(row) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<span v-else>—</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="sourceType"
|
||||
label="来源类型"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="getSourceTagType(row.sourceType)" size="small">
|
||||
{{ getSourceLabel(row.sourceType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="!mineOnly"
|
||||
label="领用人"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ displayReceiver(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="用途"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ displayPurpose(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="领用时间" min-width="170" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ displayUseTime(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
label="备注"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
prop="createByName"
|
||||
label="操作人"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ row.createByName || row.createBy || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="变动时间"
|
||||
min-width="170"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
min-width="260"
|
||||
fixed="right"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div class="table-op-btns">
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-main" type="primary" @click="handleSearch">
|
||||
<el-icon><Search /></el-icon>搜索
|
||||
<el-button
|
||||
v-if="canMarkFullyUsed(row)"
|
||||
class="btn-op-item"
|
||||
:loading="markFullyUsedLoadingId === row.id"
|
||||
@click="handleMarkFullyUsed(row)"
|
||||
>
|
||||
<el-icon><CircleCheck /></el-icon>标记已使用完
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
<el-pagination
|
||||
:current-page="pagination.page"
|
||||
:page-size="pagination.pageSize"
|
||||
:total="pagination.total"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
layout="total, sizes, prev, pager, next"
|
||||
@size-change="(val) => ((pagination.page = 1), (pagination.pageSize = val), loadData())"
|
||||
@current-change="(val) => ((pagination.page = val), loadData())"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<el-table
|
||||
class="list-table"
|
||||
:data="tableData"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
row-key="id"
|
||||
@row-dblclick="handleView"
|
||||
>
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="68"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="(index) => (pagination.page - 1) * pagination.pageSize + index + 1"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="materialCode"
|
||||
label="物料编码"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="materialName"
|
||||
label="物料名称"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column label="物料类型" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="productionMaterialTypeTagType(row.materialType)" size="small">
|
||||
{{ productionMaterialTypeLabel(row.materialType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="stockInNo"
|
||||
label="入库编号"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ row.stockInNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库日期" min-width="110" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.stockInDate || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="货号" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.catalogNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="批号" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.batchNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="厂家" min-width="120" align="center" header-align="center" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.manufacturer || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价(元)" min-width="110" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ row.unitPrice != null ? formatMoneyDisplay(row.unitPrice) : '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="金额(元)" min-width="110" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ row.amount != null ? formatMoneyDisplay(row.amount) : '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="changeType"
|
||||
label="变动类型"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="getChangeTypeTagType(row)" size="small">
|
||||
{{ getChangeTypeLabel(row) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="changeQty"
|
||||
label="领用数量"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ displayUsageQty(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="变动前库存" min-width="120" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ displayStockBefore(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="stockAfter"
|
||||
label="变动后库存"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="productionTaskNo"
|
||||
label="关联任务号"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ row.productionTaskNo || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="sourceType"
|
||||
label="来源类型"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="getSourceTagType(row.sourceType)" size="small">
|
||||
{{ getSourceLabel(row.sourceType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="!mineOnly"
|
||||
label="领用人"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ displayReceiver(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="用途"
|
||||
min-width="120"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ displayPurpose(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="领用时间" min-width="170" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
{{ displayUseTime(row) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
label="备注"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
prop="createByName"
|
||||
label="操作人"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ row.createByName || row.createBy || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="变动时间"
|
||||
min-width="170"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
min-width="260"
|
||||
fixed="right"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div class="table-op-btns">
|
||||
<el-button class="btn-op-item" @click="handleView(row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="canMarkFullyUsed(row)"
|
||||
class="btn-op-item"
|
||||
:loading="markFullyUsedLoadingId === row.id"
|
||||
@click="handleMarkFullyUsed(row)"
|
||||
>
|
||||
<el-icon><CircleCheck /></el-icon>标记已使用完
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
<el-pagination
|
||||
:current-page="pagination.page"
|
||||
:page-size="pagination.pageSize"
|
||||
:total="pagination.total"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
layout="total, sizes, prev, pager, next"
|
||||
@size-change="(val) => ((pagination.page = 1), (pagination.pageSize = val), loadData())"
|
||||
@current-change="(val) => ((pagination.page = val), loadData())"
|
||||
/>
|
||||
<!-- 查看弹窗 -->
|
||||
<SystemViewDialog
|
||||
v-model:visible="viewVisible"
|
||||
:title="viewRow?.materialName || '变动记录详情'"
|
||||
:icon="Document"
|
||||
:meta="viewRow?.createTime || ''"
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
>
|
||||
<template #task-consumptions>
|
||||
<div v-if="viewTaskUsages.length" class="view-subtable-wrap">
|
||||
<el-table :data="viewTaskUsages" stripe class="list-table view-subtable">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="56"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="(index) => index + 1"
|
||||
/>
|
||||
<el-table-column label="来源" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="getLinkedUsageSourceTagType(row.sourceType)" size="small">
|
||||
{{ getLinkedUsageSourceLabel(row.sourceType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="关联单号" min-width="160" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ displayLinkedUsageRef(row) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="消耗数量" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ displayTaskUsageQty(row) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" min-width="72" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.usageUnit || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作人" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.createByName || row.createBy || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="登记时间" min-width="170" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.createTime || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
label="备注"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">{{ row.remark || '—' }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 查看弹窗 -->
|
||||
<SystemViewDialog
|
||||
v-model:visible="viewVisible"
|
||||
:title="viewRow?.materialName || '变动记录详情'"
|
||||
:icon="Document"
|
||||
:meta="viewRow?.createTime || ''"
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
>
|
||||
<template #task-consumptions>
|
||||
<div v-if="viewTaskUsages.length" class="view-subtable-wrap">
|
||||
<el-table :data="viewTaskUsages" stripe class="list-table view-subtable">
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
min-width="56"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:index="(index) => index + 1"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="productionTaskNo"
|
||||
label="生产任务号"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">{{ row.productionTaskNo || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="消耗数量" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ displayTaskUsageQty(row) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" min-width="72" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.usageUnit || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="填报人" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.createByName || row.createBy || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="登记时间" min-width="170" align="center" header-align="center">
|
||||
<template #default="{ row }">{{ row.createTime || '—' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
label="备注"
|
||||
min-width="140"
|
||||
align="center"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="{ row }">{{ row.remark || '—' }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<p v-else class="view-empty-hint">暂无关联的生产任务消耗记录</p>
|
||||
</template>
|
||||
</SystemViewDialog>
|
||||
<p v-else class="view-empty-hint">暂无关联的消耗明细</p>
|
||||
</template>
|
||||
</SystemViewDialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -434,7 +435,12 @@
|
||||
function displayReceiver(row: ProductionMaterialUsage) {
|
||||
if (isDiscardRow(row)) return '-'
|
||||
if (!isManualOutRow(row)) return '-'
|
||||
return (row.receiver || '').trim() || parseFromRemark(row.remark || '', 'receiver') || '-'
|
||||
return (
|
||||
(row.receiverName || '').trim() ||
|
||||
(row.receiver || '').trim() ||
|
||||
parseFromRemark(row.remark || '', 'receiver') ||
|
||||
'-'
|
||||
)
|
||||
}
|
||||
|
||||
function displayPurpose(row: ProductionMaterialUsage) {
|
||||
@@ -459,6 +465,26 @@
|
||||
return Math.abs(Number(row.changeQty) || 0)
|
||||
}
|
||||
|
||||
function getLinkedUsageSourceLabel(sourceType: string) {
|
||||
if (sourceType === 'prep_consume') return '配制消耗'
|
||||
return '任务使用'
|
||||
}
|
||||
|
||||
function getLinkedUsageSourceTagType(sourceType: string) {
|
||||
if (sourceType === 'prep_consume') return 'info' as const
|
||||
return 'primary' as const
|
||||
}
|
||||
|
||||
function displayLinkedUsageRef(row: ProductionMaterialUsage & { prepNo?: string; configuredMaterialName?: string }) {
|
||||
if (row.sourceType === 'prep_consume') {
|
||||
const prepNo = (row.prepNo || '').trim()
|
||||
const name = (row.configuredMaterialName || '').trim()
|
||||
if (prepNo && name) return `${prepNo} / ${name}`
|
||||
return prepNo || name || '—'
|
||||
}
|
||||
return row.productionTaskNo || row.taskNo || '—'
|
||||
}
|
||||
|
||||
function displayStockBefore(row: ProductionMaterialUsage) {
|
||||
if (row.stockBefore != null) return row.stockBefore
|
||||
const after = Number(row.stockAfter ?? 0)
|
||||
@@ -494,17 +520,29 @@
|
||||
|
||||
const markFullyUsedLoadingId = ref('')
|
||||
|
||||
function getRequisitionStatusLabel(row: ProductionMaterialUsage) {
|
||||
return (row.requisitionStatus || 'open') === 'closed' ? '已使用完' : '使用中'
|
||||
}
|
||||
|
||||
function getRequisitionStatusTagType(row: ProductionMaterialUsage) {
|
||||
return (row.requisitionStatus || 'open') === 'closed' ? 'success' : 'info'
|
||||
}
|
||||
|
||||
function canMarkFullyUsed(row: ProductionMaterialUsage) {
|
||||
return isManualOutRow(row) && (row.requisitionStatus || 'open') !== 'closed'
|
||||
}
|
||||
|
||||
async function handleMarkFullyUsed(row: ProductionMaterialUsage) {
|
||||
try {
|
||||
await ElMessageBox.confirm('确认该领用记录已全部使用完?标记后将不再出现在盘点待登记列表。', '标记已使用完', {
|
||||
type: 'warning',
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消'
|
||||
})
|
||||
await ElMessageBox.confirm(
|
||||
'确认该领用记录已全部使用完?标记后将不再出现在盘点待登记列表。',
|
||||
'标记已使用完',
|
||||
{
|
||||
type: 'warning',
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消'
|
||||
}
|
||||
)
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
@@ -518,7 +556,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
function mapProductionMaterialListToOptions(list: Array<Record<string, any>>): ProductionMaterialOption[] {
|
||||
function mapProductionMaterialListToOptions(
|
||||
list: Array<Record<string, any>>
|
||||
): ProductionMaterialOption[] {
|
||||
return (list || []).map((m) => ({
|
||||
id: String(m.id || ''),
|
||||
label: `${m.materialName || ''}${m.materialCode ? ` (${m.materialCode})` : ''}`.trim(),
|
||||
@@ -643,7 +683,6 @@
|
||||
},
|
||||
{ label: '变动前库存', value: String(displayStockBefore(row)) },
|
||||
{ label: '变动后库存', value: String(row.stockAfter ?? 0) },
|
||||
{ label: '关联任务号', value: row.productionTaskNo || '—' },
|
||||
{
|
||||
label: '来源类型',
|
||||
value: getSourceLabel(row.sourceType),
|
||||
@@ -661,6 +700,15 @@
|
||||
label: '领用时间',
|
||||
value: displayUseTime(row) === '-' ? '—' : displayUseTime(row)
|
||||
},
|
||||
...(isManualOutRow(row)
|
||||
? [
|
||||
{
|
||||
label: '使用状态',
|
||||
value: getRequisitionStatusLabel(row),
|
||||
tagType: getRequisitionStatusTagType(row) as any
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{ label: '备注', value: row.remark || '—', span: true },
|
||||
{ label: '操作人', value: row.createByName || row.createBy || '—' },
|
||||
{ label: '变动时间', value: row.createTime || '—' }
|
||||
@@ -669,7 +717,7 @@
|
||||
]
|
||||
if (isManualOutRow(row)) {
|
||||
sections.push({
|
||||
title: '生产任务消耗',
|
||||
title: '消耗明细',
|
||||
fields: [],
|
||||
slot: 'task-consumptions'
|
||||
})
|
||||
@@ -727,6 +775,12 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.production-material-usage-tab {
|
||||
.filter-grid {
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.table-op-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+9
-4
@@ -192,6 +192,13 @@
|
||||
</el-button>
|
||||
</span>
|
||||
</el-tooltip>
|
||||
<el-button
|
||||
v-if="activeTypeTab === 'inbound'"
|
||||
class="btn-op-item"
|
||||
@click="emit('open-sample-reception', row)"
|
||||
>
|
||||
<el-icon><EditPen /></el-icon>样本接收信息填写
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="!isMineMode && showCardDispatchComplete && canComplete(row)"
|
||||
class="btn-op-item"
|
||||
@@ -317,14 +324,12 @@
|
||||
'tasks-changed': []
|
||||
'page-change': [page: number]
|
||||
'page-size-change': [size: number]
|
||||
'open-sample-reception': [row: ProductionWorkOrderItem]
|
||||
}>()
|
||||
|
||||
const RECEPTION_OVER_HOURS_MS = 24 * 60 * 60 * 1000
|
||||
|
||||
/** 我的任务:仅查看;管理端入库/出库隐藏操作行,临时保留 */
|
||||
const showCardOpsRow = computed(
|
||||
() => isMineMode.value || props.activeTypeTab === 'temporary'
|
||||
)
|
||||
const showCardOpsRow = computed(() => true)
|
||||
|
||||
/** 入库/出库 Tab 展示派发/完成;临时 Tab 隐藏 */
|
||||
const showCardDispatchComplete = computed(
|
||||
|
||||
@@ -0,0 +1,818 @@
|
||||
<!-- 样本接收信息填写弹窗(入库生产工单入口) -->
|
||||
<template>
|
||||
<el-dialog
|
||||
:model-value="modelValue"
|
||||
:title="dialogTitle"
|
||||
width="920px"
|
||||
class="dialog-form-layout sample-reception-dialog"
|
||||
align-center
|
||||
append-to-body
|
||||
modal-class="protocol-dialog-mask"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
@update:model-value="(v) => emit('update:modelValue', v)"
|
||||
@closed="handleClosed"
|
||||
>
|
||||
<div v-loading="loading" class="sample-reception-dialog-body">
|
||||
<div v-if="!currentRow && !loading" class="empty-hint">
|
||||
暂无关联的样本信息,无法填写接收记录。
|
||||
</div>
|
||||
<template v-else-if="currentRow">
|
||||
<div class="detail-tabs">
|
||||
<div
|
||||
v-for="tab in receiveFormTabs"
|
||||
:key="tab.key"
|
||||
class="detail-tab"
|
||||
:class="{ active: activeReceiveFormTab === tab.key }"
|
||||
@click="scrollReceiveToSection(tab.key)"
|
||||
>
|
||||
{{ tab.label }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-form
|
||||
ref="receiveFormRef"
|
||||
:model="receiveForm"
|
||||
:rules="receiveRules"
|
||||
label-position="top"
|
||||
scroll-to-error
|
||||
class="protocol-form"
|
||||
>
|
||||
<div id="form-section-sample" class="form-tab-pane">
|
||||
<div class="section-card">
|
||||
<div class="section-title">
|
||||
<div class="section-title-left"><h3>样本信息</h3></div>
|
||||
</div>
|
||||
<div class="data-grid data-grid--4">
|
||||
<div class="data-item">
|
||||
<div class="data-label">协议状态</div>
|
||||
<div class="data-value">
|
||||
<el-tag
|
||||
:type="
|
||||
protocolStatusTagTypeBySource(
|
||||
String(currentRow.protocolStatus || ''),
|
||||
currentRow.sourceType || 'cell_storage'
|
||||
)
|
||||
"
|
||||
size="small"
|
||||
>
|
||||
{{
|
||||
protocolStatusLabelBySource(
|
||||
String(currentRow.protocolStatus || ''),
|
||||
currentRow.sourceType || 'cell_storage'
|
||||
)
|
||||
}}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本编码</div>
|
||||
<div class="data-value">{{ currentRow.sampleCode || '-' }}</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本类型</div>
|
||||
<div class="data-value">{{ currentRow.sampleTypeName || '-' }}</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">预计到达</div>
|
||||
<div class="data-value">{{ currentRow.etaTime || '-' }}</div>
|
||||
</div>
|
||||
<div class="data-item data-item--full">
|
||||
<div class="data-label">客户</div>
|
||||
<div class="data-value">
|
||||
{{ currentRow.motherName || '-' }} / {{ currentRow.newbornName || '-' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="form-section-transport" class="form-tab-pane">
|
||||
<div class="section-card">
|
||||
<div class="section-title">
|
||||
<div class="section-title-left"><h3>运输信息</h3></div>
|
||||
</div>
|
||||
<div class="data-grid data-grid--4">
|
||||
<div class="data-item">
|
||||
<div class="data-label">运输方式</div>
|
||||
<div class="data-value">
|
||||
{{ transportTypeLabel(String(currentRow.transportType || '')) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">预计到达</div>
|
||||
<div class="data-value">{{ currentRow.etaTime || '-' }}</div>
|
||||
</div>
|
||||
<template v-if="currentRow.transportType === 'kdys'">
|
||||
<div class="data-item">
|
||||
<div class="data-label">快递公司</div>
|
||||
<div class="data-value">{{ currentRow.expressCompanyName || '-' }}</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">快递单号</div>
|
||||
<div class="data-value">{{ currentRow.waybillNo || '-' }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="currentRow.transportType === 'ryxd'">
|
||||
<div class="data-item">
|
||||
<div class="data-label">携带人</div>
|
||||
<div class="data-value">{{ currentRow.carrierName || '-' }}</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">携带人电话</div>
|
||||
<div class="data-value">{{ currentRow.carrierPhone || '-' }}</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="form-section-reception" class="form-tab-pane">
|
||||
<div class="section-card">
|
||||
<div class="section-title">
|
||||
<div class="section-title-left"><h3>接收登记</h3></div>
|
||||
</div>
|
||||
<div class="form-grid form-grid--col4">
|
||||
<el-form-item label="样本接收时间" prop="receptionTime">
|
||||
<el-date-picker
|
||||
v-model="receiveForm.receptionTime"
|
||||
type="datetime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="选择接收时间"
|
||||
style="width: 100%"
|
||||
@change="onReceiveReceptionTimeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="经手人" prop="handlerUserId">
|
||||
<el-select
|
||||
v-model="receiveForm.handlerUserId"
|
||||
filterable
|
||||
placeholder="选择经手人"
|
||||
style="width: 100%"
|
||||
@change="onHandlerChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="u in userOptions"
|
||||
:key="String(u.value)"
|
||||
:label="String(u.label)"
|
||||
:value="String(u.value)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="接收温度(℃)">
|
||||
<el-input
|
||||
v-model="receiveForm.receiveTemperature"
|
||||
placeholder="如 4"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="体积(ml)">
|
||||
<el-input-number
|
||||
v-model="receiveForm.volumeMl"
|
||||
:min="0"
|
||||
:controls="false"
|
||||
placeholder="体积"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="净重(g)">
|
||||
<el-input-number
|
||||
v-model="receiveForm.netWeightG"
|
||||
:min="0"
|
||||
:controls="false"
|
||||
placeholder="净重"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否接收" prop="acceptConclusion">
|
||||
<el-radio-group
|
||||
v-model="receiveForm.acceptConclusion"
|
||||
@change="onReceiveAcceptConclusionChange"
|
||||
>
|
||||
<el-radio value="js">接收</el-radio>
|
||||
<el-radio value="bj">拒收</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="showLabStorageCodeField"
|
||||
label="实验室入库编码"
|
||||
prop="labStorageCode"
|
||||
>
|
||||
<template #label>
|
||||
实验室入库编码<span class="form-label-tip"
|
||||
>RK+接收日期+序号,保存后不可修改</span
|
||||
>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="receiveForm.labStorageCode"
|
||||
placeholder="自动生成"
|
||||
clearable
|
||||
:disabled="labStorageCodeReadonly"
|
||||
@input="onLabStorageCodeManualInput"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查项确认" class="form-col-span-2">
|
||||
<div v-if="activeCheckItems.length" class="check-list">
|
||||
<el-checkbox
|
||||
v-for="item in activeCheckItems"
|
||||
:key="item.id"
|
||||
v-model="checkValues[item.id]"
|
||||
>
|
||||
{{ item.itemName }}
|
||||
</el-checkbox>
|
||||
</div>
|
||||
<p v-else class="check-empty-hint">
|
||||
暂无启用的检查项,请先在「接收检查项配置」中维护。
|
||||
</p>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="form-grid form-grid--attachment">
|
||||
<ProtocolFinanceConfirmFields
|
||||
v-model:finance-remark="receiveForm.remark"
|
||||
v-model:attachments="attachments"
|
||||
remark-label="备注信息"
|
||||
attachment-label="接收附件"
|
||||
upload-folder="sample-reception"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</template>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="emit('update:modelValue', false)">
|
||||
<el-icon><Close /></el-icon>取消
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-main"
|
||||
type="primary"
|
||||
:loading="submitLoading"
|
||||
@click="submitReceive"
|
||||
>
|
||||
<el-icon><Check /></el-icon>{{ dialogMode === 'edit' ? '保存' : '提交' }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, watch } from 'vue'
|
||||
import { Close, Check } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import ProtocolFinanceConfirmFields from '@/components/business/protocol-finance-confirm-fields/index.vue'
|
||||
import type { FinanceAttachmentItem } from '@/components/business/protocol-finance-confirm-fields/finance-attachments'
|
||||
import { financeAttachmentsToUrlString } from '@/components/business/protocol-finance-confirm-fields/finance-attachments'
|
||||
import { transportTypeLabel } from '@/utils/qc-labels'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
import {
|
||||
fetchSampleReceptionBySampleCode,
|
||||
fetchSampleReceptionDetail,
|
||||
fetchSampleReceptionUpdate,
|
||||
fetchSampleReceptionSubmit,
|
||||
fetchSampleReceptionCheckItemsActive,
|
||||
fetchAllocateLabStorageCodes,
|
||||
type SampleReceptionCheckResult
|
||||
} from '@/api/sample-reception'
|
||||
import { fetchUserOptions } from '@/api/admin'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
|
||||
defineOptions({ name: 'SampleReceptionDialog' })
|
||||
|
||||
interface SampleReceptionCheckItem {
|
||||
id: string
|
||||
itemCode?: string
|
||||
itemName?: string
|
||||
item_name?: string
|
||||
orderNum?: number
|
||||
status?: string
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
/** 样本编码 */
|
||||
sampleCode: string
|
||||
/** 来源类型:cell_storage / research_donation */
|
||||
sourceType?: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
'update:modelValue': [visible: boolean]
|
||||
/** 保存成功后回调 */
|
||||
success: []
|
||||
}>()
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
const loading = ref(false)
|
||||
const submitLoading = ref(false)
|
||||
const dialogMode = ref<'create' | 'edit'>('create')
|
||||
const editingReceptionId = ref('')
|
||||
const receiveFormRef = ref()
|
||||
const userOptions = ref<Array<{ label: string; value: string }>>([])
|
||||
const attachments = ref<FinanceAttachmentItem[]>([])
|
||||
const activeCheckItems = ref<SampleReceptionCheckItem[]>([])
|
||||
const checkValues = reactive<Record<string, boolean>>({})
|
||||
const currentRow = ref<Record<string, unknown> | null>(null)
|
||||
const labStorageCodeManuallyEdited = ref(false)
|
||||
const lastAllocatedReceptionDate = ref('')
|
||||
const activeReceiveFormTab = ref('sample')
|
||||
|
||||
const receiveFormTabs = [
|
||||
{ key: 'sample', label: '样本信息' },
|
||||
{ key: 'transport', label: '运输信息' },
|
||||
{ key: 'reception', label: '接收登记' }
|
||||
] as const
|
||||
|
||||
const receiveForm = reactive({
|
||||
receptionTime: '',
|
||||
handlerUserId: '',
|
||||
handlerName: '',
|
||||
receiveTemperature: '',
|
||||
volumeMl: undefined as number | undefined,
|
||||
netWeightG: undefined as number | undefined,
|
||||
acceptConclusion: 'js' as 'js' | 'bj',
|
||||
labStorageCode: '',
|
||||
remark: ''
|
||||
})
|
||||
|
||||
const showLabStorageCodeField = computed(() => receiveForm.acceptConclusion === 'js')
|
||||
|
||||
const labStorageCodeReadonly = computed(
|
||||
() => dialogMode.value === 'edit' && !!receiveForm.labStorageCode
|
||||
)
|
||||
|
||||
const dialogTitle = computed(() =>
|
||||
dialogMode.value === 'edit' ? '编辑样本接收信息' : '样本接收信息填写'
|
||||
)
|
||||
|
||||
const receiveRules = {
|
||||
receptionTime: [{ required: true, message: '请选择样本接收时间', trigger: 'change' }],
|
||||
handlerUserId: [{ required: true, message: '请选择经手人', trigger: 'change' }],
|
||||
acceptConclusion: [{ required: true, message: '请选择是否接收', trigger: 'change' }],
|
||||
labStorageCode: [
|
||||
{
|
||||
validator: (_rule: unknown, value: string, callback: (err?: Error) => void) => {
|
||||
if (receiveForm.acceptConclusion !== 'js') {
|
||||
callback()
|
||||
return
|
||||
}
|
||||
if (!String(value || '').trim()) {
|
||||
callback(new Error('请填写或生成实验室入库编码'))
|
||||
return
|
||||
}
|
||||
callback()
|
||||
},
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
function protocolStatusLabelBySource(status: string, source: string): string {
|
||||
return source === 'research_donation' ? donationStatusLabel(status) : protocolStatusLabel(status)
|
||||
}
|
||||
|
||||
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
|
||||
return source === 'research_donation' ? donationStatusTagType(status) : protocolStatusTagType(status)
|
||||
}
|
||||
|
||||
function scrollReceiveToSection(key: string) {
|
||||
activeReceiveFormTab.value = key
|
||||
const el = document.getElementById(`form-section-${key}`)
|
||||
if (el) {
|
||||
el.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
}
|
||||
}
|
||||
|
||||
function getCurrentUserHandler() {
|
||||
const info = userStore.info
|
||||
const userId = String(info?.id || info?.userId || '')
|
||||
const label = String(info?.realName || info?.userName || info?.username || '')
|
||||
return { userId, label }
|
||||
}
|
||||
|
||||
function ensureCurrentUserInOptions() {
|
||||
const { userId, label } = getCurrentUserHandler()
|
||||
if (!userId) return
|
||||
if (!userOptions.value.some((o) => o.value === userId)) {
|
||||
userOptions.value = [{ label: label || userId, value: userId }, ...userOptions.value]
|
||||
}
|
||||
}
|
||||
|
||||
function onHandlerChange(userId: string) {
|
||||
const opt = userOptions.value.find((o) => o.value === userId)
|
||||
receiveForm.handlerName = opt?.label || ''
|
||||
}
|
||||
|
||||
function formatNowDatetime() {
|
||||
const now = new Date()
|
||||
const pad = (n: number) => String(n).padStart(2, '0')
|
||||
return `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} ${pad(now.getHours())}:${pad(now.getMinutes())}:${pad(now.getSeconds())}`
|
||||
}
|
||||
|
||||
function extractReceptionDate(receptionTime: string) {
|
||||
const s = String(receptionTime || '').trim()
|
||||
return s.length >= 10 ? s.slice(0, 10) : ''
|
||||
}
|
||||
|
||||
async function allocateLabStorageCodes(receptionDate: string, count = 1) {
|
||||
const date = extractReceptionDate(receptionDate ? `${receptionDate} 00:00:00` : '')
|
||||
if (!date) throw new Error('请先选择样本接收时间')
|
||||
const res = await fetchAllocateLabStorageCodes({ receptionDate: date, count })
|
||||
return res?.codes || []
|
||||
}
|
||||
|
||||
async function refreshReceiveLabStorageCode(force = false) {
|
||||
if (receiveForm.acceptConclusion !== 'js') {
|
||||
receiveForm.labStorageCode = ''
|
||||
return
|
||||
}
|
||||
if (labStorageCodeReadonly.value) return
|
||||
const date = extractReceptionDate(receiveForm.receptionTime)
|
||||
if (!date) return
|
||||
if (!force && labStorageCodeManuallyEdited.value) return
|
||||
if (!force && date === lastAllocatedReceptionDate.value && receiveForm.labStorageCode) return
|
||||
try {
|
||||
const codes = await allocateLabStorageCodes(date, 1)
|
||||
receiveForm.labStorageCode = codes[0] || ''
|
||||
labStorageCodeManuallyEdited.value = false
|
||||
lastAllocatedReceptionDate.value = date
|
||||
} catch {
|
||||
ElMessage.warning('实验室入库编码生成失败')
|
||||
}
|
||||
}
|
||||
|
||||
function onLabStorageCodeManualInput() {
|
||||
labStorageCodeManuallyEdited.value = true
|
||||
}
|
||||
|
||||
async function onReceiveReceptionTimeChange() {
|
||||
const date = extractReceptionDate(receiveForm.receptionTime)
|
||||
if (!date || receiveForm.acceptConclusion !== 'js' || labStorageCodeReadonly.value) return
|
||||
if (labStorageCodeManuallyEdited.value) return
|
||||
if (date === lastAllocatedReceptionDate.value) return
|
||||
await refreshReceiveLabStorageCode(true)
|
||||
}
|
||||
|
||||
async function onReceiveAcceptConclusionChange(val: string | number | boolean | undefined) {
|
||||
if (val === 'bj') {
|
||||
receiveForm.labStorageCode = ''
|
||||
labStorageCodeManuallyEdited.value = false
|
||||
lastAllocatedReceptionDate.value = ''
|
||||
return
|
||||
}
|
||||
if (labStorageCodeReadonly.value) return
|
||||
await refreshReceiveLabStorageCode(true)
|
||||
}
|
||||
|
||||
function resetCheckValues(items: SampleReceptionCheckItem[]) {
|
||||
Object.keys(checkValues).forEach((k) => delete checkValues[k])
|
||||
for (const item of items) {
|
||||
checkValues[item.id] = false
|
||||
}
|
||||
}
|
||||
|
||||
function applyCheckResultsFromDetail(results: SampleReceptionCheckResult[]) {
|
||||
const map = new Map((results || []).map((r) => [String(r.checkItemId || ''), !!r.checked]))
|
||||
for (const item of activeCheckItems.value) {
|
||||
checkValues[item.id] = map.has(item.id) ? !!map.get(item.id) : false
|
||||
}
|
||||
}
|
||||
|
||||
function populateReceiveFormFromDetail(detail: Record<string, unknown>) {
|
||||
receiveForm.receptionTime = String(detail.receptionTime || '')
|
||||
receiveForm.handlerUserId = String(detail.handlerUserId || '')
|
||||
receiveForm.handlerName = String(detail.handlerName || '')
|
||||
receiveForm.receiveTemperature = String(detail.receiveTemperature || '')
|
||||
const vol = detail.volumeMl
|
||||
receiveForm.volumeMl = vol === null || vol === undefined || vol === '' ? undefined : Number(vol)
|
||||
const net = detail.netWeightG
|
||||
receiveForm.netWeightG =
|
||||
net === null || net === undefined || net === '' ? undefined : Number(net)
|
||||
receiveForm.acceptConclusion = String(detail.acceptConclusion || 'js') === 'bj' ? 'bj' : 'js'
|
||||
receiveForm.labStorageCode = String(detail.labStorageCode || '')
|
||||
receiveForm.remark = String(detail.remark || '')
|
||||
labStorageCodeManuallyEdited.value = !!receiveForm.labStorageCode
|
||||
lastAllocatedReceptionDate.value = extractReceptionDate(receiveForm.receptionTime)
|
||||
const checkList = detail.checkResults
|
||||
applyCheckResultsFromDetail(
|
||||
Array.isArray(checkList) ? (checkList as SampleReceptionCheckResult[]) : []
|
||||
)
|
||||
if (Array.isArray(detail.receiveAttachmentFiles)) {
|
||||
attachments.value = (detail.receiveAttachmentFiles as Array<{ id?: string; fileUrl?: string; fileName?: string; fileType?: string }>).map(
|
||||
(f, i) => ({
|
||||
id: String(f.id || `att_${i}`),
|
||||
fileName: String(f.fileName || ''),
|
||||
fileUrl: String(f.fileUrl || ''),
|
||||
fileType: String(f.fileType || '')
|
||||
})
|
||||
)
|
||||
} else {
|
||||
const urls = String(detail.receiveAttachments || '')
|
||||
.split(',')
|
||||
.map((u) => u.trim())
|
||||
.filter(Boolean)
|
||||
attachments.value = urls.map((url, i) => {
|
||||
const name = url.includes('/') ? url.split('/').pop() || `附件${i + 1}` : url
|
||||
return { id: `url_${i}`, fileUrl: url, fileName: name }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function resetReceiveForm() {
|
||||
receiveForm.receptionTime = formatNowDatetime()
|
||||
const { userId, label } = getCurrentUserHandler()
|
||||
receiveForm.handlerUserId = userId
|
||||
receiveForm.handlerName = label
|
||||
receiveForm.receiveTemperature = ''
|
||||
receiveForm.volumeMl = undefined
|
||||
receiveForm.netWeightG = undefined
|
||||
receiveForm.acceptConclusion = 'js'
|
||||
receiveForm.labStorageCode = ''
|
||||
receiveForm.remark = ''
|
||||
labStorageCodeManuallyEdited.value = false
|
||||
lastAllocatedReceptionDate.value = ''
|
||||
attachments.value = []
|
||||
}
|
||||
|
||||
async function loadUserOptions() {
|
||||
try {
|
||||
const list = await fetchUserOptions()
|
||||
userOptions.value = (list || []).map((u: any) => ({
|
||||
label: String(u.label || ''),
|
||||
value: String(u.value || '')
|
||||
}))
|
||||
ensureCurrentUserInOptions()
|
||||
} catch {
|
||||
userOptions.value = []
|
||||
ensureCurrentUserInOptions()
|
||||
}
|
||||
}
|
||||
|
||||
async function loadActiveCheckItems() {
|
||||
try {
|
||||
const list = await fetchSampleReceptionCheckItemsActive()
|
||||
activeCheckItems.value = list || []
|
||||
resetCheckValues(activeCheckItems.value)
|
||||
} catch {
|
||||
activeCheckItems.value = []
|
||||
resetCheckValues([])
|
||||
}
|
||||
}
|
||||
|
||||
function toOptionalMetric(v: number | undefined) {
|
||||
if (v === null || v === undefined) return undefined
|
||||
const n = Number(v)
|
||||
return Number.isFinite(n) ? n : undefined
|
||||
}
|
||||
|
||||
async function initDialog() {
|
||||
if (!props.sampleCode) return
|
||||
loading.value = true
|
||||
try {
|
||||
await loadUserOptions()
|
||||
await loadActiveCheckItems()
|
||||
|
||||
const result = await fetchSampleReceptionBySampleCode({
|
||||
sampleCode: props.sampleCode,
|
||||
sourceType: props.sourceType
|
||||
})
|
||||
|
||||
if (result.receptionId) {
|
||||
dialogMode.value = 'edit'
|
||||
editingReceptionId.value = result.receptionId
|
||||
currentRow.value = result.sampleInfo || null
|
||||
const detail = await fetchSampleReceptionDetail(result.receptionId)
|
||||
populateReceiveFormFromDetail(detail as Record<string, unknown>)
|
||||
if (detail && (detail as any).handlerUserId) {
|
||||
const hid = String((detail as any).handlerUserId)
|
||||
if (!userOptions.value.some((o) => o.value === hid)) {
|
||||
userOptions.value = [
|
||||
{ label: String((detail as any).handlerName || hid), value: hid },
|
||||
...userOptions.value
|
||||
]
|
||||
}
|
||||
}
|
||||
} else {
|
||||
dialogMode.value = 'create'
|
||||
editingReceptionId.value = ''
|
||||
currentRow.value = result.sampleInfo || null
|
||||
resetReceiveForm()
|
||||
resetCheckValues(activeCheckItems.value)
|
||||
await refreshReceiveLabStorageCode(true)
|
||||
}
|
||||
} catch (e: any) {
|
||||
ElMessage.error(e?.message || '加载样本信息失败')
|
||||
currentRow.value = null
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function handleClosed() {
|
||||
dialogMode.value = 'create'
|
||||
editingReceptionId.value = ''
|
||||
currentRow.value = null
|
||||
activeReceiveFormTab.value = 'sample'
|
||||
}
|
||||
|
||||
async function submitReceive() {
|
||||
if (!currentRow.value) return
|
||||
const valid = await receiveFormRef.value?.validate?.().catch(() => false)
|
||||
if (!valid) return
|
||||
if (attachments.value.some((a) => (a as any)._uploading)) {
|
||||
ElMessage.warning('附件正在上传,请稍候')
|
||||
return
|
||||
}
|
||||
if (!activeCheckItems.value.length) {
|
||||
ElMessage.warning('暂无启用的检查项,请先在「接收检查项配置」中维护')
|
||||
return
|
||||
}
|
||||
submitLoading.value = true
|
||||
const payload = {
|
||||
receptionTime: receiveForm.receptionTime,
|
||||
handlerUserId: receiveForm.handlerUserId,
|
||||
handlerName: receiveForm.handlerName,
|
||||
receiveTemperature: receiveForm.receiveTemperature || undefined,
|
||||
volumeMl: toOptionalMetric(receiveForm.volumeMl),
|
||||
netWeightG: toOptionalMetric(receiveForm.netWeightG),
|
||||
checks: activeCheckItems.value.map((item) => ({
|
||||
checkItemId: item.id,
|
||||
checked: !!checkValues[item.id]
|
||||
})),
|
||||
acceptConclusion: receiveForm.acceptConclusion,
|
||||
labStorageCode:
|
||||
receiveForm.acceptConclusion === 'js' ? receiveForm.labStorageCode || undefined : undefined,
|
||||
receiveAttachments: financeAttachmentsToUrlString(attachments.value) || undefined,
|
||||
remark: receiveForm.remark || undefined
|
||||
}
|
||||
try {
|
||||
if (dialogMode.value === 'edit') {
|
||||
await fetchSampleReceptionUpdate(editingReceptionId.value, payload)
|
||||
ElMessage.success('接收信息已更新')
|
||||
} else {
|
||||
await fetchSampleReceptionSubmit({
|
||||
...payload,
|
||||
protocolSampleId: currentRow.value?.protocolSampleId
|
||||
? String(currentRow.value.protocolSampleId)
|
||||
: undefined,
|
||||
sourceType: (props.sourceType || 'cell_storage') as 'cell_storage' | 'research_donation',
|
||||
donationSampleId:
|
||||
(props.sourceType === 'research_donation' && currentRow.value?.protocolSampleId)
|
||||
? String(currentRow.value.protocolSampleId)
|
||||
: undefined
|
||||
})
|
||||
ElMessage.success('接收信息已保存')
|
||||
}
|
||||
emit('update:modelValue', false)
|
||||
emit('success')
|
||||
} catch (e: any) {
|
||||
ElMessage.error(e?.message || (dialogMode.value === 'edit' ? '更新失败' : '保存失败'))
|
||||
} finally {
|
||||
submitLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
(visible) => {
|
||||
if (visible) {
|
||||
initDialog()
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.sample-reception-dialog-body {
|
||||
max-height: calc(100vh - 180px);
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.empty-hint {
|
||||
padding: 32px;
|
||||
text-align: center;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.detail-tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin-bottom: 16px;
|
||||
border-bottom: 1px solid var(--mint-border, #e2e8f0);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.detail-tab {
|
||||
padding: 6px 16px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
transition: all 0.15s;
|
||||
|
||||
&:hover {
|
||||
color: var(--primary, #10b981);
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--primary, #10b981);
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.form-tab-pane {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.section-card {
|
||||
border: 1px solid var(--mint-border, #e2e8f0);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px 16px;
|
||||
background: #f8fafc;
|
||||
border-bottom: 1px solid var(--mint-border, #e2e8f0);
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
}
|
||||
}
|
||||
|
||||
.data-grid {
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
background: #f1f5f9;
|
||||
|
||||
&.data-grid--4 {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.data-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 10px 16px;
|
||||
background: #fff;
|
||||
|
||||
&.data-item--full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.data-label {
|
||||
font-size: 11px;
|
||||
color: #64748b;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.data-value {
|
||||
font-size: 13px;
|
||||
color: #1e293b;
|
||||
line-height: 1.5;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
|
||||
.check-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.check-empty-hint {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
|
||||
.form-label-tip {
|
||||
margin-left: 6px;
|
||||
font-size: 11px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.form-col-span-2 {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
</style>
|
||||
@@ -96,6 +96,7 @@
|
||||
@command="handleDropdownCommand"
|
||||
@toggle-select="handleCardToggleSelect"
|
||||
@tasks-changed="handleWorkOrderTasksChanged"
|
||||
@open-sample-reception="handleOpenSampleReception"
|
||||
@page-change="(v) => ((pagination.page = v), loadData())"
|
||||
@page-size-change="(v) => ((pagination.page = 1), (pagination.pageSize = v), loadData())"
|
||||
/>
|
||||
@@ -267,6 +268,13 @@
|
||||
:submitting="remarkEditLoading"
|
||||
@submit="submitRemarkEdit"
|
||||
/>
|
||||
|
||||
<SampleReceptionDialog
|
||||
v-model="sampleReceptionDialogVisible"
|
||||
:sample-code="sampleReceptionSampleCode"
|
||||
:source-type="sampleReceptionSourceType"
|
||||
@success="handleSampleReceptionSuccess"
|
||||
/>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
@@ -384,6 +392,7 @@
|
||||
import DispatchQcWorkOrderDialog from './DispatchQcWorkOrderDialog.vue'
|
||||
import ProductionWorkOrderCardList from './ProductionWorkOrderCardList.vue'
|
||||
import WorkOrderRemarkDialog from '@/components/business/work-order-remark-dialog/index.vue'
|
||||
import SampleReceptionDialog from './SampleReceptionDialog.vue'
|
||||
|
||||
defineOptions({ name: 'ProductionProductionWorkOrder' })
|
||||
|
||||
@@ -951,6 +960,20 @@
|
||||
dispatchQcVisible.value = true
|
||||
}
|
||||
|
||||
// ── 样本接收信息填写弹窗 ──────────────────────────────────
|
||||
const sampleReceptionDialogVisible = ref(false)
|
||||
const sampleReceptionSampleCode = ref('')
|
||||
const sampleReceptionSourceType = ref<string | undefined>(undefined)
|
||||
function handleOpenSampleReception(row: ProductionWorkOrderItem) {
|
||||
sampleReceptionSampleCode.value = row.sampleCode || ''
|
||||
sampleReceptionSourceType.value = row.receptionSource
|
||||
sampleReceptionDialogVisible.value = true
|
||||
}
|
||||
function handleSampleReceptionSuccess() {
|
||||
taskSubListRefreshToken.value += 1
|
||||
loadData()
|
||||
}
|
||||
|
||||
function handleDispatchQcSuccess(payload: { sampleCode?: string }) {
|
||||
taskSubListRefreshToken.value += 1
|
||||
loadData()
|
||||
|
||||
@@ -134,7 +134,6 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="changeType"
|
||||
label="变动类型"
|
||||
min-width="100"
|
||||
align="center"
|
||||
@@ -146,6 +145,25 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="mineOnly"
|
||||
label="使用状态"
|
||||
min-width="100"
|
||||
align="center"
|
||||
header-align="center"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<template v-if="isManualOutRow(row)">
|
||||
<el-tag v-if="row.requisitionStatus === 'closed'" type="success" size="small">
|
||||
已使用完
|
||||
</el-tag>
|
||||
<el-tag v-else type="info" size="small">
|
||||
使用中
|
||||
</el-tag>
|
||||
</template>
|
||||
<span v-else>—</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="changeQty"
|
||||
label="领用数量"
|
||||
|
||||
Reference in new issue
Block a user