From 2d7c41263ee4fda0285397905884e20dec5d8a1f Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 27 Oct 2025 10:28:54 +0000 Subject: (최겸) 구매 PQ 승인 전 재제출가능 및 vendor SHI 커뮤니케이션 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../additional-info-dialog.tsx | 124 ++++++++++++++++----- 1 file changed, 98 insertions(+), 26 deletions(-) (limited to 'components/vendor-regular-registrations') diff --git a/components/vendor-regular-registrations/additional-info-dialog.tsx b/components/vendor-regular-registrations/additional-info-dialog.tsx index 303c6d7e..82751749 100644 --- a/components/vendor-regular-registrations/additional-info-dialog.tsx +++ b/components/vendor-regular-registrations/additional-info-dialog.tsx @@ -16,6 +16,14 @@ import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { DatePicker } from "@/components/ui/date-picker" import { Form, @@ -80,6 +88,34 @@ const contactTypes = [ { value: "tax_invoice", label: "세금계산서", required: true }, ]; +// 드롭다운 옵션들 +const businessTypeOptions = [ + "건설업외", + "기타숙박업외", + "산업기계외", + "선박", + "선박건조외", + "선박산업기기", + "임대", + "철구조물외" +]; + +const industryTypeOptions = [ + "건설업외", + "부동산", + "산업", + "숙박음식", + "제조도매외", + "제조업" +]; + +const companySizeOptions = [ + "소기업", + "중소기업", + "중견기업", + "대기업" +]; + export function AdditionalInfoDialog({ @@ -349,13 +385,24 @@ export function AdditionalInfoDialog({ render={({ field }) => ( 사업유형 {!readonly && "*"} - - - + )} @@ -366,13 +413,24 @@ export function AdditionalInfoDialog({ render={({ field }) => ( 산업유형 {!readonly && "*"} - - - + )} @@ -385,13 +443,24 @@ export function AdditionalInfoDialog({ render={({ field }) => ( 기업규모 {!readonly && "*"} - - - + )} @@ -423,11 +492,14 @@ export function AdditionalInfoDialog({ 공장설립일 {!readonly && "*"} - { + field.onChange(date ? date.toISOString().slice(0, 10) : ""); + }} + placeholder={readonly ? "" : "YYYY-MM-DD"} + disabled={readonly} /> -- cgit v1.2.3