From ad6bde0250cfe014d5f78747ec76ac59df95a25d Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 5 Nov 2025 02:55:31 +0000 Subject: (최겸) 구매 PQ 수정, 기본계약 수정하기 내 drm 추가 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pq-input/pq-input-tabs.tsx | 94 +++++++++++++++-------------------- 1 file changed, 39 insertions(+), 55 deletions(-) (limited to 'components') diff --git a/components/pq-input/pq-input-tabs.tsx b/components/pq-input/pq-input-tabs.tsx index 8d5aa2ab..f0d44d04 100644 --- a/components/pq-input/pq-input-tabs.tsx +++ b/components/pq-input/pq-input-tabs.tsx @@ -822,18 +822,11 @@ export function PQInputTabs({ if (!shouldShowItem(isSaved)) return null return ( -
- - - {code} - {checkPoint} @@ -882,7 +875,6 @@ export function PQInputTabs({
- {/* 프로젝트별 추가 필드 (contractInfo, additionalRequirement) */} {projectId && contractInfo && ( @@ -1298,9 +1290,7 @@ export function PQInputTabs({ /> - - ) })}
@@ -1323,51 +1313,45 @@ export function PQInputTabs({
- {data.map((group) => ( - - -
-

{group.groupName}

- -
-
- - - {group.items.map((item) => { - const answerObj = form - .getValues() - .answers.find((a) => a.criteriaId === item.criteriaId) - - if (!answerObj) return null - - return ( -
- {/* code & checkPoint */} -

- {item.code} - {item.checkPoint} -

- - {/* user's typed answer */} -

Answer:

-

- {answerObj.answer || "(no answer)"} -

- {/* attachments */} -

Attachments:

- {answerObj.uploadedFiles.length > 0 ? ( -
    - {answerObj.uploadedFiles.map((file, idx) => ( -
  • {file.fileName}
  • - ))} -
- ) : ( -

(none)

- )} -
- ) - })} -
-
+ {data.map((group, groupIndex) => ( +
+ {group.items.map((item) => { + const answerObj = form + .getValues() + .answers.find((a) => a.criteriaId === item.criteriaId); + + if (!answerObj) return null; + + return ( +
+ {/* code & checkPoint */} +

+ {item.code} - {item.checkPoint} +

+ + {/* user's typed answer */} +

Answer:

+

+ {answerObj.answer || "(no answer)"} +

+ {/* attachments */} +

Attachments:

+ {answerObj.uploadedFiles && answerObj.uploadedFiles.length > 0 ? ( +
    + {answerObj.uploadedFiles.map((file, idx) => ( +
  • {file.fileName}
  • + ))} +
+ ) : ( +

(none)

+ )} +
+ ); + })} +
))}
-- cgit v1.2.3