feat:거래처 목록에 고유 ID 표시 (거래처명 앞)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-19 20:21:15 +09:00
parent ecbb8e4cc7
commit e8432df28f

View File

@@ -291,7 +291,7 @@ function PartnersManagement() {
<tr><td colSpan="7" className="px-6 py-12 text-center text-gray-400">데이터가 없습니다.</td></tr>
) : filteredPartners.map(item => (
<tr key={item.id} className="hover:bg-gray-50 cursor-pointer" onClick={() => handleEdit(item)}>
<td className="px-6 py-4"><div className="flex items-center gap-2"><span className={`px-1.5 py-0.5 rounded text-[10px] font-bold ${item.tradeType === 'purchase' ? 'bg-amber-100 text-amber-700' : 'bg-blue-100 text-blue-700'}`}>{item.tradeType === 'purchase' ? '매입' : '매출'}</span><p className="text-sm font-medium text-gray-900">{item.name}</p></div>{item.bizNo && <p className="text-xs text-gray-400 ml-9">{item.bizNo}</p>}</td>
<td className="px-6 py-4"><div className="flex items-center gap-2"><span className={`px-1.5 py-0.5 rounded text-[10px] font-bold ${item.tradeType === 'purchase' ? 'bg-amber-100 text-amber-700' : 'bg-blue-100 text-blue-700'}`}>{item.tradeType === 'purchase' ? '매입' : '매출'}</span><span className="text-xs text-gray-400 font-mono">{item.id}</span><p className="text-sm font-medium text-gray-900">{item.name}</p></div>{item.bizNo && <p className="text-xs text-gray-400 ml-9">{item.bizNo}</p>}</td>
<td className="px-6 py-4"><span className="text-sm text-gray-900">{item.ceo || '-'}</span></td>
<td className="px-6 py-4">{item.type && <span className="px-2 py-1 bg-blue-50 text-blue-700 rounded text-xs font-medium">{item.type}</span>}{item.category && <p className="text-xs text-gray-400 mt-1">{item.category}</p>}</td>
<td className="px-6 py-4"><p className="text-sm text-gray-600">{item.contact || item.email}</p></td>