commit compras2 2711
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-27 18:11:02 +02:00
parent e709d900d1
commit 930064269e
74 changed files with 7506 additions and 40 deletions
@@ -9,6 +9,7 @@ import {
} from '@/components/procurement';
type RecordVersion = {
legal_changed?: boolean;
id: number;
version: number;
state: string;
@@ -38,6 +39,7 @@ type Page<T> = {
next_page_url: string | null;
};
type Props = {
legalReady?: boolean;
requisition: { id: number; number: string };
items: {
id: number;
@@ -142,6 +144,12 @@ function ItemForm({
? `Confirmado: ${latest.data.confirmed_code} · ${latest.snapshot.confirmed_by?.name ?? 'Comprador registado'}`
: 'Código pautal por confirmar pelo comprador.'}
</p>
{latest?.legal_changed && (
<p role="status">
A fonte legal aplicada foi substituída ou retirada. Reveja a
classificação; a decisão anterior permanece no histórico.
</p>
)}
{latest?.snapshot.master && (
<p>
Proposta reutilizada de {latest.snapshot.master.item.code} ·{' '}
@@ -368,6 +376,14 @@ export default function ImportTariffs(props: Props) {
percurso.
</p>
</Panel>
{props.legalReady && (
<Link
className="underline"
href={`/requisicoes/${props.requisition.id}/base-legal`}
>
Consultar base legal e sugestões
</Link>
)}
<Panel title="Localizar material ou código">
<form
method="get"