b2a1eb8e5b
- Added StockKeepingUnitFormComponent for creating and editing stock keeping units. - Introduced StockKeepingUnitsComponent for listing stock keeping units with pagination. - Integrated form fields for code, name, VAT, and SKU type in the stock keeping unit form. - Created API routes for stock keeping units with CRUD operations. - Updated input components to handle numeric and price types with Persian/Arabic digit normalization. - Enhanced key-value component to support tag display instead of badge. - Adjusted layout styles for sidebar menu. - Added AGENT.md for repository-specific coding guidelines and practices. - Implemented good management form with file upload and category selection.
72 lines
1.7 KiB
TypeScript
72 lines
1.7 KiB
TypeScript
import { MenuItem } from 'primeng/api';
|
|
export const SUPER_ADMIN_MENU_ITEMS = [
|
|
{
|
|
items: [
|
|
{
|
|
label: 'داشبورد',
|
|
icon: 'pi pi-fw pi-home',
|
|
routerLink: ['/'],
|
|
},
|
|
{
|
|
label: 'مشتری',
|
|
icon: 'pi pi-fw pi-id-card',
|
|
routerLink: ['/super_admin/consumers'],
|
|
},
|
|
|
|
{
|
|
label: 'شریک تجاری',
|
|
icon: 'pi pi-fw pi-building',
|
|
routerLink: ['/super_admin/partners'],
|
|
},
|
|
{
|
|
label: 'ارایهدهنده',
|
|
icon: 'pi pi-fw pi-building-columns',
|
|
routerLink: ['/super_admin/providers'],
|
|
},
|
|
],
|
|
},
|
|
|
|
{
|
|
label: 'مدیریت اطلاعات مرجع',
|
|
icon: 'pi pi-fw pi-cog',
|
|
items: [
|
|
{
|
|
label: 'اصناف',
|
|
icon: 'pi pi-fw pi-briefcase',
|
|
routerLink: ['/super_admin/guilds'],
|
|
},
|
|
// {
|
|
// label: 'شناسه کالا',
|
|
// icon: 'pi pi-fw pi-barcode',
|
|
// routerLink: [stockKeepingUnitsNamedRoutes.stockKeepingUnits.meta.pagePath!()],
|
|
// },
|
|
{
|
|
label: 'لایسنس',
|
|
icon: 'pi pi-fw pi-key',
|
|
routerLink: ['/super_admin/licenses'],
|
|
},
|
|
{
|
|
label: 'برند دستگاه',
|
|
icon: 'pi pi-fw pi-receipt',
|
|
routerLink: ['/super_admin/device_brands'],
|
|
},
|
|
{
|
|
label: 'دستگاه',
|
|
icon: 'pi pi-fw pi-tablet',
|
|
routerLink: ['/super_admin/devices'],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: 'تنظیمات',
|
|
icon: 'pi pi-fw pi-cog',
|
|
items: [
|
|
{
|
|
label: 'حسابهای کاربری',
|
|
icon: 'pi pi-fw pi-user',
|
|
routerLink: ['/super_admin/users'],
|
|
},
|
|
],
|
|
},
|
|
] as MenuItem[];
|