@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user