Перейти к основному содержимому

useRemoveMaintenancePlanRepair

@mineflow/client-react


@mineflow/client-react / EAM / useRemoveMaintenancePlanRepair

Function: useRemoveMaintenancePlanRepair()

function useRemoveMaintenancePlanRepair(): UseMutationResult<{
agreedAt: string | null;
agreedBy: string | null;
approvedAt: string | null;
approvedBy: string | null;
createdAt: string;
createdBy: string;
currentVersionId: string | null;
id: string;
lines: object[];
month: number;
rejectedAt: string | null;
rejectedBy: string | null;
rejectionReason: string | null;
scopeObjectId: string | null;
status: MaintenancePlanDetailResponse_OutputStatus;
updatedAt: string;
year: number;
}, Error, {
id: string;
repairId: string;
}>;

Defined in: client-react/src/domain-hooks/eam.ts:550

Удаление планового простоя (soft-delete): DELETE /eam/maintenance-plans/:id/repairs/:repairId. Только в статусе draft.

Returns​

UseMutationResult<{ agreedAt: string | null; agreedBy: string | null; approvedAt: string | null; approvedBy: string | null; createdAt: string; createdBy: string; currentVersionId: string | null; id: string; lines: object[]; month: number; rejectedAt: string | null; rejectedBy: string | null; rejectionReason: string | null; scopeObjectId: string | null; status: MaintenancePlanDetailResponse_OutputStatus; updatedAt: string; year: number; }, Error, { id: string; repairId: string; }>

UseMutationResult — mutate({ id, repairId }).