feat: 3-System 분리 프로젝트 초기 코드 작성

TK-FB(공장관리+신고)와 M-Project(부적합관리)를 3개 독립 시스템으로
분리하기 위한 전체 코드 구조 작성.
- SSO 인증 서비스 (bcrypt + pbkdf2 이중 해시 지원)
- System 1: 공장관리 (TK-FB 기반, 신고 코드 제거)
- System 2: 신고 (TK-FB에서 workIssue 코드 추출)
- System 3: 부적합관리 (M-Project 기반)
- Gateway 포털 (path-based 라우팅)
- 통합 docker-compose.yml 및 배포 스크립트

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-02-09 14:40:11 +09:00
commit 550633b89d
824 changed files with 1071683 additions and 0 deletions

View File

@@ -0,0 +1,453 @@
<!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/api-base.js"></script>
<script src="/js/app-init.js?v=2" defer></script>
<script src="https://instant.page/5.2.0" type="module"></script>
<style>
/* 상태 배지 */
.status-badge {
display: inline-block;
padding: 0.375rem 1rem;
border-radius: 9999px;
font-size: 0.875rem;
font-weight: 600;
}
.status-badge.reported { background: #dbeafe; color: #1d4ed8; }
.status-badge.received { background: #fed7aa; color: #c2410c; }
.status-badge.in_progress { background: #e9d5ff; color: #7c3aed; }
.status-badge.completed { background: #d1fae5; color: #047857; }
.status-badge.closed { background: #f3f4f6; color: #4b5563; }
/* 유형 배지 */
.type-badge {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-weight: 500;
}
.type-badge.nonconformity { background: #fff7ed; color: #c2410c; }
.type-badge.safety { background: #fef2f2; color: #b91c1c; }
/* 심각도 배지 */
.severity-badge {
display: inline-block;
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
}
.severity-badge.critical { background: #fef2f2; color: #b91c1c; }
.severity-badge.high { background: #fff7ed; color: #c2410c; }
.severity-badge.medium { background: #fefce8; color: #a16207; }
.severity-badge.low { background: #f3f4f6; color: #4b5563; }
/* 상세 섹션 */
.detail-section {
background: white;
border-radius: 0.75rem;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.section-title {
font-size: 1rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid #e5e7eb;
}
/* 정보 그리드 */
.info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.info-item {
padding: 0.875rem;
background: #f9fafb;
border-radius: 0.5rem;
}
.info-label {
font-size: 0.75rem;
color: #6b7280;
margin-bottom: 0.25rem;
text-transform: uppercase;
}
.info-value {
font-size: 0.9375rem;
font-weight: 500;
color: #1f2937;
}
/* 사진 갤러리 */
.photo-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 0.75rem;
}
.photo-item {
aspect-ratio: 1;
border-radius: 0.5rem;
overflow: hidden;
cursor: pointer;
border: 1px solid #e5e7eb;
}
.photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.2s;
}
.photo-item:hover img {
transform: scale(1.05);
}
/* 상태 타임라인 */
.status-timeline {
position: relative;
padding-left: 1.5rem;
}
.status-timeline::before {
content: '';
position: absolute;
left: 0.375rem;
top: 0;
bottom: 0;
width: 2px;
background: #e5e7eb;
}
.timeline-item {
position: relative;
padding-bottom: 1rem;
}
.timeline-item:last-child {
padding-bottom: 0;
}
.timeline-item::before {
content: '';
position: absolute;
left: -1.125rem;
top: 0.25rem;
width: 0.625rem;
height: 0.625rem;
border-radius: 50%;
background: #3b82f6;
}
.timeline-status {
font-weight: 600;
margin-bottom: 0.25rem;
color: #1f2937;
}
.timeline-meta {
font-size: 0.875rem;
color: #6b7280;
}
/* 액션 버튼 */
.action-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.5rem;
}
.action-btn {
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
border: 1px solid #d1d5db;
background: white;
transition: all 0.2s;
}
.action-btn:hover { background: #f9fafb; }
.action-btn.primary { background: #3b82f6; color: white; border-color: #3b82f6; }
.action-btn.primary:hover { background: #2563eb; }
.action-btn.success { background: #10b981; color: white; border-color: #10b981; }
.action-btn.success:hover { background: #059669; }
.action-btn.danger { background: #ef4444; color: white; border-color: #ef4444; }
.action-btn.danger:hover { background: #dc2626; }
/* 모달 */
.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: 1.5rem;
border-radius: 0.75rem;
max-width: 500px;
width: 90%;
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.modal-title {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1.25rem;
}
.modal-form-group {
margin-bottom: 1rem;
}
.modal-form-group label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
font-size: 0.875rem;
}
.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
font-size: 0.875rem;
}
.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
margin-top: 1.25rem;
}
/* 사진 확대 모달 */
.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: 1.25rem;
right: 1.25rem;
color: white;
font-size: 2rem;
cursor: pointer;
}
/* 뒤로가기 링크 */
.back-link {
color: #3b82f6;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
font-size: 0.875rem;
}
.back-link:hover {
text-decoration: underline;
}
/* 헤더 */
.detail-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1.5rem;
}
.detail-id {
font-size: 0.875rem;
color: #6b7280;
margin-bottom: 0.5rem;
}
.detail-title {
font-size: 1.5rem;
font-weight: 600;
color: #1f2937;
}
/* 반응형 */
@media (max-width: 768px) {
.info-grid {
grid-template-columns: 1fr;
}
.detail-header {
flex-direction: column;
gap: 1rem;
}
.action-buttons {
flex-direction: column;
}
.action-btn {
width: 100%;
text-align: center;
}
}
</style>
</head>
<body>
<div class="work-report-container">
<div id="navbar-container"></div>
<main class="work-report-main">
<div class="dashboard-main">
<a href="#" class="back-link" onclick="goBackToList(); return false;">
&#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>
</div>
<script src="/js/issue-detail.js?v=1"></script>
</body>
</html>

View File

@@ -0,0 +1,618 @@
<!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/api-base.js"></script>
<script src="/js/app-init.js?v=2" defer></script>
<script src="https://instant.page/5.2.0" type="module"></script>
<style>
.issue-form-container {
max-width: 900px;
margin: 0 auto;
}
.step-indicator {
display: flex;
justify-content: space-between;
margin-bottom: 32px;
padding: 16px;
background: var(--gray-50);
border-radius: var(--radius-lg);
}
.step {
display: flex;
align-items: center;
gap: 8px;
color: var(--gray-400);
font-size: var(--text-sm);
}
.step.active {
color: var(--primary-600);
font-weight: 600;
}
.step.completed {
color: var(--green-600);
}
.step-number {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--gray-200);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
}
.step.active .step-number {
background: var(--primary-500);
color: white;
}
.step.completed .step-number {
background: var(--green-500);
color: white;
}
.form-section {
background: white;
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 24px;
box-shadow: var(--shadow-sm);
border: 1px solid var(--gray-200);
}
.form-section-title {
font-size: var(--text-lg);
font-weight: 600;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid var(--gray-200);
}
/* 지도 선택 영역 */
.map-container {
position: relative;
min-height: 400px;
background: var(--gray-100);
border-radius: var(--radius-md);
overflow: hidden;
}
#issueMapCanvas {
width: 100%;
height: 400px;
cursor: crosshair;
}
.selected-location-info {
margin-top: 16px;
padding: 16px;
background: var(--primary-50);
border-radius: var(--radius-md);
border-left: 4px solid var(--primary-500);
}
.selected-location-info.empty {
background: var(--gray-50);
border-left-color: var(--gray-300);
color: var(--gray-500);
text-align: center;
}
.custom-location-toggle {
margin-top: 16px;
display: flex;
align-items: center;
gap: 12px;
}
.custom-location-toggle input[type="checkbox"] {
width: 20px;
height: 20px;
}
.custom-location-input {
margin-top: 12px;
display: none;
}
.custom-location-input.visible {
display: block;
}
/* 유형 선택 버튼 */
.type-buttons {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 24px;
}
.type-btn {
padding: 24px;
border: 2px solid var(--gray-200);
border-radius: var(--radius-lg);
background: white;
cursor: pointer;
transition: all var(--transition-fast);
text-align: center;
}
.type-btn:hover {
border-color: var(--primary-300);
background: var(--primary-50);
}
.type-btn.selected {
border-color: var(--primary-500);
background: var(--primary-50);
}
.type-btn.nonconformity.selected {
border-color: var(--orange-500);
background: var(--orange-50);
}
.type-btn.safety.selected {
border-color: var(--red-500);
background: var(--red-50);
}
.type-btn-title {
font-size: var(--text-lg);
font-weight: 600;
margin-bottom: 8px;
}
.type-btn-desc {
font-size: var(--text-sm);
color: var(--gray-500);
}
/* 카테고리 선택 */
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
}
.category-btn {
padding: 16px;
border: 1px solid var(--gray-200);
border-radius: var(--radius-md);
background: white;
cursor: pointer;
transition: all var(--transition-fast);
text-align: center;
font-size: var(--text-sm);
}
.category-btn:hover {
border-color: var(--primary-300);
background: var(--gray-50);
}
.category-btn.selected {
border-color: var(--primary-500);
background: var(--primary-50);
font-weight: 600;
}
/* 사전 정의 항목 선택 */
.item-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 16px;
}
.item-btn {
padding: 12px 20px;
border: 1px solid var(--gray-200);
border-radius: 9999px;
background: white;
cursor: pointer;
transition: all var(--transition-fast);
font-size: var(--text-sm);
}
.item-btn:hover {
border-color: var(--primary-300);
background: var(--gray-50);
}
.item-btn.selected {
border-color: var(--primary-500);
background: var(--primary-500);
color: white;
}
.item-btn[data-severity="critical"] {
border-color: var(--red-300);
}
.item-btn[data-severity="critical"].selected {
background: var(--red-500);
border-color: var(--red-500);
}
.item-btn[data-severity="high"] {
border-color: var(--orange-300);
}
.item-btn[data-severity="high"].selected {
background: var(--orange-500);
border-color: var(--orange-500);
}
/* 사진 업로드 */
.photo-upload-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 12px;
}
.photo-slot {
aspect-ratio: 1;
border: 2px dashed var(--gray-300);
border-radius: var(--radius-md);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all var(--transition-fast);
position: relative;
overflow: hidden;
background: var(--gray-50);
}
.photo-slot:hover {
border-color: var(--primary-500);
background: var(--primary-50);
}
.photo-slot.has-photo {
border-style: solid;
border-color: var(--green-500);
}
.photo-slot img {
width: 100%;
height: 100%;
object-fit: cover;
}
.photo-slot .add-icon {
font-size: 24px;
color: var(--gray-400);
}
.photo-slot .remove-btn {
position: absolute;
top: 4px;
right: 4px;
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--red-500);
color: white;
border: none;
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
font-size: 14px;
}
.photo-slot.has-photo .remove-btn {
display: flex;
}
.photo-slot .add-icon {
display: block;
}
.photo-slot.has-photo .add-icon {
display: none;
}
/* 추가 설명 */
.additional-textarea {
width: 100%;
min-height: 100px;
padding: 12px;
border: 1px solid var(--gray-300);
border-radius: var(--radius-md);
font-size: var(--text-base);
resize: vertical;
}
.additional-textarea:focus {
outline: none;
border-color: var(--primary-500);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
/* 제출 버튼 */
.form-actions {
display: flex;
justify-content: flex-end;
gap: 16px;
margin-top: 32px;
}
.btn-submit {
padding: 16px 48px;
background: var(--primary-500);
color: white;
border: none;
border-radius: var(--radius-md);
font-size: var(--text-base);
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
}
.btn-submit:hover {
background: var(--primary-600);
}
.btn-submit:disabled {
background: var(--gray-300);
cursor: not-allowed;
}
.btn-cancel {
padding: 16px 32px;
background: white;
color: var(--gray-600);
border: 1px solid var(--gray-300);
border-radius: var(--radius-md);
font-size: var(--text-base);
cursor: pointer;
}
.btn-cancel:hover {
background: var(--gray-50);
}
/* 작업 선택 모달 */
.work-selection-modal {
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;
}
.work-selection-modal.visible {
display: flex;
}
.work-selection-content {
background: white;
padding: 24px;
border-radius: var(--radius-lg);
max-width: 500px;
width: 90%;
}
.work-selection-title {
font-size: var(--text-lg);
font-weight: 600;
margin-bottom: 16px;
}
.work-option {
padding: 16px;
border: 1px solid var(--gray-200);
border-radius: var(--radius-md);
margin-bottom: 12px;
cursor: pointer;
transition: all var(--transition-fast);
}
.work-option:hover {
border-color: var(--primary-500);
background: var(--primary-50);
}
.work-option-title {
font-weight: 600;
margin-bottom: 4px;
}
.work-option-desc {
font-size: var(--text-sm);
color: var(--gray-500);
}
/* 반응형 */
@media (max-width: 768px) {
.type-buttons {
grid-template-columns: 1fr;
}
.photo-upload-grid {
grid-template-columns: repeat(3, 1fr);
}
.step-indicator {
flex-wrap: wrap;
gap: 12px;
}
.step-text {
display: none;
}
}
</style>
</head>
<body>
<div id="navbar-container"></div>
<main class="main-content">
<div class="page-header">
<h1 class="page-title">문제 신고</h1>
<p class="page-description">작업 중 발견된 부적합 사항 또는 안전 문제를 신고합니다.</p>
</div>
<div class="issue-form-container">
<!-- 단계 표시 -->
<div class="step-indicator">
<div class="step active" data-step="1">
<span class="step-number">1</span>
<span class="step-text">위치 선택</span>
</div>
<div class="step" data-step="2">
<span class="step-number">2</span>
<span class="step-text">유형 선택</span>
</div>
<div class="step" data-step="3">
<span class="step-number">3</span>
<span class="step-text">항목 선택</span>
</div>
<div class="step" data-step="4">
<span class="step-number">4</span>
<span class="step-text">사진/설명</span>
</div>
</div>
<!-- Step 1: 위치 선택 -->
<div class="form-section" id="step1Section">
<h2 class="form-section-title">1. 발생 위치 선택</h2>
<div class="form-group">
<label for="factorySelect">공장 선택</label>
<select id="factorySelect">
<option value="">공장을 선택하세요</option>
</select>
</div>
<div class="map-container">
<canvas id="issueMapCanvas"></canvas>
</div>
<div class="selected-location-info empty" id="selectedLocationInfo">
지도에서 작업장을 클릭하여 위치를 선택하세요
</div>
<div class="custom-location-toggle">
<input type="checkbox" id="useCustomLocation">
<label for="useCustomLocation">지도에 없는 위치 직접 입력</label>
</div>
<div class="custom-location-input" id="customLocationInput">
<input type="text" id="customLocation" placeholder="위치를 입력하세요 (예: 야적장 입구, 주차장 등)">
</div>
</div>
<!-- Step 2: 문제 유형 선택 -->
<div class="form-section" id="step2Section">
<h2 class="form-section-title">2. 문제 유형 선택</h2>
<div class="type-buttons">
<div class="type-btn nonconformity" data-type="nonconformity">
<div class="type-btn-title">부적합 사항</div>
<div class="type-btn-desc">자재, 설계, 검사 관련 문제</div>
</div>
<div class="type-btn safety" data-type="safety">
<div class="type-btn-title">안전 관련</div>
<div class="type-btn-desc">보호구, 위험구역, 안전수칙 관련</div>
</div>
</div>
<div id="categoryContainer" style="display: none;">
<label style="font-weight: 600; margin-bottom: 12px; display: block;">세부 카테고리</label>
<div class="category-grid" id="categoryGrid"></div>
</div>
</div>
<!-- Step 3: 신고 항목 선택 -->
<div class="form-section" id="step3Section">
<h2 class="form-section-title">3. 신고 항목 선택</h2>
<p style="color: var(--gray-500); margin-bottom: 16px;">해당하는 항목을 선택하세요. 여러 개 선택 가능합니다.</p>
<div class="item-grid" id="itemGrid">
<p style="color: var(--gray-400);">먼저 카테고리를 선택하세요</p>
</div>
</div>
<!-- Step 4: 사진 및 추가 설명 -->
<div class="form-section" id="step4Section">
<h2 class="form-section-title">4. 사진 및 추가 설명</h2>
<div class="form-group">
<label>사진 첨부 (최대 5장)</label>
<div class="photo-upload-grid">
<div class="photo-slot" data-index="0">
<span class="add-icon">+</span>
<button class="remove-btn" type="button">&times;</button>
</div>
<div class="photo-slot" data-index="1">
<span class="add-icon">+</span>
<button class="remove-btn" type="button">&times;</button>
</div>
<div class="photo-slot" data-index="2">
<span class="add-icon">+</span>
<button class="remove-btn" type="button">&times;</button>
</div>
<div class="photo-slot" data-index="3">
<span class="add-icon">+</span>
<button class="remove-btn" type="button">&times;</button>
</div>
<div class="photo-slot" data-index="4">
<span class="add-icon">+</span>
<button class="remove-btn" type="button">&times;</button>
</div>
</div>
<input type="file" id="photoInput" accept="image/*" capture="environment" style="display: none;">
</div>
<div class="form-group">
<label for="additionalDescription">추가 설명 (선택)</label>
<textarea id="additionalDescription" class="additional-textarea" placeholder="추가로 설명이 필요한 내용을 입력하세요..."></textarea>
</div>
</div>
<!-- 제출 버튼 -->
<div class="form-actions">
<button type="button" class="btn-cancel" onclick="history.back()">취소</button>
<button type="button" class="btn-submit" id="submitBtn" onclick="submitReport()">신고 제출</button>
</div>
</div>
</main>
<!-- 작업 선택 모달 -->
<div class="work-selection-modal" id="workSelectionModal">
<div class="work-selection-content">
<h3 class="work-selection-title">작업 선택</h3>
<p style="margin-bottom: 16px; color: var(--gray-600);">이 위치에 등록된 작업이 있습니다. 연결할 작업을 선택하세요.</p>
<div id="workOptionsList"></div>
<button type="button" onclick="closeWorkModal()" style="width: 100%; padding: 12px; margin-top: 8px; background: var(--gray-100); border: none; border-radius: var(--radius-md); cursor: pointer;">
작업 연결 없이 진행
</button>
</div>
</div>
<script src="/js/work-issue-report.js?v=1"></script>
</body>
</html>

View File

@@ -0,0 +1,306 @@
<!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/api-base.js"></script>
<script src="/js/app-init.js?v=2" defer></script>
<script src="https://instant.page/5.2.0" type="module"></script>
<style>
/* 통계 카드 */
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: white;
padding: 1.25rem;
border-radius: 0.75rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
text-align: center;
}
.stat-number {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.25rem;
}
.stat-label {
font-size: 0.875rem;
color: #6b7280;
}
.stat-card.reported .stat-number { color: #3b82f6; }
.stat-card.received .stat-number { color: #f97316; }
.stat-card.in_progress .stat-number { color: #8b5cf6; }
.stat-card.completed .stat-number { color: #10b981; }
/* 필터 바 */
.filter-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
padding: 1rem 1.25rem;
background: white;
border-radius: 0.75rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.filter-bar select,
.filter-bar input {
padding: 0.625rem 0.875rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
font-size: 0.875rem;
background: white;
}
.filter-bar select:focus,
.filter-bar input:focus {
outline: none;
border-color: #ef4444;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.btn-new-report {
margin-left: auto;
padding: 0.625rem 1.25rem;
background: #ef4444;
color: white;
border: none;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
transition: background 0.2s;
}
.btn-new-report:hover {
background: #dc2626;
}
/* 신고 목록 */
.issue-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.issue-card {
background: white;
border-radius: 0.75rem;
padding: 1.25rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
}
.issue-card:hover {
border-color: #fecaca;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.issue-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
}
.issue-id {
font-size: 0.875rem;
color: #9ca3af;
}
.issue-status {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.issue-status.reported {
background: #dbeafe;
color: #1d4ed8;
}
.issue-status.received {
background: #fed7aa;
color: #c2410c;
}
.issue-status.in_progress {
background: #e9d5ff;
color: #7c3aed;
}
.issue-status.completed {
background: #d1fae5;
color: #047857;
}
.issue-status.closed {
background: #f3f4f6;
color: #4b5563;
}
.issue-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #1f2937;
}
.issue-category-badge {
display: inline-block;
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
margin-right: 0.5rem;
background: #fef2f2;
color: #b91c1c;
}
.issue-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.875rem;
color: #6b7280;
}
.issue-meta-item {
display: flex;
align-items: center;
gap: 0.375rem;
}
.issue-photos {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
}
.issue-photos img {
width: 56px;
height: 56px;
object-fit: cover;
border-radius: 0.375rem;
border: 1px solid #e5e7eb;
}
/* 빈 상태 */
.empty-state {
text-align: center;
padding: 4rem 1.5rem;
color: #6b7280;
background: white;
border-radius: 0.75rem;
}
.empty-state-title {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #374151;
}
@media (max-width: 768px) {
.filter-bar {
flex-direction: column;
align-items: stretch;
}
.btn-new-report {
width: 100%;
justify-content: center;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
}
</style>
</head>
<body>
<div class="work-report-container">
<div id="navbar-container"></div>
<main class="work-report-main">
<div class="dashboard-main">
<div class="page-header">
<div class="page-title-section">
<h1 class="page-title">안전신고 현황</h1>
<p class="page-description">보호구 미착용, 위험구역 출입 등 안전 관련 신고 현황입니다.</p>
</div>
</div>
<!-- 통계 카드 -->
<div class="stats-grid" id="statsGrid">
<div class="stat-card reported">
<div class="stat-number" id="statReported">-</div>
<div class="stat-label">신고</div>
</div>
<div class="stat-card received">
<div class="stat-number" id="statReceived">-</div>
<div class="stat-label">접수</div>
</div>
<div class="stat-card in_progress">
<div class="stat-number" id="statProgress">-</div>
<div class="stat-label">처리중</div>
</div>
<div class="stat-card completed">
<div class="stat-number" id="statCompleted">-</div>
<div class="stat-label">완료</div>
</div>
</div>
<!-- 필터 바 -->
<div class="filter-bar">
<select id="filterStatus">
<option value="">전체 상태</option>
<option value="reported">신고</option>
<option value="received">접수</option>
<option value="in_progress">처리중</option>
<option value="completed">완료</option>
<option value="closed">종료</option>
</select>
<input type="date" id="filterStartDate" title="시작일">
<input type="date" id="filterEndDate" title="종료일">
<a href="/pages/safety/report.html?type=safety" class="btn-new-report">
+ 안전 신고
</a>
</div>
<!-- 신고 목록 -->
<div class="issue-list" id="issueList">
<div class="empty-state">
<div class="empty-state-title">로딩 중...</div>
</div>
</div>
</div>
</main>
</div>
<script src="/js/safety-report-list.js?v=2"></script>
</body>
</html>