Bläddra i källkod

Corrección de detalles de la falla

JeanBenitez 1 år sedan
förälder
incheckning
b5bb790c37

+ 1 - 1
sistema-mantenimiento-front/src/app/components/failure-analysis/failure-log/details-history-failure-equipment/details-history-failure-equipment.component.html

@@ -4,7 +4,7 @@
     <mat-card class="override-card override-elevation-z8" style="width: 90%;" [style.display]=" !isLoading ? 'block' : 'none' ">
         <section class="override-section" style="overflow: auto;">
             <nav class="override-nav">
-                <mat-card-title class="mat-card-title align-center"> Detalles de la Falla </mat-card-title>
+                <mat-card-title class="mat-card-title align-center"> Detalles de la falla </mat-card-title>
             </nav>
             <form class="override_content_flex mt-10" style="padding: 10px 15px 0 15px; width: calc(100% - 30px);" [formGroup]="formGroup">
                 <div class="col-flex-4">

+ 4 - 1
sistema-mantenimiento-front/src/app/components/failure-analysis/failure-log/details-history-failure-equipment/details-history-failure-equipment.component.ts

@@ -76,7 +76,10 @@ export class DetailsHistoryFailureEquipmentComponent implements OnInit{
           let causa_sintoma = responseData.response.CAUSA_SINTOMA;
           let clasificacion_sintoma = responseData.response.CLASIFICACION_SINTOMA;
           let fecha_falla = this.resourcesService.formatOnlyDatetime(responseData.response.FECHA_FALLA);
-          let fecha_resolucion = this.resourcesService.formatOnlyDatetime(responseData.response.FECHA_RESOLUCION);
+          let fecha_resolucion = null          
+          if (responseData.response.FECHA_RESOLUCION !== null)  {
+            fecha_resolucion = this.resourcesService.formatOnlyDatetime(responseData.response.FECHA_RESOLUCION);
+          }
           let reparable = responseData.response.REPARABLE === 1 ? 'Si' : 'No';
           let valor_obtenido = `${responseData.response.VALOR_OBTENIDO} ${responseData.response.ACRONIMO_MEDIDA}`;
           let nombre_medida = responseData.response.NOMBRE_MEDIDA