From e87b7b06d92dc7e7235ecda24c212169f30e82ec Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 27 Oct 2025 09:29:15 +0000 Subject: (임수민) 설계 TBE 문서 다이얼로그 수정 (스크롤, buyer 날짜) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tbe-last/table/documents-sheet.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'lib') 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 ? (
Loading...
) : ( - + @@ -505,8 +505,15 @@ export function DocumentsSheet({ - {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 "-"; + })()} -- cgit v1.2.3