feat: add log type and final log status columns to request log table

This commit is contained in:
Iqbal
2026-05-05 13:44:39 +07:00
parent ad111bc61f
commit 51018456bc

View File

@@ -294,6 +294,12 @@ export default function TableList() {
label: localeData.txtRequestCode,
isSort: true,
},
{
id: 'log_type',
align: 'left',
label: localeData.txtLogType,
isSort: true,
},
{
id: 'provider',
align: 'left',
@@ -318,6 +324,12 @@ export default function TableList() {
label: localeData.txtStatus,
isSort: true,
},
{
id: 'status_final_log',
align: 'center',
label: localeData.txtStatusFinalLog,
isSort: true,
},
{
id: 'action',
align: 'right',
@@ -399,6 +411,34 @@ export default function TableList() {
...obj,
provider:obj.provider,
full_name:formatTitleCase(obj.full_name),
log_type:
obj.log_type === 'reference' ? (
<Label color='info'>
Rujukan
</Label>
) : obj.log_type === 'prescription' ? (
<Label color='warning'>
Resep
</Label>
) : obj.log_type === 'consultation' ? (
<Label color='primary'>
Konsultasi
</Label>
) : (
<Label color='default'>
-
</Label>
),
status_final_log:
obj.final_log === 1 ? (
<Label color='primary'>
Request
</Label>
) : (
<Label color='error'>
Belum Dibuat
</Label>
),
status:
obj.status === 'requested' ? (
<Label color='primary'>