[EDIT] SEPARAR CONSULTAS DE PRODUCCION DE PRUEBAS

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