fix: 재고 보정 메뉴 추가 및 대시보드 오늘 조제 카운트 수정
## UI 개선 - 재고 현황 페이지에 "재고 보정" 버튼 추가 - 입출고 원장 옆에 배치 ## 대시보드 수정 - 오늘 조제 카운트 실제 데이터 표시 - compounds API에서 오늘 날짜 필터링 ## 위치 - 재고 보정: 재고 현황 > 재고 보정 버튼 - 대시보드 오늘 조제: 정상 작동 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1826ea5ca4
commit
91ebfc2984
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 환자 목록 로드
|
||||
|
||||
@ -585,9 +585,14 @@
|
||||
<div id="inventory" class="main-content">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h3><i class="bi bi-box-seam"></i> 재고 현황</h3>
|
||||
<button class="btn btn-outline-info" id="showStockLedgerBtn">
|
||||
<i class="bi bi-journal-text"></i> 입출고 원장
|
||||
</button>
|
||||
<div>
|
||||
<button class="btn btn-warning me-2" id="showStockAdjustmentBtn">
|
||||
<i class="bi bi-sliders"></i> 재고 보정
|
||||
</button>
|
||||
<button class="btn btn-outline-info" id="showStockLedgerBtn">
|
||||
<i class="bi bi-journal-text"></i> 입출고 원장
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user