summaryrefslogtreecommitdiff
path: root/components/pq-input/pq-review-wrapper.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-27 10:03:06 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-27 10:03:06 +0000
commita3525f8bdfcf849cc1716fab81cb8facadbe9a8e (patch)
tree0b5b534e92bcfe188d4906db7d16c37044262c2f /components/pq-input/pq-review-wrapper.tsx
parente87b7b06d92dc7e7235ecda24c212169f30e82ec (diff)
(최겸) 구매 협력업체 관리(PQ/실사관리, 정기평가 협력업체 제출 상세 dialog 개발,
Diffstat (limited to 'components/pq-input/pq-review-wrapper.tsx')
-rw-r--r--components/pq-input/pq-review-wrapper.tsx36
1 files changed, 35 insertions, 1 deletions
diff --git a/components/pq-input/pq-review-wrapper.tsx b/components/pq-input/pq-review-wrapper.tsx
index 44916dce..1545314c 100644
--- a/components/pq-input/pq-review-wrapper.tsx
+++ b/components/pq-input/pq-review-wrapper.tsx
@@ -366,7 +366,7 @@ export function PQReviewWrapper({
<div key={group.groupName} className="space-y-4">
<h3 className="text-lg font-medium">{group.groupName}</h3>
- <div className="grid grid-cols-1 gap-4">
+ <div className="grid grid-cols-2 gap-4">
{sortByCode(group.items).map((item) => (
<Card key={item.criteriaId}>
<CardHeader>
@@ -439,7 +439,9 @@ export function PQReviewWrapper({
{item.inputFormat === "TEXT" && "텍스트"}
{item.inputFormat === "EMAIL" && "이메일"}
{item.inputFormat === "PHONE" && "전화번호"}
+ {item.inputFormat === "FAX" && "팩스번호"}
{item.inputFormat === "NUMBER" && "숫자"}
+ {item.inputFormat === "NUMBER_WITH_UNIT" && "숫자+단위"}
{item.inputFormat === "FILE" && "파일"}
{item.inputFormat === "TEXT_FILE" && "텍스트+파일"}
</Badge>
@@ -468,6 +470,15 @@ export function PQReviewWrapper({
</div>
</div>
);
+ case "FAX":
+ return (
+ <div className="space-y-2">
+ <div className="text-sm font-medium text-muted-foreground">팩스번호:</div>
+ <div className="whitespace-pre-wrap">
+ {item.answer || <span className="text-muted-foreground">답변 없음</span>}
+ </div>
+ </div>
+ );
case "NUMBER":
return (
<div className="space-y-2">
@@ -477,6 +488,29 @@ export function PQReviewWrapper({
</div>
</div>
);
+ case "NUMBER_WITH_UNIT":
+ const numberWithUnit = item.answer || "";
+ const [number, unit] = numberWithUnit.split(' ');
+ return (
+ <div className="space-y-2">
+ <div className="text-sm font-medium text-muted-foreground">숫자+단위:</div>
+ <div className="flex items-center gap-2">
+ {number && (
+ <span className="font-mono text-lg font-semibold text-blue-600">
+ {number}
+ </span>
+ )}
+ {unit && (
+ <Badge variant="outline" className="text-xs">
+ {unit}
+ </Badge>
+ )}
+ {!numberWithUnit && (
+ <span className="text-muted-foreground">답변 없음</span>
+ )}
+ </div>
+ </div>
+ );
case "FILE":
return (
<div className="space-y-2">