diff options
Diffstat (limited to 'lib/site-visit/client-site-visit-wrapper.tsx')
| -rw-r--r-- | lib/site-visit/client-site-visit-wrapper.tsx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/site-visit/client-site-visit-wrapper.tsx b/lib/site-visit/client-site-visit-wrapper.tsx index ad8da632..b92eda3b 100644 --- a/lib/site-visit/client-site-visit-wrapper.tsx +++ b/lib/site-visit/client-site-visit-wrapper.tsx @@ -71,7 +71,7 @@ interface SiteVisitRequest { resultNotes: string | null
// PQ 정보
- pqItems: string | null
+ pqItems: string | null | Array<{itemCode: string, itemName: string}>
// 요청자 정보
requesterName: string | null
@@ -292,7 +292,22 @@ export function ClientSiteVisitWrapper({ </TableCell>
<TableCell>
{/* 실사품목 - PQ에서 가져온 정보 표시 */}
- {request.pqItems || "-"}
+ {request.pqItems ? (
+ typeof request.pqItems === 'string' ? (
+ request.pqItems
+ ) : Array.isArray(request.pqItems) && request.pqItems.length > 0 ? (
+ <div className="space-y-1">
+ {request.pqItems.map((item, index) => (
+ <div key={index} className="flex items-center gap-2">
+ <span className="text-xs px-2 py-1 bg-primary/10 rounded">
+ {item.itemCode}
+ </span>
+ <span className="text-sm">{item.itemName}</span>
+ </div>
+ ))}
+ </div>
+ ) : "-"
+ ) : "-"}
</TableCell>
<TableCell>
<Badge variant="outline">
|
