Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aceite-tecnico-frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Renan de Jesus Montenegro da Silva
aceite-tecnico-frontend
Commits
ee14e409
Commit
ee14e409
authored
Nov 25, 2025
by
RenanMontenegro3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:"alteração nas informações de aceite em aceite-edit + visualização-aceite"
parent
77b81c59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
3 deletions
+54
-3
aceite-edit.component.html
...pages/crud-aceites/aceite-edit/aceite-edit.component.html
+2
-1
visualizacao-aceite.component.html
...es/visualizacao-aceite/visualizacao-aceite.component.html
+52
-2
No files found.
src/app/pages/crud-aceites/aceite-edit/aceite-edit.component.html
View file @
ee14e409
...
@@ -131,11 +131,12 @@
...
@@ -131,11 +131,12 @@
<mat-option
value=
"Y"
>
Aceito
</mat-option>
<mat-option
value=
"Y"
>
Aceito
</mat-option>
<mat-option
value=
"NE"
>
Negado
</mat-option>
<mat-option
value=
"NE"
>
Negado
</mat-option>
<mat-option
value=
"N"
>
Em Processamento
</mat-option>
<mat-option
value=
"N"
>
Em Processamento
</mat-option>
<mat-option
value=
"YR"
>
Aceito com Restrição
</mat-option>
</mat-select>
</mat-select>
<mat-error
*ngIf=
"empForm.get('status')?.invalid"
>
{{ getErrorMessage('status') }}
</mat-error>
<mat-error
*ngIf=
"empForm.get('status')?.invalid"
>
{{ getErrorMessage('status') }}
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div
*ngIf=
"empForm.get('status')?.value === 'Y' || empForm.get('status')?.value === 'NE'"
class=
"field large"
>
<div
*ngIf=
"empForm.get('status')?.value === 'Y' || empForm.get('status')?.value === 'NE'
|| empForm.get('status')?.value ==='YR'
"
class=
"field large"
>
<mat-form-field
class=
"field large"
appearance=
"outline"
style=
"width: 100%;"
>
<mat-form-field
class=
"field large"
appearance=
"outline"
style=
"width: 100%;"
>
<mat-label>
Comentários sobre o aceite:
</mat-label>
<mat-label>
Comentários sobre o aceite:
</mat-label>
<textarea
matInput
formControlName=
"restricoes"
rows=
"4"
<textarea
matInput
formControlName=
"restricoes"
rows=
"4"
...
...
src/app/pages/crud-aceites/visualizacao-aceite/visualizacao-aceite.component.html
View file @
ee14e409
...
@@ -12,24 +12,47 @@
...
@@ -12,24 +12,47 @@
<mat-card-content>
<mat-card-content>
<div
class=
"row"
>
<div
class=
"row"
>
<p
class=
"field full-width"
appearance=
"outline"
>
ID: {{ data.id }}
</p>
<p
class=
"field full-width"
appearance=
"outline"
>
ID: {{ data.id }}
</p>
<p
class=
"field full-width"
appearance=
"outline"
>
<p
class=
"field full-width"
appearance=
"outline"
>
USUÁRIO: {{ parseUserString(data.user)?.email || "Sem email" }}
USUÁRIO: {{ parseUserString(data.user)?.email || "Sem email" }}
</p>
</p>
<p
class=
"field full-width"
appearance=
"outline"
>
<p
class=
"field full-width"
appearance=
"outline"
>
IMO: {{ data.imo || "Sem informação" }}
IMO: {{ data.imo || "Sem informação" }}
</p>
</p>
<p
class=
"field full-width"
appearance=
"outline"
>
<p
class=
"field full-width"
appearance=
"outline"
>
STATUS:
STATUS:
<ng-container
[ngSwitch]=
"data.status"
>
<ng-container
[ngSwitch]=
"data.status"
>
<span
*ngSwitchCase=
"'Y'"
[ngStyle]=
"{ color: 'green' }"
>
Navio Aceito
</span>
<span
*ngSwitchCase=
"'Y'"
[ngStyle]=
"{ color: 'green' }"
>
Navio Aceito
</span>
<span
*ngSwitchCase=
"'NE'"
[ngStyle]=
"{ color: 'red' }"
>
Aceite Negado
</span>
<span
*ngSwitchCase=
"'NE'"
[ngStyle]=
"{ color: 'red' }"
>
Aceite Negado
</span>
<span
*ngSwitchCase=
"'YR'"
[ngStyle]=
"{ color: 'green' }"
>
Aceito com Restrição
</span>
<span
*ngSwitchCase=
"'N'"
[ngStyle]=
"{ color: 'orange' }"
>
Em processamento
</span>
<span
*ngSwitchCase=
"'N'"
[ngStyle]=
"{ color: 'orange' }"
>
Em processamento
</span>
</ng-container>
</ng-container>
</p>
<!-- EXIBE RESTRIÇÕES QUANDO STATUS = YR OU NE -->
<p
*ngIf=
"data.status === 'YR' || data.status === 'NE'"
class=
"field full-width"
appearance=
"outline"
[ngStyle]=
"{ color: data.status === 'NE' ? 'red' : 'green' }"
>
<strong>
Restrições:
</strong>
{{ data.restricoes || 'Nenhuma restrição informada.' }}
</p>
<p
*ngIf=
"data.bercosSelecionados?.length > 0"
class=
"field full-width"
appearance=
"outline"
>
<strong>
Preferências de Berços do Usuário:
</strong>
<span
*ngIf=
"data.bercosSelecionados?.length > 0; else semPreferenciasYR"
>
<span
*ngFor=
"let berco of data.bercosSelecionados; let last = last"
>
{{ berco.nome || berco }}
<span
*ngIf=
"!last"
>
,
</span>
</span>
</span>
<ng-template
#semPreferenciasYR
>
Nenhuma preferência informada.
</ng-template>
</p>
</p>
</div>
</div>
</mat-card-content>
</mat-card-content>
</mat-card>
</mat-card>
<ng-container
*ngIf=
"data.path"
>
<ng-container
*ngIf=
"data.path"
>
<mat-card-actions>
<mat-card-actions>
...
@@ -56,7 +79,7 @@
...
@@ -56,7 +79,7 @@
<p
class=
"field full-width"
appearance=
"outline"
>
<p
class=
"field full-width"
appearance=
"outline"
>
O gerente está analisando a solicitação para verificar as especificações.
O gerente está analisando a solicitação para verificar as especificações.
</p>
</p>
<p
*ngIf=
"data.bercosSelecionados?.length > 0 "
class=
"field full-width"
appearance=
"outline"
>
<p
*ngIf=
"data.bercosSelecionados?.length > 0 "
class=
"field full-width"
appearance=
"outline"
>
<strong>
Preferências de Berços do Usuário:
</strong>
<strong>
Preferências de Berços do Usuário:
</strong>
<span
*ngIf=
"data.bercosSelecionados?.length > 0; else semPreferencias"
>
<span
*ngIf=
"data.bercosSelecionados?.length > 0; else semPreferencias"
>
<span
*ngFor=
"let berco of data.bercosSelecionados; let last = last"
>
<span
*ngFor=
"let berco of data.bercosSelecionados; let last = last"
>
...
@@ -109,6 +132,33 @@
...
@@ -109,6 +132,33 @@
{{data.restricoes}}
{{data.restricoes}}
</p>
</p>
</div>
</div>
<div
*ngSwitchCase=
"'YR'"
>
<p
class=
"field full-width"
appearance=
"outline"
>
Status:
<span
[ngStyle]=
"{ color: 'green' }"
>
Aceito com Restrição
</span>
</p>
<p
class=
"field full-width"
appearance=
"outline"
>
{{ data.restricoes || "Este navio foi aceito, porém com limitações operacionais." }}
</p>
<p
class=
"field full-width"
appearance=
"outline"
>
O navio está autorizado, mas deve seguir as restrições listadas acima.
</p>
<p
*ngIf=
"data.bercosSelecionados?.length > 0"
class=
"field full-width"
appearance=
"outline"
>
<strong>
Preferências de Berços do Usuário:
</strong>
<span
*ngIf=
"data.bercosSelecionados?.length > 0; else semPreferenciasYR"
>
<span
*ngFor=
"let berco of data.bercosSelecionados; let last = last"
>
{{ berco.nome || berco }}
<span
*ngIf=
"!last"
>
,
</span>
</span>
</span>
<ng-template
#semPreferenciasYR
>
Nenhuma preferência informada.
</ng-template>
</p>
</div>
</ng-container>
</ng-container>
</div>
</div>
</mat-card-content>
</mat-card-content>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment