mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +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
|
||||
|
||||
@@ -237,32 +237,6 @@ export class DespachoPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
async reencaminhar(note:string, documents:any) {
|
||||
let body = {
|
||||
"serialNumber": this.serialnumber,
|
||||
"action": "Reencaminhar",
|
||||
"ActionTypeId": 98,
|
||||
"dataFields": {
|
||||
"ReviewUserComment": note,
|
||||
},
|
||||
"AttachmentList" :documents,
|
||||
}
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService.successMessage()
|
||||
this.close();
|
||||
} catch (error) {
|
||||
this.toastService.badRequest()
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async reexecute(note:string, documents:any) {
|
||||
let body = {
|
||||
"serialNumber": this.serialnumber,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
Pedidos de Parecer
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="deferimento">
|
||||
Pedidos de Defererimento
|
||||
Pedidos de Deferimento
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
</ion-toolbar>
|
||||
|
||||
Reference in New Issue
Block a user