Merge branch 'feature/laboratorium-result' into staging
This commit is contained in:
@@ -17,7 +17,7 @@ interface IProps {
|
|||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function RHFDatePickerV2({ name, label, dateFormat, minDate, maxDate, disabled, ...other }: IProps) {
|
export default function RHFDatePicker({ name, label, dateFormat, minDate, maxDate, disabled, ...other }: IProps) {
|
||||||
const { control } = useFormContext();
|
const { control } = useFormContext();
|
||||||
|
|
||||||
const { fullWidth } = other;
|
const { fullWidth } = other;
|
||||||
@@ -32,13 +32,16 @@ export default function RHFDatePickerV2({ name, label, dateFormat, minDate, maxD
|
|||||||
<DesktopDatePicker
|
<DesktopDatePicker
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
label={label}
|
label={label}
|
||||||
onChange={(date) => field.onChange(date)}
|
onChange={(date)=> field.onChange(date)}
|
||||||
inputFormat={dateFormat}
|
inputFormat={dateFormat}
|
||||||
value={field.value}
|
value={field.value}
|
||||||
mask={''}
|
mask={''}
|
||||||
minDate={(minDate) ? new Date(minDate) : null}
|
minDate={(minDate) ? new Date(minDate) : null}
|
||||||
maxDate={(maxDate) ? new Date(maxDate) : null}
|
maxDate={(maxDate) ? new Date(maxDate) : null}
|
||||||
renderInput={(params) => <TextField fullWidth={fullWidth} {...params} />}
|
renderInput={(params) => <TextField
|
||||||
|
fullWidth={fullWidth}
|
||||||
|
{...params}
|
||||||
|
/>}
|
||||||
/>
|
/>
|
||||||
{!!error && (
|
{!!error && (
|
||||||
<FormHelperText error sx={{ px: 2 }}>
|
<FormHelperText error sx={{ px: 2 }}>
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export default function RHFDatepicker({ name, ...other }: IProps & TextFieldProp
|
|||||||
value={field.value}
|
value={field.value}
|
||||||
inputFormat="dd/MMM/yyyy"
|
inputFormat="dd/MMM/yyyy"
|
||||||
// inputFormat="dd - MMM - yyyy"
|
// inputFormat="dd - MMM - yyyy"
|
||||||
|
mask=''
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
field.onChange(value);
|
field.onChange(value);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default function DetailMonitoringList() {
|
|||||||
id : '',
|
id : '',
|
||||||
claim_id : '',
|
claim_id : '',
|
||||||
claim_code : '',
|
claim_code : '',
|
||||||
date : '',
|
date : null,
|
||||||
location : '',
|
location : '',
|
||||||
examination : '',
|
examination : '',
|
||||||
lab_result_file : [],
|
lab_result_file : [],
|
||||||
@@ -119,11 +119,11 @@ export default function DetailMonitoringList() {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12} sx={{display: 'flex', gap: 1}}>
|
<Grid item xs={12} sx={{display: 'flex', gap: 1}}>
|
||||||
<RHFDatepicker
|
<RHFDatePickerV2
|
||||||
// label=''
|
label=''
|
||||||
name="date"
|
name="date"
|
||||||
// dateFormat='dd-mm-yyyy'
|
dateFormat='dd-MMMM-yyyy'
|
||||||
// fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export default function DetailLabResultList() {
|
|||||||
{/* back button */}
|
{/* back button */}
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||||
<IconButton size='large' color='inherit' onClick={() => navigate(`/case_management/daily_monitoring/${member_id}/claims`)} >
|
<IconButton size='large' color='inherit' onClick={() => navigate(`/case_management/laboratorium_result/${member_id}/claims`)} >
|
||||||
<ArrowBackIosNew/>
|
<ArrowBackIosNew/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export type DetailLabResultListType = {
|
|||||||
id : string|null,
|
id : string|null,
|
||||||
claim_id : string|null,
|
claim_id : string|null,
|
||||||
claim_code : string,
|
claim_code : string,
|
||||||
date : string,
|
date : string|null,
|
||||||
location : string,
|
location : string,
|
||||||
examination : string,
|
examination : string,
|
||||||
lab_result_file : LabResultFileStrType[],
|
lab_result_file : LabResultFileStrType[],
|
||||||
|
|||||||
Reference in New Issue
Block a user