|  |  | 
 |  |  | import CustomerTopToolBar from "../components/EditTopToolBar"; | 
 |  |  | import MemoInput from "../components/MemoInput"; | 
 |  |  | import StatusSelectInput from "../components/StatusSelectInput"; | 
 |  |  | import DictionarySelect from "../components/DictionarySelect"; | 
 |  |  | import DictSelect from "../components/DictSelect"; | 
 |  |  |  | 
 |  |  | const FormToolbar = () => { | 
 |  |  |     const { getValues } = useFormContext(); | 
 |  |  | 
 |  |  |                                 validate={[required()]} | 
 |  |  |                                 parse={v => v} | 
 |  |  |                             /> | 
 |  |  |                             <AutocompleteInput | 
 |  |  |                                 choices={dicts} | 
 |  |  |                                 optionText="label" | 
 |  |  |                                 label="table.field.asnOrder.type" | 
 |  |  |                                 source="type" | 
 |  |  |                                 optionValue="value" | 
 |  |  |                                 parse={v => v} | 
 |  |  |                             <DictionarySelect | 
 |  |  |                                 label='table.field.warehouseAreas.type' | 
 |  |  |                                 name="type" | 
 |  |  |                                 dictTypeCode="sys_ware_areas_type" | 
 |  |  |                                 alwaysOn                                 | 
 |  |  |                             /> | 
 |  |  |                             <ReferenceInput | 
 |  |  |                                 source="warehouseId" | 
 |  |  | 
 |  |  |                                 <AutocompleteInput | 
 |  |  |                                     label="table.field.warehouseAreas.wareId" | 
 |  |  |                                     optionText="name" | 
 |  |  |                                     optionValue="id" | 
 |  |  |                                     validate={[required()]} | 
 |  |  |                                     filterToQuery={(val) => ({ name: val })} | 
 |  |  |                                 /> |