This commit is contained in:
2024-02-07 10:29:20 +07:00
parent 062d70d3c2
commit 22d2410508

View File

@@ -367,8 +367,15 @@ export default function ServiceMonitoring() {
</Grid> </Grid>
</Grid> </Grid>
</Grid> </Grid>
<Grid item xs={12} paddingY={2}>
<Typography component={'h6'} fontWeight={700} fontSize={18}>
{loading ? <Skeleton animation="wave" width={175} /> : 'Detail Letter Of Guarante'}
</Typography>
</Grid>
</Grid> </Grid>
</Card> </Card>
</Grid> </Grid>
<Grid item container xs={12} spacing={5}> <Grid item container xs={12} spacing={5}>
<Grid item container xs={12} md={6}> <Grid item container xs={12} md={6}>
@@ -1115,49 +1122,27 @@ export default function ServiceMonitoring() {
> >
<Stack> <Stack>
<Typography variant="subtitle1">{date ? date : '-'}</Typography> <Typography variant="subtitle1">{date ? date : '-'}</Typography>
{data.laboratoriumResults[date].map( {data.laboratoriumResults[date]?.map((laboratoriumResult, laboratoriumResultIndex) => (
(laboratoriumResult, laboratoriumResultIndex) => ( <Card key={laboratoriumResultIndex} sx={{ marginTop: 3, paddingX: 2.5, paddingY: 2 }}>
<Card <Label>{laboratoriumResult.code || '-'}</Label>
key={laboratoriumResultIndex}
sx={{ marginTop: 3, paddingX: 2.5, paddingY: 2 }}
>
<Label>
{laboratoriumResult.code ? laboratoriumResult.code : '-'}
</Label>
<Table sx={{ marginY: 2 }}> <Table sx={{ marginY: 2 }}>
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCell>Date</TableCell> <TableCell>Date</TableCell>
<TableCell>Examination</TableCell> <TableCell>Examination</TableCell>
<TableCell>Location</TableCell> <TableCell>Location</TableCell>
{/* <TableCell /> */}
</TableRow> </TableRow>
</TableHead> </TableHead>
<TableBody> <TableBody>
<TableRow> <TableRow>
<TableCell> <TableCell><Label>{laboratoriumResult.date || '-'}</Label></TableCell>
<Label> <TableCell>{laboratoriumResult.examination || '-'}</TableCell>
{laboratoriumResult.date ? laboratoriumResult.date : '-'} <TableCell>{laboratoriumResult.location || '-'}</TableCell>
</Label>
</TableCell>
<TableCell>
{laboratoriumResult.examination
? laboratoriumResult.examination
: '-'}
</TableCell>
<TableCell>
{laboratoriumResult.location
? laboratoriumResult.location
: '-'}
</TableCell>
{/* <TableMoreMenu {/* <TableMoreMenu
actions={ actions={
<> <>
<MenuItem <MenuItem onClick={() => handleDownloadClick(laboratoriumResult.file)}>
onClick={() => handleDownloadClick(laboratoriumResult.file)} <DownloadIcon /> Download
>
<DownloadIcon />
Download
</MenuItem> </MenuItem>
</> </>
} }
@@ -1166,8 +1151,7 @@ export default function ServiceMonitoring() {
</TableBody> </TableBody>
</Table> </Table>
</Card> </Card>
) ))}
)}
</Stack> </Stack>
</Card> </Card>
)) ))