update type member
This commit is contained in:
@@ -53,6 +53,7 @@ export type DetailFinalLogType = {
|
|||||||
catatan : string,
|
catatan : string,
|
||||||
discharge_date : string,
|
discharge_date : string,
|
||||||
reason : string,
|
reason : string,
|
||||||
|
type_of_member : string,
|
||||||
diagnosis : Diagnosis[],
|
diagnosis : Diagnosis[],
|
||||||
benefit : Benefit[],
|
benefit : Benefit[],
|
||||||
benefit_data : BenefitData[],
|
benefit_data : BenefitData[],
|
||||||
|
|||||||
@@ -189,6 +189,16 @@ export default function DialogConfirmation({requestLog, setOpenDialog, openDialo
|
|||||||
onChange={(e) => handleChange('hak_kamar_pasien', e.target.value)}
|
onChange={(e) => handleChange('hak_kamar_pasien', e.target.value)}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
||||||
|
<Typography variant='subtitle2' sx={style1} gutterBottom>Penempatan Kamar</Typography>
|
||||||
|
<TextField
|
||||||
|
label="Penempatan Kamar"
|
||||||
|
variant="outlined"
|
||||||
|
fullWidth
|
||||||
|
value={formData.penempatan_kamar}
|
||||||
|
onChange={(e) => handleChange('penempatan_kamar', e.target.value)}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
||||||
<Typography variant='subtitle2' sx={style1} gutterBottom>Type Of Member</Typography>
|
<Typography variant='subtitle2' sx={style1} gutterBottom>Type Of Member</Typography>
|
||||||
<Select
|
<Select
|
||||||
@@ -205,16 +215,6 @@ export default function DialogConfirmation({requestLog, setOpenDialog, openDialo
|
|||||||
<MenuItem value="Non OMT">Non OMT</MenuItem>
|
<MenuItem value="Non OMT">Non OMT</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
|
||||||
<Typography variant='subtitle2' sx={style1} gutterBottom>Penempatan Kamar</Typography>
|
|
||||||
<TextField
|
|
||||||
label="Penempatan Kamar"
|
|
||||||
variant="outlined"
|
|
||||||
fullWidth
|
|
||||||
value={formData.penempatan_kamar}
|
|
||||||
onChange={(e) => handleChange('penempatan_kamar', e.target.value)}
|
|
||||||
/>
|
|
||||||
</Stack>
|
|
||||||
</Card>
|
</Card>
|
||||||
</Grid>
|
</Grid>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import MuiDialog from "@/components/MuiDialog";
|
import MuiDialog from "@/components/MuiDialog";
|
||||||
import { Button, Card, Checkbox, DialogActions, Grid, TextField, TextareaAutosize, Typography, Select } from "@mui/material";
|
import { Button, Card, Checkbox, DialogActions, Grid, TextField, TextareaAutosize, Typography, Select } from "@mui/material";
|
||||||
import { Paper } from "@mui/material";
|
import { Paper } from "@mui/material";
|
||||||
import { Stack } from '@mui/material';
|
import { Stack, MenuItem } from '@mui/material';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { DetailRequestLogType } from "../Model/Types";
|
import { DetailRequestLogType } from "../Model/Types";
|
||||||
import { fDateOnly, fDateTimesecond, toTitleCase } from "@/utils/formatTime";
|
import { fDateOnly, fDateTimesecond, toTitleCase } from "@/utils/formatTime";
|
||||||
@@ -28,6 +28,7 @@ export default function DialogEditInformation({requestLog, setOpenDialog, openDi
|
|||||||
keterangan: requestLog?.keterangan,
|
keterangan: requestLog?.keterangan,
|
||||||
hak_kamar_pasien: requestLog?.hak_kamar_pasien,
|
hak_kamar_pasien: requestLog?.hak_kamar_pasien,
|
||||||
penempatan_kamar: requestLog?.penempatan_kamar,
|
penempatan_kamar: requestLog?.penempatan_kamar,
|
||||||
|
type_of_member: '',
|
||||||
reason: requestLog?.reason
|
reason: requestLog?.reason
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -40,6 +41,7 @@ export default function DialogEditInformation({requestLog, setOpenDialog, openDi
|
|||||||
keterangan: requestLog?.keterangan || '',
|
keterangan: requestLog?.keterangan || '',
|
||||||
hak_kamar_pasien: requestLog?.hak_kamar_pasien || '',
|
hak_kamar_pasien: requestLog?.hak_kamar_pasien || '',
|
||||||
penempatan_kamar: requestLog?.penempatan_kamar || '',
|
penempatan_kamar: requestLog?.penempatan_kamar || '',
|
||||||
|
type_of_member: requestLog?.type_of_member || '',
|
||||||
reason: requestLog?.reason || '',
|
reason: requestLog?.reason || '',
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -105,6 +107,7 @@ export default function DialogEditInformation({requestLog, setOpenDialog, openDi
|
|||||||
hak_kamar_pasien: requestLog?.hak_kamar_pasien ?? '',
|
hak_kamar_pasien: requestLog?.hak_kamar_pasien ?? '',
|
||||||
penempatan_kamar: requestLog?.penempatan_kamar ?? '',
|
penempatan_kamar: requestLog?.penempatan_kamar ?? '',
|
||||||
reason: requestLog?.reason ?? '',
|
reason: requestLog?.reason ?? '',
|
||||||
|
type_of_member: requestLog?.type_of_member ?? ''
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -192,6 +195,22 @@ export default function DialogEditInformation({requestLog, setOpenDialog, openDi
|
|||||||
onChange={(e) => handleChange('penempatan_kamar', e.target.value)}
|
onChange={(e) => handleChange('penempatan_kamar', e.target.value)}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
||||||
|
<Typography variant='subtitle2' sx={style1} gutterBottom>Type Of Member</Typography>
|
||||||
|
<Select
|
||||||
|
fullWidth
|
||||||
|
value={formData.type_of_member}
|
||||||
|
onChange={(e) => handleChange('type_of_member', e.target.value)}
|
||||||
|
variant="outlined"
|
||||||
|
displayEmpty
|
||||||
|
>
|
||||||
|
<MenuItem value="" disabled>
|
||||||
|
Type Member
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem value="OMT">OMT</MenuItem>
|
||||||
|
<MenuItem value="Non OMT">Non OMT</MenuItem>
|
||||||
|
</Select>
|
||||||
|
</Stack>
|
||||||
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
<Stack direction='row' spacing={2} sx={marginBottom2}>
|
||||||
<Typography variant='subtitle2' sx={style1} gutterBottom>Reason*</Typography>
|
<Typography variant='subtitle2' sx={style1} gutterBottom>Reason*</Typography>
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
|
|||||||
@@ -55,7 +55,8 @@ export type DetailRequestLogType = {
|
|||||||
provider : string,
|
provider : string,
|
||||||
status : string,
|
status : string,
|
||||||
benefit : Benefit[],
|
benefit : Benefit[],
|
||||||
reason : string
|
reason : string,
|
||||||
|
type_of_member : string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Benefit = {
|
export type Benefit = {
|
||||||
|
|||||||
Reference in New Issue
Block a user