@seniorsistemas/yms-integration 1.18.2 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-yms-integration.umd.js +6 -6
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/erp-senior/devolucao/form/devolucao-form.component.js +7 -7
- package/esm5/src/erp-senior/devolucao/form/devolucao-form.component.js +7 -7
- package/fesm2015/seniorsistemas-yms-integration.js +6 -6
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +6 -6
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
|
@@ -6457,6 +6457,12 @@ var DevolucaoFormComponent = /** @class */ (function () {
|
|
|
6457
6457
|
_this.hasChangeService.hasChange(_this.agenda.id);
|
|
6458
6458
|
}
|
|
6459
6459
|
});
|
|
6460
|
+
var statusAgenda = ["AGUARDANDO_CONFIRMACAO_SOLICITANTE", "AGENDADO", "AGUARDANDO_CONFIRMACAO", "REJEITADO_POR_VALIDACAO"];
|
|
6461
|
+
if (this.agenda && !statusAgenda.includes(this.agenda.status) || !this.permissions.editar) {
|
|
6462
|
+
this.formGroup.disable();
|
|
6463
|
+
this.disableButtonSave = true;
|
|
6464
|
+
}
|
|
6465
|
+
this.createdByErpDisableForm();
|
|
6460
6466
|
};
|
|
6461
6467
|
DevolucaoFormComponent.prototype.ngOnInit = function () {
|
|
6462
6468
|
var _this = this;
|
|
@@ -6484,12 +6490,6 @@ var DevolucaoFormComponent = /** @class */ (function () {
|
|
|
6484
6490
|
this.setTransportadora(this.agenda.externalTenant.cnpj);
|
|
6485
6491
|
}
|
|
6486
6492
|
this.totalEixosComposicao = this.agenda && this.agenda.veiculo ? this.agenda.veiculo.eixos || 0 : 0;
|
|
6487
|
-
var statusAgenda = ["AGUARDANDO_CONFIRMACAO_SOLICITANTE", "AGENDADO", "AGUARDANDO_CONFIRMACAO", "REJEITADO_POR_VALIDACAO"];
|
|
6488
|
-
if (this.agenda && !statusAgenda.includes(this.agenda.status) || !this.permissions.editar) {
|
|
6489
|
-
this.formGroup.disable();
|
|
6490
|
-
this.disableButtonSave = true;
|
|
6491
|
-
}
|
|
6492
|
-
this.createdByErpDisableForm();
|
|
6493
6493
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
6494
6494
|
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
6495
6495
|
this.route.data.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (data) { return _this.onRouteDataChange(data); });
|