fix: 대체조제 표시 수정 - PS_Type 의미 반영

- PS_Type=1: 대) 일반 대체조제 (주황색)
- PS_Type=4+9 쌍: 저) 저가대체 인센티브 (초록색)
- 비급여 표시는 추후 별도 구현
This commit is contained in:
thug0bin 2026-03-05 13:54:51 +09:00
parent 8a86a120d8
commit daa697fff9

View File

@ -942,7 +942,7 @@
tr.row-removed { background: #fef2f2 !important; opacity: 0.7; }
tr.row-changed { background: #fffbeb !important; }
/* 대체조제 표시 */
/* 일반 대체조제 표시 */
.subst-badge {
display: inline-block;
background: linear-gradient(135deg, #f59e0b, #d97706);
@ -954,10 +954,10 @@
margin-right: 4px;
vertical-align: middle;
}
/* 비급여 표시 */
.noncov-badge {
/* 저가대체 인센티브 표시 */
.lowcost-badge {
display: inline-block;
background: linear-gradient(135deg, #ef4444, #dc2626);
background: linear-gradient(135deg, #10b981, #059669);
color: white;
padding: 1px 5px;
border-radius: 4px;
@ -1419,7 +1419,7 @@
<td><input type="checkbox" class="med-check" data-code="${m.medication_code}" ${m.is_auto_print ? 'checked' : ''}></td>
<td>
<div class="med-name">
${m.ps_type === '1' ? '<span class="noncov-badge" title="비급여">)</span> ' : ''}${m.is_substituted ? '<span class="subst-badge" title="대체조제">)</span> ' : ''}${m.med_name || m.medication_code}
${m.ps_type === '1' ? '<span class="subst-badge" title="일반 대체조제">)</span> ' : ''}${m.is_substituted ? '<span class="lowcost-badge" title="저가대체 인센티브">)</span> ' : ''}${m.med_name || m.medication_code}
</div>
<div class="med-code">${m.medication_code}</div>
${m.add_info ? `<div style="font-size:0.75rem;color:#6b7280;">${escapeHtml(m.add_info)}</div>` : ''}