This commit is contained in:
Peter Maquiran
2021-07-16 19:32:13 +01:00
parent c028e4e6f5
commit 050f84bc8e
13 changed files with 49 additions and 48 deletions
@@ -22,6 +22,7 @@ import { User } from 'src/app/models/user.model';
import { BadRequestPage } from 'src/app/shared/popover/bad-request/bad-request.page';
import { ToastService } from 'src/app/services/toast.service';
import { ForwardPage } from 'src/app/modals/forward/forward.page';
import { async } from '@angular/core/testing';
@Component({
selector: 'app-pedido',
@@ -76,7 +77,7 @@ export class PedidoPage implements OnInit {
this.LoadTaskDetail(this.serialnumber);
}
close(){
close() {
this.modalController.dismiss();
}
notImplemented(){
@@ -437,8 +438,8 @@ export class PedidoPage implements OnInit {
await modal.present();
modal.onDidDismiss().then(res => {
const DocumentToSave = res.data.documents.map((e) => {
modal.onDidDismiss().then( async (res) => {
const DocumentToSave = await res.data.documents.map( async (e) => {
return {
ApplicationId: e.ApplicationType,
SourceId: e.Id,
@@ -451,15 +452,15 @@ export class PedidoPage implements OnInit {
if(res.data){
if(actionName == 'Solicitar Reapreciação') {
this.repreciar(res.data.note, docs);
await this.repreciar(res.data.note, docs);
this.goBack();
}
else if(actionName == 'Arquivar'){
this.arquivar(res.data.note, docs);
await this.arquivar(res.data.note, docs);
this.goBack();
}
else if(actionName == 'Assignar'){
this.assignar(res.data.note, docs);
await this.assignar(res.data.note, docs);
}
}
});