Files
psp_panel/src/app/shared/constants/list-configs/consumer-list.const.ts
T
ahasani 561aca32d3 feat: add stock keeping units list component and related services
feat: implement checkbox component with label and hint support

feat: create sale invoice full response model for invoice details

feat: add single view component for displaying sale invoice details

feat: define various list configurations for account, business activity, and consumer management

feat: establish list configurations for managing devices, goods, and licenses

feat: create list configurations for managing partners and their accounts

feat: implement user management list configuration
2026-05-12 19:58:53 +03:30

36 lines
1001 B
TypeScript

import { IListConfig } from './list-config.model';
export const consumerListConfig: IListConfig = {
pageTitle: 'مدیریت مشتری‌ها',
addNewCtaLabel: 'افزودن مشتری',
emptyPlaceholderTitle: 'مشتری‌ای یافت نشد',
emptyPlaceholderDescription: 'برای افزودن مشتری، روی دکمهٔ بالا کلیک کنید.',
columns: [
{ field: 'name', header: 'عنوان' },
{
field: 'business_counts',
header: 'تعداد کسب‌و‌کارها',
customDataModel(item: any) {
return item.business_counts || 0;
},
},
{
field: 'partner',
header: 'ارایه‌دهنده',
type: 'nested',
nestedOption: { path: 'partner.name' },
},
{
field: 'status',
header: 'وضعیت',
type: 'nested',
nestedOption: { path: 'status.translate' },
},
{
field: 'created_at',
header: 'تاریخ ایجاد',
type: 'date',
},
],
};