Sfoglia il codice sorgente

Avances preventivo

Jose Brito 1 anno fa
parent
commit
238ea8c9f2

+ 2 - 2
sistema-mantenimiento-front/src/app/components/preventive-maintenance/work-orders/new-work-order/new-work-order.component.ts

@@ -377,9 +377,9 @@ export class NewWorkOrderComponent implements OnInit {
         if(order.response.ID_EQUIPAMIENTO != null){
           let equipmentCodeDec = await this._encService.decrypt(order.response.EQUIPAMIENTO);
           let equipmentIDDEc = await this._encService.decrypt(order.response.ID_EQUIPAMIENTO);
+          let equipmentStr = `${equipmentCodeDec} - ${order.response.TIPO_EQUIPAMIENTO} - ${order.response.MODELO_EQUIPAMIENTO} (${equipmentIDDEc})`;
 
-          this.orderFormGroup.controls['equipmentControl'].setValue(`${equipmentCodeDec} - ${order.response.TIPO_EQUIPAMIENTO}`);
-          console.log(equipmentCodeDec, equipmentIDDEc);
+          this.orderFormGroup.controls['equipmentControl'].setValue(equipmentStr);
         }
 
         this.orderFormGroup.controls['descriptionControl'].setValue(order.response.DESCRIPCION);