mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Remove relevant console log,
This commit is contained in:
@@ -63,7 +63,7 @@ export class ApproveEventPage implements OnInit {
|
||||
private storage: Storage
|
||||
) {
|
||||
this.activatedRoute.paramMap.subscribe(params => {
|
||||
// console.log(params["params"]);
|
||||
//
|
||||
|
||||
if (params["params"].serialNumber) {
|
||||
this.serialNumber = params["params"].serialNumber;
|
||||
@@ -80,8 +80,8 @@ export class ApproveEventPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.serialNumber);
|
||||
console.log(this.caller);
|
||||
|
||||
|
||||
|
||||
this.getTask();
|
||||
this.backgroundservice.registerBackService('Online', () => {
|
||||
@@ -108,7 +108,7 @@ export class ApproveEventPage implements OnInit {
|
||||
addProcessToDB(data) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
this.storage.set('approve_event_detils', data).then(() => {
|
||||
console.log('APPROVE EVENT DETAILS SAVED')
|
||||
|
||||
})
|
||||
} else {
|
||||
this.sqliteservice.updateProcess(data);
|
||||
@@ -120,7 +120,7 @@ export class ApproveEventPage implements OnInit {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
this.storage.get('approve_event_detils').then((event) => {
|
||||
this.loadedEvent = event
|
||||
console.log('offline event', this.loadedEvent);
|
||||
|
||||
|
||||
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
||||
|
||||
@@ -128,13 +128,13 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
let instanceId = this.loadedEvent.workflowInstanceDataFields.InstanceId;
|
||||
this.loadedAttachments = this.loadedEvent.Documents;
|
||||
console.log('Attatara', this.loadedAttachments)
|
||||
|
||||
})
|
||||
} else {
|
||||
this.platform.ready().then(() => {
|
||||
|
||||
this.sqliteservice.getProcessById(this.serialNumber).then((process) => {
|
||||
console.log('event aprove serial', process)
|
||||
|
||||
|
||||
var doc;
|
||||
var action = [];
|
||||
@@ -182,7 +182,7 @@ export class ApproveEventPage implements OnInit {
|
||||
}
|
||||
|
||||
this.loadedEvent = task
|
||||
console.log('offline event', this.loadedEvent);
|
||||
|
||||
|
||||
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
||||
|
||||
@@ -190,13 +190,13 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
let instanceId = this.loadedEvent.workflowInstanceDataFields.InstanceId;
|
||||
this.loadedAttachments = this.loadedEvent.Documents;
|
||||
console.log('Attatara', this.loadedAttachments)
|
||||
|
||||
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
console.log('Offlineee')
|
||||
|
||||
}
|
||||
|
||||
async getTask() {
|
||||
@@ -204,7 +204,7 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
this.loadedEvent = await this.processes.GetTask(this.serialNumber).toPromise();
|
||||
this.addProcessToDB(this.loadedEvent)
|
||||
console.log(this.loadedEvent);
|
||||
|
||||
|
||||
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
||||
|
||||
@@ -217,7 +217,7 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
async approveTask(serialNumber: string) {
|
||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||
console.log(body);
|
||||
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
@@ -246,7 +246,7 @@ export class ApproveEventPage implements OnInit {
|
||||
}
|
||||
|
||||
async emendTask(serialNumber: string) {
|
||||
console.log('Desktop');
|
||||
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: EmendMessageModalPage,
|
||||
@@ -260,7 +260,7 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
modal.onDidDismiss()
|
||||
.then(async (res) => {
|
||||
console.log(res.data);
|
||||
|
||||
|
||||
if (res.data !== '') {
|
||||
let body = {
|
||||
@@ -270,14 +270,14 @@ export class ApproveEventPage implements OnInit {
|
||||
"ReviewUserComment": res.data,
|
||||
}
|
||||
}
|
||||
console.log(body);
|
||||
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
await this.processes.PostTaskAction(body).toPromise()
|
||||
.catch(() => {
|
||||
console.log('Send event to approve for revition')
|
||||
|
||||
this.offlineManager.storeRequestData('event-listRever', body);
|
||||
});
|
||||
this.toastService._successMessage('Pedido enviado');
|
||||
@@ -300,7 +300,7 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
async rejeitar(serialNumber: string) {
|
||||
let body = { "serialNumber": serialNumber, "action": "Rejeitar" }
|
||||
console.log(body);
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
try {
|
||||
await this.processes.PostTaskAction(body).toPromise();
|
||||
@@ -366,7 +366,7 @@ export class ApproveEventPage implements OnInit {
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
console.log(res.data);
|
||||
|
||||
|
||||
if (res.data !== '') {
|
||||
let body = {
|
||||
@@ -376,7 +376,7 @@ export class ApproveEventPage implements OnInit {
|
||||
"ReviewUserComment": res.data,
|
||||
}
|
||||
}
|
||||
console.log(body);
|
||||
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user