|
@@ -327,18 +327,19 @@ export class InvestmentProposalReviewComponent implements OnInit {
|
|
|
const { value: comentario } = await Swal.fire({
|
|
const { value: comentario } = await Swal.fire({
|
|
|
title: "<h3>Revisión propuesta de inversión</h3>",
|
|
title: "<h3>Revisión propuesta de inversión</h3>",
|
|
|
icon: "info",
|
|
icon: "info",
|
|
|
|
|
+ html: `<p style="text-align:left;">Comentario:</p>`,
|
|
|
input: "textarea",
|
|
input: "textarea",
|
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
|
confirmButtonText: "Enviar propuesta",
|
|
confirmButtonText: "Enviar propuesta",
|
|
|
cancelButtonText: "Cancelar",
|
|
cancelButtonText: "Cancelar",
|
|
|
- inputValidator: value => {
|
|
|
|
|
- if (!value) {
|
|
|
|
|
- return "Debe ingresar un comentario";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // inputValidator: value => {
|
|
|
|
|
+ // if (!value) {
|
|
|
|
|
+ // return "Debe ingresar un comentario";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- if (comentario) {
|
|
|
|
|
|
|
+ // if (comentario) {
|
|
|
this.reviewProposal = {
|
|
this.reviewProposal = {
|
|
|
id_inversion: this.investmentProposalID,
|
|
id_inversion: this.investmentProposalID,
|
|
|
step: "next",
|
|
step: "next",
|
|
@@ -370,7 +371,7 @@ export class InvestmentProposalReviewComponent implements OnInit {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
- }
|
|
|
|
|
|
|
+ // }
|
|
|
})();
|
|
})();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -379,19 +380,20 @@ export class InvestmentProposalReviewComponent implements OnInit {
|
|
|
const { value: comentario } = await Swal.fire({
|
|
const { value: comentario } = await Swal.fire({
|
|
|
title: "<h3>Revisión propuesta de inversión</h3>",
|
|
title: "<h3>Revisión propuesta de inversión</h3>",
|
|
|
icon: "info",
|
|
icon: "info",
|
|
|
|
|
+ html: `<p style="text-align:left;">Comentario:</p>`,
|
|
|
input: "textarea",
|
|
input: "textarea",
|
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
|
confirmButtonText: "Rechazar propuesta",
|
|
confirmButtonText: "Rechazar propuesta",
|
|
|
confirmButtonColor: "#C82333",
|
|
confirmButtonColor: "#C82333",
|
|
|
cancelButtonText: "Cancelar",
|
|
cancelButtonText: "Cancelar",
|
|
|
- inputValidator: value => {
|
|
|
|
|
- if (!value) {
|
|
|
|
|
- return "Debe ingresar un comentario";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // inputValidator: value => {
|
|
|
|
|
+ // if (!value) {
|
|
|
|
|
+ // return "Debe ingresar un comentario";
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- if (comentario) {
|
|
|
|
|
|
|
+ // if (comentario) {
|
|
|
this.reviewProposal = {
|
|
this.reviewProposal = {
|
|
|
id_inversion: this.investmentProposalID,
|
|
id_inversion: this.investmentProposalID,
|
|
|
step: "previous",
|
|
step: "previous",
|
|
@@ -405,10 +407,10 @@ export class InvestmentProposalReviewComponent implements OnInit {
|
|
|
if (success) {
|
|
if (success) {
|
|
|
Swal.fire({
|
|
Swal.fire({
|
|
|
allowOutsideClick: false,
|
|
allowOutsideClick: false,
|
|
|
- icon: "success",
|
|
|
|
|
|
|
+ icon: "warning",
|
|
|
showCancelButton: false,
|
|
showCancelButton: false,
|
|
|
title: "Exito",
|
|
title: "Exito",
|
|
|
- confirmButtonText: "La propuesta ha sido aprobada"
|
|
|
|
|
|
|
+ confirmButtonText: "La propuesta ha sido rechazada"
|
|
|
}).then(result => {
|
|
}).then(result => {
|
|
|
Swal.close();
|
|
Swal.close();
|
|
|
window.location.href = "#/investment-proposals";
|
|
window.location.href = "#/investment-proposals";
|
|
@@ -423,7 +425,7 @@ export class InvestmentProposalReviewComponent implements OnInit {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
- }
|
|
|
|
|
|
|
+ // }
|
|
|
})();
|
|
})();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|