import { Link } from '@inertiajs/react'; import { ArrowUpRight, ClipboardList } from 'lucide-react'; import { useId, type ReactNode } from 'react'; import { Badge } from '@/components/ui/badge'; import { openJourneyHelp } from '@/components/journey-help'; import { recoveryHints } from '@/lib/journey-help'; import { date, money, statusLabels } from '@/types/procurement'; import type { Requisition } from '@/types/procurement'; export const controlClass = 'h-10 w-full min-w-0 rounded-lg border border-input bg-background px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20'; /** Shared layout only: callers retain their actions, permissions and submit behaviour. */ export function ActionBar({ children, align = 'start', label = 'Acções disponíveis', className = '', }: { children: ReactNode; align?: 'start' | 'end'; label?: string; className?: string; }) { return (
{summary}
{children}{eyebrow}
{description}
{description}
)}Sem requisições para apresentar
Os pedidos de compra aparecem aqui depois de criados.
| Requisição | Departamento | Data | Estado | Total com IVA | Abrir |
|---|---|---|---|---|---|
|
{r.number}
{r.requester?.name}
|
{r.department?.name ?? '—'} | {date(r.created_at)} |
|
{money(r.total_minor)} |
|
Verifique os dados:
{hint}
))}