mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
force PR profile to add description before making a dispach
This commit is contained in:
@@ -366,6 +366,7 @@ export class CreateProcessPage implements OnInit {
|
|||||||
}
|
}
|
||||||
console.log('this.postData', this.postData, this.taskType);
|
console.log('this.postData', this.postData, this.taskType);
|
||||||
|
|
||||||
|
if(this.postData.DispatchFolder.Message){
|
||||||
try {
|
try {
|
||||||
await this.despachoService.createDespacho(this.postData).toPromise();
|
await this.despachoService.createDespacho(this.postData).toPromise();
|
||||||
await this.despachoService.CompleteTask({serialNumber: this.task.serialNumber}).toPromise();
|
await this.despachoService.CompleteTask({serialNumber: this.task.serialNumber}).toPromise();
|
||||||
@@ -375,9 +376,13 @@ export class CreateProcessPage implements OnInit {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não efectuado');
|
this.toastService.badRequest('Processo não efectuado');
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
//loader.remove();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.toastService.badRequest('Por favor adicione uma nota');
|
||||||
|
}
|
||||||
|
loader.remove();
|
||||||
break;
|
break;
|
||||||
case '1': // Pedido de Parecer
|
case '1': // Pedido de Parecer
|
||||||
this.postData = {
|
this.postData = {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<fa-icon icon="chevron-left" class="menu-icon"></fa-icon>
|
<fa-icon icon="chevron-left" class="menu-icon"></fa-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="middle">
|
<div class="middle add-ellipsis">
|
||||||
{{file.title}}
|
{{file.title}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+9
-1
@@ -459,6 +459,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this.postData.DispatchFolder.Message){
|
||||||
try {
|
try {
|
||||||
|
|
||||||
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
||||||
@@ -468,8 +469,15 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
|
|
||||||
await this.toastService.badRequest('Processo não efetuado')
|
await this.toastService.badRequest('Processo não efetuado')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
//loader.remove()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.toastService.badRequest('Por favor adicione uma nota');
|
||||||
|
}
|
||||||
|
loader.remove();
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user