From 5b1f2a45f7c507e15aca1b7eb5c1032d3df722b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 3 Feb 2026 17:38:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=ED=99=88=ED=83=9D=EC=8A=A4=20=EA=B8=B0?= =?UTF-8?q?=EA=B0=84=20=EB=B2=84=ED=8A=BC=20=EC=84=A0=ED=83=9D=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=ED=91=9C=EC=8B=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/barobill/hometax/index.blade.php | 43 +++++++++++++++---- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/resources/views/barobill/hometax/index.blade.php b/resources/views/barobill/hometax/index.blade.php index d87c881a..dc172961 100644 --- a/resources/views/barobill/hometax/index.blade.php +++ b/resources/views/barobill/hometax/index.blade.php @@ -338,6 +338,7 @@ className="flex items-center gap-2 px-3 py-1.5 bg-blue-100 text-blue-700 rounded const [dataSource, setDataSource] = useState('local'); // 'local': 로컬 DB, 'api': 바로빌 API const [syncing, setSyncing] = useState(false); // 동기화 중 여부 const [lastSyncAt, setLastSyncAt] = useState({ sales: null, purchase: null }); // 마지막 동기화 시간 + const [selectedPeriod, setSelectedPeriod] = useState(null); // 선택된 기간 버튼 ('q1', 'q2', 'q3', 'q4', 'h1', 'h2', 'year') // 진단 관련 상태 const [showDiagnoseModal, setShowDiagnoseModal] = useState(false); @@ -657,6 +658,7 @@ className="flex items-center gap-2 px-3 py-1.5 bg-blue-100 text-blue-700 rounded const lastDay = new Date(year, startMonth + 3, 0); setDateFrom(formatKoreanDate(firstDay)); setDateTo(formatKoreanDate(lastDay)); + setSelectedPeriod('q' + quarter); }; // 기(반기) 계산 (1기: 1-6월, 2기: 7-12월) @@ -668,6 +670,7 @@ className="flex items-center gap-2 px-3 py-1.5 bg-blue-100 text-blue-700 rounded const lastDay = new Date(year, startMonth + 6, 0); setDateFrom(formatKoreanDate(firstDay)); setDateTo(formatKoreanDate(lastDay)); + setSelectedPeriod('h' + half); }; // 1년 계산 @@ -678,6 +681,7 @@ className="flex items-center gap-2 px-3 py-1.5 bg-blue-100 text-blue-700 rounded const lastDay = new Date(year, 11, 31); setDateFrom(formatKoreanDate(firstDay)); setDateTo(formatKoreanDate(lastDay)); + setSelectedPeriod('year'); }; // 거래처 필터링 @@ -749,26 +753,47 @@ className="px-3 py-2 text-sm border border-[#ced4da] rounded bg-white focus:bord setDateFrom(e.target.value)} + onChange={(e) => { setDateFrom(e.target.value); setSelectedPeriod(null); }} className="px-3 py-2 text-sm border border-[#ced4da] rounded bg-white focus:border-[#86b7fe] focus:ring-2 focus:ring-[#86b7fe]/25 outline-none" /> ~ setDateTo(e.target.value)} + onChange={(e) => { setDateTo(e.target.value); setSelectedPeriod(null); }} className="px-3 py-2 text-sm border border-[#ced4da] rounded bg-white focus:border-[#86b7fe] focus:ring-2 focus:ring-[#86b7fe]/25 outline-none" /> {/* 분기/기/년 버튼 그룹 */}
- - - - - - - + + + + + + +
{/* 검색 버튼 */}