mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Improve
This commit is contained in:
@@ -49,7 +49,7 @@ export class DespachoMdService {
|
|||||||
return this.processes.CompleteTask(body)
|
return this.processes.CompleteTask(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
async executado(note:string, documents:any , serialnumber) {
|
executado(note:string, documents:any , serialnumber) {
|
||||||
|
|
||||||
let body = {
|
let body = {
|
||||||
"serialNumber": serialnumber,
|
"serialNumber": serialnumber,
|
||||||
@@ -64,4 +64,10 @@ export class DespachoMdService {
|
|||||||
return this.processes.CompleteTask(body)
|
return this.processes.CompleteTask(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
sendExpedienteToPending(serialnumber) {
|
||||||
|
|
||||||
|
return this.processes.SetTaskToPending(serialnumber)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,13 +289,15 @@ export class DespachoPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async sendExpedienteToPending() {
|
async sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
|
||||||
|
this.despachoMdService.sendExpedienteToPending(this.serialnumber).subscribe(res=>{
|
||||||
this.goBack();
|
this.goBack();
|
||||||
this.toastService.successMessage('Processo enviado para despacho')
|
this.toastService.successMessage('Processo enviado para despacho')
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
this.toastService.badRequest("Processo não enviado para despacho")
|
this.toastService.badRequest("Processo não enviado para despacho")
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async openAddNoteModal(actionName:string) {
|
async openAddNoteModal(actionName:string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user