From 02f6a2b5d7441834f4ad093e73ba3463eb117a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sat, 21 Mar 2026 08:00:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=9E=85=EA=B3=A0]=20=EA=B2=80?= =?UTF-8?q?=EC=82=AC=EC=99=84=EB=A3=8C=20=EC=83=81=ED=83=9C=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC,=20=EB=8B=A8=EC=9C=84=20=EB=88=84=EB=9D=BD=20?= =?UTF-8?q?=EC=88=98=EC=A0=95,=20=EC=BB=AC=EB=9F=BC=20=EC=88=9C=EC=84=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReceivingManagement/ReceivingDetail.tsx | 4 +++- .../ReceivingManagement/ReceivingList.tsx | 18 +++++++++--------- .../material/ReceivingManagement/actions.ts | 10 ++++++---- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/components/material/ReceivingManagement/ReceivingDetail.tsx b/src/components/material/ReceivingManagement/ReceivingDetail.tsx index 4d749970..0e37a389 100644 --- a/src/components/material/ReceivingManagement/ReceivingDetail.tsx +++ b/src/components/material/ReceivingManagement/ReceivingDetail.tsx @@ -722,7 +722,9 @@ export function ReceivingDetail({ id, mode = 'view' }: Props) { // ===== 커스텀 헤더 액션 (view/edit 모드) ===== // 수정 버튼은 IntegratedDetailTemplate의 DetailActions에서 아이콘으로 제공하므로 중복 제거 // 수입검사하기 버튼은 수입검사 성적서 템플릿이 있는 품목만 표시 - const customHeaderActions = (isViewMode || isEditMode) && detail && hasInspectionTemplate ? ( + // 수입검사 버튼 표시 조건: 템플릿이 있거나 이미 검사 완료된 경우 + const showInspectionActions = hasInspectionTemplate || !!detail?.inspectionResult || !!detail?.inspectionDate; + const customHeaderActions = (isViewMode || isEditMode) && detail && showInspectionActions ? (