some changes

This commit is contained in:
tiago.kayaya
2021-06-04 15:59:36 +01:00
parent 19f270f425
commit d37b6c58dc
10 changed files with 14 additions and 90 deletions
@@ -227,20 +227,19 @@ export class ExpedienteDetailPage implements OnInit {
await modal.present();
modal.onDidDismiss().then( async (res)=>{
console.log(res['data']);
console.log(body);
if(body == 'descartar'){
if(res['data']== 'Yes'){
let otherbody = {
"serialNumber": this.task.SerialNumber,
"action": "Passivo",
"ActionTypeId": 94,
"ActionTypeId": 99999877,
"dataFields": {
"Note": "",
}
}
try {
try {
await this.processes.CompleteTask(otherbody).toPromise()
this.successMessage()
} catch (error) {
@@ -255,7 +254,7 @@ export class ExpedienteDetailPage implements OnInit {
else{
if(res['data']== 'Yes'){
try {
await this.processes.CompleteTask(body).toPromise()
//await this.processes.CompleteTask(body).toPromise()
this.successMessage()
} catch (error) {
this.badRequest()