fix(orders): 내발주이력 "동작" 컬럼 제거 — 행 클릭으로 상세 모달 열도록 통일
Deploy momo-erp / deploy (push) Successful in 2m4s

기존: 마지막 컬럼에 "보기" 버튼 + tr onClick 둘 다 있어 중복
변경: 동작 컬럼 + 보기 버튼 제거. tr 자체 클릭 시 상세 모달 (openDetail) 호출 — 이미 onClick 박혀있어 동작 동일.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
chpark
2026-05-13 12:05:54 +09:00
parent 7151a401d4
commit b8d0200831
+2 -9
View File
@@ -154,16 +154,15 @@ export default function MyOrdersPage() {
<th className="text-right px-4 py-3 font-semibold"></th>
<th className="text-right px-4 py-3 font-semibold"></th>
<th className="text-center px-4 py-3 font-semibold"></th>
<th className="text-right px-4 py-3 font-semibold"></th>
</tr>
</thead>
<tbody>
{orders.length === 0 ? (
<tr><td colSpan={7} className="text-center py-12 text-slate-400"> .</td></tr>
<tr><td colSpan={6} className="text-center py-12 text-slate-400"> .</td></tr>
) : orders.map((o) => (
<tr key={o.OBJID} className="border-t border-slate-100 hover:bg-emerald-50/40 cursor-pointer"
onClick={() => openDetail(o)}>
<td className="px-4 py-3 font-semibold text-emerald-700 underline-offset-2 hover:underline">{o.ORDER_NO}</td>
<td className="px-4 py-3 font-semibold text-emerald-700">{o.ORDER_NO}</td>
<td className="px-4 py-3">{o.ORDER_DATE}</td>
<td className="px-4 py-3 text-right tabular-nums text-violet-700">{fmt(o.TOTAL_TAXFREE)}</td>
<td className="px-4 py-3 text-right tabular-nums text-rose-700">{fmt(o.TOTAL_TAXABLE)}</td>
@@ -173,12 +172,6 @@ export default function MyOrdersPage() {
{STATUS_LABEL[o.STATUS] || o.STATUS}
</span>
</td>
<td className="px-4 py-3 text-right">
<button onClick={(e) => { e.stopPropagation(); openDetail(o); }}
className="inline-flex items-center gap-1 text-emerald-700 hover:underline text-xs font-semibold">
<Eye size={12} />
</button>
</td>
</tr>
))}
</tbody>