commit21
This commit is contained in:
@@ -26,8 +26,14 @@ export type ProcurementInsights = {
|
||||
|
||||
export function ProcurementOperationalInsights({
|
||||
data,
|
||||
neededPastHref,
|
||||
withoutQuotesHref,
|
||||
withoutOrderHref,
|
||||
}: {
|
||||
data: ProcurementInsights;
|
||||
neededPastHref?: string;
|
||||
withoutQuotesHref?: string;
|
||||
withoutOrderHref?: string;
|
||||
}) {
|
||||
return (
|
||||
<Panel title="Leitura operacional de Compras">
|
||||
@@ -51,6 +57,16 @@ export function ProcurementOperationalInsights({
|
||||
precisa do bem ou serviço; não comprova atraso de
|
||||
entrega do fornecedor.
|
||||
</p>
|
||||
{neededPastHref &&
|
||||
data.unapproved_past_needed_date > 0 && (
|
||||
<Link
|
||||
className="inline-block underline"
|
||||
href={neededPastHref}
|
||||
>
|
||||
Consultar pedidos por aprovar com data de
|
||||
necessidade ultrapassada
|
||||
</Link>
|
||||
)}
|
||||
{data.pending.oldest.length > 0 && (
|
||||
<div>
|
||||
<p className="font-medium">
|
||||
@@ -91,6 +107,27 @@ export function ProcurementOperationalInsights({
|
||||
comparáveis; ausência de ordem visível não comprova
|
||||
incumprimento.
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
{withoutQuotesHref &&
|
||||
data.approved.without_registered_quotes > 0 && (
|
||||
<Link
|
||||
className="underline"
|
||||
href={withoutQuotesHref}
|
||||
>
|
||||
Consultar aprovadas sem propostas
|
||||
registadas
|
||||
</Link>
|
||||
)}
|
||||
{withoutOrderHref &&
|
||||
data.approved.without_visible_order > 0 && (
|
||||
<Link
|
||||
className="underline"
|
||||
href={withoutOrderHref}
|
||||
>
|
||||
Consultar aprovadas sem ordem visível
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
<p className="text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user