@@ -0,0 +1,188 @@
|
||||
import { Head, Link, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
Panel,
|
||||
PageTitle,
|
||||
FormErrors,
|
||||
controlClass,
|
||||
} from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { useProcurementPreparationIdentity } from '@/hooks/use-procurement-preparation-identity';
|
||||
import { usePreparationDirty } from '@/hooks/use-preparation-dirty';
|
||||
|
||||
type Props = {
|
||||
families: { key: string; label: string }[];
|
||||
exports: {
|
||||
data: {
|
||||
id: number;
|
||||
families: string[];
|
||||
created_at: string;
|
||||
size: number;
|
||||
sha256: string;
|
||||
download_url: string;
|
||||
}[];
|
||||
prev_page_url: string | null;
|
||||
next_page_url: string | null;
|
||||
};
|
||||
};
|
||||
|
||||
export default function PrivateAudit(props: Props) {
|
||||
const identity = useProcurementPreparationIdentity(
|
||||
`private-audit:${props.families.map((family) => family.key).join(',')}`,
|
||||
);
|
||||
const form = useForm(identity, {
|
||||
operation_key: crypto.randomUUID(),
|
||||
families: [] as string[],
|
||||
purpose: '',
|
||||
});
|
||||
const formRef = usePreparationDirty(form.isDirty);
|
||||
return (
|
||||
<>
|
||||
<Head title="Exportação privada de auditoria" />
|
||||
<div className="mx-auto flex w-full max-w-5xl flex-col gap-6 p-5 lg:p-8">
|
||||
<PageTitle
|
||||
eyebrow="Auditoria"
|
||||
title="Exportação privada de auditoria"
|
||||
description="Seleccione os dados abrangidos pela sua autoridade. O pacote inclui um manifesto com fontes, contagens e hashes e os originais verificáveis aplicáveis."
|
||||
/>
|
||||
<Panel title="Preparar pacote">
|
||||
<p className="mb-4 text-sm">
|
||||
Bancos completos, documentos bancários específicos,
|
||||
conteúdo privado de Pessoas e credenciais ficam fora
|
||||
deste pacote. Os dados representam os registos
|
||||
existentes; não recalculam saldos nem certificam os
|
||||
documentos.
|
||||
</p>
|
||||
<form
|
||||
ref={formRef}
|
||||
className="space-y-4"
|
||||
onSubmit={(event) => {
|
||||
event.preventDefault();
|
||||
form.post('/auditoria/privada', {
|
||||
onSuccess: () => {
|
||||
const clean = {
|
||||
operation_key: crypto.randomUUID(),
|
||||
families: [] as string[],
|
||||
purpose: '',
|
||||
};
|
||||
form.setDefaults(clean);
|
||||
form.setData(clean);
|
||||
},
|
||||
});
|
||||
}}
|
||||
>
|
||||
<FormErrors errors={form.errors} />
|
||||
<fieldset className="space-y-2">
|
||||
<legend className="font-medium">Conteúdo</legend>
|
||||
{props.families.map((family) => (
|
||||
<label
|
||||
key={family.key}
|
||||
className="flex items-center gap-2"
|
||||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.data.families.includes(
|
||||
family.key,
|
||||
)}
|
||||
onChange={(event) =>
|
||||
form.setData(
|
||||
'families',
|
||||
event.target.checked
|
||||
? [
|
||||
...form.data.families,
|
||||
family.key,
|
||||
]
|
||||
: form.data.families.filter(
|
||||
(key) =>
|
||||
key !==
|
||||
family.key,
|
||||
),
|
||||
)
|
||||
}
|
||||
/>
|
||||
{family.label}
|
||||
</label>
|
||||
))}
|
||||
</fieldset>
|
||||
<label className="block">
|
||||
Finalidade (opcional)
|
||||
<textarea
|
||||
className={controlClass}
|
||||
maxLength={500}
|
||||
value={form.data.purpose}
|
||||
onChange={(event) =>
|
||||
form.setData('purpose', event.target.value)
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
<Button
|
||||
type="submit"
|
||||
disabled={
|
||||
form.processing ||
|
||||
form.data.families.length === 0
|
||||
}
|
||||
>
|
||||
Preparar exportação privada
|
||||
</Button>
|
||||
</form>
|
||||
</Panel>
|
||||
<Panel title="Os seus pacotes preparados">
|
||||
{props.exports.data.length === 0 && (
|
||||
<p>Ainda não preparou um pacote neste contexto.</p>
|
||||
)}
|
||||
<ul className="space-y-4">
|
||||
{props.exports.data.map((item) => (
|
||||
<li
|
||||
key={item.id}
|
||||
className="space-y-1 border-b pb-4"
|
||||
>
|
||||
<p>
|
||||
Pacote {item.id} —{' '}
|
||||
{new Date(item.created_at).toLocaleString(
|
||||
'pt-MZ',
|
||||
)}
|
||||
</p>
|
||||
<p className="text-sm">
|
||||
{item.families
|
||||
.map(
|
||||
(key) =>
|
||||
props.families.find(
|
||||
(family) =>
|
||||
family.key === key,
|
||||
)?.label ?? key,
|
||||
)
|
||||
.join('; ')}{' '}
|
||||
· {item.size.toLocaleString('pt-MZ')} bytes
|
||||
</p>
|
||||
<p className="font-mono text-xs break-all">
|
||||
SHA-256: {item.sha256}
|
||||
</p>
|
||||
<a
|
||||
className="underline"
|
||||
href={item.download_url}
|
||||
>
|
||||
Descarregar ZIP verificado
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="mt-4 flex gap-4">
|
||||
{props.exports.prev_page_url && (
|
||||
<Link href={props.exports.prev_page_url}>
|
||||
Anterior
|
||||
</Link>
|
||||
)}
|
||||
{props.exports.next_page_url && (
|
||||
<Link href={props.exports.next_page_url}>
|
||||
Seguinte
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</Panel>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
PrivateAudit.layout = {
|
||||
breadcrumbs: [{ title: 'Auditoria privada', href: '/auditoria/privada' }],
|
||||
};
|
||||
@@ -219,6 +219,7 @@ function ParameterFields({
|
||||
notice,
|
||||
companyRules,
|
||||
comparisonPolicy,
|
||||
urgentQuotationReady = false,
|
||||
intelligencePolicy,
|
||||
intelligenceReady = false,
|
||||
aiPlan,
|
||||
@@ -239,6 +240,7 @@ function ParameterFields({
|
||||
geographyEnabled?: boolean;
|
||||
geography?: GeographyDescription;
|
||||
comparisonPolicy: ComparisonPolicy;
|
||||
urgentQuotationReady?: boolean;
|
||||
intelligencePolicy?: IntelligencePolicy;
|
||||
intelligenceReady?: boolean;
|
||||
aiPlan?: AiPlan;
|
||||
@@ -370,14 +372,16 @@ function ParameterFields({
|
||||
version,
|
||||
minimum_proposals: comparisonPolicy.minimum_proposals,
|
||||
minimum_evaluators: comparisonPolicy.minimum_evaluators,
|
||||
urgent_minimum_proposals:
|
||||
comparisonPolicy.urgent_minimum_proposals?.toString() ?? '',
|
||||
weights: { ...comparisonPolicy.weights },
|
||||
reason: '',
|
||||
};
|
||||
const comparison = useForm(`${identity}:comparison`, initialComparison);
|
||||
const comparisonDirty = hasPreparationChanges(
|
||||
initialComparison,
|
||||
comparison.data,
|
||||
);
|
||||
const comparisonDirty = hasPreparationChanges(initialComparison, {
|
||||
...initialComparison,
|
||||
...comparison.data,
|
||||
});
|
||||
const comparisonRef = usePreparationDirty(comparisonDirty);
|
||||
const clearComparison = () => {
|
||||
comparison.setData(initialComparison);
|
||||
@@ -581,6 +585,36 @@ function ParameterFields({
|
||||
}}
|
||||
>
|
||||
<FormErrors errors={comparison.errors} />
|
||||
{urgentQuotationReady && (
|
||||
<label className="block space-y-1">
|
||||
Mínimo de propostas numa urgência com
|
||||
stock mínimo documentado (opcional)
|
||||
<input
|
||||
className={controlClass}
|
||||
type="number"
|
||||
min="1"
|
||||
max="100"
|
||||
step="1"
|
||||
value={
|
||||
comparison.data
|
||||
.urgent_minimum_proposals ??
|
||||
''
|
||||
}
|
||||
onChange={(event) =>
|
||||
comparison.setData(
|
||||
'urgent_minimum_proposals',
|
||||
event.target.value,
|
||||
)
|
||||
}
|
||||
/>
|
||||
<span className="text-sm text-muted-foreground">
|
||||
Vazio conserva o mínimo normal. Só
|
||||
novas requisições recebem esta
|
||||
configuração; orçamento e aprovações
|
||||
não são dispensados.
|
||||
</span>
|
||||
</label>
|
||||
)}
|
||||
<div className="grid gap-4 md:grid-cols-2">
|
||||
<label className="block space-y-1">
|
||||
Mínimo de fornecedores com proposta
|
||||
|
||||
@@ -18,6 +18,13 @@ import { date } from '@/types/procurement';
|
||||
export default function DeclarationHistory(props: {
|
||||
history: ConflictDeclaration[];
|
||||
canCorrect: boolean;
|
||||
canAuthoriseRelease?: boolean;
|
||||
release?: {
|
||||
id: number;
|
||||
authorised_by: number;
|
||||
authorised_at: string;
|
||||
reason: string;
|
||||
} | null;
|
||||
}) {
|
||||
const current = props.history[props.history.length - 1];
|
||||
const identity = `${useConflictPreparationIdentity()}:correction:${current.id}:${current.declared_at}:${props.canCorrect}`;
|
||||
@@ -27,10 +34,19 @@ function HistoryFields({
|
||||
history,
|
||||
canCorrect,
|
||||
identity,
|
||||
canAuthoriseRelease,
|
||||
release,
|
||||
}: {
|
||||
identity: string;
|
||||
history: ConflictDeclaration[];
|
||||
canCorrect: boolean;
|
||||
canAuthoriseRelease?: boolean;
|
||||
release?: {
|
||||
id: number;
|
||||
authorised_by: number;
|
||||
authorised_at: string;
|
||||
reason: string;
|
||||
} | null;
|
||||
}) {
|
||||
const current = history[history.length - 1];
|
||||
const initial = {
|
||||
@@ -56,9 +72,11 @@ function HistoryFields({
|
||||
/>
|
||||
<Panel
|
||||
title={
|
||||
current.has_conflict
|
||||
? 'Conflito registado com impedimento'
|
||||
: 'Ausência de conflito declarada'
|
||||
release
|
||||
? 'Impedimento levantado pela direcção'
|
||||
: current.has_conflict
|
||||
? 'Conflito registado com impedimento'
|
||||
: 'Ausência de conflito declarada'
|
||||
}
|
||||
description="Uma ausência declarada não retira outros conflitos registados. Não há caducidade ou levantamento automático."
|
||||
>
|
||||
@@ -87,6 +105,22 @@ function HistoryFields({
|
||||
))}
|
||||
</ol>
|
||||
</Panel>
|
||||
{release && (
|
||||
<Panel
|
||||
title="Autorização da direcção"
|
||||
description={`Autorizada por #${release.authorised_by} em ${date(release.authorised_at)}. Aplica-se apenas a esta declaração e às suas correcções.`}
|
||||
>
|
||||
<p className="text-sm whitespace-pre-wrap">
|
||||
{release.reason}
|
||||
</p>
|
||||
</Panel>
|
||||
)}
|
||||
{canAuthoriseRelease && (
|
||||
<ReleaseForm
|
||||
identity={identity}
|
||||
declarationId={current.id}
|
||||
/>
|
||||
)}
|
||||
{canCorrect && (
|
||||
<Panel
|
||||
title="Corrigir fundamento ou data de conhecimento"
|
||||
@@ -159,6 +193,70 @@ function HistoryFields({
|
||||
</>
|
||||
);
|
||||
}
|
||||
function ReleaseForm({
|
||||
identity,
|
||||
declarationId,
|
||||
}: {
|
||||
identity: string;
|
||||
declarationId: number;
|
||||
}) {
|
||||
const form = useForm(`${identity}:release`, {
|
||||
reason: '',
|
||||
operation_key: crypto.randomUUID(),
|
||||
});
|
||||
const dirty = form.data.reason.trim() !== '';
|
||||
const ref = usePreparationDirty(dirty, true);
|
||||
return (
|
||||
<Panel
|
||||
title="Autorizar levantamento do impedimento"
|
||||
description="Decisão expressa da direcção. A declaração original permanece no histórico; outros conflitos continuam a impedir a participação."
|
||||
>
|
||||
<form
|
||||
ref={ref}
|
||||
data-preparation-dirty={dirty ? 'true' : 'false'}
|
||||
className="space-y-4"
|
||||
onSubmit={(event) => {
|
||||
event.preventDefault();
|
||||
form.post(`/conflitos/${declarationId}/levantamento`, {
|
||||
preserveScroll: true,
|
||||
onSuccess: () => {
|
||||
const initial = {
|
||||
reason: '',
|
||||
operation_key: crypto.randomUUID(),
|
||||
};
|
||||
form.setData(initial);
|
||||
form.clearErrors();
|
||||
router.remember(
|
||||
initial,
|
||||
`${identity}:release:data`,
|
||||
);
|
||||
router.remember({}, `${identity}:release:errors`);
|
||||
},
|
||||
});
|
||||
}}
|
||||
>
|
||||
<FormErrors errors={form.errors} />
|
||||
<Label htmlFor="release-reason">
|
||||
Fundamento da autorização
|
||||
</Label>
|
||||
<textarea
|
||||
id="release-reason"
|
||||
required
|
||||
minLength={10}
|
||||
maxLength={5000}
|
||||
className={`${controlClass} h-28 py-3`}
|
||||
value={form.data.reason}
|
||||
onChange={(event) =>
|
||||
form.setData('reason', event.target.value)
|
||||
}
|
||||
/>
|
||||
<Button disabled={form.processing}>
|
||||
Autorizar levantamento
|
||||
</Button>
|
||||
</form>
|
||||
</Panel>
|
||||
);
|
||||
}
|
||||
DeclarationHistory.layout = {
|
||||
breadcrumbs: [
|
||||
{ title: 'Conflitos de interesses', href: '/conflitos' },
|
||||
|
||||
@@ -10,6 +10,8 @@ import { ExchangeSummary } from '@/components/quotation-exchange-panel';
|
||||
import type { PurchaseOrder } from '@/types/purchase';
|
||||
import ImportTariffSummary from '@/components/import-tariff-summary';
|
||||
import CapitalAssignmentSummary from '@/components/capital-assignment-summary';
|
||||
import OperationalOrderSummary from '@/components/operational-order-summary';
|
||||
import UrgentQuotationSummary from '@/components/urgent-quotation-summary';
|
||||
import RequisitionAccountSummary from '@/components/requisition-account-summary';
|
||||
import OrderCancellationRequest, {
|
||||
type OrderCancellationState,
|
||||
@@ -176,6 +178,14 @@ export default function OrderShow({
|
||||
<CapitalAssignmentSummary
|
||||
records={snapshot.capital_assignments}
|
||||
/>
|
||||
<OperationalOrderSummary
|
||||
records={snapshot.operational_orders}
|
||||
/>
|
||||
{orderPartsSources.length === 0 && (
|
||||
<UrgentQuotationSummary
|
||||
records={snapshot.urgent_quotation_basis}
|
||||
/>
|
||||
)}
|
||||
<RequisitionAccountSummary
|
||||
records={snapshot.account_assignments}
|
||||
/>
|
||||
|
||||
@@ -79,6 +79,7 @@ function ComparisonContent({
|
||||
exchangeRates = [],
|
||||
exchangeAvailable = false,
|
||||
canRecordExchange = false,
|
||||
urgentQuotationReady = false,
|
||||
}: {
|
||||
requisition: {
|
||||
id: number;
|
||||
@@ -99,6 +100,7 @@ function ComparisonContent({
|
||||
exchangeRates?: ExchangeBasis[];
|
||||
exchangeAvailable?: boolean;
|
||||
canRecordExchange?: boolean;
|
||||
urgentQuotationReady?: boolean;
|
||||
}) {
|
||||
const actor = usePage().props.auth?.user;
|
||||
const historyKey = `quotation-preparation:${actor?.tenant_id}:${actor?.id}:${requisition.id}:${requisition.process_version ?? 0}`;
|
||||
@@ -192,6 +194,15 @@ function ComparisonContent({
|
||||
<Link className="text-sm text-teal-700" href="/conflitos">
|
||||
Registar ou consultar a minha declaração de conflito
|
||||
</Link>
|
||||
{urgentQuotationReady &&
|
||||
comparisonPolicy.urgent_minimum_proposals !== undefined && (
|
||||
<Link
|
||||
className="text-sm text-teal-700"
|
||||
href={`/requisicoes/${requisition.id}/urgencia-stock`}
|
||||
>
|
||||
Stock mínimo das cotações urgentes
|
||||
</Link>
|
||||
)}
|
||||
<div
|
||||
className={`rounded-xl border p-5 text-sm ${ready ? 'border-teal-200 bg-teal-50 text-teal-900' : 'border-amber-200 bg-amber-50 text-amber-900'}`}
|
||||
>
|
||||
|
||||
@@ -0,0 +1,416 @@
|
||||
import { Head, Link, router, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
PageTitle,
|
||||
Panel,
|
||||
FormErrors,
|
||||
controlClass,
|
||||
} from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { useProcurementPreparationIdentity } from '@/hooks/use-procurement-preparation-identity';
|
||||
import { usePreparationDirty } from '@/hooks/use-preparation-dirty';
|
||||
import { hasPreparationChanges } from '@/lib/requisition-history';
|
||||
|
||||
type Order = {
|
||||
id: number;
|
||||
version: number;
|
||||
created_at: string;
|
||||
reason: string;
|
||||
data: {
|
||||
type: string;
|
||||
reference: string;
|
||||
utilisation_location: string;
|
||||
description: string;
|
||||
department_id: number;
|
||||
};
|
||||
snapshot: {
|
||||
author: { name: string };
|
||||
department: { name: string };
|
||||
policy: { data: { mode: string } };
|
||||
};
|
||||
};
|
||||
type LinkRecord = {
|
||||
id: number;
|
||||
version: number;
|
||||
data: { requisition_item_id: number };
|
||||
snapshot: { source: Order };
|
||||
};
|
||||
type Props = {
|
||||
policy: { id: number; version: number; data: { mode: string } } | null;
|
||||
canConfigure: boolean;
|
||||
allowedTypes: string[];
|
||||
departments: { id: number; name: string }[];
|
||||
orders: {
|
||||
data: Order[];
|
||||
prev_page_url: string | null;
|
||||
next_page_url: string | null;
|
||||
};
|
||||
requisition: { id: number; number: string; status: string } | null;
|
||||
items: { id: number; description: string }[];
|
||||
links: LinkRecord[];
|
||||
canLink: boolean;
|
||||
};
|
||||
const labels: Record<string, string> = {
|
||||
production: 'Produção',
|
||||
maintenance: 'Manutenção',
|
||||
};
|
||||
type Field = {
|
||||
name: string;
|
||||
label: string;
|
||||
choices?: { value: string; label: string }[];
|
||||
long?: boolean;
|
||||
};
|
||||
|
||||
export default function OperationalOrders(props: Props) {
|
||||
const identity = useProcurementPreparationIdentity(
|
||||
`operational-orders:${props.policy?.id ?? 0}:${props.policy?.version ?? 0}:${props.allowedTypes.join(',')}:${props.canConfigure}:${props.requisition?.id ?? 0}:${props.canLink}`,
|
||||
);
|
||||
return <Workspace key={identity} {...props} identity={identity} />;
|
||||
}
|
||||
function Workspace(props: Props & { identity: string }) {
|
||||
const base = '/ordens-operacionais';
|
||||
return (
|
||||
<>
|
||||
<Head title="Ordens de produção e manutenção" />
|
||||
<div className="mx-auto flex w-full max-w-6xl flex-col gap-6 p-5 lg:p-8">
|
||||
<PageTitle
|
||||
eyebrow="Compras"
|
||||
title="Ordens de produção e manutenção"
|
||||
description="Registe a necessidade no local de utilização ou através do procurement, conforme a configuração da empresa. A ordem de origem acompanha a compra."
|
||||
/>
|
||||
{props.requisition && (
|
||||
<p>
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/requisicoes/${props.requisition.id}`}
|
||||
>
|
||||
Voltar à {props.requisition.number}
|
||||
</Link>{' '}
|
||||
·{' '}
|
||||
<Link className="underline" href={base}>
|
||||
Cadastro das ordens
|
||||
</Link>
|
||||
</p>
|
||||
)}
|
||||
<Panel
|
||||
title="Origem das ordens"
|
||||
description="A configuração altera quem pode registar novas ordens. Preserva as ordens existentes e não atribui competências a pessoas."
|
||||
>
|
||||
<p className="mb-4 text-sm">
|
||||
{!props.policy
|
||||
? 'A empresa ainda não definiu a origem das ordens.'
|
||||
: props.policy.data.mode === 'utilisation'
|
||||
? 'Nos locais de utilização: responsável da produção ou chefe de oficina, com competência atribuída pela empresa.'
|
||||
: 'No procurement: o agente regista as ordens para os locais ainda não abrangidos pela aplicação.'}
|
||||
</p>
|
||||
{props.canConfigure && (
|
||||
<DraftForm
|
||||
identity={`${props.identity}:policy`}
|
||||
url={`${base}/configuracao`}
|
||||
initial={{
|
||||
version: String(props.policy?.version ?? 0),
|
||||
mode: props.policy?.data.mode ?? '',
|
||||
reason: '',
|
||||
}}
|
||||
fields={[
|
||||
{
|
||||
name: 'mode',
|
||||
label: 'Modo de registo',
|
||||
choices: [
|
||||
{
|
||||
value: 'utilisation',
|
||||
label: 'Nos locais de utilização',
|
||||
},
|
||||
{
|
||||
value: 'procurement',
|
||||
label: 'Pelo agente de procurement',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'reason',
|
||||
label: 'Fundamento da configuração',
|
||||
long: true,
|
||||
},
|
||||
]}
|
||||
submit="Guardar origem das novas ordens"
|
||||
/>
|
||||
)}
|
||||
</Panel>
|
||||
{props.allowedTypes.length > 0 && (
|
||||
<Panel
|
||||
title="Registar ordem"
|
||||
description="O autor e o modo de origem são registados automaticamente. O documento original permanece no histórico."
|
||||
>
|
||||
<DraftForm
|
||||
identity={`${props.identity}:new`}
|
||||
url={base}
|
||||
initial={{
|
||||
type:
|
||||
props.allowedTypes.length === 1
|
||||
? props.allowedTypes[0]
|
||||
: '',
|
||||
reference: '',
|
||||
department_id:
|
||||
props.departments.length === 1
|
||||
? String(props.departments[0].id)
|
||||
: '',
|
||||
utilisation_location: '',
|
||||
description: '',
|
||||
reason: '',
|
||||
policy_version: String(
|
||||
props.policy?.version ?? 0,
|
||||
),
|
||||
}}
|
||||
fields={[
|
||||
{
|
||||
name: 'type',
|
||||
label: 'Tipo de ordem',
|
||||
choices: props.allowedTypes.map((type) => ({
|
||||
value: type,
|
||||
label: labels[type],
|
||||
})),
|
||||
},
|
||||
{
|
||||
name: 'reference',
|
||||
label: 'Referência da ordem',
|
||||
},
|
||||
{
|
||||
name: 'department_id',
|
||||
label: 'Departamento de utilização',
|
||||
choices: props.departments.map(
|
||||
(department) => ({
|
||||
value: String(department.id),
|
||||
label: department.name,
|
||||
}),
|
||||
),
|
||||
},
|
||||
{
|
||||
name: 'utilisation_location',
|
||||
label: 'Local de utilização',
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
label: 'Trabalho ou produção a executar',
|
||||
long: true,
|
||||
},
|
||||
{
|
||||
name: 'reason',
|
||||
label: 'Fundamento do registo',
|
||||
long: true,
|
||||
},
|
||||
]}
|
||||
submit="Registar ordem"
|
||||
/>
|
||||
</Panel>
|
||||
)}
|
||||
<Panel
|
||||
title="Ordens registadas"
|
||||
description="A lista respeita a empresa e o departamento aplicável. Uma ligação utiliza a versão original seleccionada."
|
||||
>
|
||||
{props.orders.data.length === 0 && (
|
||||
<p>Não há ordens disponíveis neste âmbito.</p>
|
||||
)}
|
||||
<ul className="space-y-4">
|
||||
{props.orders.data.map((order) => (
|
||||
<li className="rounded border p-4" key={order.id}>
|
||||
<p className="font-semibold">
|
||||
{labels[order.data.type]} ·{' '}
|
||||
{order.data.reference}
|
||||
</p>
|
||||
<p className="text-sm">
|
||||
{order.snapshot.department.name} ·{' '}
|
||||
{order.data.utilisation_location} ·{' '}
|
||||
{order.snapshot.author.name}
|
||||
</p>
|
||||
<p className="mt-2 text-sm whitespace-pre-wrap">
|
||||
{order.data.description}
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="mt-4 flex gap-4">
|
||||
{props.orders.prev_page_url && (
|
||||
<Link
|
||||
preserveState
|
||||
preserveScroll
|
||||
href={props.orders.prev_page_url}
|
||||
>
|
||||
Anterior
|
||||
</Link>
|
||||
)}
|
||||
{props.orders.next_page_url && (
|
||||
<Link
|
||||
preserveState
|
||||
preserveScroll
|
||||
href={props.orders.next_page_url}
|
||||
>
|
||||
Seguinte
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</Panel>
|
||||
{props.requisition &&
|
||||
props.items.map((item) => {
|
||||
const link = props.links.find(
|
||||
(link) => link.data.requisition_item_id === item.id,
|
||||
);
|
||||
return (
|
||||
<Panel
|
||||
key={item.id}
|
||||
title={item.description}
|
||||
description={
|
||||
link
|
||||
? `Ordem ligada: ${link.snapshot.source.data.reference} · ${labels[link.snapshot.source.data.type]}`
|
||||
: 'Sem ordem de origem ligada.'
|
||||
}
|
||||
>
|
||||
{props.canLink && (
|
||||
<DraftForm
|
||||
key={`${item.id}:${link?.version ?? 0}`}
|
||||
identity={`${props.identity}:link:${item.id}:${link?.version ?? 0}`}
|
||||
url={`/requisicoes/${props.requisition?.id}/ordens-operacionais`}
|
||||
initial={{
|
||||
item_id: String(item.id),
|
||||
order_id: '',
|
||||
version: String(link?.version ?? 0),
|
||||
reason: '',
|
||||
}}
|
||||
fields={[
|
||||
{
|
||||
name: 'order_id',
|
||||
label: 'Ordem de origem',
|
||||
choices: props.orders.data.map(
|
||||
(order) => ({
|
||||
value: String(order.id),
|
||||
label: `${labels[order.data.type]} · ${order.data.reference} · ${order.data.utilisation_location}`,
|
||||
}),
|
||||
),
|
||||
},
|
||||
{
|
||||
name: 'reason',
|
||||
label: 'Fundamento da ligação',
|
||||
long: true,
|
||||
},
|
||||
]}
|
||||
submit="Ligar ordem à linha"
|
||||
/>
|
||||
)}
|
||||
</Panel>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
function DraftForm({
|
||||
identity,
|
||||
url,
|
||||
initial,
|
||||
fields,
|
||||
submit,
|
||||
}: {
|
||||
identity: string;
|
||||
url: string;
|
||||
initial: Record<string, string>;
|
||||
fields: Field[];
|
||||
submit: string;
|
||||
}) {
|
||||
const form = useForm<Record<string, string>>(`${identity}:form`, {
|
||||
...initial,
|
||||
operation_key: crypto.randomUUID(),
|
||||
});
|
||||
const dirty = hasPreparationChanges(
|
||||
{ ...initial, operation_key: '' },
|
||||
{ ...form.data, operation_key: '' },
|
||||
);
|
||||
const ref = usePreparationDirty(dirty);
|
||||
return (
|
||||
<form
|
||||
ref={ref}
|
||||
data-preparation-dirty={dirty ? 'true' : 'false'}
|
||||
className="space-y-4"
|
||||
onSubmit={(event) => {
|
||||
event.preventDefault();
|
||||
form.post(url, {
|
||||
preserveScroll: true,
|
||||
preserveState: true,
|
||||
onSuccess: () => {
|
||||
const cleared = {
|
||||
...initial,
|
||||
operation_key: crypto.randomUUID(),
|
||||
};
|
||||
form.setData(cleared);
|
||||
form.clearErrors();
|
||||
router.remember(cleared, `${identity}:form:data`);
|
||||
router.remember({}, `${identity}:form:errors`);
|
||||
},
|
||||
});
|
||||
}}
|
||||
>
|
||||
<FormErrors errors={form.errors} />
|
||||
{fields.map((field) => (
|
||||
<label key={field.name} className="block space-y-1 text-sm">
|
||||
{field.label}
|
||||
{field.choices ? (
|
||||
<select
|
||||
className={controlClass}
|
||||
required
|
||||
value={form.data[field.name] ?? ''}
|
||||
onChange={(event) =>
|
||||
form.setData(field.name, event.target.value)
|
||||
}
|
||||
>
|
||||
<option value="">Seleccione</option>
|
||||
{form.data[field.name] &&
|
||||
!field.choices.some(
|
||||
(choice) =>
|
||||
choice.value === form.data[field.name],
|
||||
) && (
|
||||
<option value={form.data[field.name]}>
|
||||
Selecção preservada de outra página —
|
||||
confira a ordem antes de submeter
|
||||
</option>
|
||||
)}
|
||||
{field.choices.map((choice) => (
|
||||
<option key={choice.value} value={choice.value}>
|
||||
{choice.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
) : field.long ? (
|
||||
<textarea
|
||||
className={`${controlClass} h-24 py-3`}
|
||||
required
|
||||
minLength={10}
|
||||
maxLength={4000}
|
||||
value={form.data[field.name] ?? ''}
|
||||
onChange={(event) =>
|
||||
form.setData(field.name, event.target.value)
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
<input
|
||||
className={controlClass}
|
||||
required
|
||||
minLength={3}
|
||||
maxLength={field.name === 'reference' ? 120 : 300}
|
||||
value={form.data[field.name] ?? ''}
|
||||
onChange={(event) =>
|
||||
form.setData(field.name, event.target.value)
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</label>
|
||||
))}
|
||||
<Button disabled={form.processing}>{submit}</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
OperationalOrders.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Ordens de produção e manutenção',
|
||||
href: '/ordens-operacionais',
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -67,6 +67,7 @@ export default function Show({
|
||||
importTariffsReady = false,
|
||||
importEstimatesReady = false,
|
||||
capitalRegisterReady = false,
|
||||
operationalOrdersReady = false,
|
||||
expiryReady = false,
|
||||
accountsReady = false,
|
||||
duplicateHints = null,
|
||||
@@ -81,6 +82,7 @@ export default function Show({
|
||||
} | null;
|
||||
importEstimatesReady?: boolean;
|
||||
capitalRegisterReady?: boolean;
|
||||
operationalOrdersReady?: boolean;
|
||||
expiryReady?: boolean;
|
||||
accountsReady?: boolean;
|
||||
importTariffsReady?: boolean;
|
||||
@@ -195,6 +197,14 @@ export default function Show({
|
||||
</Link>
|
||||
</Button>
|
||||
)}
|
||||
{operationalOrdersReady && (
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/requisicoes/${r.id}/ordens-operacionais`}
|
||||
>
|
||||
Ligar artigos a ordens de produção ou manutenção
|
||||
</Link>
|
||||
)}
|
||||
{accountsReady && (
|
||||
<Button asChild variant="outline">
|
||||
<Link href={`/requisicoes/${r.id}/contas`}>
|
||||
|
||||
@@ -0,0 +1,290 @@
|
||||
import { Head, Link, router, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
Panel,
|
||||
PageTitle,
|
||||
FormErrors,
|
||||
controlClass,
|
||||
} from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
ComparisonPolicySummary,
|
||||
type ComparisonPolicy,
|
||||
} from '@/components/comparison-policy-summary';
|
||||
import { useProcurementPreparationIdentity } from '@/hooks/use-procurement-preparation-identity';
|
||||
import { usePreparationDirty } from '@/hooks/use-preparation-dirty';
|
||||
import { hasPreparationChanges } from '@/lib/requisition-history';
|
||||
|
||||
type Item = {
|
||||
id: number;
|
||||
description: string;
|
||||
catalogue_snapshot?: { stock_item_id?: number } | null;
|
||||
};
|
||||
type Policy = {
|
||||
id: number;
|
||||
version: number;
|
||||
stock_item_id: number;
|
||||
item: { name: string; unit: string };
|
||||
warehouse: { name: string };
|
||||
minimum_stock_milli: number;
|
||||
usage_context: string | null;
|
||||
};
|
||||
type Evidence = {
|
||||
id: number;
|
||||
version: number;
|
||||
reason: string;
|
||||
data: { requisition_item_id: number };
|
||||
snapshot: {
|
||||
stock_policy: {
|
||||
minimum_stock_milli: number;
|
||||
usage_context: string | null;
|
||||
warehouse: { name: string };
|
||||
};
|
||||
availability: { free_milli: number | null };
|
||||
author: { name: string };
|
||||
};
|
||||
};
|
||||
type Props = {
|
||||
requisition: {
|
||||
id: number;
|
||||
number: string;
|
||||
priority: string;
|
||||
justification: string;
|
||||
};
|
||||
cycle: number;
|
||||
canRecord: boolean;
|
||||
items: Item[];
|
||||
comparisonPolicy: ComparisonPolicy;
|
||||
policies: {
|
||||
data: Policy[];
|
||||
prev_page_url: string | null;
|
||||
next_page_url: string | null;
|
||||
};
|
||||
evidence: Evidence[];
|
||||
eligible: Evidence[];
|
||||
};
|
||||
|
||||
export default function UrgentStock(props: Props) {
|
||||
const identity = useProcurementPreparationIdentity(
|
||||
`urgent-stock:${props.requisition.id}:${props.cycle}:${props.comparisonPolicy.revision}`,
|
||||
);
|
||||
const enabled =
|
||||
props.requisition.priority === 'urgent' &&
|
||||
props.comparisonPolicy.urgent_minimum_proposals !== undefined;
|
||||
return (
|
||||
<>
|
||||
<Head title="Stock mínimo e cotações urgentes" />
|
||||
<div className="mx-auto flex w-full max-w-5xl flex-col gap-6 p-5 lg:p-8">
|
||||
<PageTitle
|
||||
eyebrow={props.requisition.number}
|
||||
title="Stock mínimo e cotações urgentes"
|
||||
description="Documente a política de stock aplicável ao artigo e ao local de utilização. O servidor confere se o mínimo foi atingido; orçamento, avaliações e aprovações mantêm-se."
|
||||
/>
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/requisicoes/${props.requisition.id}/cotacoes`}
|
||||
>
|
||||
Voltar às cotações
|
||||
</Link>
|
||||
<Panel title="Regra preservada na requisição">
|
||||
<ComparisonPolicySummary policy={props.comparisonPolicy} />
|
||||
<p className="mt-3 text-sm">
|
||||
{!enabled
|
||||
? 'Esta requisição não permite redução urgente de cotações.'
|
||||
: props.eligible.length > 0
|
||||
? 'Stock mínimo documentado para todas as linhas deste ciclo. A comparação pode aplicar o número urgente configurado.'
|
||||
: 'Mantém-se o número normal de propostas enquanto faltar a conferência válida de alguma linha.'}
|
||||
</p>
|
||||
</Panel>
|
||||
{props.items.map((item) => {
|
||||
const previous = props.evidence.find(
|
||||
(record) => record.data.requisition_item_id === item.id,
|
||||
);
|
||||
const policies = props.policies.data.filter(
|
||||
(policy) =>
|
||||
policy.stock_item_id ===
|
||||
item.catalogue_snapshot?.stock_item_id,
|
||||
);
|
||||
return (
|
||||
<Panel title={item.description} key={item.id}>
|
||||
{previous && (
|
||||
<div className="mb-4 space-y-1 text-sm">
|
||||
<p>
|
||||
Conferência #{previous.id} ·{' '}
|
||||
{previous.snapshot.author.name} ·{' '}
|
||||
{
|
||||
previous.snapshot.stock_policy
|
||||
.warehouse.name
|
||||
}
|
||||
</p>
|
||||
<p>
|
||||
Mínimo documentado:{' '}
|
||||
{previous.snapshot.stock_policy
|
||||
.minimum_stock_milli / 1000}
|
||||
; stock livre no momento:{' '}
|
||||
{previous.snapshot.availability
|
||||
.free_milli === null
|
||||
? 'Indeterminado'
|
||||
: previous.snapshot.availability
|
||||
.free_milli / 1000}
|
||||
.
|
||||
</p>
|
||||
{previous.snapshot.stock_policy
|
||||
.usage_context && (
|
||||
<p>
|
||||
{
|
||||
previous.snapshot.stock_policy
|
||||
.usage_context
|
||||
}
|
||||
</p>
|
||||
)}
|
||||
<p>{previous.reason}</p>
|
||||
</div>
|
||||
)}
|
||||
{enabled && props.canRecord && (
|
||||
<EvidenceForm
|
||||
key={`${identity}:${item.id}:${previous?.version ?? 0}`}
|
||||
identity={`${identity}:${item.id}:${previous?.version ?? 0}`}
|
||||
requestId={props.requisition.id}
|
||||
itemId={item.id}
|
||||
version={previous?.version ?? 0}
|
||||
policies={policies}
|
||||
/>
|
||||
)}
|
||||
</Panel>
|
||||
);
|
||||
})}
|
||||
<div className="flex gap-4">
|
||||
{props.policies.prev_page_url && (
|
||||
<Link
|
||||
preserveState
|
||||
preserveScroll
|
||||
href={props.policies.prev_page_url}
|
||||
>
|
||||
Políticas anteriores
|
||||
</Link>
|
||||
)}
|
||||
{props.policies.next_page_url && (
|
||||
<Link
|
||||
preserveState
|
||||
preserveScroll
|
||||
href={props.policies.next_page_url}
|
||||
>
|
||||
Mais políticas
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
function EvidenceForm({
|
||||
identity,
|
||||
requestId,
|
||||
itemId,
|
||||
version,
|
||||
policies,
|
||||
}: {
|
||||
identity: string;
|
||||
requestId: number;
|
||||
itemId: number;
|
||||
version: number;
|
||||
policies: Policy[];
|
||||
}) {
|
||||
const initial = {
|
||||
item_id: itemId,
|
||||
policy_id: policies.length === 1 ? String(policies[0].id) : '',
|
||||
version,
|
||||
reason: '',
|
||||
};
|
||||
const form = useForm(`${identity}:form`, {
|
||||
...initial,
|
||||
operation_key: crypto.randomUUID(),
|
||||
});
|
||||
const dirty = hasPreparationChanges(
|
||||
{ ...initial, operation_key: '' },
|
||||
{ ...form.data, operation_key: '' },
|
||||
);
|
||||
const ref = usePreparationDirty(dirty);
|
||||
return (
|
||||
<form
|
||||
ref={ref}
|
||||
data-preparation-dirty={dirty ? 'true' : 'false'}
|
||||
className="space-y-4"
|
||||
onSubmit={(event) => {
|
||||
event.preventDefault();
|
||||
form.post(`/requisicoes/${requestId}/urgencia-stock`, {
|
||||
preserveScroll: true,
|
||||
preserveState: true,
|
||||
onSuccess: () => {
|
||||
const cleared = {
|
||||
...initial,
|
||||
operation_key: crypto.randomUUID(),
|
||||
};
|
||||
form.setData(cleared);
|
||||
form.clearErrors();
|
||||
router.remember(cleared, `${identity}:form:data`);
|
||||
router.remember({}, `${identity}:form:errors`);
|
||||
},
|
||||
});
|
||||
}}
|
||||
>
|
||||
<FormErrors errors={form.errors} />
|
||||
<label className="block space-y-1 text-sm">
|
||||
Política de mínimo aplicável ao artigo/local
|
||||
<select
|
||||
className={controlClass}
|
||||
required
|
||||
value={form.data.policy_id}
|
||||
onChange={(event) =>
|
||||
form.setData('policy_id', event.target.value)
|
||||
}
|
||||
>
|
||||
<option value="">Seleccione a política aprovada</option>
|
||||
{form.data.policy_id &&
|
||||
!policies.some(
|
||||
(policy) =>
|
||||
String(policy.id) === form.data.policy_id,
|
||||
) && (
|
||||
<option value={form.data.policy_id}>
|
||||
Política preservada de outra página — confira a
|
||||
fonte
|
||||
</option>
|
||||
)}
|
||||
{policies.map((policy) => (
|
||||
<option key={policy.id} value={policy.id}>
|
||||
{policy.warehouse.name} · mínimo{' '}
|
||||
{policy.minimum_stock_milli / 1000}{' '}
|
||||
{policy.item.unit} ·{' '}
|
||||
{policy.usage_context ?? policy.item.name} · versão{' '}
|
||||
{policy.version}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
<label className="block space-y-1 text-sm">
|
||||
Fundamento da urgência e da utilização desta política
|
||||
<textarea
|
||||
className={`${controlClass} h-24 py-3`}
|
||||
required
|
||||
minLength={10}
|
||||
maxLength={4000}
|
||||
value={form.data.reason}
|
||||
onChange={(event) =>
|
||||
form.setData('reason', event.target.value)
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
<Button
|
||||
disabled={
|
||||
form.processing ||
|
||||
(!form.data.policy_id && policies.length === 0)
|
||||
}
|
||||
>
|
||||
Conferir stock mínimo
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
UrgentStock.layout = {
|
||||
breadcrumbs: [{ title: 'Stock mínimo e cotações urgentes', href: '#' }],
|
||||
};
|
||||
@@ -46,6 +46,20 @@ type Page<T> = {
|
||||
next_page_url: string | null;
|
||||
};
|
||||
type Props = {
|
||||
referenceDraftWarnings?: { source_id: number; message: string }[];
|
||||
referenceDrafts?: {
|
||||
source_id: number;
|
||||
code: string;
|
||||
description: string;
|
||||
rate_percent: string;
|
||||
title: string;
|
||||
official_reference: string;
|
||||
official_url: string | null;
|
||||
citation: string;
|
||||
valid_from: string;
|
||||
obligations: string;
|
||||
charges: LegalCharge[];
|
||||
}[];
|
||||
sources?: Page<{
|
||||
id: number;
|
||||
data: { official_reference: string; official_url: string | null };
|
||||
@@ -864,6 +878,87 @@ export default function ImportLegal(props: Props) {
|
||||
: 'Preparar uma regra documentada'
|
||||
}
|
||||
>
|
||||
{props.referenceDraftWarnings?.map((warning) => (
|
||||
<p
|
||||
key={warning.source_id}
|
||||
role="status"
|
||||
className="mb-3 text-sm"
|
||||
>
|
||||
Fonte #{warning.source_id}: {warning.message}
|
||||
</p>
|
||||
))}
|
||||
{(props.referenceDrafts?.length ?? 0) > 0 && (
|
||||
<div className="mb-5 space-y-3 rounded border p-3">
|
||||
<h3 className="font-medium">
|
||||
Preparar a partir do exemplar oficial
|
||||
</h3>
|
||||
<p className="text-sm">
|
||||
Transcrição da página 2180-(4) da Lei 8/2025,
|
||||
com início em 01/01/2026. Inclui apenas a taxa
|
||||
geral dessa edição; não é uma pauta consolidada
|
||||
nem determina isenções, preferências ou outras
|
||||
imposições. A preparação continua editável e
|
||||
exige gravação e decisão expressas.
|
||||
</p>
|
||||
{form.isDirty && (
|
||||
<p className="text-sm">
|
||||
Conclua ou limpe a preparação actual antes
|
||||
de escolher outro código. O preenchimento
|
||||
existente será conservado.
|
||||
</p>
|
||||
)}
|
||||
<div className="grid gap-2">
|
||||
{props.referenceDrafts?.map((draft) => (
|
||||
<Button
|
||||
key={`${draft.source_id}:${draft.code}`}
|
||||
type="button"
|
||||
variant="outline"
|
||||
className="h-auto justify-start text-left whitespace-normal"
|
||||
disabled={
|
||||
form.isDirty ||
|
||||
form.processing ||
|
||||
form.data.record_key !== null
|
||||
}
|
||||
onClick={() => {
|
||||
form.setData({
|
||||
...form.data,
|
||||
operation_key: '',
|
||||
record_key: null,
|
||||
version: 0,
|
||||
action: 'save',
|
||||
title: draft.title,
|
||||
official_reference:
|
||||
draft.official_reference,
|
||||
official_url:
|
||||
draft.official_url ?? '',
|
||||
citation: draft.citation,
|
||||
valid_from: draft.valid_from,
|
||||
valid_until: '',
|
||||
match_code: draft.code,
|
||||
suggested_code: draft.code,
|
||||
origin_country: '',
|
||||
sector: '',
|
||||
obligations: draft.obligations,
|
||||
document_types: [],
|
||||
reason: '',
|
||||
file: null,
|
||||
source_id: String(
|
||||
draft.source_id,
|
||||
),
|
||||
charges: chargeDrafts(
|
||||
draft.charges,
|
||||
),
|
||||
});
|
||||
form.clearErrors();
|
||||
}}
|
||||
>
|
||||
{draft.code} — {draft.description} —
|
||||
taxa geral {draft.rate_percent}%
|
||||
</Button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<form
|
||||
ref={ref}
|
||||
className="space-y-4"
|
||||
|
||||
@@ -155,6 +155,7 @@ const labels: Record<string, string> = {
|
||||
origin: 'Origem do fornecimento',
|
||||
safety_milli: 'Stock de segurança',
|
||||
minimum_stock_milli: 'Stock mínimo',
|
||||
usage_context: 'Natureza do artigo e utilização considerada',
|
||||
target_milli: 'Stock alvo',
|
||||
maximum_milli: 'Stock máximo',
|
||||
daily_milli: 'Procura diária',
|
||||
@@ -1077,6 +1078,12 @@ function PreparationForm({
|
||||
</label>
|
||||
{field('safety', 'Stock de segurança', 'number')}
|
||||
{field('minimum_stock', 'Stock mínimo', 'number')}
|
||||
{field(
|
||||
'usage_context',
|
||||
'Natureza do artigo e utilização considerada no mínimo',
|
||||
'text',
|
||||
true,
|
||||
)}
|
||||
{field('target', 'Stock alvo', 'number')}
|
||||
{field('maximum', 'Stock máximo', 'number')}
|
||||
{form.data.data.forecast_method !== 'historical' &&
|
||||
@@ -1097,7 +1104,10 @@ function PreparationForm({
|
||||
'Antecedência de aprovação interna em dias corridos',
|
||||
'number',
|
||||
)}
|
||||
{field('basis', 'Fonte da procura e do prazo')}
|
||||
{field(
|
||||
'basis',
|
||||
'Fundamento do mínimo, da procura e do prazo',
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{props.kind === 'import' && (
|
||||
|
||||
Reference in New Issue
Block a user