feat: add deposit receipt preview, deposit identifier, and approve/reject modals with SMS
This commit is contained in:
@@ -74,6 +74,24 @@ export function getWithdrawColumns(): BaseTableColumn[] {
|
||||
key: 'customer.name',
|
||||
type: 'Text'
|
||||
},
|
||||
{
|
||||
title: 'شناسه واریز',
|
||||
dataIndex: 'deposit_identifier',
|
||||
key: 'deposit_identifier',
|
||||
type: 'Text',
|
||||
customRender: ({ record }: any) => {
|
||||
const val = record?.deposit_identifier || record?.customer?.n_code
|
||||
return val ? <span dir="ltr" class="font-mono text-xs">{val}</span> : '-'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'فیش واریزی',
|
||||
dataIndex: 'receipt_url',
|
||||
key: 'receipt_url',
|
||||
slot: 'receipt',
|
||||
filterable: false,
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
title: 'نوع',
|
||||
dataIndex: 'asset_type',
|
||||
@@ -172,9 +190,18 @@ export function getWithdrawColumns(): BaseTableColumn[] {
|
||||
)
|
||||
}
|
||||
}*/
|
||||
customRender: ({ record }) => {
|
||||
customRender: ({ record }: any) => {
|
||||
let textColor = '#ca8a04'
|
||||
let bgColor = '#fef3c7'
|
||||
if (record?.sts === 2 || record?.sts === 4) {
|
||||
textColor = '#25855A'
|
||||
bgColor = '#E3F4E9'
|
||||
} else if (record?.sts === 3) {
|
||||
textColor = '#C53030'
|
||||
bgColor = '#FECACA'
|
||||
}
|
||||
return (
|
||||
<CustomTag textColor='#ca8a04' bgColor='#fef3c7'>{record?.sts_str}</CustomTag>
|
||||
<CustomTag textColor={textColor} bgColor={bgColor}>{record?.sts_str || '-'}</CustomTag>
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user