Files
TK-FB-Project/web-ui/pages/safety/issue-detail.html
Hyungi Ahn 4b158de1eb refactor: 전체 페이지 이모지 제거 및 사이드바 레이아웃 수정
- 모든 페이지에서 이모지 제거 (CODING_GUIDE 준수)
  - admin/ (9개), safety/ (7개), work/ (4개)
  - attendance/ (8개), profile/ (2개)
- 사이드바 CSS에 누락된 컨테이너 클래스 추가
  - work-report-container, analysis-container, dashboard-main
  - 사이드바 토글 시 메인 콘텐츠 정상 반응하도록 수정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 15:09:37 +09:00

459 lines
13 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>신고 상세 | (주)테크니컬코리아</title>
<link rel="stylesheet" href="/css/design-system.css">
<link rel="stylesheet" href="/css/common.css?v=2">
<link rel="stylesheet" href="/css/project-management.css?v=3">
<link rel="icon" type="image/png" href="/img/favicon.png">
<script src="/js/auth-check.js?v=1" defer></script>
<script type="module" src="/js/api-config.js?v=3"></script>
<style>
.detail-container {
max-width: 900px;
margin: 0 auto;
}
.detail-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 24px;
}
.detail-title {
font-size: 24px;
font-weight: 600;
}
.detail-id {
font-size: var(--text-sm);
color: var(--gray-500);
margin-bottom: 8px;
}
.status-badge {
padding: 8px 20px;
border-radius: 9999px;
font-size: var(--text-sm);
font-weight: 600;
}
.status-badge.reported { background: var(--blue-100); color: var(--blue-700); }
.status-badge.received { background: var(--orange-100); color: var(--orange-700); }
.status-badge.in_progress { background: var(--purple-100); color: var(--purple-700); }
.status-badge.completed { background: var(--green-100); color: var(--green-700); }
.status-badge.closed { background: var(--gray-100); color: var(--gray-700); }
.detail-section {
background: white;
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 20px;
box-shadow: var(--shadow-sm);
border: 1px solid var(--gray-200);
}
.section-title {
font-size: var(--text-lg);
font-weight: 600;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--gray-200);
}
.info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.info-item {
padding: 12px;
background: var(--gray-50);
border-radius: var(--radius-md);
}
.info-label {
font-size: var(--text-xs);
color: var(--gray-500);
margin-bottom: 4px;
text-transform: uppercase;
}
.info-value {
font-size: var(--text-base);
font-weight: 500;
}
.type-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 4px;
font-size: var(--text-sm);
font-weight: 500;
}
.type-badge.nonconformity {
background: var(--orange-100);
color: var(--orange-700);
}
.type-badge.safety {
background: var(--red-100);
color: var(--red-700);
}
.severity-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
font-size: var(--text-xs);
font-weight: 600;
}
.severity-badge.critical { background: var(--red-100); color: var(--red-700); }
.severity-badge.high { background: var(--orange-100); color: var(--orange-700); }
.severity-badge.medium { background: var(--yellow-100); color: var(--yellow-700); }
.severity-badge.low { background: var(--gray-100); color: var(--gray-700); }
.photo-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
}
.photo-item {
aspect-ratio: 1;
border-radius: var(--radius-md);
overflow: hidden;
cursor: pointer;
border: 1px solid var(--gray-200);
}
.photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.description-text {
padding: 16px;
background: var(--gray-50);
border-radius: var(--radius-md);
white-space: pre-wrap;
line-height: 1.6;
}
.action-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 24px;
}
.action-btn {
padding: 12px 24px;
border-radius: var(--radius-md);
font-size: var(--text-sm);
font-weight: 600;
cursor: pointer;
border: 1px solid var(--gray-300);
background: white;
transition: all var(--transition-fast);
}
.action-btn:hover {
background: var(--gray-50);
}
.action-btn.primary {
background: var(--primary-500);
color: white;
border-color: var(--primary-500);
}
.action-btn.primary:hover {
background: var(--primary-600);
}
.action-btn.success {
background: var(--green-500);
color: white;
border-color: var(--green-500);
}
.action-btn.success:hover {
background: var(--green-600);
}
.action-btn.danger {
background: var(--red-500);
color: white;
border-color: var(--red-500);
}
.action-btn.danger:hover {
background: var(--red-600);
}
/* 상태 변경 이력 */
.status-timeline {
position: relative;
padding-left: 24px;
}
.status-timeline::before {
content: '';
position: absolute;
left: 6px;
top: 0;
bottom: 0;
width: 2px;
background: var(--gray-200);
}
.timeline-item {
position: relative;
padding-bottom: 16px;
}
.timeline-item:last-child {
padding-bottom: 0;
}
.timeline-item::before {
content: '';
position: absolute;
left: -18px;
top: 4px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--primary-500);
}
.timeline-status {
font-weight: 600;
margin-bottom: 4px;
}
.timeline-meta {
font-size: var(--text-sm);
color: var(--gray-500);
}
/* 담당자 배정 모달 */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal-overlay.visible {
display: flex;
}
.modal-content {
background: white;
padding: 24px;
border-radius: var(--radius-lg);
max-width: 500px;
width: 90%;
}
.modal-title {
font-size: var(--text-lg);
font-weight: 600;
margin-bottom: 20px;
}
.modal-form-group {
margin-bottom: 16px;
}
.modal-form-group label {
display: block;
font-weight: 500;
margin-bottom: 8px;
}
.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--gray-300);
border-radius: var(--radius-md);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 20px;
}
/* 사진 확대 모달 */
.photo-modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 1001;
align-items: center;
justify-content: center;
}
.photo-modal.visible {
display: flex;
}
.photo-modal img {
max-width: 90%;
max-height: 90%;
object-fit: contain;
}
.photo-modal-close {
position: absolute;
top: 20px;
right: 20px;
color: white;
font-size: 32px;
cursor: pointer;
}
@media (max-width: 768px) {
.info-grid {
grid-template-columns: 1fr;
}
.detail-header {
flex-direction: column;
gap: 16px;
}
.action-buttons {
flex-direction: column;
}
.action-btn {
width: 100%;
text-align: center;
}
}
</style>
</head>
<body>
<div id="navbar-container"></div>
<main class="main-content">
<div class="detail-container">
<a href="/pages/safety/issue-list.html" style="color: var(--primary-600); text-decoration: none; margin-bottom: 16px; display: inline-block;">
&#8592; 목록으로
</a>
<div class="detail-header">
<div>
<div class="detail-id" id="reportId"></div>
<h1 class="detail-title" id="reportTitle">로딩 중...</h1>
</div>
<span class="status-badge" id="statusBadge"></span>
</div>
<!-- 기본 정보 -->
<div class="detail-section">
<h2 class="section-title">신고 정보</h2>
<div class="info-grid" id="basicInfo"></div>
</div>
<!-- 신고 내용 -->
<div class="detail-section">
<h2 class="section-title">신고 내용</h2>
<div id="issueContent"></div>
</div>
<!-- 사진 -->
<div class="detail-section" id="photoSection" style="display: none;">
<h2 class="section-title">첨부 사진</h2>
<div class="photo-gallery" id="photoGallery"></div>
</div>
<!-- 처리 정보 (담당자 배정 시) -->
<div class="detail-section" id="processSection" style="display: none;">
<h2 class="section-title">처리 정보</h2>
<div id="processInfo"></div>
</div>
<!-- 상태 이력 -->
<div class="detail-section">
<h2 class="section-title">상태 변경 이력</h2>
<div class="status-timeline" id="statusTimeline"></div>
</div>
<!-- 액션 버튼 -->
<div class="action-buttons" id="actionButtons"></div>
</div>
</main>
<!-- 담당자 배정 모달 -->
<div class="modal-overlay" id="assignModal">
<div class="modal-content">
<h3 class="modal-title">담당자 배정</h3>
<div class="modal-form-group">
<label>담당 부서</label>
<input type="text" id="assignDepartment" placeholder="담당 부서 입력">
</div>
<div class="modal-form-group">
<label>담당자</label>
<select id="assignUser">
<option value="">담당자 선택</option>
</select>
</div>
<div class="modal-actions">
<button class="action-btn" onclick="closeAssignModal()">취소</button>
<button class="action-btn primary" onclick="submitAssign()">배정</button>
</div>
</div>
</div>
<!-- 처리 완료 모달 -->
<div class="modal-overlay" id="completeModal">
<div class="modal-content">
<h3 class="modal-title">처리 완료</h3>
<div class="modal-form-group">
<label>처리 내용</label>
<textarea id="resolutionNotes" rows="4" placeholder="처리 내용을 입력하세요"></textarea>
</div>
<div class="modal-actions">
<button class="action-btn" onclick="closeCompleteModal()">취소</button>
<button class="action-btn success" onclick="submitComplete()">완료 처리</button>
</div>
</div>
</div>
<!-- 사진 확대 모달 -->
<div class="photo-modal" id="photoModal" onclick="closePhotoModal()">
<span class="photo-modal-close">&times;</span>
<img id="photoModalImg" src="" alt="">
</div>
<script type="module" src="/js/load-navbar.js"></script>
<script type="module" src="/js/load-sidebar.js"></script>
<script src="/js/work-issue-detail.js?v=1"></script>
</body>
</html>