|
|
|
@@ -135,12 +135,9 @@ function SearchBox({ table }: CommonProps) { |
|
|
|
...data, |
|
|
|
}); |
|
|
|
}; |
|
|
|
const handleBlur = () => { |
|
|
|
addCondition(form.getValues()); |
|
|
|
}; |
|
|
|
|
|
|
|
const fetch = async () => { |
|
|
|
const sendData = { |
|
|
|
...condition, |
|
|
|
...form.getValues(), |
|
|
|
}; |
|
|
|
|
|
|
|
@@ -177,11 +174,6 @@ function SearchBox({ table }: CommonProps) { |
|
|
|
<Grid container spacing={2}> |
|
|
|
<Grid item xs={3} lg={2}> |
|
|
|
<Typography>年月</Typography> |
|
|
|
{/* <RHFTextField |
|
|
|
name="summary_yyyymm" |
|
|
|
placeholder="YYYYMM" |
|
|
|
onBlur={handleBlur} |
|
|
|
/> */} |
|
|
|
<RHFSelect |
|
|
|
options={yyyymmOptions} |
|
|
|
name="summary_yyyymm" |
|
|
|
@@ -274,16 +266,8 @@ type RowProps = { |
|
|
|
data: UseSummary; |
|
|
|
}; |
|
|
|
function Row({ data }: RowProps) { |
|
|
|
const { navigateWhenChanged } = useNavigateCustom(); |
|
|
|
|
|
|
|
const handleClick = () => { |
|
|
|
// navigateWhenChanged(getPath(PageID.DASHBOARD_CONTRACT_DETAIL), { |
|
|
|
// id: data.id, |
|
|
|
// }); |
|
|
|
}; |
|
|
|
|
|
|
|
return ( |
|
|
|
<TableRow hover sx={{ cursor: "pointer" }} onClick={handleClick}> |
|
|
|
<TableRow> |
|
|
|
<TableCell>{data.customer_name}</TableCell> |
|
|
|
<TableCell>{data.parking_name}</TableCell> |
|
|
|
<TableCell>{data.receipt_order_count}件</TableCell> |
|
|
|
|