| | |
| | | import CustomerTopToolBar from "../components/EditTopToolBar"; |
| | | import MemoInput from "../components/MemoInput"; |
| | | import StatusSelectInput from "../components/StatusSelectInput"; |
| | | import { compDirectChoices } from "../loc/compDirect"; |
| | | |
| | | const FormToolbar = () => { |
| | | const { getValues } = useFormContext(); |
| | |
| | | validate={[required(), greaterThanZero]} |
| | | /> |
| | | <NumberInput |
| | | label="table.field.sta.angle" |
| | | source="angle" |
| | | validate={[required(), greaterThanZero]} |
| | | /> |
| | | <NumberInput |
| | | label="table.field.sta.actDir" |
| | | source="actDir" |
| | | validate={greaterThanZero} |
| | | /> |
| | | {/* <NumberInput |
| | | label="table.field.sta.offset" |
| | | source="offset" |
| | | validate={required()} |
| | | /> */} |
| | | <NumberInput |
| | | label="table.field.sta.height" |
| | | source="height" |
| | | validate={[required(), greaterThanZero]} |
| | | /> |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |
| | | {/* <NumberInput |
| | | label="table.field.sta.depth" |
| | | source="depth" |
| | |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |
| | | <NumberInput |
| | | label="table.field.sta.angle" |
| | | source="angle" |
| | | validate={[required(), greaterThanZero]} |
| | | /> |
| | | <SelectInput |
| | | label="table.field.sta.actDir" |
| | | source="actDir" |
| | | choices={compDirectChoices} |
| | | translateChoice |
| | | validate={[required(), greaterThanZero]} |
| | | /> |
| | | {/* <NumberInput |
| | | label="table.field.sta.offset" |
| | | source="offset" |
| | | validate={required()} |
| | | /> */} |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |
| | | <NumberInput |
| | | label="table.field.sta.inboundWait" |
| | | source="inboundWait" |
| | | validate={greaterThanZero} |