This commit is contained in:
Peter Maquiran
2021-08-05 16:59:17 +01:00
parent 4572aa2c24
commit c081a1ac28
3 changed files with 56 additions and 40 deletions
+55 -13
View File
@@ -15,6 +15,10 @@ export class DespachoService {
action: "Arquivo" | "Reencaminhar"
actions: {
'Tarefa do Despacho': 'Tarefa de Despacho' | 'Concluir' | 'rexecucao'
}
constructor(
private processes: ProcessesService,
public p: PermissionService
@@ -35,20 +39,20 @@ export class DespachoService {
return this.processes.CompleteTask(body)
}
reencaminhar(note:string, documents:any, serialnumber) {
// reencaminhar(note:string, documents:any, serialnumber) {
let body = {
"serialNumber": serialnumber,
"action": "Reencaminhar",
"ActionTypeId": 98,
"dataFields": {
"ReviewUserComment": note,
},
"AttachmentList" :documents,
}
// let body = {
// "serialNumber": serialnumber,
// "action": "Reencaminhar",
// "ActionTypeId": 98,
// "dataFields": {
// "ReviewUserComment": note,
// },
// "AttachmentList" :documents,
// }
return this.processes.CompleteTask(body)
}
// return this.processes.CompleteTask(body)
// }
executado(note:string, documents:any , serialnumber) {
@@ -65,6 +69,45 @@ export class DespachoService {
return this.processes.CompleteTask(body)
}
solicitarParecer(task) {
// let body = {
// "serialNumber": serialnumber,
// "action": "Conhecimento",
// "ActionTypeId": 92,
// "dataFields": {
// "ReviewUserComment": note,
// },
// "AttachmentList" :documents,
// }
}
EfectuarDespacho(task) {
// let body = {
// "serialNumber": serialnumber,
// "action": "Conhecimento",
// "ActionTypeId": 94,
// "dataFields": {
// "ReviewUserComment": note,
// },
// "AttachmentList" :documents,
// }
}
rexecucao({note, documents, serialnumber}) {
let body = {
"serialNumber": serialnumber,
"action": "Reexecução",
"ActionTypeId": 100000010,
"dataFields": {
"ReviewUserComment": note,
},
"AttachmentList" :documents,
}
return this.processes.CompleteTask(body)
}
CompleteTask({serialNumber}) {
const body = {
@@ -98,7 +141,6 @@ export class DespachoService {
}
/**
*
* @param body any
* @returns promise
* @description for both profile PR and MDGPR