From 899493a74d0838902f8a580c40530124afb322fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 5 Mar 2026 23:09:05 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[=ED=92=88=EC=A7=88=EA=B4=80=EB=A6=AC]?= =?UTF-8?q?=20=EC=88=98=EC=A3=BC=EC=84=A0=ED=83=9D=20=EB=AA=A8=EB=8B=AC?= =?UTF-8?q?=EC=97=90=20=EB=B0=9C=EC=A3=BC=EC=B2=98=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - OrderSelectItem 타입에 clientName 필드 추가 - actions.ts API 응답 매핑에 client_name → clientName 추가 - OrderSelectModal 테이블 헤더/바디에 발주처 컬럼 추가 - 모달 너비 sm:max-w-2xl → sm:max-w-3xl 확장 --- .../quality/InspectionManagement/OrderSelectModal.tsx | 4 +++- src/components/quality/InspectionManagement/actions.ts | 2 ++ src/components/quality/InspectionManagement/types.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/quality/InspectionManagement/OrderSelectModal.tsx b/src/components/quality/InspectionManagement/OrderSelectModal.tsx index 4821eceb..db56d4a7 100644 --- a/src/components/quality/InspectionManagement/OrderSelectModal.tsx +++ b/src/components/quality/InspectionManagement/OrderSelectModal.tsx @@ -64,7 +64,7 @@ export function OrderSelectModal({ keyExtractor={(item) => item.id} searchMode="enter" loadOnOpen - dialogClassName="sm:max-w-2xl" + dialogClassName="sm:max-w-3xl" listContainerClassName="max-h-[400px] overflow-y-auto border rounded-md" mode="multiple" onSelect={onSelect} @@ -84,6 +84,7 @@ export function OrderSelectModal({ 수주번호 현장명 + 발주처 납품일 개소 @@ -101,6 +102,7 @@ export function OrderSelectModal({ {item.orderNumber} {item.siteName} + {item.clientName} {item.deliveryDate} {item.locationCount} diff --git a/src/components/quality/InspectionManagement/actions.ts b/src/components/quality/InspectionManagement/actions.ts index 03f8b719..8170a3bb 100644 --- a/src/components/quality/InspectionManagement/actions.ts +++ b/src/components/quality/InspectionManagement/actions.ts @@ -127,6 +127,7 @@ interface OrderSelectItemApi { id: number; order_number: string; site_name: string; + client_name: string; delivery_date: string; location_count: number; } @@ -648,6 +649,7 @@ export async function getOrderSelectList(params?: { id: String(item.id), orderNumber: item.order_number, siteName: item.site_name, + clientName: item.client_name ?? '', deliveryDate: item.delivery_date, locationCount: item.location_count, })), diff --git a/src/components/quality/InspectionManagement/types.ts b/src/components/quality/InspectionManagement/types.ts index 78e1bffd..51831a00 100644 --- a/src/components/quality/InspectionManagement/types.ts +++ b/src/components/quality/InspectionManagement/types.ts @@ -120,6 +120,7 @@ export interface OrderSelectItem { id: string; orderNumber: string; // 수주번호 siteName: string; // 현장명 + clientName: string; // 발주처 deliveryDate: string; // 납품일 locationCount: number; // 개소 }