feat: 동물약 바코드/APC 2줄 표시
- 대표바코드(CD_GOODS.BARCODE)만 표시 (없으면 '없음') - APC: 02로 시작하는 단위바코드 별도 표시 - APC 없으면 'APC미지정' 빨간 점선 뱃지 - 동물약만 체크 시에만 2줄 표시 (일반약품은 1줄) - 헤더: '바코드/APC'
This commit is contained in:
@@ -393,6 +393,15 @@
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
}
|
||||
.code-apc {
|
||||
background: #ede9fe;
|
||||
color: #7c3aed;
|
||||
}
|
||||
.code-apc-na {
|
||||
background: #fef2f2;
|
||||
color: #dc2626;
|
||||
border: 1px dashed #fca5a5;
|
||||
}
|
||||
.code-na {
|
||||
background: #f1f5f9;
|
||||
color: #94a3b8;
|
||||
@@ -883,7 +892,7 @@
|
||||
<th style="width:50px;">이미지</th>
|
||||
<th>상품명</th>
|
||||
<th>상품코드</th>
|
||||
<th>바코드</th>
|
||||
<th>바코드/APC</th>
|
||||
<th>위치</th>
|
||||
<th>재고</th>
|
||||
<th>판매가</th>
|
||||
@@ -1043,9 +1052,10 @@
|
||||
<div class="product-supplier ${item.is_set ? 'set' : ''}">${escapeHtml(item.supplier) || ''}</div>
|
||||
</td>
|
||||
<td><span class="code code-drug">${item.drug_code}</span></td>
|
||||
<td>${item.barcode
|
||||
? `<span class="code code-barcode">${item.barcode}</span>`
|
||||
: `<span class="code code-na">없음</span>`}</td>
|
||||
<td>${item.is_animal_drug
|
||||
? `<div>${item.barcode ? `<span class="code code-barcode">${item.barcode}</span>` : `<span class="code code-na">없음</span>`}</div>
|
||||
<div style="margin-top:4px;">${item.apc ? `<span class="code code-apc">${item.apc}</span>` : `<span class="code code-apc-na">APC미지정</span>`}</div>`
|
||||
: (item.barcode ? `<span class="code code-barcode">${item.barcode}</span>` : `<span class="code code-na">없음</span>`)}</td>
|
||||
<td>${item.location
|
||||
? `<span class="location-badge" onclick="openLocationModal('${item.drug_code}', '${escapeHtml(item.product_name)}', '${escapeHtml(item.location)}')">${escapeHtml(item.location)}</span>`
|
||||
: `<span class="location-badge unset" onclick="openLocationModal('${item.drug_code}', '${escapeHtml(item.product_name)}', '')">미지정</span>`}</td>
|
||||
|
||||
Reference in New Issue
Block a user