diff --git a/frontend/src/pages/NewMaterialsPage.css b/frontend/src/pages/NewMaterialsPage.css
index 565bbfe..bbd5425 100644
--- a/frontend/src/pages/NewMaterialsPage.css
+++ b/frontend/src/pages/NewMaterialsPage.css
@@ -350,7 +350,7 @@
/* PIPE 전용 행 - 9개 컬럼 */
.detailed-material-row.pipe-row {
- grid-template-columns: 2% 8% 14% 8% 10% 20% 12% 15% 10% !important;
+ grid-template-columns: 1.5% 8.5% 14% 8% 10% 20% 12% 15% 10% !important;
}
.detailed-material-row.pipe-row .material-cell {
@@ -479,6 +479,14 @@
font-weight: 600;
}
+/* CLAMP 타입 배지 */
+.type-badge.clamp {
+ background: #0d9488;
+ color: white;
+ border: 2px solid #0f766e;
+ font-weight: 600;
+}
+
/* SUPPORT 전용 헤더 - 9개 컬럼 */
.detailed-grid-header.support-header {
grid-template-columns: 2% 8% 16% 8% 10% 18% 12% 15% 10%;
@@ -542,7 +550,7 @@
/* 플랜지 전용 행 - 10개 컬럼 */
.detailed-material-row.flange-row {
- grid-template-columns: 2% 8% 12% 8% 10% 10% 18% 10% 15% 6%;
+ grid-template-columns: 1.5% 8.5% 12% 8% 10% 10% 18% 10% 15% 6%;
}
diff --git a/frontend/src/pages/NewMaterialsPage.jsx b/frontend/src/pages/NewMaterialsPage.jsx
index cc68154..9888823 100644
--- a/frontend/src/pages/NewMaterialsPage.jsx
+++ b/frontend/src/pages/NewMaterialsPage.jsx
@@ -293,7 +293,7 @@ const NewMaterialsPage = ({
const categoryMap = {
'SPECIAL': 'SPECIAL',
'U_BOLT': 'U-BOLT',
- 'SUPPORT': 'SUPPORT',
+ 'SUPPORT': 'U-BOLT',
'PIPE': 'PIPE',
'FITTING': 'FITTING',
'FLANGE': 'FLANGE',
@@ -1304,18 +1304,6 @@ const NewMaterialsPage = ({
사용자요구
수량
- ) : selectedCategory === 'SUPPORT' ? (
-
-
선택
-
종류
-
타입
-
크기
-
스케줄
-
재질
-
추가요구
-
사용자요구
-
수량
-
) : selectedCategory === 'UNKNOWN' ? (
선택
@@ -1907,9 +1895,23 @@ const NewMaterialsPage = ({
if (material.classified_category === 'U_BOLT') {
// U_BOLT 카테고리 - 자재 타입별 다른 표시
- const isUrethaneBlock = material.original_description?.includes('URETHANE') ||
- material.original_description?.includes('BLOCK SHOE') ||
- material.original_description?.includes('우레탄');
+ const desc = material.original_description || '';
+ const isUrethaneBlock = desc.includes('URETHANE') || desc.includes('BLOCK SHOE') || desc.includes('우레탄');
+ const isClamp = desc.includes('CLAMP') || desc.includes('클램프');
+
+ let badgeType = 'ubolt';
+ let badgeText = 'U-BOLT';
+ let subtypeText = info.subtype || 'U_BOLT';
+
+ if (isUrethaneBlock) {
+ badgeType = 'urethane';
+ badgeText = 'URETHANE';
+ subtypeText = 'BLOCK SHOE';
+ } else if (isClamp) {
+ badgeType = 'clamp';
+ badgeText = 'CLAMP';
+ subtypeText = 'CLAMP';
+ }
return (
-
- {isUrethaneBlock ? 'URETHANE' : 'U-BOLT'}
+
+ {badgeText}
{/* 타입 */}
-
- {isUrethaneBlock ? 'BLOCK SHOE' : (info.subtype || 'U_BOLT')}
-
+ {subtypeText}
{/* 크기 */}
@@ -1983,73 +1983,6 @@ const NewMaterialsPage = ({
);
}
- if (material.classified_category === 'SUPPORT') {
- // SUPPORT 카테고리 (9개 컬럼)
- return (
-
- {/* 선택 */}
-
- toggleMaterialSelection(material.id)}
- />
-
-
- {/* 종류 */}
-
-
- SUPPORT
-
-
-
- {/* 타입 */}
-
- {info.subtype || material.original_description}
-
-
- {/* 크기 */}
-
- {info.size || material.main_nom}
-
-
- {/* 스케줄 */}
-
- {info.schedule || '-'}
-
-
- {/* 재질 */}
-
- {info.grade || material.full_material_grade || '-'}
-
-
- {/* 추가요구 */}
-
- {info.additionalReq || '-'}
-
-
- {/* 사용자요구 */}
-
- handleUserRequirementChange(material.id, e.target.value)}
- />
-
-
- {/* 수량 */}
-
- {info.quantity || material.quantity || 1} {info.unit || 'EA'}
-
-
- );
- }
-
// 위에서 처리되지 않은 모든 자재는 기본 9개 컬럼으로 렌더링
// (예: 아직 전용 뷰가 없는 자재)
return (