@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.
@@ -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); });