mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
send attachment of creating defeimente
This commit is contained in:
+11
-2
@@ -130,7 +130,6 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
public TaskService: TaskService,
|
||||
private FilePickerWebService: FilePickerWebService,
|
||||
) {
|
||||
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.task = this.navParams.get('task');
|
||||
|
||||
@@ -178,7 +177,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
// console.log(error)
|
||||
// }
|
||||
|
||||
// console.log('this.document', this.document)
|
||||
console.log('this.document', this.document, this.task)
|
||||
|
||||
|
||||
|
||||
@@ -442,6 +441,16 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
break;
|
||||
case '2': // Deferimento
|
||||
// fix attachments
|
||||
for(const doc of this.task?.Documents || []) {
|
||||
docs.Attachments.push({
|
||||
ApplicationId: doc.ApplicationId,
|
||||
Source: 1,
|
||||
SourceId: doc.DocId,
|
||||
SourceName: doc.Assunto
|
||||
})
|
||||
}
|
||||
|
||||
this.postData = {
|
||||
DistributionType: "Paralelo",
|
||||
CountryCode: 'AO',
|
||||
|
||||
Reference in New Issue
Block a user