diff --git a/static/app.js b/static/app.js index fdd3e9e..aabe25f 100644 --- a/static/app.js +++ b/static/app.js @@ -68,7 +68,14 @@ $(document).ready(function() { } }); - // TODO: 오늘 조제 수, 최근 조제 내역 + // 오늘 조제 수 + $.get('/api/compounds', function(response) { + if (response.success) { + const today = new Date().toISOString().split('T')[0]; + const todayCompounds = response.data.filter(c => c.compound_date === today); + $('#todayCompounds').text(todayCompounds.length); + } + }); } // 환자 목록 로드 diff --git a/templates/index.html b/templates/index.html index 4af61de..8afb8b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -585,9 +585,14 @@