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
cc2da01b
Commit
cc2da01b
authored
Apr 08, 2025
by
Fernando José Palomino Aquino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] ATS OPCIONAL
parent
c2b1c58b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
conformidad.componente.html
src/app/pages/conformidad/conformidad.componente.html
+1
-1
conformidad.componente.ts
src/app/pages/conformidad/conformidad.componente.ts
+15
-17
No files found.
src/app/pages/conformidad/conformidad.componente.html
View file @
cc2da01b
...
...
@@ -338,7 +338,7 @@
<div
class=
"div-serviocisPrestados divisionGeneral"
>
<div
class=
"grid lg:grid-cols-3 gap-5"
>
<div>
<div><b
class=
"md:text-[1rem] text-[1em] text-black/60"
>
EVIDENCIA DE ATS:
*
</b></div>
<div><b
class=
"md:text-[1rem] text-[1em] text-black/60"
>
EVIDENCIA DE ATS:
(OPCIONAL)
</b></div>
<div>
<button
mat-fab
class=
"!w-full"
style=
"background-color: #8cfde8"
(
click
)="
fotoATC
.
click
()"
>
<mat-label>
SUBIR FOTO DE ATS
</mat-label>
...
...
src/app/pages/conformidad/conformidad.componente.ts
View file @
cc2da01b
...
...
@@ -515,24 +515,25 @@ export class ConformidadComponent implements AfterViewInit {
const
nuevosArchivos
=
Array
.
from
(
archivosSeleccionados
).
filter
(
file
=>
file
.
type
===
'image/png'
||
file
.
type
===
'image/jpeg'
);
nuevosArchivos
.
forEach
(
async
(
file
)
=>
{
if
(
!
this
.
archivosEvidencia
.
find
((
item
)
=>
item
.
file
.
name
===
file
.
name
))
{
if
(
tipo
!==
6
&&
tipo
!==
3
)
{
// SI ES DIFERENTE DE EVIDENCIA DE CONFORMIDAD Y ATS
if
(
tipo
!==
6
&&
tipo
!==
3
)
{
// SI ES DIFERENTE DE EVIDENCIA DE CONFORMIDAD Y ATS
this
.
archivosEvidencia
.
push
({
tipoEvidencia
:
tipo
,
file
:
file
});
}
else
{
// SINO, SOLO SE DEBE PERMITIR 2 IMAGENES DE CADA TIPO
const
contador
=
this
.
archivosEvidencia
.
filter
((
item
)
=>
item
.
tipoEvidencia
===
tipo
).
length
;
if
(
contador
<
2
)
{
this
.
archivosEvidencia
.
push
({
tipoEvidencia
:
tipo
,
file
:
file
});
}
else
{
this
.
barraAlerta
.
open
(
'SOLO SE PERMITE HASTA 2 IMAGENES'
,
''
,
{
horizontalPosition
:
this
.
alertaPosicionHorizontal
,
verticalPosition
:
this
.
alertaPosicionVertical
,
duration
:
this
.
alertaDuracion
*
1000
});
}
}
else
{
// SINO, SOLO SE DEBE PERMITIR 2 IMAGENES DE CADA TIPO
const
contador
=
this
.
archivosEvidencia
.
filter
((
item
)
=>
item
.
tipoEvidencia
===
tipo
).
length
;
if
(
contador
<
2
)
{
this
.
archivosEvidencia
.
push
({
tipoEvidencia
:
tipo
,
file
:
file
});
}
else
{
this
.
barraAlerta
.
open
(
'SOLO SE PERMITE HASTA 2 IMAGENES'
,
''
,
{
horizontalPosition
:
this
.
alertaPosicionHorizontal
,
verticalPosition
:
this
.
alertaPosicionVertical
,
duration
:
this
.
alertaDuracion
*
1000
});
}
}
}
});
//ACTUALIZA AMBOS VALORES PARA EL EDIT ENTRE ELLOS
...
...
@@ -915,9 +916,6 @@ export class ConformidadComponent implements AfterViewInit {
else
if
(
archivosEvidencia
.
find
((
item
)
=>
item
.
tipoEvidencia
===
2
)
===
undefined
){
advertencia
+=
`REQUIERE SUBIR EVIDENCIA DE SOLUCION`
;
}
else
if
(
archivosEvidencia
.
find
((
item
)
=>
item
.
tipoEvidencia
===
3
)
===
undefined
){
advertencia
+=
`REQUIERE SUBIR EVIDENCIA DE ATS`
;
}
if
(
advertencia
!==
''
){
this
.
mostrarAlerta
(
advertencia
);
...
...
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