37 lines
929 B
JavaScript
37 lines
929 B
JavaScript
import { modalityTitle } from './fastRequestOptions'
|
|
import { convertEnglishToPersian } from '../utils/numberUtils'
|
|
|
|
export const reportColumns = [
|
|
{
|
|
title: 'شماره پرونده',
|
|
key: 'code',
|
|
render: (row) => row.document?.code || '-'
|
|
},
|
|
{
|
|
title: 'نوع درخواست',
|
|
key: 'modality',
|
|
render: (row) => row.document ? modalityTitle(row.document.modality) : '-'
|
|
},
|
|
{
|
|
title: 'وضعیت گزارش',
|
|
key: 'status'
|
|
},
|
|
{
|
|
title: 'پزشک',
|
|
key: 'doctor',
|
|
render: (row) => row.doctor || '-'
|
|
},
|
|
{
|
|
title: 'تاریخ ثبت گزارش',
|
|
key: 'submitted_at',
|
|
render: (row) => row.submitted_at ? convertEnglishToPersian(row.submitted_at) : '-'
|
|
},
|
|
{
|
|
title: '',
|
|
key: 'actions',
|
|
width: 80,
|
|
style: 'grid grid-cols-1',
|
|
slot: true,
|
|
}
|
|
]
|