This commit is contained in:
tiago.kayaya
2021-08-02 08:35:16 +01:00
98 changed files with 844 additions and 352 deletions
@@ -15,8 +15,7 @@ import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
import { DespachosOptionsPage } from 'src/app/shared/popover/despachos-options/despachos-options.page';
import { ToastService } from 'src/app/services/toast.service';
import { DespachoMdService } from 'src/app/Rules/despacho-md.service'
import { NavigationService } from 'src/app/services/navigation.service';
import { DespachoService } from 'src/app/Rules/despacho.service'
import { Location } from '@angular/common'
@Component({
@@ -47,14 +46,10 @@ export class DespachoPage implements OnInit {
private events: EventsService,
private menu: MenuController,
private modalController: ModalController,
private alertService: AlertService,
public popoverController: PopoverController,
private activatedRoute: ActivatedRoute,
private router: Router,
private animationController: AnimationController,
private toastService: ToastService,
private despachoMdService: DespachoMdService,
private navigationService: NavigationService,
private despachoService: DespachoService,
private location: Location
) {
@@ -205,7 +200,7 @@ export class DespachoPage implements OnInit {
const loader = this.toastService.loading()
try {
await this.despachoMdService.executado(note, documents, this.serialnumber)
await this.despachoService.executado(note, documents, this.serialnumber)
this.toastService.successMessage('Processo criado')
this.close();
} catch(error) {
@@ -301,7 +296,7 @@ export class DespachoPage implements OnInit {
async sendExpedienteToPending() {
this.despachoMdService.sendExpedienteToPending(this.serialnumber).subscribe(res=>{
this.despachoService.sendExpedienteToPending(this.serialnumber).subscribe(res=>{
this.goBack();
this.toastService.successMessage('Processo enviado para despacho')
},
@@ -19,6 +19,7 @@ import { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.pag
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
import { task } from 'src/app/models/ExpedientTaskModalPage';
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
parse: {
@@ -49,7 +50,7 @@ export class ExpedientTaskModalPage implements OnInit {
'Solicitar Deferimento'
];
taskType:string;
task: any;
task: task;
taskParticipants: any = [];
taskParticipantsCc: any = [];