feat:품목 검색 모달에 수입검사 배지 추가
- ItemMaster 타입에 hasInspectionTemplate 필드 추가 - API 응답 변환 함수에 has_inspection_template 매핑 - 수입검사 양식 연결 품목에 녹색 배지 표시
This commit is contained in:
@@ -179,9 +179,14 @@ export function ItemSearchModal({
|
||||
className="p-3 hover:bg-blue-50 cursor-pointer transition-colors"
|
||||
>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="font-semibold text-gray-900">{item.itemCode}</span>
|
||||
<span className="ml-2 text-sm text-gray-600">{item.itemName}</span>
|
||||
<span className="text-sm text-gray-600">{item.itemName}</span>
|
||||
{item.hasInspectionTemplate && (
|
||||
<span className="text-xs text-white bg-green-500 px-1.5 py-0.5 rounded">
|
||||
수입검사
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{item.unit && (
|
||||
<span className="text-xs text-gray-400 bg-gray-100 px-2 py-0.5 rounded">
|
||||
|
||||
Reference in New Issue
Block a user