This commit is contained in:
Peter Maquiran
2021-08-19 16:39:26 +01:00
parent 29add3f3d5
commit c7524089e5
9 changed files with 25 additions and 15 deletions
@@ -17,6 +17,7 @@ import { ToastService } from 'src/app/services/toast.service';
import { DespachoService } from 'src/app/Rules/despacho.service'
import { Location } from '@angular/common'
import { fullTask } from 'src/app/models/dailyworktask.model';
import { Attachment, AttachmentList } from 'src/app/models/Excludetask';
@Component({
selector: 'app-despacho',
@@ -190,7 +191,7 @@ export class DespachoPage implements OnInit {
}
}
async arquivar(note:string, documents:any) {
async arquivar(note:string, documents: AttachmentList) {
let body = {
"serialNumber": this.serialnumber,
"action": "Arquivo",
@@ -159,7 +159,7 @@ export class DiplomaAssinarPage implements OnInit {
"dataFields": {
"ReviewUserComment": '',
},
"AttachmentList": [],
"AttachmentList": {},
}
const loader = this.toastService.loading()
@@ -18,6 +18,7 @@ import { ToastService } from 'src/app/services/toast.service';
import { SearchPage } from 'src/app/pages/search/search.page';
import { SearchDocument } from 'src/app/models/search-document';
import { Location } from '@angular/common';
import { AttachmentList } from 'src/app/models/Excludetask';
@Component({
selector: 'app-expediente-pr',
@@ -340,14 +341,14 @@ export class ExpedientePrPage implements OnInit {
modal.onDidDismiss().then(res => {
console.log(res);
if(res.data){
const DocumentToSave = res.data.documents.map((e) => {
const DocumentToSave = res.data.documents.map((e:SearchDocument) => {
return {
ApplicationId: e.ApplicationType,
SourceId: e.Id,
}
});
let docs = {
let docs: AttachmentList = {
ProcessInstanceID: "",
Attachments: DocumentToSave,
}