put the comment solicitar parecer on despacho fuction

This commit is contained in:
EQUILIBRIUM\hirondino.van-dunem
2022-06-24 09:12:16 +01:00
parent f1b33b237b
commit 91ce5eeebc
3 changed files with 7 additions and 7 deletions
@@ -8,7 +8,7 @@
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" placeholder="Assunto*" [(ngModel)]="postData.DispatchFolder.Subject"></ion-input>
</div>
{{ postData.DispatchFolder.Subject }}
<!-- {{ postData.DispatchFolder.Subject }} -->
<div class="container-div width-100">
<div class="ion-item-class-2">
@@ -21,7 +21,7 @@
</div>
</div>
{{ postData.DispatchFolder.Message }}
<!-- {{ postData.DispatchFolder.Message }} -->
<!-- Add scrolls -->
<div class="d-flex flex-column height-100 overflow-y-auto">
@@ -316,11 +316,11 @@ export class CreateProcessPage implements OnInit {
try {
if(this.task.activityInstanceName == 'Tarefa de Despacho' || this.task.activityInstanceName == 'Reexecutar Despacho') {
await this.despachoService.createParecer(this.postData).toPromise();
await this.despachoService.solicitarParecer({ serialnumber: this.task.serialNumber, activityInstanceName: this.task.activityInstanceName}).toPromise();
await this.despachoService.solicitarParecer({ note: this.postData.DispatchFolder.Message, serialnumber: this.task.serialNumber, activityInstanceName: this.task.activityInstanceName}).toPromise();
} else {
await this.pedidoService.createParecer(this.postData).toPromise();
await this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber, note: this.postData.DispatchFolder.Subject}).toPromise();
await this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber, note: this.postData.DispatchFolder.Message}).toPromise();
}
this.modalController.dismiss();
@@ -406,10 +406,10 @@ export class CreateProcessPage implements OnInit {
if(this.task.activityInstanceName == 'Tarefa de Despacho' || this.task.activityInstanceName == 'Reexecutar Despacho') {
await this.despachoService.createParecer(this.postData).toPromise();
await this.despachoService.solicitarParecer({ serialnumber: this.task.serialNumber, activityInstanceName: this.task.activityInstanceName}).toPromise();
await this.despachoService.solicitarParecer({ note: this.postData.DispatchFolder.Message, serialnumber: this.task.serialNumber, activityInstanceName: this.task.activityInstanceName}).toPromise();
} else {
await this.pedidoService.createParecer(this.postData).toPromise();
await this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber, note: this.postData.DispatchFolder.Subject}).toPromise();
await this.pedidoService.taskCompleteParecer({serialNumber:this.task.serialNumber, note: this.postData.DispatchFolder.Message}).toPromise();
}
this.modalController.dismiss();