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
@@ -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()