diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-27 09:29:15 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-27 09:29:15 +0000 |
| commit | e87b7b06d92dc7e7235ecda24c212169f30e82ec (patch) | |
| tree | 355304355a9822f5f7c6d2b78460bff76e692042 | |
| parent | 49a42f8987f4479c6e317e0826211f37472295a6 (diff) | |
(임수민) 설계 TBE 문서 다이얼로그 수정 (스크롤, buyer 날짜)
| -rw-r--r-- | lib/tbe-last/table/documents-sheet.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/tbe-last/table/documents-sheet.tsx b/lib/tbe-last/table/documents-sheet.tsx index ac0dc739..5dfc4f75 100644 --- a/lib/tbe-last/table/documents-sheet.tsx +++ b/lib/tbe-last/table/documents-sheet.tsx @@ -363,7 +363,7 @@ export function DocumentsSheet({ {isLoading ? ( <div className="p-8 text-center">Loading...</div> ) : ( - <ScrollArea className="h-[calc(100vh-250px)]"> + <ScrollArea className="pr-4" style={{height: 'calc(100vh - 300px)'}}> <Table> <TableHeader> <TableRow> @@ -505,8 +505,15 @@ export function DocumentsSheet({ <TableCell> <span className="text-xs text-muted-foreground"> - {doc.uploadedAt ? formatDate(doc.uploadedAt, "KR") : - doc.submittedAt ? formatDate(doc.submittedAt, "KR") : "-"} + {(() => { + // Buyer 문서의 경우 createdAt 사용, Vendor 문서의 경우 submittedAt 사용 + if (doc.documentSource === 'buyer') { + return doc.createdAt ? formatDate(doc.createdAt, "KR") : "-"; + } else if (doc.documentSource === 'vendor') { + return doc.submittedAt ? formatDate(doc.submittedAt, "KR") : "-"; + } + return "-"; + })()} </span> </TableCell> |
