feat: 지오영 재고 조회 시 단가 표시
- geoyoung_api.py: include_price=True로 검색 - admin_rx_usage.html: 지오영 섹션에 단가 컬럼 추가
This commit is contained in:
@@ -1383,11 +1383,12 @@
|
||||
|
||||
if (geoItems.length > 0) {
|
||||
html += `<table class="geo-table">
|
||||
<thead><tr><th>제품명</th><th>규격</th><th>재고</th><th></th></tr></thead>
|
||||
<thead><tr><th>제품명</th><th>규격</th><th>단가</th><th>재고</th><th></th></tr></thead>
|
||||
<tbody>`;
|
||||
|
||||
geoItems.forEach((item, idx) => {
|
||||
const hasStock = item.stock > 0;
|
||||
const priceText = item.price ? item.price.toLocaleString() + '원' : '-';
|
||||
html += `
|
||||
<tr class="${hasStock ? '' : 'no-stock'}">
|
||||
<td>
|
||||
@@ -1397,6 +1398,7 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="geo-spec">${item.specification}</td>
|
||||
<td class="geo-price">${priceText}</td>
|
||||
<td class="geo-stock ${hasStock ? 'in-stock' : 'out-stock'}">${item.stock}</td>
|
||||
<td>${hasStock ? `<button class="geo-add-btn" onclick="addToCartFromWholesale('geoyoung', ${idx})">담기</button>` : ''}</td>
|
||||
</tr>`;
|
||||
|
||||
Reference in New Issue
Block a user