mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
save
This commit is contained in:
+1
-3
@@ -74,9 +74,7 @@ export class DiplomaAssinarPage implements OnInit {
|
|||||||
component: DeplomaOptionsPage,
|
component: DeplomaOptionsPage,
|
||||||
cssClass: 'exp-options',
|
cssClass: 'exp-options',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
task: this.task,
|
serialNumber: this.task.SerialNumber,
|
||||||
fulltask: this.fulltask,
|
|
||||||
taskAction:taskAction,
|
|
||||||
showEnviarPendentes: false
|
showEnviarPendentes: false
|
||||||
},
|
},
|
||||||
translucent: true
|
translucent: true
|
||||||
|
|||||||
@@ -5,11 +5,16 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="buttons">
|
<!-- <div class="buttons">
|
||||||
<button (click)="openAddNoteModal('Solicitar assinatura')" class="btn-cancel" shape="round" >Solicitar assinatura</button>
|
<button (click)="openAddNoteModal('Solicitar assinatura')" class="btn-cancel" shape="round" >Solicitar assinatura</button>
|
||||||
<button (click)="openAddNoteModal('Solicitar alteração')" class="btn-cancel" shape="round" >Solicitar alteração</button>
|
<button (click)="openAddNoteModal('Solicitar alteração')" class="btn-cancel" shape="round" >Solicitar alteração</button>
|
||||||
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||||
<div class="solid"></div>
|
<div class="solid"></div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<div class="buttons">
|
||||||
|
<button (click)="Assinar()" class="btn-cancel" shape="round" >Assinado</button>
|
||||||
|
<div class="solid"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -36,8 +36,41 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
console.log(this.serialnumber);
|
console.log(this.serialnumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async Assinar(){
|
||||||
|
this.popoverController.dismiss();
|
||||||
|
|
||||||
async openAddNoteModal(actionName:string) {
|
let body = {
|
||||||
|
"action": "Assinado",
|
||||||
|
"serialNumber": this.serialnumber,
|
||||||
|
"ActionTypeId": 99999842,
|
||||||
|
"dataFields": {
|
||||||
|
"ReviewUserComment": '',
|
||||||
|
},
|
||||||
|
"AttachmentList": [],
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(body);
|
||||||
|
|
||||||
|
|
||||||
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
|
try {
|
||||||
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
|
||||||
|
this.toastService.successMessage(false, ()=>{
|
||||||
|
this.goBack();
|
||||||
|
})
|
||||||
|
} catch (error) {
|
||||||
|
this.toastService.badRequest()
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
loader.remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* async openAddNoteModal(actionName:string) {
|
||||||
this.popoverController.dismiss();
|
this.popoverController.dismiss();
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 800){
|
if( window.innerWidth <= 800){
|
||||||
@@ -71,6 +104,8 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
Attachments: DocumentToSave,
|
Attachments: DocumentToSave,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.Assinar();
|
||||||
|
|
||||||
|
|
||||||
if(actionName == 'Solicitar assinatura'){
|
if(actionName == 'Solicitar assinatura'){
|
||||||
await this.askSignature(res.data.note, docs);
|
await this.askSignature(res.data.note, docs);
|
||||||
@@ -82,9 +117,9 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
} */
|
||||||
|
|
||||||
async askToChange(note:string, documents:any){
|
/* async askToChange(note:string, documents:any){
|
||||||
let body = {
|
let body = {
|
||||||
"serialNumber": this.serialnumber,
|
"serialNumber": this.serialnumber,
|
||||||
"action": "Retificar",
|
"action": "Retificar",
|
||||||
@@ -153,12 +188,11 @@ export class DeplomaOptionsPage implements OnInit {
|
|||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} */
|
||||||
|
|
||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
this.close();
|
this.router.navigate(['/home/gabinete-digital/diplomas-assinar']);
|
||||||
this.router.navigate(['/home/gabinete-digital/diplomas']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user