mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
<div class="buttons width-100" *ngIf="task.activityInstanceName == 'Assinar Diploma'">
|
||||
<button (click)="openAddNoteModal('Assinar Diploma')" class="btn-cancel" shape="round" >Assinado</button>
|
||||
</div>
|
||||
<div class="buttons width-100" *ngIf="task.activityInstanceName == 'Assinar Diploma'">
|
||||
<button (click)="openAddNoteModal('AssinarNew')" class="btn-cancel" shape="round" >Assinar</button>
|
||||
</div>
|
||||
<div class="buttons width-100">
|
||||
<button (click)="openAddNoteModal('Arquivo')" class="btn-cancel" shape="round" >Arquivar</button>
|
||||
</div>
|
||||
|
||||
@@ -95,6 +95,8 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
} else if (actionName == 'Arquivo') {
|
||||
await this.arquivar(res.data.note, docs);
|
||||
this.goBack();
|
||||
} else if (actionName =='AssinarNew') {
|
||||
await this.AssinarNew(res.data.note, docs)
|
||||
}
|
||||
}
|
||||
}, (error) => {
|
||||
@@ -199,8 +201,11 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
"ActionTypeId": 99999842,
|
||||
"dataFields": {
|
||||
"ReviewUserComment": note,
|
||||
"InstanceIDNew": this.task.InstanceID,
|
||||
},
|
||||
"AttachmentList" : {
|
||||
"ProcessInstanceID": this.task.InstanceID
|
||||
},
|
||||
"AttachmentList" :documents,
|
||||
}
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
@@ -220,6 +225,31 @@ export class DiplomaOptionsPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
async AssinarNew(note:string, documents:any) {
|
||||
let body = {
|
||||
"InstanceId": this.task.InstanceID,
|
||||
"FolderId": this.task.FolderID,
|
||||
"DraftIds": "163;164;77",
|
||||
"OriginalFileName": "Doc1;Doc2;Doc3"
|
||||
}
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
await this.processes.presidentialActionsSignature(body).toPromise()
|
||||
|
||||
this.httpErroHandle.httpsSucessMessagge('Assinado')
|
||||
this.TaskService.loadDiplomas()
|
||||
this.goBack();
|
||||
} catch (error) {
|
||||
this.httpErroHandle.httpStatusHandle(error)
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
async finish(note:string, documents:any){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user