Преглед изворни кода

Modificación de registro de políticas

JeanBenitez пре 3 година
родитељ
комит
f994fc78d6

+ 2 - 2
vacaciones/src/app/components/mco/mcompv/mcompv-form/mcompv-form.component.html

@@ -275,12 +275,12 @@
           Cerrar
         </a>
         <button mat-raised-button *ngIf="accion == 'Registro' " class="mr-3 secondary"
-          [disabled]="formGroup.invalid || dataSource.data.length === 0 || anios_vacaciones.length !== 0 || anios_vacaciones.length !== 0 || dias_descanso?.value.length === 0"
+          [disabled]="formGroup.invalid || dataSource.data.length === 0 || anios_vacaciones.length !== 0 || anios_vacaciones.length !== 0 || dias_descanso?.value.length >= 7"
           (click)="registrar()">
           Registrar Política
         </button>
         <button mat-raised-button *ngIf="accion == 'Modificar' " class="mr-3 secondary"
-          [disabled]="formGroup.invalid || dataSource.data.length === 0 || anios_vacaciones.length !== 0 || anios_vacaciones.length !== 0 || dias_descanso?.value.length === 0"
+          [disabled]="formGroup.invalid || dataSource.data.length === 0 || anios_vacaciones.length !== 0 || anios_vacaciones.length !== 0 || dias_descanso?.value.length >= 7"
           (click)="modificar()">
           Modificar Política
         </button>

+ 2 - 11
vacaciones/src/app/components/mes/mesmhs/mesmhs.component.ts

@@ -364,10 +364,7 @@ export class MESMHSComponent implements AfterViewInit {
     const sleep = (ms: number) =>
       new Promise((resolve) => setTimeout(resolve, ms));
     await sleep(1000);
-    this._mesmhsService
-      .obtenerSubordinados(
-        this._encService.desencriptar(this.usuario_session.IDUSUARIO)
-      )
+    this._mesmhsService.obtenerSubordinados(this._encService.desencriptar(this.usuario_session.IDUSUARIO))
       .subscribe(
         (res) => {
           if (res.status == 'Token is Expired') {
@@ -542,15 +539,9 @@ export class MESMHSComponent implements AfterViewInit {
 
   formatoFechaPeriodo(item: any) {
     let arrPeriodoVacacional = [];
-
     let fechaPeriodo = item.split('|');
 
-    arrPeriodoVacacional.push(
-      'De ' +
-        this.formato(fechaPeriodo[0]) +
-        ' a ' +
-        this.formato(fechaPeriodo[1])
-    );
+    arrPeriodoVacacional.push('De ' + this.formato(fechaPeriodo[0]) + ' a ' + this.formato(fechaPeriodo[1]));
     return arrPeriodoVacacional;
   }