style(production): 補齊生產工單列表檢視按鈕 UI 與權限控制

This commit is contained in:
2026-01-27 10:10:10 +08:00
parent 046e0a028b
commit f10c31abd0

View File

@@ -254,16 +254,18 @@ export default function ProductionIndex({ productionOrders, filters }: Props) {
</Link> </Link>
</Can> </Can>
)} )}
<Link href={route('production-orders.show', order.id)}> <Can permission="production_orders.view">
<Button <Link href={route('production-orders.show', order.id)}>
variant="outline" <Button
size="sm" variant="outline"
className="button-outlined-primary" size="sm"
title="檢視" className="button-outlined-info"
> title="檢視"
<Eye className="h-4 w-4" /> >
</Button> <Eye className="h-4 w-4" />
</Link> </Button>
</Link>
</Can>
</div> </div>
</TableCell> </TableCell>
</TableRow> </TableRow>