This commit is contained in:
Peter Maquiran
2021-08-11 10:52:31 +01:00
parent dcbe98df94
commit 4bcaba8ee0
11 changed files with 248 additions and 23 deletions
+58
View File
@@ -0,0 +1,58 @@
import { Injectable } from '@angular/core';
import { ProcessesService } from '../services/processes.service';
@Injectable({
providedIn: 'root'
})
export class DeplomaService {
constructor(
private processes: ProcessesService,
) { }
async askSignature({note, documents, serialNumber}) {
let body = {
"serialNumber": serialNumber,
"action": "Aprovar",
"ActionTypeId": 99999840,
"dataFields": {
"ReviewUserComment": note,
},
"AttachmentList" :documents,
}
return this.processes.CompleteTask(body)
}
async askToChange({note, documents, serialNumber}) {
let body = {
"serialNumber": serialNumber,
"action": "Retificar",
"ActionTypeId": 99999841,
"dataFields": {
"ReviewUserComment": note,
},
"AttachmentList" :documents,
}
return this.processes.CompleteTask(body)
}
async finish({note, documents, serialNumber}) {
let body = {
"serialNumber": serialNumber,
"action": "Concluir",
"ActionTypeId": 95,
"dataFields": {
"ReviewUserComment": note,
},
"AttachmentList" :documents,
}
return this.processes.CompleteTask(body);
}
}