Jelajahi Sumber

Merge branch 'features-o' of onunez/frontend-inversiones into development

Oscar José Nuñez Chávez 5 tahun lalu
induk
melakukan
36871e9a1d

+ 28 - 0
src/app/components/instruments/dap/dap.component.html

@@ -194,6 +194,23 @@
         </div>
       </div>
 
+      <!-- # de certificado -->
+      <div class="col-lg-6 col-sm-12 pr-xl-3">
+        <div class="form-group">
+          <label for="numero_certificado">Número de certificado: </label>
+          <div class="input-box-container">
+            <p>
+              <i class="fas fa-certificate"></i>
+            </p>
+            <input
+              type="text"
+              formControlName="numero_certificado"
+              class="form-control"
+            />
+          </div>
+        </div>
+      </div>
+
       <div class="col-lg-12 col-sm-12 pr-xl-12">
         <div class="form-group text-right">
           <br />
@@ -437,6 +454,17 @@
           {{ instrument_work.fecha_inicio_vigencia }}
         </div>
       </div>
+      <div class="col-lg-3 col-md-4 col-sm-6">
+        <h4>Número de certificado:</h4>
+        <div class="field">
+          {{
+            instrument_work.numero_certificado == undefined ||
+            instrument_work.numero_certifcado == ""
+              ? "-"
+              : instrument_work.numero_certificado
+          }}
+        </div>
+      </div>
     </div>
     <br />
     <!-- Tabla de proyecciones del instrumento-->

+ 6 - 4
src/app/components/instruments/dap/dap.component.ts

@@ -91,6 +91,7 @@ export class DAP implements InstrumentComponent {
   dapObject: {};
   renta: any;
   hasProjections: boolean;
+  numero_certificado: any;
 
   constructor(
     private formBuilder: FormBuilder,
@@ -142,10 +143,10 @@ export class DAP implements InstrumentComponent {
         [Validators.required]
       ],
 
-      /*formato_ingreso: [
-        this.instrument_exists ? "" : this.instrument_work.formato_ingreso,
+      numero_certificado: [
+        this.instrument_exists ? "" : this.instrument_work.numero_certificado,
         [Validators.required]
-      ],*/
+      ],
 
       fecha_vencimiento: [
         this.instrument_exists
@@ -235,7 +236,7 @@ export class DAP implements InstrumentComponent {
           this.fecha_inicio_vigencia = ans["result"]["fecha_inicio_vigencia"];
           this.renta = ans["result"]["renta"];
           this.proyecciones = ans["result"]["proyecciones"];
-
+          this.numero_certificado = ans["result"]["numero_certificado"];
           this.dataSource.data = this.proyecciones;
           this.dataSource.paginator = this.paginator;
           this.dataSource.sort = this.sort;
@@ -252,6 +253,7 @@ export class DAP implements InstrumentComponent {
             rendimiento_neto: this.rendimiento_neto,
             fecha_inicio_vigencia: this.fecha_inicio_vigencia,
             renta: this.renta,
+            numero_certificado: this.numero_certificado,
             proyecciones: this.proyecciones,
 
             fecha_operacion: this.investmentProposalForm.value.fecha_operacion

+ 1 - 1
src/app/components/investment-proposals/investment-proposals.component.ts

@@ -196,7 +196,7 @@ export class InvestmentProposalsComponent implements OnInit {
   }
 
   can_review(status: string) {
-    if (status == "PENDI") {
+    if (status == "PENDI" || status == "NOAPR") {
       return true;
     } else {
       return false;