카카오톡 인앱 WebView는 서브도메인 간 쿠키를 공유하지 않아 tkds에서 로그인 후 tkfb로 리다이렉트 시 인증이 풀리는 문제. - sso-relay.js: URL hash의 _sso= 토큰을 로컬 쿠키+localStorage로 설정 - gateway dashboard: 로그인 후 redirect URL에 #_sso=<token> 추가 - 전 서비스 HTML: core JS 직전에 sso-relay.js 로드 (81개 파일) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
123 lines
6.7 KiB
HTML
123 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>업무현황 - TK 구매관리</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link rel="stylesheet" href="/static/css/tkpurchase.css?v=2026031602">
|
|
</head>
|
|
<body>
|
|
<!-- Header -->
|
|
<header class="bg-emerald-700 text-white sticky top-0 z-50">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div class="flex justify-between items-center h-14">
|
|
<div class="flex items-center gap-3">
|
|
<button id="mobileMenuBtn" onclick="toggleMobileMenu()" class="lg:hidden text-emerald-200 hover:text-white">
|
|
<i class="fas fa-bars text-xl"></i>
|
|
</button>
|
|
<i class="fas fa-truck text-xl text-emerald-200"></i>
|
|
<h1 class="text-lg font-semibold">TK 구매관리</h1>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<div id="headerUserName" class="text-sm font-medium hidden sm:block">-</div>
|
|
<div id="headerUserAvatar" class="w-8 h-8 bg-emerald-600 rounded-full flex items-center justify-center text-sm font-semibold">-</div>
|
|
<button onclick="doLogout()" class="text-emerald-200 hover:text-white" title="로그아웃"><i class="fas fa-sign-out-alt"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 fade-in">
|
|
<div class="flex gap-6">
|
|
<!-- Sidebar Nav -->
|
|
<nav id="sideNav" class="hidden lg:flex flex-col gap-1 w-48 flex-shrink-0 pt-2"></nav>
|
|
|
|
<!-- Main -->
|
|
<div class="flex-1 min-w-0">
|
|
<!-- 필터 -->
|
|
<div class="bg-white rounded-xl shadow-sm p-4 mb-5">
|
|
<div class="flex flex-wrap items-end gap-3 filter-bar">
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">업체</label>
|
|
<select id="filterCompany" class="input-field px-3 py-2 rounded-lg text-sm">
|
|
<option value="">전체</option>
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">시작일</label>
|
|
<input type="date" id="filterDateFrom" class="input-field px-3 py-2 rounded-lg text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">종료일</label>
|
|
<input type="date" id="filterDateTo" class="input-field px-3 py-2 rounded-lg text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">확인 상태</label>
|
|
<select id="filterConfirmed" class="input-field px-3 py-2 rounded-lg text-sm">
|
|
<option value="">전체</option>
|
|
<option value="false">미확인</option>
|
|
<option value="true">확인완료</option>
|
|
</select>
|
|
</div>
|
|
<div class="filter-actions">
|
|
<button onclick="loadReports()" class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg text-sm hover:bg-gray-200">
|
|
<i class="fas fa-search mr-1"></i>조회
|
|
</button>
|
|
<a href="/workreport-summary.html" class="px-4 py-2 bg-purple-50 text-purple-700 rounded-lg text-sm hover:bg-purple-100 border border-purple-200">
|
|
<i class="fas fa-chart-bar mr-1"></i>종합
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 테이블 -->
|
|
<div class="bg-white rounded-xl shadow-sm p-5">
|
|
<h2 class="text-base font-semibold text-gray-800 mb-4">
|
|
<i class="fas fa-clipboard-list text-purple-500 mr-2"></i>업무현황 목록
|
|
</h2>
|
|
<div class="overflow-x-auto">
|
|
<table class="visit-table">
|
|
<thead>
|
|
<tr>
|
|
<th>보고일</th>
|
|
<th class="text-center hide-mobile">보고#</th>
|
|
<th>업체</th>
|
|
<th>작업내용</th>
|
|
<th class="text-center">실투입</th>
|
|
<th class="text-center">진행률</th>
|
|
<th class="hide-mobile">이슈</th>
|
|
<th class="text-center">확인</th>
|
|
<th class="text-right">관리</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="reportTableBody">
|
|
<tr><td colspan="9" class="text-center text-gray-400 py-8">로딩 중...</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="reportPagination" class="flex justify-center items-center gap-2 mt-4"></div>
|
|
</div>
|
|
|
|
<!-- 상세보기 패널 -->
|
|
<div id="reportDetailPanel" class="hidden bg-white rounded-xl shadow-sm p-5 mt-5">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h2 class="text-base font-semibold text-gray-800">
|
|
<i class="fas fa-file-alt text-purple-500 mr-2"></i>업무현황 상세
|
|
</h2>
|
|
<button onclick="closeReportDetail()" class="text-gray-400 hover:text-gray-600"><i class="fas fa-times"></i></button>
|
|
</div>
|
|
<div id="reportDetailContent"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/static/js/sso-relay.js?v=20260401"></script>
|
|
<script src="/static/js/tkpurchase-core.js?v=2026040101"></script>
|
|
<script src="/static/js/tkpurchase-workreport.js?v=2026031601"></script>
|
|
<script>initWorkReportPage();</script>
|
|
</body>
|
|
</html>
|