diff options
Diffstat (limited to 'lib/avl/table/avl-vendor-add-and-modify-dialog.tsx')
| -rw-r--r-- | lib/avl/table/avl-vendor-add-and-modify-dialog.tsx | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/lib/avl/table/avl-vendor-add-and-modify-dialog.tsx b/lib/avl/table/avl-vendor-add-and-modify-dialog.tsx index 8fb910da..f4050907 100644 --- a/lib/avl/table/avl-vendor-add-and-modify-dialog.tsx +++ b/lib/avl/table/avl-vendor-add-and-modify-dialog.tsx @@ -28,7 +28,7 @@ import { MaterialGroupSelectorDialogSingle } from "@/components/common/material/ import type { MaterialSearchItem } from "@/lib/material/material-group-service" import { VendorSelectorDialogSingle } from "@/components/common/vendor" import type { VendorSearchItem } from "@/components/common/vendor" -import { PlaceOfShippingSelector } from "@/components/common/selectors/place-of-shipping" +import { PlaceOfShippingSelectorDialogSingle } from "@/components/common/selectors/place-of-shipping/place-of-shipping-selector" import { VendorTierSelector } from "@/components/common/selectors/vendor-tier" import { DatePicker } from "@/components/ui/date-picker" import { NationSelector, type NationCode } from "@/components/common/selectors/nation" @@ -187,8 +187,9 @@ export function AvlVendorAddAndModifyDialog({ id: -1, // 임시 ID (실제 벤더 ID는 알 수 없음) vendorName: editingItem.vendorName || "", vendorCode: editingItem.vendorCode || null, + taxId: null, // 사업자번호 정보 없음 status: "UNKNOWN", // 상태 정보 없음 - displayText: editingItem.vendorCode + displayText: editingItem.vendorCode ? `${editingItem.vendorName} (${editingItem.vendorCode})` : editingItem.vendorName || "" }) @@ -802,12 +803,26 @@ export function AvlVendorAddAndModifyDialog({ </div> <div className="space-y-2"> <Label htmlFor="manufacturingLocation">제작/선적지 (국가)</Label> - <PlaceOfShippingSelector - value={formData.manufacturingLocation} - onValueChange={(value) => setFormData(prev => ({ ...prev, manufacturingLocation: value }))} - placeholder="제작/선적지를 선택하세요" - className="h-9" + <PlaceOfShippingSelectorDialogSingle + triggerLabel="제작/선적지 선택" + selectedPlace={formData.manufacturingLocation ? { + code: formData.manufacturingLocation, + description: formData.manufacturingLocation // 임시로 code와 동일하게 설정, 실제로는 DB에서 조회 필요 + } : null} + onPlaceSelect={(place) => setFormData(prev => ({ + ...prev, + manufacturingLocation: place?.code || "" + }))} + placeholder="제작/선적지를 검색하세요..." + title="제작/선적지 선택" + description="원하는 제작/선적지를 검색하고 선택해주세요." + triggerVariant="outline" /> + {formData.manufacturingLocation && ( + <div className="text-xs text-muted-foreground bg-blue-50 p-2 rounded"> + <span>선택됨: {formData.manufacturingLocation}</span> + </div> + )} </div> </div> </div> |
