feat: 회원 관리 페이지에 마일리지 표시 추가

- 환자 목록에 마일리지 잔액 컬럼 추가
- 마일리지가 있는 회원은 돼지저금통 아이콘 표시
- 환자 편집 모달에 마일리지 관리 섹션 추가
  - 현재 잔액, 총 적립, 총 사용 표시
  - 마일리지 적립/차감 버튼 (추후 구현 예정)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-02-18 05:44:34 +00:00
parent f3f1efd8c2
commit ee15d8e45e
2 changed files with 34 additions and 0 deletions

View File

@@ -148,6 +148,7 @@ $(document).ready(function() {
response.data.forEach(patient => {
const compoundCount = compoundCounts[patient.patient_id] || 0;
const mileageBalance = patient.mileage_balance || 0;
tbody.append(`
<tr>
@@ -158,6 +159,10 @@ $(document).ready(function() {
<td>
<span class="badge bg-primary">${compoundCount}회</span>
</td>
<td>
<span class="text-primary fw-bold">${mileageBalance.toLocaleString()}P</span>
${mileageBalance > 0 ? '<i class="bi bi-piggy-bank-fill text-warning ms-1"></i>' : ''}
</td>
<td>${patient.notes || '-'}</td>
<td>
<button class="btn btn-sm btn-outline-info view-patient-compounds"