- 페이지 폴더 재구성: safety/, attendance/ 폴더 신규 생성 - work/ → safety/: 이슈 신고, 출입 신청 관련 페이지 이동 - common/ → attendance/: 근태/휴가 관련 페이지 이동 - admin/ 정리: safety-* 파일들을 safety/로 이동 - 사이드바 네비게이션 메뉴 구현 - 카테고리별 메뉴: 작업관리, 안전관리, 근태관리, 시스템관리 - 접기/펼치기 기능 및 상태 저장 - 관리자 전용 메뉴 자동 표시/숨김 - 날씨 API 연동 (기상청 단기예보) - TBM 및 navbar에 현재 날씨 표시 - weatherService.js 추가 - 안전 체크리스트 확장 - 기본/날씨별/작업별 체크 유형 추가 - checklist-manage.html 페이지 추가 - 이슈 신고 시스템 구현 - workIssueController, workIssueModel, workIssueRoutes 추가 - DB 마이그레이션 파일 추가 (실행 대기) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
458 lines
13 KiB
HTML
458 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;">
|
|
← 목록으로
|
|
</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">×</span>
|
|
<img id="photoModalImg" src="" alt="">
|
|
</div>
|
|
|
|
<script src="/js/load-navbar.js?v=1"></script>
|
|
<script src="/js/work-issue-detail.js?v=1"></script>
|
|
</body>
|
|
</html>
|