Update cetak final LOG
This commit is contained in:
@@ -86,10 +86,10 @@ export default function AccountPopover() {
|
||||
>
|
||||
<Box sx={{ my: 1.5, px: 2.5 }}>
|
||||
<Typography variant="subtitle2" noWrap>
|
||||
Rayan Moran
|
||||
Hospital Admin
|
||||
</Typography>
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }} noWrap>
|
||||
rayan.moran@gmail.com
|
||||
hospitaladmin@gmail.com
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ export default function NavbarDocs() {
|
||||
|
||||
<div>
|
||||
<Typography gutterBottom variant="subtitle1">
|
||||
Hi, Rayan Moran
|
||||
Hi, Hospital Admin
|
||||
</Typography>
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
||||
Need help?
|
||||
@@ -25,7 +25,7 @@ export default function NavbarDocs() {
|
||||
</div>
|
||||
|
||||
<Button variant="contained">Documentation</Button>
|
||||
<Typography variant='body2'>Hak Cipta © 2023 - 2024 Link Medis Sehat</Typography>
|
||||
<Typography variant='body2'>Hak Cipta © 2023 - 2024 Link Sehat</Typography>
|
||||
</Stack>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -38,8 +38,17 @@ export default function TableListFinalLog() {
|
||||
const [data, setData] = useState([]);
|
||||
|
||||
// Download LOG
|
||||
async function handleDownloadLog(claimRequest:any) {
|
||||
enqueueSnackbar('Sorry, this feature is currently being processed', { variant: 'error' });
|
||||
async function handleDownloadLog(request_log_id:any) {
|
||||
return axios
|
||||
.get(`download-final-log/${request_log_id}`, {
|
||||
responseType: 'blob',
|
||||
})
|
||||
.then((response) => {
|
||||
window.open(URL.createObjectURL(response.data), '_blank');
|
||||
})
|
||||
.catch((response) => {
|
||||
enqueueSnackbar(response.message, { variant: 'error' });
|
||||
});
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -334,9 +343,9 @@ export default function TableListFinalLog() {
|
||||
View
|
||||
</MenuItem>
|
||||
{obj.status === 'approved' ? (
|
||||
<MenuItem onClick={() => handleDownloadLog(obj.claim_request_id)}>
|
||||
<MenuItem onClick={() => handleDownloadLog(obj.id)}>
|
||||
<Iconify icon="eva:download-fill" />
|
||||
Download LOG
|
||||
Download Final LOG
|
||||
</MenuItem>
|
||||
):''}
|
||||
{!obj.check_claim && obj.status === 'approved' ? (
|
||||
|
||||
Reference in New Issue
Block a user