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