Files
2026-07-15 18:37:19 +09:00

229 lines
8.4 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChemiFactory 자재 물성 관리</title>
<!-- Google Fonts Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- 테마 적용 (base.css보다 먼저 로드해 FOWT 방지) -->
<script src="js/theme.js"></script>
<link rel="stylesheet" href="css/base.css">
<style>
.header-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.search-container {
display: flex;
gap: 12px;
width: 100%;
max-width: 400px;
}
.form-control {
background-color: var(--overlay-hover);
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 10px 16px;
border-radius: 8px;
font-size: 14px;
width: 100%;
transition: all 0.2s ease;
}
.form-control:focus {
outline: none;
border-color: var(--border-focus);
background-color: var(--overlay-strong);
}
.list-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.list-table th, .list-table td {
padding: 14px 16px;
border-bottom: 1px solid var(--border-color);
text-align: left;
}
.list-table th {
color: var(--text-secondary);
font-weight: 600;
}
.list-table tr:hover {
background-color: var(--overlay-subtle);
}
/* 모달 스타일 */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: var(--modal-backdrop);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
}
.modal-content {
background-color: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 24px;
width: 90%;
max-width: 500px;
box-shadow: 0 10px 30px var(--card-shadow);
animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
border-bottom: 1px solid var(--border-color);
padding-bottom: 12px;
}
.modal-title {
font-size: 18px;
font-weight: 700;
}
.close-btn {
font-size: 24px;
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
}
.close-btn:hover {
color: var(--text-primary);
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 6px;
font-weight: 500;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 24px;
border-top: 1px solid var(--border-color);
padding-top: 16px;
}
.btn-secondary {
background-color: var(--overlay-hover);
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background-color: var(--overlay-strong);
}
</style>
</head>
<body>
<div class="app-container">
<!-- 공통 사이드바 -->
<aside class="sidebar" id="sidebar"></aside>
<!-- 메인 콘텐츠 영역 -->
<main class="main-content">
<header class="content-header">
<div class="page-title">
<h1>자재 물성 규격 관리</h1>
<p>생산 단가 및 소요 기간 시뮬레이션 연산의 기준이 되는 원자재 사양 규격을 정의합니다.</p>
</div>
<button class="btn btn-primary" id="btn-add-material">+ 신규 규격 추가</button>
</header>
<div class="card">
<div class="header-row">
<h2 class="section-title" style="margin:0;">원자재 규격 관리 리스트</h2>
<div class="search-container">
<input type="text" id="search-material" class="form-control" placeholder="자재 코드, 명칭 검색...">
</div>
</div>
<div style="overflow-x: auto;">
<table class="list-table">
<thead>
<tr>
<th>자재 코드</th>
<th>자재 명칭</th>
<th>자재 구분</th>
<th>밀도 (Density, g/cm³)</th>
<th>상세 비고</th>
<th>관리</th>
</tr>
</thead>
<tbody id="material-list-body">
<tr>
<td colspan="6" style="text-align: center; color: var(--text-muted); padding: 30px 0;">자재 데이터를 조회하는 중...</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
<!-- 물성 추가/수정 모달 -->
<div id="material-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="material-modal-title">자재 규격 정보 등록</h3>
<button class="close-btn">&times;</button>
</div>
<form id="material-form">
<input type="hidden" id="material-id">
<div class="form-group">
<label for="mat-code">자재 코드 *</label>
<input type="text" id="mat-code" class="form-control" placeholder="예: YRN-CF-3K" required>
</div>
<div class="form-group">
<label for="mat-name">자재 명칭 *</label>
<input type="text" id="mat-name" class="form-control" placeholder="예: 국산 카본원사 3K" required>
</div>
<div class="form-group">
<label for="mat-type">자재 구분 *</label>
<select id="mat-type" class="form-control" required>
<option value="Yarn">원사 (Yarn)</option>
<option value="Bond">본드 (Bond)</option>
<option value="Etc">기타 자재</option>
</select>
</div>
<div class="form-group">
<label for="mat-density">밀도 (Density, g/cm³) *</label>
<input type="number" id="mat-density" step="0.001" class="form-control" placeholder="수치 입력" required>
</div>
<div class="form-group">
<label for="mat-remarks">상세 비고</label>
<input type="text" id="mat-remarks" class="form-control">
</div>
<div class="modal-actions">
<button type="button" class="btn btn-secondary close-modal-btn">취소</button>
<button type="submit" class="btn btn-primary">저장</button>
</div>
</form>
</div>
</div>
<!-- 스크립트 연결 -->
<script src="js/common.js"></script>
<script src="js/material.js"></script>
</body>
</html>