feat: add log type and final log status columns to request log table
This commit is contained in:
@@ -294,6 +294,12 @@ export default function TableList() {
|
|||||||
label: localeData.txtRequestCode,
|
label: localeData.txtRequestCode,
|
||||||
isSort: true,
|
isSort: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'log_type',
|
||||||
|
align: 'left',
|
||||||
|
label: localeData.txtLogType,
|
||||||
|
isSort: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'provider',
|
id: 'provider',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
@@ -318,6 +324,12 @@ export default function TableList() {
|
|||||||
label: localeData.txtStatus,
|
label: localeData.txtStatus,
|
||||||
isSort: true,
|
isSort: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'status_final_log',
|
||||||
|
align: 'center',
|
||||||
|
label: localeData.txtStatusFinalLog,
|
||||||
|
isSort: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'action',
|
id: 'action',
|
||||||
align: 'right',
|
align: 'right',
|
||||||
@@ -399,6 +411,34 @@ export default function TableList() {
|
|||||||
...obj,
|
...obj,
|
||||||
provider:obj.provider,
|
provider:obj.provider,
|
||||||
full_name:formatTitleCase(obj.full_name),
|
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:
|
status:
|
||||||
obj.status === 'requested' ? (
|
obj.status === 'requested' ? (
|
||||||
<Label color='primary'>
|
<Label color='primary'>
|
||||||
|
|||||||
Reference in New Issue
Block a user