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) ); },