feat: [stocks] 재고생산 목록에 로트번호 컬럼 추가, 생산사유 컬럼 제거

- 생산번호 옆에 로트번호 컬럼 추가 (bendingLot.lotNumber)
- 생산사유 컬럼 제거 (동일값이라 불필요)
- 검색 필터도 생산사유 → 로트번호로 변경
This commit is contained in:
김보곤
2026-03-18 22:01:42 +09:00
parent 2d915ee938
commit 3e06f3ea92

View File

@@ -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}
</code>
</TableCell>
<TableCell>
{order.bendingLot?.lotNumber ? (
<code className="text-xs bg-blue-50 text-blue-700 px-2 py-1 rounded font-mono">
{order.bendingLot.lotNumber}
</code>
) : "-"}
</TableCell>
<TableCell>{order.itemSummary || "-"}</TableCell>
<TableCell className="text-center">{order.quantity || "-"}</TableCell>
<TableCell>{order.productionReason || "-"}</TableCell>
<TableCell>{order.createdAt || "-"}</TableCell>
<TableCell className="text-center">{getStatusBadge(order.status)}</TableCell>
<TableCell className="max-w-[150px] truncate">{order.memo || "-"}</TableCell>
@@ -327,7 +333,7 @@ export function StockProductionList() {
<div className="grid grid-cols-2 gap-x-4 gap-y-3">
<InfoField label="수량" value={`${order.quantity}`} />
<InfoField label="등록일" value={order.createdAt || "-"} />
<InfoField label="생산사유" value={order.productionReason || "-"} />
<InfoField label="로트번호" value={order.bendingLot?.lotNumber || "-"} />
<InfoField label="품목 수" value={`${order.itemCount}`} />
</div>
}
@@ -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)
);
},