mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add attachmente
This commit is contained in:
@@ -105,6 +105,14 @@ export class CreateProcessPage implements OnInit {
|
||||
this.task = this.navParams.get('task');
|
||||
this.fulltask = this.navParams.get('fulltask');
|
||||
|
||||
|
||||
console.log('this.fulltask', this.fulltask)
|
||||
|
||||
|
||||
if(this.fulltask?.Documents) {
|
||||
this.documents = this.fulltask.Documents
|
||||
}
|
||||
|
||||
if (this.task.SerialNumber) {
|
||||
this.task.serialNumber = this.task.SerialNumber
|
||||
}
|
||||
@@ -266,14 +274,14 @@ export class CreateProcessPage implements OnInit {
|
||||
|
||||
|
||||
let docs = {
|
||||
ProcessInstanceID: "",
|
||||
ProcessInstanceID: this.fulltask?.workflowInstanceDataFields?.InstanceID,
|
||||
Attachments: []
|
||||
}
|
||||
|
||||
const DocumentToSave = this.documents.map((e) => {
|
||||
const DocumentToSave = this.documents.map((e: any) => {
|
||||
return {
|
||||
ApplicationId: e.ApplicationType,
|
||||
SourceId: e.Id
|
||||
ApplicationId: e.ApplicationType || e.ApplicationId,
|
||||
SourceId: e.Id || e.DocId || e.SourceId
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user