refactor(FE-316): Update uniformity payload/fields and file handling

This commit is contained in:
rstubryan
2025-12-28 11:50:14 +07:00
parent f37eea687a
commit b24fb54856
8 changed files with 132 additions and 44 deletions
@@ -269,23 +269,23 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
{
accessorKey: 'location.name',
header: 'Lokasi',
cell: (props) => props.row.original.location.name || '-',
cell: (props) => props.row.original.location_name || '-',
},
{
accessorKey: 'project_flock_kandang_id',
accessorKey: 'flock_name',
header: 'Flock',
cell: (props) => `Flock ${props.row.original.project_flock_kandang_id}`,
cell: (props) => props.row.original.flock_name || '-',
},
{
accessorKey: 'kandang.name',
accessorKey: 'kandang_name',
header: 'Kandang',
cell: (props) => props.row.original.kandang.name || '-',
cell: (props) => props.row.original.kandang_name || '-',
},
{
accessorKey: 'week',
header: 'Tanggal (Week)',
cell: (props) =>
`${formatDate(props.row.original.date, 'DD MMM YYYY')} (${props.row.original.week})`,
`${formatDate(props.row.original.applied_at, 'DD MMM YYYY')} (${props.row.original.week})`,
},
{
accessorKey: 'status',