Browse Source

領収証番号で検索できるように対応

develop
sosuke.iwabuchi 2 years ago
parent
commit
d2de07c22f
2 changed files with 9 additions and 13 deletions
  1. +1
    -0
      src/api/custom/hello-techno/receipt-issuing-order.ts
  2. +8
    -13
      src/pages/dashboard/receipt-issuing-order/custom/hello-techno/list.tsx

+ 1
- 0
src/api/custom/hello-techno/receipt-issuing-order.ts View File

@@ -57,6 +57,7 @@ export type ReceiptIssuingOrdersRequest = {
done?: string; done?: string;
sms_phone_number?: string; sms_phone_number?: string;
handler_name?: string; handler_name?: string;
receipt_no?: string;
}; };


export type ReceiptIssuingOrdersResponse = { export type ReceiptIssuingOrdersResponse = {


+ 8
- 13
src/pages/dashboard/receipt-issuing-order/custom/hello-techno/list.tsx View File

@@ -88,6 +88,7 @@ type FormProps = {
handler_name: string; handler_name: string;
order_date_from: Date | null; order_date_from: Date | null;
order_date_to: Date | null; order_date_to: Date | null;
receipt_no: string;
}; };
type CommonProps = { type CommonProps = {
table: UseTableReturn<ReceiptIssuingOrderHTCustom>; table: UseTableReturn<ReceiptIssuingOrderHTCustom>;
@@ -116,6 +117,7 @@ function SearchBox({ table }: CommonProps) {
handler_name: "", handler_name: "",
order_date_from: null, order_date_from: null,
order_date_to: null, order_date_to: null,
receipt_no: "",
}, },
}); });


@@ -181,6 +183,7 @@ function SearchBox({ table }: CommonProps) {
form.setValue("sms_phone_number", get("sms_phone_number")); form.setValue("sms_phone_number", get("sms_phone_number"));
form.setValue("order_date_from", dateParse(get("order_date_from"))); form.setValue("order_date_from", dateParse(get("order_date_from")));
form.setValue("order_date_to", dateParse(get("order_date_to"))); form.setValue("order_date_to", dateParse(get("order_date_to")));
form.setValue("receipt_no", get("receipt_no"));
} }
}, [initialized, condition]); }, [initialized, condition]);


@@ -249,21 +252,13 @@ function SearchBox({ table }: CommonProps) {
<RHFTextField name="parking_name" onBlur={handleBlur} /> <RHFTextField name="parking_name" onBlur={handleBlur} />
</Stack> </Stack>
</Grid> </Grid>
{/* <Grid item xs={3} lg={2}>
<Stack>
<Typography>ああ</Typography>
<RHFSelectMuiliple
name="aa"
options={[
{ value: "aaaaaaaaaaaaaaaaa" },
{ value: "bbbbbbbbbbbbbbbbbbbb" },
]}
/>
</Stack>
</Grid> */}
<Grid item xs={3} lg={2}> <Grid item xs={3} lg={2}>
<Typography>電話番号</Typography> <Typography>電話番号</Typography>
<RHFTextField name="sms_phone_number" />
<RHFTextField name="sms_phone_number" onBlur={handleBlur} />
</Grid>
<Grid item xs={3} lg={2}>
<Typography>領収証番号</Typography>
<RHFTextField name="receipt_no" onBlur={handleBlur} />
</Grid> </Grid>
<Grid item xs={3} lg={2}> <Grid item xs={3} lg={2}>
<Typography>受付時刻</Typography> <Typography>受付時刻</Typography>


Loading…
Cancel
Save