feature/gabinete-search

This commit is contained in:
Peter Maquiran
2023-05-26 14:23:37 +01:00
parent 0b3ffa3ea7
commit b2da8463b4
56 changed files with 98 additions and 186 deletions
@@ -104,7 +104,7 @@ export class CreateProcessPage implements OnInit {
this.loggeduser = SessionStore.user;
this.task = this.navParams.get('task');
this.fulltask = this.navParams.get('fulltask');
console.log(this.task)
if (this.task.SerialNumber) {
this.task.serialNumber = this.task.SerialNumber
}
@@ -157,7 +157,7 @@ export class CreateProcessPage implements OnInit {
/* By Default TypeDeadline should be 'Normal' */
this.postData.Priority = '99999861';
/* Initialize 'Subject' with the title of the expedient */
console.log('Subject', this.fulltask)
this.postData.DispatchFolder.Subject = this.task?.workflowInstanceDataFields?.Subject || this.fulltask?.workflowInstanceDataFields?.Subject;
this.profile = this.navParams.get('profile');
}
@@ -283,8 +283,6 @@ export class CreateProcessPage implements OnInit {
this.dispatchFolder.SubjectTypes = this.selectedTypes;
const loader = this.toastService.loading()
console.log(this.fulltask, 'fulltask')
if (this.fulltask.activityInstanceName == "Assinar Diploma") {
this.postData = {
DistributionType: "Paralelo",
@@ -308,7 +306,7 @@ export class CreateProcessPage implements OnInit {
}
} else {
console.log('1')
if (this.loggeduser.Profile != 'PR') {
switch (this.taskType) {
case '0': // Despacho
@@ -396,7 +394,7 @@ export class CreateProcessPage implements OnInit {
} else if (this.loggeduser.Profile == 'PR') {
switch (this.taskType) {
case '0': // Despacho PR
console.log('12')
this.postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',
@@ -428,7 +426,6 @@ export class CreateProcessPage implements OnInit {
break;
case '1': // Pedido de Parecer
console.log('13')
this.postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',
@@ -460,7 +457,7 @@ export class CreateProcessPage implements OnInit {
break;
case '2': // Pedido de Deferimento
console.log('123')
this.postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',
@@ -558,7 +555,7 @@ export class CreateProcessPage implements OnInit {
}
} else {
// console.log('unexpected error')
}
@@ -721,7 +718,7 @@ export class CreateProcessPage implements OnInit {
});
await modal.present();
modal.onDidDismiss().then((res) => {
/* console.log('!refresh list'); */
});
}