added function for trigger in admin

This commit is contained in:
2026-07-06 19:06:57 +03:30
parent c380fc89d3
commit 6756641efd
14 changed files with 1072 additions and 442 deletions
@@ -29,6 +29,16 @@ export const cols: BaseTableColumn[] = [
return record.index + 1
}
},
{
title: 'مشتری',
dataIndex: 'customer',
key: 'customer',
type: 'Text',
customRender: ({ record }) => {
const name = record.customer?.name?.trim()
return name ? `${name} (${record.customer_id})` : String(record.customer_id ?? '-')
},
},
{
title: 'کد مشتری',
dataIndex: 'customer_id',
@@ -203,6 +213,15 @@ export const cols: BaseTableColumn[] = [
{
title: 'روش ارسال',
dataIndex: 'action',
key: 'action',
}
key: 'notify_action',
customRender: ({ record }) => (record.action === 'email' ? 'ایمیل' : 'پیامک'),
},
{
title: 'عملیات',
dataIndex: 'row_action',
key: 'row_action',
slot: 'action',
fixed: 'right',
filterable: false,
},
]