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

---
 .../vendor/components/pr-items-pricing-table.tsx       | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

(limited to 'lib/bidding/vendor/components/pr-items-pricing-table.tsx')

diff --git a/lib/bidding/vendor/components/pr-items-pricing-table.tsx b/lib/bidding/vendor/components/pr-items-pricing-table.tsx
index 7dd8384e..5afb2b67 100644
--- a/lib/bidding/vendor/components/pr-items-pricing-table.tsx
+++ b/lib/bidding/vendor/components/pr-items-pricing-table.tsx
@@ -382,18 +382,14 @@ export function PrItemsPricingTable({
                           </span>
                         ) : (
                           <Input
-                            type="number"
-                            inputMode="decimal"
-                            min={0}
-                            pattern="^(0|[1-9][0-9]*)(\.[0-9]+)?$"
-                            value={quotation.bidUnitPrice === 0 ? '' : quotation.bidUnitPrice}
+                            type="text"
+                            inputMode="numeric"
+                            value={quotation.bidUnitPrice === 0 ? '' : quotation.bidUnitPrice.toLocaleString()}
                             onChange={(e) => {
-                              let value = e.target.value
-                              if (/^0[0-9]+/.test(value)) {
-                                value = value.replace(/^0+/, '')
-                                if (value === '') value = '0'
-                              }
-                              const numericValue = parseFloat(value)
+                              // 콤마 제거 및 숫자만 허용
+                              const value = e.target.value.replace(/,/g, '').replace(/[^0-9]/g, '')
+                              const numericValue = Number(value)
+                              
                               updateQuotation(
                                 item.id,
                                 'bidUnitPrice',
-- 
cgit v1.2.3

