@@ -8,6 +8,8 @@ import {
|
||||
} from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { date, statusLabels } from '@/types/procurement';
|
||||
import { ProcurementOperationalInsights } from '@/components/procurement-operational-insights';
|
||||
import type { ProcurementInsights } from '@/components/procurement-operational-insights';
|
||||
|
||||
type Row = {
|
||||
id: number;
|
||||
@@ -37,6 +39,7 @@ export default function ProcurementReports({
|
||||
filters,
|
||||
departments,
|
||||
generatedAt,
|
||||
insights,
|
||||
}: {
|
||||
records: {
|
||||
data: Row[];
|
||||
@@ -50,6 +53,7 @@ export default function ProcurementReports({
|
||||
filters: Filters;
|
||||
departments: { id: number; name: string }[];
|
||||
generatedAt: string;
|
||||
insights?: ProcurementInsights;
|
||||
}) {
|
||||
const form = useForm({
|
||||
search: filters.search ?? '',
|
||||
@@ -79,6 +83,7 @@ export default function ProcurementReports({
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
{insights && <ProcurementOperationalInsights data={insights} />}
|
||||
<Panel
|
||||
title="Filtrar requisições"
|
||||
description="O período refere-se à criação da requisição. Os resultados respeitam o seu acesso à empresa e ao departamento."
|
||||
|
||||
Reference in New Issue
Block a user