[EDIT] SEPARAR CONSULTAS DE PRODUCCION DE PRUEBAS

parent d20e3ba6
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:application", "builder": "@angular-devkit/build-angular:application",
"options": { "options": {
"allowedCommonJsDependencies": ["notiflix"],
"outputPath": "dist/angular-formulario-hr", "outputPath": "dist/angular-formulario-hr",
"index": "src/index.html", "index": "src/index.html",
"browser": "src/main.ts", "browser": "src/main.ts",
...@@ -28,7 +29,8 @@ ...@@ -28,7 +29,8 @@
], ],
"styles": [ "styles": [
"@angular/material/prebuilt-themes/azure-blue.css", "@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.css" "src/styles.css",
"node_modules/notiflix/dist/notiflix-3.2.8.min.css"
], ],
"scripts": [] "scripts": []
}, },
...@@ -94,7 +96,8 @@ ...@@ -94,7 +96,8 @@
], ],
"styles": [ "styles": [
"@angular/material/prebuilt-themes/azure-blue.css", "@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.css" "src/styles.css",
"node_modules/notiflix/dist/notiflix-3.2.8.min.css"
], ],
"scripts": [] "scripts": []
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"@angular/platform-browser-dynamic": "^18.2.0", "@angular/platform-browser-dynamic": "^18.2.0",
"@angular/router": "^18.2.0", "@angular/router": "^18.2.0",
"axios": "^1.7.7", "axios": "^1.7.7",
"notiflix": "^3.2.7", "notiflix": "^3.2.8",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.14.10" "zone.js": "~0.14.10"
...@@ -10404,9 +10404,9 @@ ...@@ -10404,9 +10404,9 @@
} }
}, },
"node_modules/notiflix": { "node_modules/notiflix": {
"version": "3.2.7", "version": "3.2.8",
"resolved": "https://registry.npmjs.org/notiflix/-/notiflix-3.2.7.tgz", "resolved": "https://registry.npmjs.org/notiflix/-/notiflix-3.2.8.tgz",
"integrity": "sha512-NRu6KSeyfphgPKBxh4IUoOYXbROrpuDa9/q9/VPb6UNEP4uII9RKwclTZWUyl1A0tSh9+lEhdz9F/EkskH3A6w==", "integrity": "sha512-BNBGr3qNIBNt6NZYvch0OLF9DEEgWKcjYzISMH9eECKwfsUaINb5K/RA21hy5kmfOtdbdAdODrqxts+0xp+xwA==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/npm-bundled": { "node_modules/npm-bundled": {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"@angular/platform-browser-dynamic": "^18.2.0", "@angular/platform-browser-dynamic": "^18.2.0",
"@angular/router": "^18.2.0", "@angular/router": "^18.2.0",
"axios": "^1.7.7", "axios": "^1.7.7",
"notiflix": "^3.2.7", "notiflix": "^3.2.8",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.14.10" "zone.js": "~0.14.10"
......
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
}
.divRequerimientos{
width: 15%;
}
.example-full-width { .example-full-width {
width: 100%; width: 100%;
} }
......
...@@ -48,13 +48,21 @@ ...@@ -48,13 +48,21 @@
<div class="basis-2/4"> <div class="basis-2/4">
<div class="flex flex-row gap-x-2"> <div class="flex flex-row gap-x-2">
<mat-form-field class="w-full" appearance="outline" floatLabel="always"> <!--<mat-form-field class="w-full" appearance="outline" floatLabel="always">
<mat-label>Sede designada</mat-label> <mat-label>Sede designada</mat-label>
<mat-select formControlName="sedePersonal" placeholder="[Seleccionar sede]" required> <mat-select formControlName="sedePersonal" placeholder="[Seleccionar sede]" required>
<mat-option *ngFor="let option of this.sede_list" [value]="option?.idlocal"> <mat-option *ngFor="let option of this.sede_list" [value]="option?.idlocal">
{{option?.deslocal}} {{option?.deslocal}}
</mat-option> </mat-option>
</mat-select> </mat-select>
</mat-form-field> -->
<mat-form-field class="w-full" appearance="outline" floatLabel="always">
<mat-label>Sede designada</mat-label>
<mat-select formControlName="sedePersonal" placeholder="[Seleccionar sede]" required>
<mat-option *ngFor="let option of this.sede_list" [value]="opcionEnvironmnet === 1 ? option.idlocal : option.id_local">
{{option.deslocal}}
</mat-option>
</mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field class="w-full" appearance="outline" floatLabel="always"> <mat-form-field class="w-full" appearance="outline" floatLabel="always">
...@@ -312,7 +320,7 @@ ...@@ -312,7 +320,7 @@
</mat-card-header> </mat-card-header>
<mat-card-content class="w-full my-2.5"> <mat-card-content class="w-full my-2.5">
<div class="div-trabajosPrestados divisionGeneral" [formGroup]="datos_trabajo"> <div class="div-trabajosPrestados divisionGeneral" [formGroup]="datos_trabajo">
<label class="font-bold text-[1.2rem]">TIPO DE TRABAJO:</label> <label class="font-bold text-[1.2rem] pr-6">TIPO DE TRABAJO:</label>
<mat-form-field class="w-full md:w-1/2"> <mat-form-field class="w-full md:w-1/2">
<mat-label>Seleccionar tipo de trabajo</mat-label> <mat-label>Seleccionar tipo de trabajo</mat-label>
<mat-select formControlName="tipoTrabajo"> <mat-select formControlName="tipoTrabajo">
......
...@@ -40,6 +40,7 @@ import {ordenSalidaComponent } from "../ordensalida/ordensalida.componente"; ...@@ -40,6 +40,7 @@ import {ordenSalidaComponent } from "../ordensalida/ordensalida.componente";
import {elementSelectors} from "@angular/cdk/schematics"; import {elementSelectors} from "@angular/cdk/schematics";
import Notiflix from 'notiflix'; import Notiflix from 'notiflix';
import { DecimalPipe } from '@angular/common'; import { DecimalPipe } from '@angular/common';
import {environment} from "../../../environment/env";
interface tiposTrabajo { interface tiposTrabajo {
codtipo: string; codtipo: string;
...@@ -148,6 +149,7 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -148,6 +149,7 @@ export class ConformidadComponent implements AfterViewInit {
//INICIALIZACION DE VARIABLES UTILIZABLES //INICIALIZACION DE VARIABLES UTILIZABLES
opcionEnvironmnet : number = environment.opcion;
personal_list: any = []; personal_list: any = [];
sede_list: any = []; sede_list: any = [];
requerimientosFiltrados: any[] = []; requerimientosFiltrados: any[] = [];
...@@ -162,7 +164,7 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -162,7 +164,7 @@ export class ConformidadComponent implements AfterViewInit {
personalText : string = ''; personalText : string = '';
personalFading : boolean = false ; personalFading : boolean = false ;
activarPasajes : boolean = false; activarPasajes : boolean = false;
lugarDestinoPasaje : string = ''; //lugarDestinoPasaje : string = '';
//columnasPasaje: string[] = ['lugarOrigen', 'lugarDestino', 'monto', 'fecha','accion']; //columnasPasaje: string[] = ['lugarOrigen', 'lugarDestino', 'monto', 'fecha','accion'];
//dataSource: interDetallePasaje[] = []; //dataSource: interDetallePasaje[] = [];
...@@ -299,10 +301,9 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -299,10 +301,9 @@ export class ConformidadComponent implements AfterViewInit {
}); });
// Sincronizar el valor de 'sedePersonal' con los selects la tabla de pasaje // Sincronizar el valor de 'sedePersonal' con los selects la tabla de pasaje
this.obtenerFormControl(this.datos_personal,'sedePersonal')?.valueChanges.subscribe((value : any) => { /*this.obtenerFormControl(this.datos_personal,'sedePersonal')?.valueChanges.subscribe((value : any) => {
//this.lugarDestinoPasaje = this.sede_list.find((item: any) => item.codlocal === value)?.deslocal || '';
this.lugarDestinoPasaje = this.listadoSedesTrabajo.find((item: any) => item.value === value)?.viewValue || ''; this.lugarDestinoPasaje = this.listadoSedesTrabajo.find((item: any) => item.value === value)?.viewValue || '';
}); });*/
//Sincroniza todos los inputs de monto de pasaje con el total de pasajes //Sincroniza todos los inputs de monto de pasaje con el total de pasajes
/*this.datos_pasajeAcumulado.valueChanges.subscribe(values => { /*this.datos_pasajeAcumulado.valueChanges.subscribe(values => {
...@@ -483,13 +484,13 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -483,13 +484,13 @@ export class ConformidadComponent implements AfterViewInit {
//REALIZAR UNA BUSQUEDA DE REQUERIMIENTO //REALIZAR UNA BUSQUEDA DE REQUERIMIENTO
async onBusquedaRequerimiento(event: any) { async onBusquedaRequerimiento(event: any) {
const codigoSede = this.obtenerFormControl(this.datos_personal,'sedePersonal')?.value; //const codigoSede = this.obtenerFormControl(this.datos_personal,'sedePersonal')?.value;
const busquedaReq = event.target.value; const busquedaReq = event.target.value;
const jsonParametrosReq = { const jsonParametrosReq = {
accion : 2, accion : 2,
nombreValor : busquedaReq, nombreValor : busquedaReq,
sede : codigoSede sede : ''
}; };
const requerimiento_list = await this.conformidadHelper.listadoGeneralHorizon(jsonParametrosReq) ; const requerimiento_list = await this.conformidadHelper.listadoGeneralHorizon(jsonParametrosReq) ;
...@@ -647,7 +648,7 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -647,7 +648,7 @@ export class ConformidadComponent implements AfterViewInit {
} }
}); });
this.dataSource = [...this.dataSource]; // Volviendo a ingresar los datos para que la tabla se actualice y la fila cambie con las condiciones del HTML this.dataSource = [...this.dataSource]; // Volviendo ha ingresar los datos para que la tabla se actualice y la fila cambie con las condiciones del HTML
this.activarPasajes = false; this.activarPasajes = false;
}*/ }*/
...@@ -771,10 +772,6 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -771,10 +772,6 @@ export class ConformidadComponent implements AfterViewInit {
this.mostrarAlerta('VALIDAR PERSONAL ASIGNADO'); this.mostrarAlerta('VALIDAR PERSONAL ASIGNADO');
return; return;
} }
/*if (!this.validarPasajes(datosPasajes)) {
this.mostrarAlerta('VALIDAR PASAJES');
return;
}*/
if (!this.validarArchivos(archivosEvidencias)) { if (!this.validarArchivos(archivosEvidencias)) {
const tipoEvidencia = archivosEvidencias.find((item) => item.tipoEvidencia === 1) ? 2 : (archivosEvidencias.find((item) => item.tipoEvidencia === 2) ? 1 : 0 ); const tipoEvidencia = archivosEvidencias.find((item) => item.tipoEvidencia === 1) ? 2 : (archivosEvidencias.find((item) => item.tipoEvidencia === 2) ? 1 : 0 );
...@@ -793,11 +790,8 @@ export class ConformidadComponent implements AfterViewInit { ...@@ -793,11 +790,8 @@ export class ConformidadComponent implements AfterViewInit {
return; return;
} }
console.log(datosPersonal);
const registroConformidad = await this.conformidadHelper.gestionConformidad({ const registroConformidad = await this.conformidadHelper.gestionConformidad({
opcion: 1, opcion: 1,
//codper: datosPersonal.tecnicoPersonal,
codlocal: datosPersonal.sedePersonal + '', codlocal: datosPersonal.sedePersonal + '',
fechainicio: this.formatoFechaRegistro(datosPersonal.minFechaTrabajo || new Date() ) , fechainicio: this.formatoFechaRegistro(datosPersonal.minFechaTrabajo || new Date() ) ,
fechafin: this.formatoFechaRegistro(datosPersonal.maxFechaTrabajo || new Date() ) , fechafin: this.formatoFechaRegistro(datosPersonal.maxFechaTrabajo || new Date() ) ,
......
...@@ -4,9 +4,11 @@ export const environment = { ...@@ -4,9 +4,11 @@ export const environment = {
t_asistencia_rest_link: 'https://tp-rest.sacooliveros.edu.pe', t_asistencia_rest_link: 'https://tp-rest.sacooliveros.edu.pe',
redireccionamiento: 'https://fichaonline.sacooliveros.edu.pe:8000/trismegisto-apis/api/v1', redireccionamiento: 'https://fichaonline.sacooliveros.edu.pe:8000/trismegisto-apis/api/v1',
//facturacion_electronica_link: 'https://fichaonline.sacooliveros.edu.pe:8080/FacturacionElectronicaSIIAA', //facturacion_electronica_link: 'https://fichaonline.sacooliveros.edu.pe:8080/FacturacionElectronicaSIIAA',
facturacion_electronica_link: 'http://pruebaintranet.sacooliveros.pe:8080/FacturacionElectronicaSIIAA', //facturacion_electronica_link: 'http://pruebaintranet.sacooliveros.pe:8080/FacturacionElectronicaSIIAA',
facturacion_electronica_link: 'https://prueba-intranet.sacooliveros.edu.pe:8443/FacturacionElectronicaSIIAA',
horizon_services_link: 'https://api-horizon.sacooliveros.edu.pe', horizon_services_link: 'https://api-horizon.sacooliveros.edu.pe',
//horizon_services_link: 'http://prueba-intranet.sacooliveros.edu.pe:8080/trismegisto-api-horizons', //horizon_services_link: 'http://prueba-intranet.sacooliveros.edu.pe:8080/trismegisto-api-horizons',
ID_CARPETA_DRIVE_LOGISTICA:'13mGZo3AnFqgkNRyiVAgJoW9mUoQdABdC', ID_CARPETA_DRIVE_LOGISTICA:'13mGZo3AnFqgkNRyiVAgJoW9mUoQdABdC',
CORREO_DRIVE_LOGISTICA : 'trismegisto.logistica@sacooliveros.edu.pe', CORREO_DRIVE_LOGISTICA : 'trismegisto.logistica@sacooliveros.edu.pe',
opcion : 2
}; };
...@@ -7,6 +7,7 @@ export const environment = { ...@@ -7,6 +7,7 @@ export const environment = {
horizon_services_link: 'http://localhost:8080/trismegisto-api-horizons', horizon_services_link: 'http://localhost:8080/trismegisto-api-horizons',
ID_CARPETA_DRIVE_LOGISTICA:'13mGZo3AnFqgkNRyiVAgJoW9mUoQdABdC', ID_CARPETA_DRIVE_LOGISTICA:'13mGZo3AnFqgkNRyiVAgJoW9mUoQdABdC',
CORREO_DRIVE_LOGISTICA : 'trismegisto.logistica@sacooliveros.edu.pe', 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