mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
<ion-content>
|
||||
<div class="header-content width-100">
|
||||
<div class="header-title d-flex width-100">
|
||||
<p>Deseja retirar este expediente da sua caixa de correspondência?</p>
|
||||
<h3>Deseja retirar este expediente da sua caixa de correspondência?</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-body width-100">
|
||||
|
||||
+54
-58
@@ -163,12 +163,9 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
};
|
||||
})
|
||||
|
||||
|
||||
let docs = {
|
||||
ProcessInstanceID: "",
|
||||
Attachments: [
|
||||
|
||||
]
|
||||
Attachments: []
|
||||
}
|
||||
|
||||
const DocumentToSave = this.documents.map((e) => {
|
||||
@@ -196,21 +193,22 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
//SubjectTypes: [],
|
||||
}
|
||||
try {
|
||||
let action_despacho = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 94,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postDespatcho(this.postData).toPromise();
|
||||
await this.successMessage('Processo efetuado')
|
||||
this.modalController.dismiss(action_despacho);
|
||||
//await this.successMessage('Processo efetuado');
|
||||
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
let action_despacho = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 94,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_despacho);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
@@ -225,21 +223,20 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
|
||||
try {
|
||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise()
|
||||
await this.successMessage('Processo efetuado')
|
||||
let action_parecer = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 92,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postParecer(this.postData).toPromise();
|
||||
this.modalController.dismiss(action_parecer);
|
||||
//await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
|
||||
let action_parecer = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 92,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_parecer);
|
||||
break;
|
||||
case '2':
|
||||
this.postData = {
|
||||
@@ -253,21 +250,21 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
//console.log(this.postData);
|
||||
try {
|
||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise()
|
||||
await this.successMessage('Processo efetuado')
|
||||
let action_deferimento = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 93,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postDeferimento(this.postData).toPromise();
|
||||
this.modalController.dismiss(action_deferimento);
|
||||
//await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
let action_deferimento = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 93,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_deferimento);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -290,21 +287,21 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
console.log(this.postData);
|
||||
try {
|
||||
let action_despacho_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881 ,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postDespatchoPr(this.postData).toPromise();
|
||||
await this.successMessage('Processo efetuado')
|
||||
this.modalController.dismiss(action_despacho_pr);
|
||||
//await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
console.log('this.taskResult', this.taskResult);
|
||||
let action_despacho_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881 ,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_despacho_pr);
|
||||
break;
|
||||
|
||||
case '1':
|
||||
@@ -319,21 +316,20 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
|
||||
try {
|
||||
let action_parecer_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.taskResult = await this.processes.postParecerPr(this.postData).toPromise();
|
||||
await this.successMessage('Processo efetuado')
|
||||
this.modalController.dismiss(action_parecer_pr);
|
||||
//await this.successMessage('Processo efetuado')
|
||||
} catch (error) {
|
||||
await this.badRequest('Processo não efetuado')
|
||||
}
|
||||
|
||||
let action_parecer_pr = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Tratado",
|
||||
"ActionTypeId": 99999881,
|
||||
"dataFields": {
|
||||
"Note": "",
|
||||
}
|
||||
}
|
||||
this.modalController.dismiss(action_parecer_pr);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
+1
-6
@@ -196,18 +196,13 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
modal.onDidDismiss().then(res=>{
|
||||
console.log(res['data']);
|
||||
let body = res['data'];
|
||||
// alert('close '+ res['data'])
|
||||
if(res['data']){
|
||||
console.log('open discart');
|
||||
|
||||
console.log('open discart')
|
||||
this.distartExpedientModal(body);
|
||||
|
||||
}
|
||||
else{
|
||||
console.log('Not open');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user