From f5db1620e5fdec0220b665c6cf1a327e7913e13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 18 Mar 2026 22:45:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[receiving]=20=EC=9E=85=EA=B3=A0=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=ED=92=88=EB=AA=A9=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=20=EC=8B=9C=20=EB=8B=A8=EC=9C=84=20=EC=97=B0?= =?UTF-8?q?=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ItemSearchModal 콜백에 unit 필드 추가 - ReceivingDetail에서 품목 선택 시 unit 세팅 --- .../material/ReceivingManagement/ReceivingDetail.tsx | 1 + src/components/quotes/ItemSearchModal.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/material/ReceivingManagement/ReceivingDetail.tsx b/src/components/material/ReceivingManagement/ReceivingDetail.tsx index e8f51812..4d749970 100644 --- a/src/components/material/ReceivingManagement/ReceivingDetail.tsx +++ b/src/components/material/ReceivingManagement/ReceivingDetail.tsx @@ -791,6 +791,7 @@ export function ReceivingDetail({ id, mode = 'view' }: Props) { itemCode: item.code, itemName: item.name, specification: item.specification || '', + unit: item.unit || prev.unit || 'EA', })); }} itemType="RM,SM,CS" diff --git a/src/components/quotes/ItemSearchModal.tsx b/src/components/quotes/ItemSearchModal.tsx index f18d17f4..237ffcf4 100644 --- a/src/components/quotes/ItemSearchModal.tsx +++ b/src/components/quotes/ItemSearchModal.tsx @@ -18,7 +18,7 @@ import type { ItemMaster, ItemType } from '@/types/item'; interface ItemSearchModalProps { open: boolean; onOpenChange: (open: boolean) => void; - onSelectItem: (item: { code: string; name: string; specification?: string }) => void; + onSelectItem: (item: { code: string; name: string; specification?: string; unit?: string }) => void; tabLabel?: string; /** 품목 유형 필터 (예: 'RM', 'SF', 'FG') */ itemType?: string; @@ -59,6 +59,7 @@ export function ItemSearchModal({ code: item.itemCode, name: item.itemName, specification: item.specification || undefined, + unit: item.unit || undefined, }); }, [onSelectItem]);