| | |
| | | label="table.field.loc.locSts" |
| | | optionText="name" |
| | | filterToQuery={(val) => ({ name: val })} |
| | | validate={required()} |
| | | /> |
| | | </ReferenceInput> |
| | | </Grid> |
| | |
| | | label="table.field.loc.zoneId" |
| | | optionText="name" |
| | | filterToQuery={(val) => ({ name: val })} |
| | | validate={required()} |
| | | /> |
| | | </ReferenceInput> |
| | | <TextInput |
| | | label="table.field.loc.locNo" |
| | | source="locNo" |
| | | parse={v => v} |
| | | validate={required()} |
| | | /> |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |
| | |
| | | label="table.field.loc.locSts" |
| | | optionText="name" |
| | | filterToQuery={(val) => ({ name: val })} |
| | | validate={required()} |
| | | /> |
| | | </ReferenceInput> |
| | | <NumberInput |
| | |
| | | title={"menu.loc"} |
| | | empty={<EmptyData onClick={() => { setCreateDialog(true) }} />} |
| | | filters={filters} |
| | | sort={{ field: "create_time", order: "desc" }} |
| | | sort={{ field: "locNo", order: "asc" }} |
| | | actions={( |
| | | <TopToolbar> |
| | | <FilterButton /> |
| | |
| | | rowClick={(id, resource, record) => false} |
| | | expand={() => <LocPanel />} |
| | | expandSingle={true} |
| | | omit={['id', 'locType', 'uuid', 'updateBy', 'createTime', 'createBy', 'memo']} |
| | | omit={['id', 'locType', 'uuid', 'statusBool', 'updateBy', 'createTime', 'createBy', 'memo']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="locNo" label="table.field.loc.locNo" /> |