|  |  | 
 |  |  | import MyExportButton from '../components/MyExportButton'; | 
 |  |  | import PageDrawer from "../components/PageDrawer"; | 
 |  |  | import MyField from "../components/MyField"; | 
 |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting'; | 
 |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
 |  |  | import * as Common from '@/utils/common'; | 
 |  |  |  | 
 |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
 |  |  | 
 |  |  |  | 
 |  |  |     <TextInput source="uuid" label="table.field.sta.uuid" />, | 
 |  |  |     <ReferenceInput source="zoneId" label="table.field.sta.zoneId" reference="zone"> | 
 |  |  |         <AutocompleteInput label="table.field.sta.zoneId" optionText="name" /> | 
 |  |  |         <AutocompleteInput label="table.field.sta.zoneId" optionText="name" filterToQuery={(val) => ({ name: val })} /> | 
 |  |  |     </ReferenceInput>, | 
 |  |  |     <TextInput source="staNo" label="table.field.sta.staNo" />, | 
 |  |  |     <TextInput source="name" label="table.field.sta.name" />, | 
 |  |  |     <ReferenceInput source="staType" label="table.field.sta.staType" reference="staType"> | 
 |  |  |         <AutocompleteInput label="table.field.sta.staType" optionText="name" /> | 
 |  |  |         <AutocompleteInput label="table.field.sta.staType" optionText="name" filterToQuery={(val) => ({ name: val })} /> | 
 |  |  |     </ReferenceInput>, | 
 |  |  |     <ReferenceInput source="code" label="table.field.sta.code" reference="code"> | 
 |  |  |         <AutocompleteInput label="table.field.sta.code" optionText="uuid" /> | 
 |  |  |         <AutocompleteInput label="table.field.sta.code" optionText="data" filterToQuery={(val) => ({ data: val })} /> | 
 |  |  |     </ReferenceInput>, | 
 |  |  |     <NumberInput source="offset" label="table.field.sta.offset" />, | 
 |  |  |     <TextInput source="autoing" label="table.field.sta.autoing" />, | 
 |  |  | 
 |  |  |     <TextInput source="outEnable" label="table.field.sta.outEnable" />, | 
 |  |  |     <TextInput source="zpallet" label="table.field.sta.zpallet" />, | 
 |  |  |     <ReferenceInput source="staSts" label="table.field.sta.staSts" reference="staSts"> | 
 |  |  |         <AutocompleteInput label="table.field.sta.staSts" optionText="name" /> | 
 |  |  |         <AutocompleteInput label="table.field.sta.staSts" optionText="name" filterToQuery={(val) => ({ name: val })} /> | 
 |  |  |     </ReferenceInput>, | 
 |  |  |  | 
 |  |  |     <TextInput label="common.field.memo" source="memo" />, | 
 |  |  | 
 |  |  |                         <MyExportButton /> | 
 |  |  |                     </TopToolbar> | 
 |  |  |                 )} | 
 |  |  |                 perPage={25} | 
 |  |  |                 perPage={DEFAULT_PAGE_SIZE} | 
 |  |  |             > | 
 |  |  |                 <StyledDatagrid | 
 |  |  |                     preferenceKey='sta' |