mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Mobile deferimento bug solved
This commit is contained in:
@@ -119,7 +119,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
|
||||
openExpedientDetailPage(data) {
|
||||
|
||||
|
||||
this.openExpedientDetail.emit(data);
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ export class PedidosPage implements OnInit {
|
||||
let parecer = await this.processes.GetTasksList("Pedido de Parecer", false).toPromise();
|
||||
let parecerPr = await this.processes.GetTasksList("Pedido de Parecer do Presidente", false).toPromise();
|
||||
|
||||
|
||||
|
||||
|
||||
this.skeletonLoader = false
|
||||
|
||||
@@ -177,7 +177,7 @@ export class PedidosPage implements OnInit {
|
||||
|
||||
this.skeletonLoader = false
|
||||
|
||||
|
||||
|
||||
|
||||
this.deferimentoList = [];
|
||||
|
||||
@@ -188,7 +188,7 @@ export class PedidosPage implements OnInit {
|
||||
let date = new Date(element.taskStartDate);
|
||||
//date.setMonth(date.getMonth() + 1);
|
||||
let month = date.getMonth() + 1;
|
||||
let taskDate = date.getFullYear() + "-" + month + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
|
||||
let taskDate = date.getFullYear() + "-" + month + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
|
||||
|
||||
let task = {
|
||||
"SerialNumber": element.serialNumber,
|
||||
@@ -207,10 +207,10 @@ export class PedidosPage implements OnInit {
|
||||
this.deferimentoList.push(task);
|
||||
}
|
||||
});
|
||||
this.addPedidoToDb(this.deferimentoList);
|
||||
this.listToPresentdeferimentoList = this.sortService.sortDate(this.deferimentoList, 'CreateDate')
|
||||
this.pedidosstorage.resetdeferimento(this.listToPresentdeferimentoList);
|
||||
});
|
||||
this.addPedidoToDb(this.deferimentoList);
|
||||
this.listToPresentdeferimentoList = this.sortService.sortDate(this.deferimentoList, 'CreateDate')
|
||||
this.pedidosstorage.resetdeferimento(this.listToPresentdeferimentoList);
|
||||
|
||||
}
|
||||
|
||||
@@ -224,8 +224,8 @@ export class PedidosPage implements OnInit {
|
||||
addPedidoToDb(pedido) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
this.sqliteservice.addProcess(pedido);
|
||||
}
|
||||
this.sqliteservice.addProcess(pedido);
|
||||
}
|
||||
}
|
||||
|
||||
getFromDb() {
|
||||
@@ -257,7 +257,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
})
|
||||
this.listToPresentparecerList = this.sortService.sortArrayISODate(parecerlist);
|
||||
|
||||
|
||||
})
|
||||
|
||||
this.sqliteservice.getprocessByworkflow("Pedido de Deferimento").then((process: any[]) => {
|
||||
@@ -284,7 +284,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
})
|
||||
this.listToPresentdeferimentoList = this.sortService.sortArrayISODate(deferimentolist);
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user