if(registroEvidencia[0].status&®istroEvidencia[1].status&®istroEvidencia[2].status){// REGISTRO DE EVIDENCIAS SUBIDAS AL DRIVE Y REGISTRADAS EN BASE
console.log("SE REGISTRO TODO CORRECTAMENTE");
Notiflix.Loading.remove();
Notiflix.Loading.remove();
Notiflix.Notify.success('REGISTRO COMPLETADO');
Notiflix.Notify.success('ÉXITO DE CONFORMIDAD ',{
position:'center-center',// Notificación en el centro de la pantalla
timeout:1000,// 1 segundo
width:'400px',
fontSize:'24px',
fontAwesomeIconSize:'34px',
});
// Espera 1 segundo y recarga la página
setTimeout(()=>{
setTimeout(()=>{
window.location.reload();
window.location.reload();
},3000);
},1000);
}else{
}else{
this.mostrarAlertaError('FALLO DE REGISTRO','ERROR AL REGISTRAR ORDEN DE SALIDA');
this.mostrarAlerta('REGISTRO COMPLETADO , ERROR AL REGISTRAR LOS ARCHIVOS DE EVIDENCIAS');
}
}
}else{
}else{
this.mostrarAlerta('REGISTRO COMPLETADO , ERROR AL CREAR CARPETA DE EVIDENCIAS');
this.mostrarAlertaError('FALLO DE REGISTRO','ERROR AL REGISTRAR LOS REQUERIMIENTOS');
}
}
}else{
}else{
this.mostrarAlerta('ERROR AL REGISTRAR ORDEN DE SALIDA');
this.mostrarAlertaError('FALLO DE REGISTRO','ERROR AL REGISTRAR EL PERSONAL');
}
}
}else{
}else{
this.mostrarAlerta('ERROR AL REGISTRAR LOS REQUERIMIENTOS');
this.mostrarAlertaError('ERROR DE SUBIDA DE EVIDENCIA',resultados.mensaje);
//Agregar el eliminar registro y eliminar Documento.
awaitthis.conformidadHelper.eliminarDocumento({
opcion:1,
codconformidad:codigoConformidad
});
}
}
}else{
}else{
this.mostrarAlerta('ERROR AL REGISTRAR EL PERSONAL');
this.mostrarAlertaError('ERROR DE SUBIDA DE EVIDENCIA','ERROR AL CREAR CARPETA DE EVIDENCIAS');
}
}
}else{
}else{
this.mostrarAlerta('ERROR AL REGISTRAR LA CONFORMIDAD');
this.mostrarAlertaError('FALLO DE REGISTRO','ERROR AL REGISTRAR LA CONFORMIDAD');
}
}
}
}
...
@@ -1110,10 +1232,7 @@ export class ConformidadComponent implements AfterViewInit {
...
@@ -1110,10 +1232,7 @@ export class ConformidadComponent implements AfterViewInit {