This commit is contained in:
tiago.kayaya
2021-06-14 14:43:57 +01:00
parent 519d7081b0
commit 55918ffefb
2 changed files with 21 additions and 3 deletions
@@ -216,7 +216,6 @@ export class CreateProcessPage implements OnInit {
DispatchFolder: this.dispatchFolder,
}
console.log(this.postData);
await this.processes.postParecer(this.postData).toPromise()
try {
await this.processes.postParecer(this.postData).toPromise();
@@ -241,7 +240,7 @@ export class CreateProcessPage implements OnInit {
try {
await this.processes.postDeferimento(this.postData).toPromise();
//this.executado();
this.executado();
this.toastService.successMessage('Pedido de Deferimento criado');
}
catch (error) {
@@ -219,7 +219,7 @@ export class DespachoPage implements OnInit {
}
async reexecute(note:string, documents:any) {
async reencaminhar(note:string, documents:any) {
let body = {
"serialNumber": this.serialnumber,
"action": "Reencaminhar",
@@ -229,6 +229,25 @@ export class DespachoPage implements OnInit {
},
"AttachmentList" :documents,
}
try {
await this.processes.CompleteTask(body).toPromise()
this.successMessage()
this.close();
} catch (error) {
this.badRequest()
}
}
async reexecute(note:string, documents:any) {
let body = {
"serialNumber": this.serialnumber,
"action": "Reexecução",
"ActionTypeId": 100000010,
"dataFields": {
"ReviewUserComment": note,
},
"AttachmentList" :documents,
}
try {
await this.processes.CompleteTask(body).toPromise()