Compare commits

...

1 Commits

Author SHA1 Message Date
Flatlogic Bot
c5790ce9bc HDI 2026-03-16 20:55:51 +00:00
2 changed files with 54 additions and 4 deletions

View File

@ -57,12 +57,11 @@ const menuAside: MenuAsideItem[] = [
permissions: 'READ_SUPPLIERS' permissions: 'READ_SUPPLIERS'
}, },
{ {
href: '/receptions/receptions-list', href: '/recepcion',
label: 'Receptions', label: 'Recepción',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
icon: 'mdiClipboardText' in icon ? icon['mdiClipboardText' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable, icon: 'mdiClipboardText' in icon ? icon['mdiClipboardText' as keyof typeof icon] : icon.mdiTable ?? icon.mdiTable,
permissions: 'READ_RECEPTIONS'
}, },
{ {
href: '/quotes/quotes-list', href: '/quotes/quotes-list',
@ -176,4 +175,4 @@ const menuAside: MenuAsideItem[] = [
}, },
] ]
export default menuAside export default menuAside

View File

@ -0,0 +1,51 @@
import { mdiClipboardText, mdiCar, mdiPackageVariantClosed } from '@mdi/js';
import Head from 'next/head';
import React, { ReactElement } from 'react';
import CardBox from '../components/CardBox';
import LayoutAuthenticated from '../layouts/Authenticated';
import SectionMain from '../components/SectionMain';
import SectionTitleLineWithButton from '../components/SectionTitleLineWithButton';
import BaseButton from '../components/BaseButton';
import BaseButtons from '../components/BaseButtons';
import { getPageTitle } from '../config';
const Recepcion = () => {
return (
<>
<Head>
<title>{getPageTitle('Recepción')}</title>
</Head>
<SectionMain>
<SectionTitleLineWithButton icon={mdiClipboardText} title="Recepción" main>
{''}
</SectionTitleLineWithButton>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
<CardBox className="flex flex-col items-center justify-center p-8">
<h2 className="text-xl font-bold mb-6">Automotor</h2>
<BaseButton
href="/receptions/automotor-form"
color="info"
label="Ingresar Automotor"
icon={mdiCar}
/>
</CardBox>
<CardBox className="flex flex-col items-center justify-center p-8">
<h2 className="text-xl font-bold mb-6">En Mano</h2>
<BaseButton
href="/receptions/en-mano-form"
color="success"
label="Ingresar En Mano"
icon={mdiPackageVariantClosed}
/>
</CardBox>
</div>
</SectionMain>
</>
);
};
Recepcion.getLayout = function getLayout(page: ReactElement) {
return <LayoutAuthenticated>{page}</LayoutAuthenticated>;
};
export default Recepcion;