- 일일순회점검 시스템 신규 구현 - DB 테이블: patrol_checklist_items, daily_patrol_sessions, patrol_check_records, workplace_items, item_types - API: /api/patrol/* 엔드포인트 - 프론트엔드: 지도 기반 작업장 점검 UI - 설비 관리 기능 개선 - 구매 관련 필드 추가 (구매일, 가격, 공급업체 등) - 설비 코드 자동 생성 (TKP-XXX 형식) - 작업장 관리 개선 - 레이아웃 이미지 업로드 기능 - 마커 위치 저장 기능 - 부서 관리 기능 추가 - 사이드바 네비게이션 카테고리 재구성 - 이미지 401 오류 수정 (정적 파일 경로 처리) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
141 lines
6.5 KiB
HTML
141 lines
6.5 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/admin-pages.css?v=8">
|
||
<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>
|
||
</head>
|
||
<body>
|
||
<!-- 네비게이션 바 -->
|
||
<div id="navbar-container"></div>
|
||
|
||
<!-- 메인 레이아웃 -->
|
||
<div class="page-container">
|
||
<!-- 메인 콘텐츠 -->
|
||
<main class="main-content">
|
||
<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 class="page-actions">
|
||
<button class="btn btn-secondary" onclick="refreshAllCodes()">전체 새로고침</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 코드 유형 탭 -->
|
||
<div class="code-tabs">
|
||
<button class="tab-btn active" data-tab="work-status" onclick="switchCodeTab('work-status')">작업 상태 유형</button>
|
||
<button class="tab-btn" data-tab="work-types" onclick="switchCodeTab('work-types')">작업 유형</button>
|
||
</div>
|
||
|
||
<!-- 작업 상태 유형 관리 -->
|
||
<div id="work-status-tab" class="code-tab-content active">
|
||
<div class="code-section">
|
||
<div class="section-header">
|
||
<h2 class="section-title">작업 상태 유형 관리</h2>
|
||
<div class="section-actions">
|
||
<button class="btn btn-primary" onclick="openCodeModal('work-status')">새 상태 추가</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="code-stats">
|
||
<span class="stat-item">총 <span id="workStatusCount">0</span>개</span>
|
||
<span class="stat-item">정상 <span id="normalStatusCount">0</span>개</span>
|
||
<span class="stat-item">오류 <span id="errorStatusCount">0</span>개</span>
|
||
</div>
|
||
|
||
<div class="code-grid" id="workStatusGrid">
|
||
<!-- 작업 상태 유형 카드들이 여기에 동적으로 생성됩니다 -->
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 작업 유형 관리 -->
|
||
<div id="work-types-tab" class="code-tab-content">
|
||
<div class="code-section">
|
||
<div class="section-header">
|
||
<h2 class="section-title">작업 유형 관리</h2>
|
||
<div class="section-actions">
|
||
<button class="btn btn-primary" onclick="openCodeModal('work-types')">새 작업 유형 추가</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="code-stats">
|
||
<span class="stat-item">총 <span id="workTypesCount">0</span>개</span>
|
||
<span class="stat-item">카테고리 <span id="workCategoriesCount">0</span>개</span>
|
||
</div>
|
||
|
||
<div class="code-grid" id="workTypesGrid">
|
||
<!-- 작업 유형 카드들이 여기에 동적으로 생성됩니다 -->
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
|
||
<!-- 코드 추가/수정 모달 -->
|
||
<div id="codeModal" class="modal-overlay" style="display: none;">
|
||
<div class="modal-container">
|
||
<div class="modal-header">
|
||
<h2 id="modalTitle">코드 추가</h2>
|
||
<button class="modal-close-btn" onclick="closeCodeModal()">×</button>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
<form id="codeForm" onsubmit="event.preventDefault(); saveCode();">
|
||
<input type="hidden" id="codeId">
|
||
<input type="hidden" id="codeType">
|
||
|
||
<!-- 공통 필드 -->
|
||
<div class="form-group">
|
||
<label class="form-label">이름 *</label>
|
||
<input type="text" id="codeName" class="form-control" placeholder="코드명을 입력하세요" required>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label class="form-label">설명</label>
|
||
<textarea id="codeDescription" class="form-control" rows="3" placeholder="상세 설명을 입력하세요"></textarea>
|
||
</div>
|
||
|
||
<!-- 작업 상태 유형 전용 필드 -->
|
||
<div class="form-group" id="isErrorGroup" style="display: none;">
|
||
<label class="form-label">
|
||
<input type="checkbox" id="isError" class="form-checkbox">
|
||
오류 상태로 분류
|
||
</label>
|
||
<small class="form-help">체크하면 이 상태는 오류로 간주됩니다</small>
|
||
</div>
|
||
|
||
<!-- 작업 유형 전용 필드 -->
|
||
<div class="form-group" id="categoryGroup" style="display: none;">
|
||
<label class="form-label">카테고리</label>
|
||
<input type="text" id="category" class="form-control" placeholder="작업 카테고리 (예: PKG, Vessel)" list="categoryList">
|
||
<datalist id="categoryList">
|
||
<!-- 기존 카테고리 목록이 여기에 동적으로 생성됩니다 -->
|
||
</datalist>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" onclick="closeCodeModal()">취소</button>
|
||
<button type="button" class="btn btn-danger" id="deleteCodeBtn" onclick="deleteCode()" style="display: none;">삭제</button>
|
||
<button type="button" class="btn btn-primary" onclick="saveCode()">저장</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script type="module" src="/js/code-management.js?v=2"></script>
|
||
</body>
|
||
</html>
|