a lot of changes

This commit is contained in:
Eudes Inácio
2023-09-06 21:23:21 +01:00
parent 9de3019446
commit fb1bd07ad0
25 changed files with 1187 additions and 482 deletions
@@ -69,7 +69,7 @@
appearance="fill"
class="width-100 d-block"
appearance="none">
<mat-select [(ngModel)]="selectedTypes" multiple placeholder="Selecione o tipo de assunto*">
<mat-select [(ngModel)]="selectedTypes" placeholder="Selecione o tipo de assunto*">
<mat-option *ngFor="let type of subjectTypes" value="{{type.Code}}">{{type.Description}}</mat-option>
</mat-select>
</mat-form-field>
@@ -175,6 +175,7 @@ export class CreateProcessPage implements OnInit {
}
ngOnInit() {
console.log('crete process')
this.getSubjectType();
setTimeout(() => {
this.selectedTypes = ['99999850'];
@@ -199,6 +200,7 @@ export class CreateProcessPage implements OnInit {
getSubjectType() {
this.processes.GetSubjectType().subscribe(res => {
console.log('subjectTypes',res)
this.subjectTypes = res;
});
}
@@ -315,6 +317,7 @@ export class CreateProcessPage implements OnInit {
} else {
if (this.loggeduser.Profile != 'PR') {
console.log('Despacho MD');
switch (this.taskType) {
case '0': // Despacho
this.postData = {
@@ -399,6 +402,7 @@ export class CreateProcessPage implements OnInit {
break;
}
} else if (this.loggeduser.Profile == 'PR') {
console.log('Despacho PR');
switch (this.taskType) {
case '0': // Despacho PR