Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
formularioConformidad
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Fernando José Palomino Aquino
formularioConformidad
Commits
524a9611
Commit
524a9611
authored
Feb 27, 2025
by
Fernando José Palomino Aquino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] MEJORA MODAL REQUERIMIENTO
parent
fc61644c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
31 deletions
+99
-31
conformidad.componente.ts
src/app/pages/conformidad/conformidad.componente.ts
+4
-4
modalRequerimiento.componente.css
...idad/modalRequerimiento/modalRequerimiento.componente.css
+69
-0
modalRequerimiento.componente.html
...dad/modalRequerimiento/modalRequerimiento.componente.html
+26
-27
No files found.
src/app/pages/conformidad/conformidad.componente.ts
View file @
524a9611
...
...
@@ -364,10 +364,10 @@ export class ConformidadComponent implements AfterViewInit {
sede
:
''
});
const
dialogRef
=
this
.
dialog
.
open
(
modalRequerimientoComponent
,
{
width
:
'
100%'
,
maxWidth
:
'90
%
'
,
minWidth
:
'50%
'
,
height
:
'50%
'
,
width
:
'
50vw'
,
// 50% del ancho de la pantalla
maxWidth
:
'90
vw
'
,
height
:
'75vh
'
,
maxHeight
:
'90vw
'
,
data
:
{
requerimientoInfo
}
});
dialogRef
.
afterClosed
().
subscribe
(
result
=>
{
...
...
src/app/pages/conformidad/modalRequerimiento/modalRequerimiento.componente.css
View file @
524a9611
mat-label
{
opacity
:
1
;
/* Por defecto, el label será completamente visible */
font-size
:
15px
;
font-family
:
Montserrat
,
sans-serif
;
font-weight
:
bold
;
line-height
:
24px
;
letter-spacing
:
.5px
;
}
mat-card
{
border
:
3px
solid
#9cc2ff
;
box-shadow
:
0px
4px
6px
rgba
(
0
,
0.4
,
0.4
,
0.3
);
}
.titulo
{
font-family
:
Roboto
,
"Helvetica Neue"
,
sans-serif
;
color
:
red
;
}
.titulo-principal
{
font-size
:
1.2rem
;
}
/* Contenedor de la tabla */
.tabla-container
{
max-width
:
100%
;
overflow-x
:
auto
;
padding
:
16px
;
background
:
#fff
;
border-radius
:
10px
;
box-shadow
:
2px
4px
10px
rgba
(
0
,
0
,
0
,
0.1
);
}
/* Tabla */
.tabla-articulos
{
width
:
100%
;
border-collapse
:
collapse
;
}
/* Estilos para la cabecera */
.header-row
{
background-color
:
#1976d2
;
color
:
white
;
}
.header-cell
{
font-weight
:
bold
;
padding
:
12px
;
text-align
:
left
;
font-size
:
14px
;
}
/* Estilos para las celdas */
.cell
{
padding
:
10px
;
border-bottom
:
1px
solid
#e0e0e0
;
font-size
:
14px
;
color
:
#424242
;
}
/* Alternar colores en filas */
.row
:nth-child
(
even
)
{
background-color
:
#f5f5f5
;
}
.row
:hover
{
background-color
:
#e3f2fd
;
transition
:
background
0.3s
;
}
src/app/pages/conformidad/modalRequerimiento/modalRequerimiento.componente.html
View file @
524a9611
<h1
mat-dialog-title
>
Detalle requerimiento {{detalleRequerimiento.numeroDoc || '000000000'}}
</h1>
<div
mat-dialog-title
>
<mat-label
class=
"titulo titulo-principal"
>
DETALLE REQUERIMIENTO :
</mat-label>
<mat-label
class=
"titulo-principal"
>
{{detalleRequerimiento.numeroDoc || 'SIN CODIGO'}}
</mat-label>
</div>
<mat-dialog-content
>
<mat-card
appearance=
"outlined"
>
<mat-card
appearance=
"outlined"
class=
"mb-4"
>
<mat-card-content
class=
"flex grid grid-cols-4 gap-4"
>
<div>
<mat-label>
TIPO DE REQUERIMIENTO :
</mat-label>
<mat-label
class=
"titulo"
>
TIPO DE REQUERIMIENTO :
</mat-label>
<mat-label>
{{detalleRequerimiento.tipoRequerimiento || 'Sin Tipo Requerimiento'}}
</mat-label>
</div>
<div>
<mat-label>
FECHA REGISTRO :
</mat-label>
<mat-label
class=
"titulo"
>
FECHA REGISTRO :
</mat-label>
<mat-label>
{{detalleRequerimiento.fechaRegistro || 'Sin Fecha'}}
</mat-label>
</div>
<div>
<mat-label>
SEDE :
</mat-label>
<mat-label
class=
"titulo"
>
SEDE :
</mat-label>
<mat-label>
{{detalleRequerimiento.sede || 'Sin Sede'}}
</mat-label>
</div>
<div>
<mat-label>
EMPLEADO :
</mat-label>
<mat-label
class=
"titulo"
>
EMPLEADO :
</mat-label>
<mat-label>
{{detalleRequerimiento.empleado || 'Sin Empleado'}}
</mat-label>
</div>
<div>
<mat-label>
OBSERVACIÓN :
</mat-label>
<mat-label
class=
"titulo"
>
OBSERVACIÓN :
</mat-label>
<mat-label>
{{detalleRequerimiento.observacion || 'Sin Observacion'}}
</mat-label>
</div>
<div>
<mat-label>
DESCRIPCIÓN :
</mat-label>
<mat-label
class=
"titulo"
>
DESCRIPCIÓN :
</mat-label>
<mat-label>
{{detalleRequerimiento.descripcion || 'Sin descripcion'}}
</mat-label>
</div>
<!-- <mat-label [innerHTML]="'REQUERIMIENTO : ' + (detalleRequerimiento[0].numeroDoc || 'Sin Requerimiento') "></mat-label>
<mat-label [innerHTML]="'SEDE : ' + (detalleRequerimiento[0].sede || 'Sin Sede') "></mat-label>
<mat-label [innerHTML]="'EMPLEADO : ' + (detalleRequerimiento[0].empleado || 'Sin Empleado') "></mat-label>
<mat-label [innerHTML]="'OBSERVACIÓN : ' + (detalleRequerimiento[0].observacion || 'Sin Observacion') "></mat-label>
<mat-label [innerHTML]="'DESCRIPCIÓN : ' + (detalleRequerimiento[0].descripcion || 'Sin descripcion') "></mat-label> -->
</mat-card-content>
</mat-card>
<mat-divider
class=
"mb-4"
></mat-divider>
<table
mat-table
[
dataSource
]="
dataSource
"
>
<!--- Note that these columns can be defined in any order.
The actual rendered columns are set as a property on the row definition" -->
<div
class=
"tabla-container"
>
<table
mat-table
[
dataSource
]="
dataSource
"
class=
"tabla-articulos"
>
<ng-container
matColumnDef=
"posicion"
>
<th
mat-header-cell
*
matHeaderCellDef
>
POSICIÓN
</th>
<td
mat-cell
*
matCellDef=
"let element"
>
{{element.posicion}}
</td>
<th
mat-header-cell
*
matHeaderCellDef
class=
"header-cell"
>
POSICIÓN
</th>
<td
mat-cell
*
matCellDef=
"let element"
class=
"cell"
>
{{element.posicion}}
</td>
</ng-container>
<ng-container
matColumnDef=
"nombre"
>
<th
mat-header-cell
*
matHeaderCellDef
>
NOMBRE ARTÍCULO
</th>
<td
mat-cell
*
matCellDef=
"let element"
>
{{element.nombre}}
</td>
<th
mat-header-cell
*
matHeaderCellDef
class=
"header-cell"
>
NOMBRE ARTÍCULO
</th>
<td
mat-cell
*
matCellDef=
"let element"
class=
"cell"
>
{{element.nombre}}
</td>
</ng-container>
<ng-container
matColumnDef=
"unidad"
>
<th
mat-header-cell
*
matHeaderCellDef
>
UNIDAD
</th>
<td
mat-cell
*
matCellDef=
"let element"
>
{{element.unidad}}
</td>
<th
mat-header-cell
*
matHeaderCellDef
class=
"header-cell"
>
UNIDAD
</th>
<td
mat-cell
*
matCellDef=
"let element"
class=
"cell"
>
{{element.unidad}}
</td>
</ng-container>
<ng-container
matColumnDef=
"cantidad"
>
<th
mat-header-cell
*
matHeaderCellDef
>
CANTIDAD
</th>
<td
mat-cell
*
matCellDef=
"let element"
>
{{element.cantidad}}
</td>
<th
mat-header-cell
*
matHeaderCellDef
class=
"header-cell"
>
CANTIDAD
</th>
<td
mat-cell
*
matCellDef=
"let element"
class=
"cell"
>
{{element.cantidad}}
</td>
</ng-container>
<tr
mat-header-row
*
matHeaderRowDef=
"columnasArticulos"
></tr>
<tr
mat-row
*
matRowDef=
"let row; columns: columnasArticulos;"
></tr>
<tr
mat-header-row
*
matHeaderRowDef=
"columnasArticulos"
class=
"header-row"
></tr>
<tr
mat-row
*
matRowDef=
"let row; columns: columnasArticulos;"
class=
"row"
></tr>
</table>
</div>
</mat-dialog-content>
<mat-dialog-actions
align=
"end"
>
<button
mat-button
[
mat-dialog-close
]="
false
"
>
Cerrar
</button>
...
...
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