@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
|
@@ -6517,6 +6517,12 @@
|
|
|
6517
6517
|
_this.hasChangeService.hasChange(_this.agenda.id);
|
|
6518
6518
|
}
|
|
6519
6519
|
});
|
|
6520
|
+
var statusAgenda = ["AGUARDANDO_CONFIRMACAO_SOLICITANTE", "AGENDADO", "AGUARDANDO_CONFIRMACAO", "REJEITADO_POR_VALIDACAO"];
|
|
6521
|
+
if (this.agenda && !statusAgenda.includes(this.agenda.status) || !this.permissions.editar) {
|
|
6522
|
+
this.formGroup.disable();
|
|
6523
|
+
this.disableButtonSave = true;
|
|
6524
|
+
}
|
|
6525
|
+
this.createdByErpDisableForm();
|
|
6520
6526
|
};
|
|
6521
6527
|
DevolucaoFormComponent.prototype.ngOnInit = function () {
|
|
6522
6528
|
var _this = this;
|
|
@@ -6544,12 +6550,6 @@
|
|
|
6544
6550
|
this.setTransportadora(this.agenda.externalTenant.cnpj);
|
|
6545
6551
|
}
|
|
6546
6552
|
this.totalEixosComposicao = this.agenda && this.agenda.veiculo ? this.agenda.veiculo.eixos || 0 : 0;
|
|
6547
|
-
var statusAgenda = ["AGUARDANDO_CONFIRMACAO_SOLICITANTE", "AGENDADO", "AGUARDANDO_CONFIRMACAO", "REJEITADO_POR_VALIDACAO"];
|
|
6548
|
-
if (this.agenda && !statusAgenda.includes(this.agenda.status) || !this.permissions.editar) {
|
|
6549
|
-
this.formGroup.disable();
|
|
6550
|
-
this.disableButtonSave = true;
|
|
6551
|
-
}
|
|
6552
|
-
this.createdByErpDisableForm();
|
|
6553
6553
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
6554
6554
|
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
6555
6555
|
this.route.data.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (data) { return _this.onRouteDataChange(data); });
|