(llm-first): context budget, validation, and eval harness, orchestration general-prompt
This commit is contained in:
@@ -1,29 +1,36 @@
|
||||
import { Edit, SimpleForm, TextInput, NumberInput, DateInput, SelectInput, ReferenceInput, AutocompleteInput } from 'react-admin';
|
||||
|
||||
const statusChoices = [
|
||||
{ id: 'Active', name: 'В эксплуатации' },
|
||||
{ id: 'Repair', name: 'В ремонте' },
|
||||
{ id: 'Reserve', name: 'В резерве' },
|
||||
{ id: 'WriteOff', name: 'Списано' },
|
||||
];
|
||||
import {
|
||||
DateInput,
|
||||
Edit,
|
||||
NumberInput,
|
||||
SelectInput,
|
||||
SimpleForm,
|
||||
} from "react-admin";
|
||||
import {
|
||||
equipmentStatusChoices,
|
||||
equipmentTypeChoices,
|
||||
laborOperationChoices,
|
||||
periodicityChoices,
|
||||
} from "../shared/enums";
|
||||
import { PlainInput } from "../shared/inputs";
|
||||
|
||||
export const EquipmentEdit = () => (
|
||||
<Edit>
|
||||
<SimpleForm>
|
||||
<TextInput source="id" label="id" disabled />
|
||||
<TextInput source="inventoryNumber" label="Инвентарный номер" isRequired />
|
||||
<TextInput source="serialNumber" label="Заводской (серийный) номер" />
|
||||
<TextInput source="name" label="Наименование единицы оборудования" isRequired />
|
||||
<ReferenceInput source="equipmentTypeCode" reference="equipment-types">
|
||||
<AutocompleteInput label="Вид оборудования" optionText={(record) => record.code ? `${record.code} — ${record.name ?? record.code}` : (record.name ?? record.id)} filterToQuery={(searchText) => ({ q: searchText })} />
|
||||
</ReferenceInput>
|
||||
<SelectInput source="status" label="Текущий статус" choices={statusChoices} emptyText="Не выбрано" />
|
||||
<TextInput source="location" label="Место эксплуатации / скважина / куст" />
|
||||
<DateInput source="commissionedAt" label="Дата ввода в эксплуатацию" />
|
||||
<NumberInput source="totalEngineHours" label="Общая наработка, моточасов" />
|
||||
<NumberInput source="engineHoursSinceLastRepair" label="Наработка с последнего ремонта, моточасов" />
|
||||
<DateInput source="lastRepairAt" label="Дата последнего ремонта" />
|
||||
<TextInput source="notes" label="Примечания" />
|
||||
<PlainInput source="name" />
|
||||
<PlainInput source="serialNumber" />
|
||||
<PlainInput source="inventoryNumber" />
|
||||
<SelectInput source="equipmentType" choices={equipmentTypeChoices} />
|
||||
<DateInput source="dateOfInspection" />
|
||||
<SelectInput source="periodicityTO" choices={periodicityChoices} />
|
||||
<PlainInput source="location" />
|
||||
<SelectInput source="status" choices={equipmentStatusChoices} />
|
||||
<DateInput source="commissionedAt" />
|
||||
<NumberInput source="totalEngineHours" />
|
||||
<NumberInput source="engineHoursSinceLastRepair" />
|
||||
<DateInput source="lastRepairAt" />
|
||||
<PlainInput source="notes" multiline />
|
||||
<SelectInput source="workAsPartOf" choices={laborOperationChoices} />
|
||||
<NumberInput source="fuelConsumed" />
|
||||
</SimpleForm>
|
||||
</Edit>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user