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

---
 .../bidding/manage/create-pre-quote-rfq-dialog.tsx | 38 +++++++++++++++++++---
 1 file changed, 33 insertions(+), 5 deletions(-)

(limited to 'components/bidding/manage/create-pre-quote-rfq-dialog.tsx')

diff --git a/components/bidding/manage/create-pre-quote-rfq-dialog.tsx b/components/bidding/manage/create-pre-quote-rfq-dialog.tsx
index de3c19ff..1ab7a40f 100644
--- a/components/bidding/manage/create-pre-quote-rfq-dialog.tsx
+++ b/components/bidding/manage/create-pre-quote-rfq-dialog.tsx
@@ -465,7 +465,7 @@ export function CreatePreQuoteRfqDialog({
                                 )}
                               >
                                 {field.value ? (
-                                  format(field.value, "yyyy-MM-dd")
+                                  format(field.value, "yyyy-MM-dd HH:mm")
                                 ) : (
                                   <span>제출마감일을 선택하세요 (선택)</span>
                                 )}
@@ -477,12 +477,40 @@ export function CreatePreQuoteRfqDialog({
                             <Calendar
                               mode="single"
                               selected={field.value}
-                              onSelect={field.onChange}
-                              disabled={(date) =>
-                                date < new Date() || date < new Date("1900-01-01")
-                              }
+                              onSelect={(date) => {
+                                if (!date) {
+                                  field.onChange(undefined)
+                                  return
+                                }
+                                const newDate = new Date(date)
+                                if (field.value) {
+                                  newDate.setHours(field.value.getHours(), field.value.getMinutes())
+                                } else {
+                                  newDate.setHours(0, 0, 0, 0)
+                                }
+                                field.onChange(newDate)
+                              }}
+                              disabled={(date) => {
+                                const today = new Date()
+                                today.setHours(0, 0, 0, 0)
+                                return date < today || date < new Date("1900-01-01")
+                              }}
                               initialFocus
                             />
+                            <div className="p-3 border-t border-border">
+                              <Input
+                                type="time"
+                                value={field.value ? format(field.value, "HH:mm") : ""}
+                                onChange={(e) => {
+                                  if (field.value) {
+                                    const [hours, minutes] = e.target.value.split(':').map(Number)
+                                    const newDate = new Date(field.value)
+                                    newDate.setHours(hours, minutes)
+                                    field.onChange(newDate)
+                                  }
+                                }}
+                              />
+                            </div>
                           </PopoverContent>
                         </Popover>
                         <FormMessage />
-- 
cgit v1.2.3

