[EDIT] ATS OPCIONAL

parent c2b1c58b
......@@ -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>
......
......@@ -515,10 +515,11 @@ 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
} else { // SINO, SOLO SE DEBE PERMITIR 2 IMAGENES DE CADA TIPO
const contador = this.archivosEvidencia.filter((item) => item.tipoEvidencia === tipo).length;
if (contador < 2) {
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment