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