feat: add withdraw request functionality and UI components

This commit is contained in:
2026-08-27 02:39:57 +03:30
parent aeef95339d
commit 4ce663c669
115 changed files with 4064 additions and 315 deletions
@@ -0,0 +1,46 @@
import { modalityTitle } from './fastRequestOptions'
import { convertEnglishToPersian, formatPrice } from '../utils/numberUtils'
export const invoiceColumns = [
{
title: 'شماره فاکتور',
key: 'number',
render: (row) => convertEnglishToPersian(row.number)
},
{
title: 'شماره پرونده',
key: 'document',
render: (row) => row.document?.code ?? '-'
},
{
title: 'نوع درخواست',
key: 'modality',
render: (row) => row.document ? modalityTitle(row.document.modality) : '-'
},
{
title: 'مبلغ',
key: 'amount',
render: (row) => `${formatPrice(row.amount)} تومان`
},
{
title: 'وضعیت',
key: 'status'
},
{
title: 'روش پرداخت',
key: 'payment_method',
render: (row) => row.payment_method ?? '-'
},
{
title: 'تاریخ ثبت',
key: 'created_at',
render: (row) => row.created_at ? convertEnglishToPersian(new Date(row.created_at).toLocaleDateString('fa-IR')) : '-'
},
{
title: '',
key: 'actions',
width: 100,
style: 'grid grid-cols-1',
slot: true,
}
]