diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-11-27 03:08:50 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-11-27 03:08:50 +0000 |
| commit | 79cfa7ea8f21ae227dbb2843ae536fe876ba7c55 (patch) | |
| tree | f12efae72c62286c1a2e9a3f31d695ca22d83b6e /components/bidding/manage/bidding-companies-editor.tsx | |
| parent | e1da84ac863989b9f63b089c09aaa2bbcdc3d6cd (diff) | |
(최겸) 구매 입찰 수정
Diffstat (limited to 'components/bidding/manage/bidding-companies-editor.tsx')
| -rw-r--r-- | components/bidding/manage/bidding-companies-editor.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/components/bidding/manage/bidding-companies-editor.tsx b/components/bidding/manage/bidding-companies-editor.tsx index da566c82..f6b3a3f0 100644 --- a/components/bidding/manage/bidding-companies-editor.tsx +++ b/components/bidding/manage/bidding-companies-editor.tsx @@ -271,6 +271,12 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC return } + // 전화번호 형식 검증 (국제 표준) + if (newContact.contactNumber && !newContact.contactNumber.startsWith('+')) { + toast.error('전화번호는 국제 표준 형식(+)으로 시작해야 합니다. (예: +821012345678)') + return + } + try { const result = await createBiddingCompanyContact( biddingId, @@ -703,8 +709,11 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC id="contactNumber" value={newContact.contactNumber} onChange={(e) => setNewContact(prev => ({ ...prev, contactNumber: e.target.value }))} - placeholder="010-1234-5678" + placeholder="+821012345678" /> + <p className="text-[0.8rem] text-muted-foreground"> + * SMS 발송을 위해 국제 표준 형식으로 입력해주세요. (예: +821012345678) + </p> </div> </div> |
