mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user