[EDIT] AVACEN MODELO PARA CELULAR

parent cc2da01b
......@@ -62,12 +62,23 @@
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
"baseHref": "",
"budgets": [
{
"type": "initial",
"maximumWarning": "10MB",
"maximumError": "10MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
}
],
"outputHashing": "all"
}
},
"defaultConfiguration": "production"
"defaultConfiguration": "development"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
......
......@@ -128,6 +128,11 @@ export class ConformidadComponent implements AfterViewInit {
// VIEWCHILD
//INICIALIZACION DE VARIABLES UTILIZABLES
t_facturacion_electronica_link = environment.facturacion_electronica_link;
horizon_services_link = environment.horizon_services_link;
ID_CARPETA_DRIVE_LOGISTICA = environment.ID_CARPETA_DRIVE_LOGISTICA;
ID_CARPETA_DRIVE_LOGISTICA_ELECTRICISTA = environment.ID_CARPETA_DRIVE_LOGISTICA_ELECTRICISTA;
ID_CARPETA_DRIVE_LOGISTICA_GASFITERIA = environment.ID_CARPETA_DRIVE_LOGISTICA_GASFITERIA;
opcionEnvironmnet : boolean = environment.isProduction;
personal_list: any = [];
......@@ -242,6 +247,13 @@ export class ConformidadComponent implements AfterViewInit {
Notiflix.Loading.standard('Inicializando...');
console.log(this.t_facturacion_electronica_link);
console.log(this.horizon_services_link);
console.log(this.ID_CARPETA_DRIVE_LOGISTICA_ELECTRICISTA);
console.log(this.ID_CARPETA_DRIVE_LOGISTICA_GASFITERIA);
console.log(this.ID_CARPETA_DRIVE_LOGISTICA);
const [
personal,
sede,
......@@ -399,7 +411,7 @@ export class ConformidadComponent implements AfterViewInit {
//AGREGAR UN TECNICO
onEventoAgregarPersonal(){
this.agregarFormControl(this.datos_personal,'tecnicoPersonal'+this.listPersonal.length,new FormControl(null,Validators.required));
this.agregarFormControl(this.datos_personal,'areaPersonal'+this.listPersonal.length,new FormControl<string>('' ,Validators.required));
//this.agregarFormControl(this.datos_personal,'areaPersonal'+this.listPersonal.length,new FormControl<string>('' ,Validators.required));
this.listPersonal.push({ index: this.listPersonal.length , id: 0 , nombre: '' }); // Agregar uno más
}
......@@ -418,7 +430,7 @@ export class ConformidadComponent implements AfterViewInit {
}else{
this.listPersonal.pop(); // Eliminar el ultimo elemento del array
this.removerFormControl(this.datos_personal,'tecnicoPersonal'+this.listPersonal.length);
this.removerFormControl(this.datos_personal,'areaPersonal'+this.listPersonal.length);
//this.removerFormControl(this.datos_personal,'areaPersonal'+this.listPersonal.length);
}
}
......@@ -428,7 +440,7 @@ export class ConformidadComponent implements AfterViewInit {
const codigoPer = event.value;
const personal_list = this.personal_list;
const personal_datos = personal_list.find((item: any) => item.codper === codigoPer);
const areaControl = this.datos_personal.get('areaPersonal'+elemento.index);
//const areaControl = this.datos_personal.get('areaPersonal'+elemento.index);
const validarRepetido = this.listPersonal.find((item: any) => item.id === codigoPer && item.index != elemento.index);
if(validarRepetido){
......@@ -448,12 +460,12 @@ export class ConformidadComponent implements AfterViewInit {
this.listPersonal[elemento.index].id = codigoPer;
this.listPersonal[elemento.index].nombre = personal_datos.nombre;
if(Object.keys(personal_datos).length > 0){
/*if(Object.keys(personal_datos).length > 0){
areaControl?.setValue(personal_datos.descargo);
}else{
areaControl?.setValue('Sin Cargo');
}
areaControl?.updateValueAndValidity();
areaControl?.updateValueAndValidity();*/
}
......
export const environment = {
isProduction: true,
//trismegisto_services_link: 'https://tp-services.sacooliveros.edu.pe',
t_asistencia_rest_link: 'https://tp-rest.sacooliveros.edu.pe',
redireccionamiento: 'https://fichaonline.sacooliveros.edu.pe:8000/trismegisto-apis/api/v1',
facturacion_electronica_link: 'https://fichaonline.sacooliveros.edu.pe:8080/FacturacionElectronicaSIIAA',
......
export const environment = {
isProduction: false,
//trismegisto_services_link: 'https://tp-services.sacooliveros.edu.pe',
t_asistencia_rest_link: 'http://localhost:8080/tasistencia-rest',
redireccionamiento: 'https://fichaonline.sacooliveros.edu.pe:8000/trismegisto-apis/api/v1',
t_asistencia_rest_link: 'http://localhost:8080/tasistencia-rest',
//t_asistencia_rest_link: 'https://tp-rest.sacooliveros.edu.pe',
facturacion_electronica_link: 'http://localhost:8080/FacturacionElectronicaSIIAA',
//facturacion_electronica_link: 'http://test.sacooliveros.edu.pe:8080/FacturacionElectronicaSIIAAFP',
horizon_services_link: 'http://localhost:8080/trismegisto-api-horizons',
//horizon_services_link : 'http://test.sacooliveros.edu.pe:8080/trismegisto-api-horizons',
ID_CARPETA_DRIVE_LOGISTICA:'1zYWsmpIAKR6nBmO5dnnBSAHJr81img0s',
CORREO_DRIVE_LOGISTICA : 'trismegisto.logistica@sacooliveros.edu.pe',
opcion : 1,
......
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