-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support new oppgave type: Ny behandling etter TR har opphevet
- Loading branch information
1 parent
5a2815c
commit a956523
Showing
16 changed files
with
271 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
...d/src/components/behandling/behandlingsdetaljer/behandling-etter-tr-opphevet-detaljer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
import { Heading } from '@navikt/ds-react'; | ||
import { ExtraUtfall } from '@app/components/behandling/behandlingsdetaljer/extra-utfall'; | ||
import { GosysBeskrivelse } from '@app/components/behandling/behandlingsdetaljer/gosys/beskrivelse'; | ||
import { ReadOnlyDate } from '@app/components/behandling/behandlingsdetaljer/read-only-date'; | ||
import { Saksnummer } from '@app/components/behandling/behandlingsdetaljer/saksnummer'; | ||
import { Type } from '@app/components/type/type'; | ||
import { isoDateToPretty } from '@app/domain/date'; | ||
import { useUpdateFullmektigMutation, useUpdateKlagerMutation } from '@app/redux-api/oppgaver/mutations/behandling'; | ||
import { IBehandlingEtterTryderettenOpphevet as IBehandlingEtterTrOpphevet } from '@app/types/oppgavebehandling/oppgavebehandling'; | ||
import { Part } from '../../part/part'; | ||
import { StyledBehandlingSection } from '../styled-components'; | ||
import { BehandlingSection } from './behandling-section'; | ||
import { Lovhjemmel } from './lovhjemmel/lovhjemmel'; | ||
import { MeldingFraVedtaksinstans } from './melding-fra-vedtaksinstans'; | ||
import { UtfallResultat } from './utfall-resultat'; | ||
import { Ytelse } from './ytelse'; | ||
|
||
interface Props { | ||
oppgavebehandling: IBehandlingEtterTrOpphevet; | ||
} | ||
|
||
export const BehandlingEtterTrOpphevetDetaljer = ({ oppgavebehandling }: Props) => { | ||
const [updateFullmektig, { isLoading: fullmektigIsLoading }] = useUpdateFullmektigMutation(); | ||
const [updateKlager, { isLoading: klagerIsLoading }] = useUpdateKlagerMutation(); | ||
|
||
const { | ||
typeId, | ||
fraNAVEnhetNavn, | ||
fraNAVEnhet, | ||
mottattKlageinstans, | ||
kommentarFraVedtaksinstans, | ||
oppgavebeskrivelse, | ||
resultat, | ||
ytelseId, | ||
prosessfullmektig, | ||
saksnummer, | ||
varsletFrist, | ||
kjennelseMottatt, | ||
created, | ||
} = oppgavebehandling; | ||
|
||
return ( | ||
<StyledBehandlingSection> | ||
<Heading level="1" size="medium" spacing> | ||
Behandling | ||
</Heading> | ||
|
||
<Part | ||
isDeletable={false} | ||
label="Opprinnelig klager / ankende part" | ||
part={oppgavebehandling.klager} | ||
onChange={(klager) => updateKlager({ klager, oppgaveId: oppgavebehandling.id })} | ||
isLoading={klagerIsLoading} | ||
/> | ||
|
||
<Part | ||
isDeletable | ||
label="Fullmektig" | ||
part={prosessfullmektig} | ||
onChange={(fullmektig) => updateFullmektig({ fullmektig, oppgaveId: oppgavebehandling.id })} | ||
isLoading={fullmektigIsLoading} | ||
/> | ||
|
||
<BehandlingSection label="Type"> | ||
<Type type={typeId} /> | ||
</BehandlingSection> | ||
|
||
<BehandlingSection label="Ytelse"> | ||
<Ytelse ytelseId={ytelseId} /> | ||
</BehandlingSection> | ||
|
||
<Saksnummer saksnummer={saksnummer} /> | ||
|
||
<ReadOnlyDate | ||
date={kjennelseMottatt} | ||
id="dato-for-kjennelse-fra-trygderetten-med-utfall-opphevet" | ||
label="Dato for kjennelse fra Trygderetten med utfall opphevet" | ||
/> | ||
|
||
<ReadOnlyDate | ||
date={mottattKlageinstans} | ||
id="dato-for-kjennelse-mottatt-klageinstans" | ||
label="Dato for kjennelse mottatt klageinstans" | ||
/> | ||
|
||
<ReadOnlyDate | ||
date={created} | ||
id="dato-for-ny-behandling-opprettet-i-kabal" | ||
label="Dato for ny behandling opprettet i Kabal" | ||
/> | ||
|
||
<BehandlingSection label="Varslet frist"> | ||
{varsletFrist === null ? 'Ikke satt' : isoDateToPretty(varsletFrist)} | ||
</BehandlingSection> | ||
|
||
<BehandlingSection label="Anke behandlet av"> | ||
{fraNAVEnhetNavn} - {fraNAVEnhet} | ||
</BehandlingSection> | ||
|
||
<MeldingFraVedtaksinstans kommentarFraVedtaksinstans={kommentarFraVedtaksinstans} /> | ||
|
||
<GosysBeskrivelse oppgavebeskrivelse={oppgavebeskrivelse} /> | ||
|
||
<UtfallResultat utfall={resultat.utfallId} oppgaveId={oppgavebehandling.id} /> | ||
|
||
<ExtraUtfall | ||
utfallIdSet={resultat.extraUtfallIdSet} | ||
mainUtfall={resultat.utfallId} | ||
oppgaveId={oppgavebehandling.id} | ||
/> | ||
|
||
<Lovhjemmel /> | ||
</StyledBehandlingSection> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
frontend/src/pages/behandling-etter-tr-opphevet/behandling-etter-tr-opphevet.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Oppgavebehandling } from '@app/components/oppgavebehandling/oppgavebehandling'; | ||
|
||
export const BehandlingEtterTrOpphevetPage = () => <Oppgavebehandling />; |
Oops, something went wrong.