import { Edit, SimpleForm, TextInput, NumberInput, DateInput, SelectInput, ReferenceInput, AutocompleteInput } from 'react-admin'; const repairKindChoices = [ { id: 'TO', name: 'Техническое обслуживание' }, { id: 'TR', name: 'Текущий ремонт' }, { id: 'TRE', name: 'Текущий расширенный ремонт' }, { id: 'KR', name: 'Капитальный ремонт' }, { id: 'AR', name: 'Аварийный ремонт' }, { id: 'MP', name: 'Метрологическая поверка' }, ]; const statusChoices = [ { id: 'Draft', name: 'Черновик' }, { id: 'Approved', name: 'Утверждена' }, { id: 'InWork', name: 'В работе' }, { id: 'Done', name: 'Выполнена' }, { id: 'Cancelled', name: 'Отменена' }, ]; export const RepairOrderEdit = () => ( record.inventoryNumber ? `${record.inventoryNumber} — ${record.name ?? record.inventoryNumber}` : (record.name ?? record.id)} filterToQuery={(searchText) => ({ q: searchText })} /> );