up
This commit is contained in:
@@ -95,8 +95,6 @@ export default function Drugs() {
|
|||||||
setIsLoading: setIsLoading,
|
setIsLoading: setIsLoading,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------ handle params ----------------------------- */
|
/* ------------------------------ handle params ----------------------------- */
|
||||||
const [searchParams, setSearchParams] = useSearchParams();
|
const [searchParams, setSearchParams] = useSearchParams();
|
||||||
const [appliedParams, setAppliedParams] = useState({});
|
const [appliedParams, setAppliedParams] = useState({});
|
||||||
@@ -121,7 +119,6 @@ export default function Drugs() {
|
|||||||
setOrderBy: setOrderBy,
|
setOrderBy: setOrderBy,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* ---------------------------- Get Current Date ---------------------------- */
|
/* ---------------------------- Get Current Date ---------------------------- */
|
||||||
const current = new Date();
|
const current = new Date();
|
||||||
const date = fDateSuffix(current);
|
const date = fDateSuffix(current);
|
||||||
@@ -220,11 +217,7 @@ export default function Drugs() {
|
|||||||
const parameters =
|
const parameters =
|
||||||
Object.keys(appliedParams).length !== 0
|
Object.keys(appliedParams).length !== 0
|
||||||
? appliedParams
|
? appliedParams
|
||||||
: Object.fromEntries([
|
: Object.fromEntries([...searchParams.entries()]);
|
||||||
...searchParams.entries(),
|
|
||||||
['order', orders.order],
|
|
||||||
['orderBy', orders.orderBy],
|
|
||||||
]);
|
|
||||||
|
|
||||||
const claim = await axios.get(`${corporateValue}/members`, {
|
const claim = await axios.get(`${corporateValue}/members`, {
|
||||||
params: { ...parameters, type: 'claim-report' },
|
params: { ...parameters, type: 'claim-report' },
|
||||||
@@ -242,32 +235,39 @@ export default function Drugs() {
|
|||||||
return (
|
return (
|
||||||
<Page title="Claim Reports">
|
<Page title="Claim Reports">
|
||||||
<HeaderBreadcrumbs
|
<HeaderBreadcrumbs
|
||||||
heading={'Claim Submit'}
|
heading={'Claim Submit'}
|
||||||
links={[
|
links={[
|
||||||
{ name: 'Case Management', href: '/dashboard' },
|
{ name: 'Case Management', href: '/dashboard' },
|
||||||
{
|
{
|
||||||
name: 'Claim Submit',
|
name: 'Claim Submit',
|
||||||
href: '/claim-submit',
|
href: '/claim-submit',
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<Container maxWidth={themeStretch ? false : 'xl'}>
|
<Container maxWidth={themeStretch ? false : 'xl'}>
|
||||||
<Grid container spacing={2}>
|
<Grid container spacing={2}>
|
||||||
<Grid item xs={12} lg={6} md={6}>
|
<Grid item xs={12} lg={6} md={6}>
|
||||||
<Typography variant="h6" sx={{marginLeft:'10px'}}> Select Employee</Typography>
|
<Typography variant="h6" sx={{ marginLeft: '10px' }}>
|
||||||
|
{' '}
|
||||||
|
Select Employee
|
||||||
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12} lg={6} md={6} sx={{ display: 'flex', justifyContent: 'flex-end' }}>
|
<Grid item xs={12} lg={6} md={6} sx={{ display: 'flex', justifyContent: 'flex-end' }}>
|
||||||
<Stack direction='row' alignItems='center'>
|
<Stack direction="row" alignItems="center">
|
||||||
<Typography variant="inherit" align='right' sx={{ marginRight: '10px' }}>Submission Date</Typography>
|
<Typography variant="inherit" align="right" sx={{ marginRight: '10px' }}>
|
||||||
<Typography variant="subtitle1" align='right' sx={{ marginRight: '10px' }}>{date}</Typography>
|
Submission Date
|
||||||
|
</Typography>
|
||||||
|
<Typography variant="subtitle1" align="right" sx={{ marginRight: '10px' }}>
|
||||||
|
{date}
|
||||||
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12} lg={12} md={12}>
|
<Grid item xs={12} lg={12} md={12}>
|
||||||
<DialogClaimSubmitMember
|
<DialogClaimSubmitMember
|
||||||
openDialog={true}
|
openDialog={true}
|
||||||
setOpenDialog={false}
|
setOpenDialog={false}
|
||||||
title={{ name: 'te' }}
|
title={{ name: 'te' }}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
Reference in New Issue
Block a user