Kaynağa Gözat

Modificación en el campo de fecha ingreso y RFC en MCOMAU-FORM editar

JeanBenitez 3 yıl önce
ebeveyn
işleme
f2a97588dd

+ 1 - 0
vacaciones/src/app/components/mco/mcomau/mcomau-form/mcomau-form.component.html

@@ -290,6 +290,7 @@
             matInput
             placeholder="Ingrese la fecha de ingreso →"
             formControlName="fecha_ingreso_laboral"
+            [max]="today_day"
             [matDatepicker]="picker"
             [value]="fecha_ingreso_laboral"
           />

+ 2 - 1
vacaciones/src/app/components/mco/mcomau/mcomau-form/mcomau-form.component.ts

@@ -50,6 +50,7 @@ export class MCOMAUFORMComponent implements OnInit {
   titulo: String = '';
   usuario: MCOMAUInterface = null!;
   usuarios_menos: any = null!;
+  public today_day: Date = new Date();
   usuario_session: USERInterface = JSON.parse(
     localStorage.getItem('TIMUSERENC')!
   );
@@ -122,7 +123,7 @@ export class MCOMAUFORMComponent implements OnInit {
         ),
         ape_m: new FormControl(this.usuario.APELLIDO_MATERNO),
         rfc_usuario: new FormControl(
-          this.usuario.RFCUSUARIO,
+          {value: this.usuario.RFCUSUARIO, disabled: true},
           [
             Validators.required, 
             Validators.pattern("(([A-ZÑ&]{4})([0-9]{2})([0][123456789]|[1][012])([0][1-9]|[1][0-9]|[2][0-9]|[3][0-1])([A-Z0-9]{3}))")