Update Edit History Hospital Care
This commit is contained in:
@@ -239,6 +239,7 @@ export default function Detail() {
|
|||||||
.get('/doctors?search=&organization_id='+values.organization_id)
|
.get('/doctors?search=&organization_id='+values.organization_id)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
setDoctor(response.data.data);
|
setDoctor(response.data.data);
|
||||||
|
setOpenHospitalCare(true);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
@@ -469,7 +470,6 @@ export default function Detail() {
|
|||||||
function handleEditHospitalCare(id: number) {
|
function handleEditHospitalCare(id: number) {
|
||||||
setClaimHistoryId(id);
|
setClaimHistoryId(id);
|
||||||
setEdit(true);
|
setEdit(true);
|
||||||
setOpenHospitalCare(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Service
|
//Service
|
||||||
@@ -674,12 +674,14 @@ export default function Detail() {
|
|||||||
{documentData ? (
|
{documentData ? (
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Card sx={{padding: 2}}>
|
<Card sx={{padding: 2}}>
|
||||||
<Stack direction="row" alignItems="center" sx={{marginBottom: 4}}>
|
{customerData?.status === 'received' ? (
|
||||||
<Typography variant='subtitle1' sx={{color: '#19BBBB'}} gutterBottom>Additional Documents</Typography>
|
<Stack direction="row" alignItems="center" sx={{marginBottom: 4}}>
|
||||||
<Button variant="outlined" startIcon={<AddIcon/>} sx={{marginLeft: 'auto'}} onClick={() => setOpenDialogRequest(true)}>
|
<Typography variant='subtitle1' sx={{color: '#19BBBB'}} gutterBottom>Additional Documents</Typography>
|
||||||
<Typography variant="button" display="block">Request Document</Typography>
|
<Button variant="outlined" startIcon={<AddIcon/>} sx={{marginLeft: 'auto'}} onClick={() => setOpenDialogRequest(true)}>
|
||||||
</Button>
|
<Typography variant="button" display="block">Request Document</Typography>
|
||||||
</Stack>
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
) : ''}
|
||||||
<Stack direction="column" spacing={2} sx={{marginBottom: 2}}>
|
<Stack direction="column" spacing={2} sx={{marginBottom: 2}}>
|
||||||
{documentData?.map((documentType, index) => (
|
{documentData?.map((documentType, index) => (
|
||||||
<Stack direction="column" spacing={2} key={index}>
|
<Stack direction="column" spacing={2} key={index}>
|
||||||
@@ -786,12 +788,14 @@ export default function Detail() {
|
|||||||
): ''}
|
): ''}
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Card sx={{padding: 3}}>
|
<Card sx={{padding: 3}}>
|
||||||
<Stack direction="row" alignItems="center" sx={{marginBottom: 4}}>
|
{customerData?.status === 'received' ? (
|
||||||
<Typography variant='subtitle1' sx={{color: '#19BBBB'}} gutterBottom>History of Hospital Care</Typography>
|
<Stack direction="row" alignItems="center" sx={{marginBottom: 4}}>
|
||||||
<Button variant="outlined" startIcon={<AddIcon/>} sx={{marginLeft: 'auto'}} onClick={handleNewHospitalCare}>
|
<Typography variant='subtitle1' sx={{color: '#19BBBB'}} gutterBottom>History of Hospital Care</Typography>
|
||||||
<Typography variant="button" display="block">History</Typography>
|
<Button variant="outlined" startIcon={<AddIcon/>} sx={{marginLeft: 'auto'}} onClick={handleNewHospitalCare}>
|
||||||
</Button>
|
<Typography variant="button" display="block">History</Typography>
|
||||||
</Stack>
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
) : ''}
|
||||||
<Stack direction="column" spacing={2} sx={{marginBottom: 2}}>
|
<Stack direction="column" spacing={2} sx={{marginBottom: 2}}>
|
||||||
{currentClaimHistoryCare?.map((claimHistoryCare, index) =>
|
{currentClaimHistoryCare?.map((claimHistoryCare, index) =>
|
||||||
claimHistoryCare.status === 0 ? (
|
claimHistoryCare.status === 0 ? (
|
||||||
@@ -1180,12 +1184,13 @@ export default function Detail() {
|
|||||||
<Card sx={{padding: 2}}>
|
<Card sx={{padding: 2}}>
|
||||||
<Stack direction="row" alignItems="center" sx={{marginBottom: 4}}>
|
<Stack direction="row" alignItems="center" sx={{marginBottom: 4}}>
|
||||||
<Typography variant='subtitle1' sx={{color: '#19BBBB'}} gutterBottom>Service</Typography>
|
<Typography variant='subtitle1' sx={{color: '#19BBBB'}} gutterBottom>Service</Typography>
|
||||||
{!serviceData ? (
|
{!serviceData && customerData?.status === 'received' ? (
|
||||||
<Button variant="outlined" startIcon={<AddIcon/>} sx={{marginLeft: 'auto'}} onClick={() => handleAddService()}>
|
<Button variant="outlined" startIcon={<AddIcon/>} sx={{marginLeft: 'auto'}} onClick={() => handleAddService()}>
|
||||||
<Typography variant="button" display="block">Service</Typography>
|
<Typography variant="button" display="block">Service</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Stack sx={{marginLeft: 'auto'}}>
|
<Stack sx={{marginLeft: 'auto'}}>
|
||||||
|
{customerData?.status === 'received' ? (
|
||||||
<TableMoreMenu actions={
|
<TableMoreMenu actions={
|
||||||
<>
|
<>
|
||||||
<MenuItem onClick={() => handleEditService()}>
|
<MenuItem onClick={() => handleEditService()}>
|
||||||
@@ -1195,6 +1200,7 @@ export default function Detail() {
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
) : ''}
|
||||||
</Stack>
|
</Stack>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
@@ -1429,9 +1435,10 @@ export default function Detail() {
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Stack direction="row" sx={{marginLeft: 'auto'}} spacing={2}>
|
||||||
|
<Button
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{color: '#212B36', borderColor: '#919EAB52', marginLeft: 'auto'}}
|
sx={{color: '#212B36', borderColor: '#919EAB52', display: customerData?.status === 'declined' ? 'none' : '' }}
|
||||||
onClick={handelDownloadLog}
|
onClick={handelDownloadLog}
|
||||||
>
|
>
|
||||||
Download Final LOG
|
Download Final LOG
|
||||||
@@ -1446,6 +1453,7 @@ export default function Detail() {
|
|||||||
>
|
>
|
||||||
Re-Open
|
Re-Open
|
||||||
</Button>
|
</Button>
|
||||||
|
</Stack>
|
||||||
</>
|
</>
|
||||||
) }
|
) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user