From 06d4753d61a803e2f8447bc3167dced3434107d4 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 22 Sep 2025 08:54:41 +0000 Subject: (최겸) 구매 협력업체 관리 피드백 반영(PQ, 실사, QM 담당자 등) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pq-input/pq-input-tabs.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'components/pq-input/pq-input-tabs.tsx') diff --git a/components/pq-input/pq-input-tabs.tsx b/components/pq-input/pq-input-tabs.tsx index 534e1a05..4e5272f5 100644 --- a/components/pq-input/pq-input-tabs.tsx +++ b/components/pq-input/pq-input-tabs.tsx @@ -315,12 +315,11 @@ export function PQInputTabs({ return } } else if (inputFormat === "TEXT_FILE") { - // 텍스트+파일 항목의 경우 텍스트 답변과 파일이 모두 있어야 함 - const hasFiles = answerData.uploadedFiles.length > 0 || answerData.newUploads.length > 0 - if (!answerData.answer || !hasFiles) { + // 텍스트+파일 항목의 경우 텍스트 답변만 있어야 함 (파일은 선택적) + if (!answerData.answer) { toast({ title: "필수 항목", - description: "필수 항목입니다. 텍스트 답변과 파일을 모두 입력해주세요.", + description: "필수 항목입니다. 텍스트 답변을 입력해주세요.", variant: "destructive", }) return @@ -671,7 +670,7 @@ export function PQInputTabs({ {/* 2-column grid */}
{sortByCode(group.items).map((item) => { - const { criteriaId, code, checkPoint, description, contractInfo, additionalRequirement } = item + const { criteriaId, code, checkPoint, remarks, description, contractInfo, additionalRequirement } = item const answerIndex = getAnswerIndex(criteriaId) if (answerIndex === -1) return null @@ -707,6 +706,14 @@ export function PQInputTabs({ {description} )} + {item.remarks && ( +
+

Remark:

+

+ {item.remarks} +

+
+ )}
{/* Save Status & Button */} -- cgit v1.2.3