@@ -10,6 +10,7 @@ import AgreementOrderBindings, {
|
||||
import { ComparisonPolicySummary } from '@/components/comparison-policy-summary';
|
||||
import type { ComparisonPolicy } from '@/components/comparison-policy-summary';
|
||||
import {
|
||||
TableViewport,
|
||||
FormErrors,
|
||||
PageTitle,
|
||||
Panel,
|
||||
@@ -135,7 +136,7 @@ export default function Award({
|
||||
}
|
||||
>
|
||||
<ComparisonPolicySummary policy={comparison.policy} />
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead className="border-b text-muted-foreground">
|
||||
<tr>
|
||||
@@ -205,7 +206,7 @@ export default function Award({
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
</Panel>
|
||||
<p className="text-sm">
|
||||
{recommendation.adopted
|
||||
|
||||
@@ -4,7 +4,12 @@ import { hasPreparationChanges } from '@/lib/requisition-history';
|
||||
import BudgetDistributionFields, {
|
||||
type BudgetDistributionOption,
|
||||
} from '@/components/budget-distribution-fields';
|
||||
import { FormErrors, PageTitle, Panel } from '@/components/procurement';
|
||||
import {
|
||||
ActionBar,
|
||||
FormErrors,
|
||||
PageTitle,
|
||||
Panel,
|
||||
} from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { money } from '@/types/procurement';
|
||||
|
||||
@@ -98,7 +103,7 @@ export default function Amendment({
|
||||
reason={form.data.reason}
|
||||
onReason={(reason) => form.setData('reason', reason)}
|
||||
/>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<ActionBar>
|
||||
<Button disabled={form.processing}>
|
||||
Confirmar nova versão
|
||||
</Button>
|
||||
@@ -107,7 +112,7 @@ export default function Amendment({
|
||||
Voltar à ordem
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</ActionBar>
|
||||
</form>
|
||||
<Panel title="Histórico preservado">
|
||||
{history.map((event, index) => (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Head, Link } from '@inertiajs/react';
|
||||
import { PageTitle, Panel } from '@/components/procurement';
|
||||
import { TableViewport, PageTitle, Panel } from '@/components/procurement';
|
||||
import { money, date } from '@/types/procurement';
|
||||
import type { PurchaseAward, PurchaseOrder } from '@/types/purchase';
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function Orders({
|
||||
Preparar ordens por parcelas ou consolidar origens
|
||||
</Link>
|
||||
)}
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead className="border-b text-muted-foreground">
|
||||
<tr>
|
||||
@@ -76,7 +76,7 @@ export default function Orders({
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
{orders.data.length === 0 && (
|
||||
<p className="py-6 text-sm text-muted-foreground">
|
||||
Ainda não foram emitidas ordens.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Head, Link, router, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
TableViewport,
|
||||
FormErrors,
|
||||
PageTitle,
|
||||
Panel,
|
||||
@@ -257,7 +258,7 @@ function Confer({ attempt }: { attempt: Attempt }) {
|
||||
}
|
||||
function Matrix({ rows, topIds }: { rows: Row[]; topIds?: number[] }) {
|
||||
return (
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead className="border-b">
|
||||
<tr>
|
||||
@@ -294,7 +295,7 @@ function Matrix({ rows, topIds }: { rows: Row[]; topIds?: number[] }) {
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
);
|
||||
}
|
||||
export default function Recommendation(props: Props) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import { QuotationCommercialTerms } from '@/components/quotation-commercial-term
|
||||
import { ExchangeSummary } from '@/components/quotation-exchange-panel';
|
||||
import type { ExchangeBasis } from '@/components/quotation-exchange-panel';
|
||||
import type { CommercialTerms } from '@/components/quotation-commercial-terms';
|
||||
import { PageTitle, Panel, Status } from '@/components/procurement';
|
||||
import { ActionBar, PageTitle, Panel, Status } from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { date, roleLabels, statusLabels } from '@/types/procurement';
|
||||
|
||||
@@ -204,7 +204,7 @@ export default function ReviewReport({
|
||||
title="Relatório de conferência"
|
||||
description={`${report.company} · ${r.department} · Solicitante: ${r.requester}`}
|
||||
action={
|
||||
<div className="flex flex-wrap gap-3 print:hidden">
|
||||
<ActionBar>
|
||||
<Button asChild variant="outline">
|
||||
<Link href="/relatorios">
|
||||
Relatórios de compras
|
||||
@@ -224,7 +224,7 @@ export default function ReviewReport({
|
||||
Exportar conferência completa (CSV)
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
</ActionBar>
|
||||
}
|
||||
/>
|
||||
<div className="rounded-xl border p-4 text-sm">
|
||||
|
||||
@@ -3,7 +3,7 @@ import { AgreementOrderLimitSummary } from '@/components/agreement-order-binding
|
||||
import { Printer } from 'lucide-react';
|
||||
import { ComparisonPolicySummary } from '@/components/comparison-policy-summary';
|
||||
import { QuotationCommercialTerms } from '@/components/quotation-commercial-terms';
|
||||
import { PageTitle, Panel } from '@/components/procurement';
|
||||
import { TableViewport, PageTitle, Panel } from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { date, money, roleLabels } from '@/types/procurement';
|
||||
import { ExchangeSummary } from '@/components/quotation-exchange-panel';
|
||||
@@ -271,7 +271,7 @@ export default function OrderShow({
|
||||
</Panel>
|
||||
</div>
|
||||
<Panel title="Artigos e valores congelados">
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead className="border-b text-muted-foreground">
|
||||
<tr>
|
||||
@@ -310,7 +310,7 @@ export default function OrderShow({
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
<dl className="mt-5 ml-auto max-w-sm space-y-3 text-sm">
|
||||
<div className="flex justify-between gap-4">
|
||||
<dt>Subtotal sem IVA</dt>
|
||||
|
||||
Reference in New Issue
Block a user