From 79369d9a565fe23e3448d494bc127d9817f0d85c Mon Sep 17 00:00:00 2001 From: thug0bin Date: Fri, 27 Feb 2026 15:24:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A1=B0=EC=A0=9C=EC=9D=B4=EB=A0=A5=20?= =?UTF-8?q?=ED=88=AC=EC=95=BD=EC=A0=95=EB=B3=B4=20=ED=91=9C=EC=8B=9C=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 투약량 x 횟수 x 일수 형식으로 표시 - 예: 1정 × 3회 × 7일 --- backend/templates/admin_members.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/backend/templates/admin_members.html b/backend/templates/admin_members.html index bf3914e..4d5718c 100644 --- a/backend/templates/admin_members.html +++ b/backend/templates/admin_members.html @@ -1004,13 +1004,20 @@ formattedDate = `${dateStr.slice(0,4)}.${dateStr.slice(4,6)}.${dateStr.slice(6,8)}`; } - // 처방 품목 렌더링 - const itemsHtml = (rx.items || []).map(item => ` -
- ${escapeHtml(item.name)} - ${item.days}일 x${item.times_per_day}회 -
- `).join(''); + // 처방 품목 렌더링 (투약량 x 횟수 x 일수) + const itemsHtml = (rx.items || []).map(item => { + const dosage = item.quantity || 1; // 1회 투약량 + const freq = item.times_per_day || 1; // 1일 투약횟수 + const days = item.days || 0; // 투약일수 + return ` +
+ ${escapeHtml(item.name)} + + ${dosage}정 × ${freq}회 × ${days}일 + +
+ `; + }).join(''); return `