From 3e06f3ea92fcbac85c254427c50e6724a07690af 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:01:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[stocks]=20=EC=9E=AC=EA=B3=A0=EC=83=9D?= =?UTF-8?q?=EC=82=B0=20=EB=AA=A9=EB=A1=9D=EC=97=90=20=EB=A1=9C=ED=8A=B8?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80,?= =?UTF-8?q?=20=EC=83=9D=EC=82=B0=EC=82=AC=EC=9C=A0=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 생산번호 옆에 로트번호 컬럼 추가 (bendingLot.lotNumber) - 생산사유 컬럼 제거 (동일값이라 불필요) - 검색 필터도 생산사유 → 로트번호로 변경 --- src/components/stocks/StockProductionList.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/stocks/StockProductionList.tsx b/src/components/stocks/StockProductionList.tsx index aebe51be..599797df 100644 --- a/src/components/stocks/StockProductionList.tsx +++ b/src/components/stocks/StockProductionList.tsx @@ -141,7 +141,7 @@ export function StockProductionList() { !searchTerm || order.orderNo.toLowerCase().includes(searchLower) || order.itemSummary.toLowerCase().includes(searchLower) || - order.productionReason.toLowerCase().includes(searchLower); + (order.bendingLot?.lotNumber || '').toLowerCase().includes(searchLower); const statusFilter = filterValues.status as string; const matchesFilter = !statusFilter || statusFilter === "all" || order.status === statusFilter; @@ -255,9 +255,9 @@ export function StockProductionList() { const tableColumns: TableColumn[] = useMemo(() => [ { key: "rowNumber", label: "번호", className: "px-2 text-center w-[60px]" }, { key: "orderNo", label: "생산번호", className: "px-2", sortable: true, copyable: true }, + { key: "lotNumber", label: "로트번호", className: "px-2", copyable: true }, { key: "itemSummary", label: "품목", className: "px-2", sortable: true, copyable: true }, { key: "quantity", label: "수량", className: "px-2 text-center", sortable: true }, - { key: "productionReason", label: "생산사유", className: "px-2", copyable: true }, { key: "createdAt", label: "등록일", className: "px-2", sortable: true, copyable: true }, { key: "status", label: "상태", className: "px-2 text-center", sortable: true }, { key: "memo", label: "비고", className: "px-2", copyable: true }, @@ -286,9 +286,15 @@ export function StockProductionList() { {order.orderNo} + + {order.bendingLot?.lotNumber ? ( + + {order.bendingLot.lotNumber} + + ) : "-"} + {order.itemSummary || "-"} {order.quantity || "-"} - {order.productionReason || "-"} {order.createdAt || "-"} {getStatusBadge(order.status)} {order.memo || "-"} @@ -327,7 +333,7 @@ export function StockProductionList() {
- +
} @@ -409,7 +415,7 @@ export function StockProductionList() { computeStats: () => stats, - searchPlaceholder: "생산번호, 품목명, 생산사유 검색...", + searchPlaceholder: "생산번호, 품목명, 로트번호 검색...", dateRangeSelector: { enabled: true, @@ -430,7 +436,7 @@ export function StockProductionList() { return ( order.orderNo.toLowerCase().includes(s) || order.itemSummary.toLowerCase().includes(s) || - order.productionReason.toLowerCase().includes(s) + (order.bendingLot?.lotNumber || '').toLowerCase().includes(s) ); },