From c0e1cc06e0c67cb4a941889a3d63d312d1fb8fce Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 8 Dec 2025 03:02:42 +0000
Subject: (최겸) 구매 입찰계약 수정, 입찰기간수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/bidding/list/biddings-table-columns.tsx | 31 +++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

(limited to 'lib/bidding/list/biddings-table-columns.tsx')

diff --git a/lib/bidding/list/biddings-table-columns.tsx b/lib/bidding/list/biddings-table-columns.tsx
index 62d4dbe7..602bcbb9 100644
--- a/lib/bidding/list/biddings-table-columns.tsx
+++ b/lib/bidding/list/biddings-table-columns.tsx
@@ -257,21 +257,40 @@ export function getBiddingsColumns({ setRowAction }: GetColumnsProps): ColumnDef
       id: "submissionPeriod",
       header: ({ column }) => <DataTableColumnHeaderSimple column={column} title="입찰서제출기간" />,
       cell: ({ row }) => {
+        const status = row.original.status
+
+        // 입찰생성 또는 결재진행중 상태일 때는 특별 메시지 표시
+        if (status === 'bidding_generated') {
+          return (
+            <div className="text-xs text-orange-600 font-medium">
+              입찰 등록중입니다
+            </div>
+          )
+        }
+
+        if (status === 'approval_pending') {
+          return (
+            <div className="text-xs text-blue-600 font-medium">
+              결재 진행중입니다
+            </div>
+          )
+        }
+
         const startDate = row.original.submissionStartDate
         const endDate = row.original.submissionEndDate
-        
+
         if (!startDate || !endDate) return <span className="text-muted-foreground">-</span>
-        
+
         const startObj = new Date(startDate)
         const endObj = new Date(endDate)
 
-        // UI 표시용 KST 변환
-        const formatKst = (d: Date) => new Date(d.getTime() + 9 * 60 * 60 * 1000).toISOString().slice(0, 16).replace('T', ' ')
-        
+        // 입력값 기반: 저장된 UTC 값 그대로 표시 (타임존 가감 없음)
+        const formatValue = (d: Date) => d.toISOString().slice(0, 16).replace('T', ' ')
+
         return (
           <div className="text-xs">
             <div>
-              {formatKst(startObj)} ~ {formatKst(endObj)}
+              {formatValue(startObj)} ~ {formatValue(endObj)}
             </div>
           </div>
         )
-- 
cgit v1.2.3

