fix actions and draft data object

This commit is contained in:
Peter Maquiran
2024-01-17 10:25:16 +01:00
parent 69ee75b039
commit 4314ae1bff
35 changed files with 556 additions and 305 deletions
@@ -108,7 +108,7 @@ export class CreateProcessPage implements OnInit {
this.fulltask = this.navParams.get('fulltask');
console.log('this.fulltask', this.fulltask)
// console.log('this.fulltask', this.fulltask)
// if(this.fulltask?.Documents) {
@@ -121,7 +121,7 @@ export class CreateProcessPage implements OnInit {
this.taskType = this.navParams.get('taskAction');
console.log('this.taskType ',this.taskType )
// console.log('this.taskType ',this.taskType )
this.postData = new Despacho();
this.participants = this.participants = new Array();
@@ -132,7 +132,7 @@ export class CreateProcessPage implements OnInit {
} else {
this.placeholderSubject = 'Selecione o tipo de assunto*'
}
let NumberPDPP;
@@ -184,7 +184,7 @@ export class CreateProcessPage implements OnInit {
}
ngOnInit() {
console.log('crete process')
// console.log('crete process')
this.getSubjectType();
/* setTimeout(() => {
this.selectedTypes = ['99999850'];
@@ -209,7 +209,7 @@ export class CreateProcessPage implements OnInit {
getSubjectType() {
this.processes.GetSubjectType().subscribe(res => {
console.log('subjectTypes',res)
// console.log('subjectTypes',res)
this.subjectTypes = res;
});
}
@@ -326,7 +326,7 @@ export class CreateProcessPage implements OnInit {
} else {
if (this.loggeduser.Profile != 'PR') {
console.log('Despacho MD');
// console.log('Despacho MD');
switch (this.taskType) {
case '0': // Despacho
this.postData = {