diff --git a/backend/templates/admin_rx_usage.html b/backend/templates/admin_rx_usage.html index badb590..c61e6cc 100644 --- a/backend/templates/admin_rx_usage.html +++ b/backend/templates/admin_rx_usage.html @@ -1279,14 +1279,15 @@ if (e.key === 'Enter') loadUsageData(); }); - // ──────────────── 지오영 재고 조회 ──────────────── - let currentGeoyoungItem = null; + // ──────────────── 도매상 재고 조회 (지오영 + 수인) ──────────────── + let currentWholesaleItem = null; + window.wholesaleItems = { geoyoung: [], sooin: [] }; - function openGeoyoungModal(idx) { + function openWholesaleModal(idx) { const item = usageData[idx]; if (!item) return; - currentGeoyoungItem = item; + currentWholesaleItem = item; // 모달 열기 document.getElementById('geoModalProductName').textContent = item.product_name; @@ -1300,142 +1301,193 @@ document.getElementById('geoResultBody').innerHTML = `
| 제품명 | -규격 | -재고 | -- |
|---|---|---|---|
|
-
- ${escapeHtml(item.product_name)}
- ${item.insurance_code}
-
- |
- ${item.specification} | -${item.stock} | -- ${hasStock ? `` : ''} - | -
| 제품명 | 규격 | 재고 | |
|---|---|---|---|
|
+
+ ${escapeHtml(item.product_name)}
+ ${item.insurance_code}
+
+ |
+ ${item.specification} | +${item.stock} | +${hasStock ? `` : ''} | +
| 제품명 | 규격 | 단가 | 재고 | |
|---|---|---|---|---|
|
+
+ ${escapeHtml(item.name)}
+ ${item.code} · ${item.manufacturer || ''}
+
+ |
+ ${item.spec || '-'} | +${item.price ? item.price.toLocaleString() + '원' : '-'} | +${item.stock} | +${hasStock ? `` : ''} | +