feat: implement stock keeping unit management form and list components
- 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.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { MenuItem } from 'primeng/api';
|
||||
import { stockKeepingUnitsNamedRoutes } from '../modules/stockKeepingUnits/constants';
|
||||
export const SUPER_ADMIN_MENU_ITEMS = [
|
||||
{
|
||||
items: [
|
||||
@@ -9,19 +8,19 @@ export const SUPER_ADMIN_MENU_ITEMS = [
|
||||
routerLink: ['/'],
|
||||
},
|
||||
{
|
||||
label: 'مشتریها',
|
||||
icon: 'pi pi-fw pi-user',
|
||||
label: 'مشتری',
|
||||
icon: 'pi pi-fw pi-id-card',
|
||||
routerLink: ['/super_admin/consumers'],
|
||||
},
|
||||
|
||||
{
|
||||
label: 'شرکای تجاری',
|
||||
icon: 'pi pi-fw pi-credit-card',
|
||||
label: 'شریک تجاری',
|
||||
icon: 'pi pi-fw pi-building',
|
||||
routerLink: ['/super_admin/partners'],
|
||||
},
|
||||
{
|
||||
label: 'ارایهدهندگان',
|
||||
icon: 'pi pi-fw pi-credit-card',
|
||||
label: 'ارایهدهنده',
|
||||
icon: 'pi pi-fw pi-building-columns',
|
||||
routerLink: ['/super_admin/providers'],
|
||||
},
|
||||
],
|
||||
@@ -33,27 +32,27 @@ export const SUPER_ADMIN_MENU_ITEMS = [
|
||||
items: [
|
||||
{
|
||||
label: 'اصناف',
|
||||
icon: 'pi pi-fw pi-building',
|
||||
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-good',
|
||||
routerLink: [stockKeepingUnitsNamedRoutes.stockKeepingUnits.meta.pagePath!()],
|
||||
},
|
||||
{
|
||||
label: 'لایسنسها',
|
||||
icon: 'pi pi-fw pi-credit-card',
|
||||
label: 'لایسنس',
|
||||
icon: 'pi pi-fw pi-key',
|
||||
routerLink: ['/super_admin/licenses'],
|
||||
},
|
||||
{
|
||||
label: 'برندهای دستگاه',
|
||||
icon: 'pi pi-fw pi-list',
|
||||
label: 'برند دستگاه',
|
||||
icon: 'pi pi-fw pi-receipt',
|
||||
routerLink: ['/super_admin/device_brands'],
|
||||
},
|
||||
{
|
||||
label: 'دستگاهها',
|
||||
icon: 'pi pi-fw pi-list',
|
||||
label: 'دستگاه',
|
||||
icon: 'pi pi-fw pi-tablet',
|
||||
routerLink: ['/super_admin/devices'],
|
||||
},
|
||||
],
|
||||
@@ -63,7 +62,7 @@ export const SUPER_ADMIN_MENU_ITEMS = [
|
||||
icon: 'pi pi-fw pi-cog',
|
||||
items: [
|
||||
{
|
||||
label: 'کاربران',
|
||||
label: 'حسابهای کاربری',
|
||||
icon: 'pi pi-fw pi-user',
|
||||
routerLink: ['/super_admin/users'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user