fix: [생산지시] BOM 공정 분류 UI 수정 + 접이식 카드

- BOM types/actions: 필드 매핑 수정 (unit, quantity, unitPrice, totalPrice, nodeName)
- BOM UI: 접이식(collapsible) Card + ChevronDown 토글
- 테이블 컬럼 변경: 품목코드, 품목명, 규격, 단위, 수량, 단가, 금액, 개소
- 중복 key 수정: `${item.id}-${idx}` 패턴 적용
This commit is contained in:
2026-03-05 19:27:01 +09:00
parent 9fc979e135
commit eb18a3facb
3 changed files with 64 additions and 55 deletions

View File

@@ -68,10 +68,12 @@ function transformDetailApiToFrontend(data: ApiProductionOrderDetail): Productio
id: item.id,
itemCode: item.item_code,
itemName: item.item_name,
spec: item.spec,
lotNo: item.lot_no,
requiredQty: item.required_qty,
qty: item.qty,
spec: item.spec || item.specification || '',
unit: item.unit || '',
quantity: item.quantity ?? 0,
unitPrice: item.unit_price ?? 0,
totalPrice: item.total_price ?? 0,
nodeName: item.node_name || '',
})),
})),
};

View File

@@ -90,9 +90,11 @@ export interface ApiBomItem {
item_code: string;
item_name: string;
spec: string;
lot_no: string;
required_qty: number;
qty: number;
unit: string;
quantity: number;
unit_price: number;
total_price: number;
node_name: string;
}
// 프론트 상세 타입
@@ -121,9 +123,11 @@ export interface BomItem {
itemCode: string;
itemName: string;
spec: string;
lotNo: string;
requiredQty: number;
qty: number;
unit: string;
quantity: number;
unitPrice: number;
totalPrice: number;
nodeName: string;
}
// 조회 파라미터