@seniorsistemas/yms-integration 1.5.1 → 1.5.2
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 +61 -26
- 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/index.js +2 -1
- package/esm2015/src/erp-senior/core/entities/devolucao/devolucao.module.js +3 -5
- package/esm2015/src/erp-senior/core/entities/processo-avulso/processo-avulso.module.js +3 -2
- package/esm2015/src/erp-senior/core/entities/recebimento-contrato/recebimento.module.js +3 -5
- package/esm2015/src/erp-senior/core/entities/recebimento-ordem-compra/recebimento-ordem-compra.module.js +3 -5
- package/esm2015/src/erp-senior/core/erp-form-config/erp-form-config-service.js +21 -0
- package/esm2015/src/erp-senior/core/erp-process-data/erp-process-data.js +1 -1
- package/esm2015/src/erp-senior/devolucao/form/devolucao-form.component.js +8 -4
- package/esm2015/src/erp-senior/expedicao/form/expedicao-form.component.js +12 -4
- package/esm2015/src/erp-senior/processo-avulso/form/processo-avulso-form.component.js +8 -4
- package/esm2015/src/erp-senior/recebimento/form/recebimento-form.component.js +8 -4
- package/esm2015/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +8 -4
- package/esm5/index.js +2 -1
- package/esm5/src/erp-senior/core/entities/devolucao/devolucao.module.js +3 -5
- package/esm5/src/erp-senior/core/entities/processo-avulso/processo-avulso.module.js +3 -2
- package/esm5/src/erp-senior/core/entities/recebimento-contrato/recebimento.module.js +3 -5
- package/esm5/src/erp-senior/core/entities/recebimento-ordem-compra/recebimento-ordem-compra.module.js +3 -5
- package/esm5/src/erp-senior/core/erp-form-config/erp-form-config-service.js +26 -0
- package/esm5/src/erp-senior/core/erp-process-data/erp-process-data.js +1 -1
- package/esm5/src/erp-senior/devolucao/form/devolucao-form.component.js +8 -4
- package/esm5/src/erp-senior/expedicao/form/expedicao-form.component.js +12 -4
- package/esm5/src/erp-senior/processo-avulso/form/processo-avulso-form.component.js +8 -4
- package/esm5/src/erp-senior/recebimento/form/recebimento-form.component.js +8 -4
- package/esm5/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +8 -4
- package/fesm2015/seniorsistemas-yms-integration.js +56 -27
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +61 -27
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/erp-senior/core/erp-form-config/erp-form-config-service.d.ts +7 -0
- package/src/erp-senior/devolucao/form/devolucao-form.component.d.ts +4 -1
- package/src/erp-senior/expedicao/form/expedicao-form.component.d.ts +5 -1
- package/src/erp-senior/processo-avulso/form/processo-avulso-form.component.d.ts +4 -1
- package/src/erp-senior/recebimento/form/recebimento-form.component.d.ts +5 -3
- package/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.d.ts +4 -1
|
@@ -3689,8 +3689,28 @@
|
|
|
3689
3689
|
return ErpProcessService;
|
|
3690
3690
|
}());
|
|
3691
3691
|
|
|
3692
|
-
|
|
3693
|
-
|
|
3692
|
+
var ErpFormConfigService = /** @class */ (function () {
|
|
3693
|
+
function ErpFormConfigService() {
|
|
3694
|
+
this.messageSource = new rxjs.BehaviorSubject(false);
|
|
3695
|
+
this.current = this.messageSource.asObservable();
|
|
3696
|
+
}
|
|
3697
|
+
ErpFormConfigService.prototype.enableRevalidation = function () {
|
|
3698
|
+
this.messageSource.next(true);
|
|
3699
|
+
};
|
|
3700
|
+
Object.defineProperty(ErpFormConfigService.prototype, "enable", {
|
|
3701
|
+
get: function () {
|
|
3702
|
+
return this.messageSource.value;
|
|
3703
|
+
},
|
|
3704
|
+
enumerable: true,
|
|
3705
|
+
configurable: true
|
|
3706
|
+
});
|
|
3707
|
+
ErpFormConfigService = __decorate([
|
|
3708
|
+
core.Injectable(),
|
|
3709
|
+
__metadata("design:paramtypes", [])
|
|
3710
|
+
], ErpFormConfigService);
|
|
3711
|
+
return ErpFormConfigService;
|
|
3712
|
+
}());
|
|
3713
|
+
|
|
3694
3714
|
var RecebimentoContratoModule = /** @class */ (function () {
|
|
3695
3715
|
function RecebimentoContratoModule() {
|
|
3696
3716
|
}
|
|
@@ -3708,6 +3728,7 @@
|
|
|
3708
3728
|
providers: [
|
|
3709
3729
|
RecebimentoContratoService,
|
|
3710
3730
|
ErpProcessService,
|
|
3731
|
+
ErpFormConfigService,
|
|
3711
3732
|
],
|
|
3712
3733
|
declarations: [
|
|
3713
3734
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -4003,10 +4024,6 @@
|
|
|
4003
4024
|
return DevolucaoService;
|
|
4004
4025
|
}(EntityService));
|
|
4005
4026
|
|
|
4006
|
-
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
4007
|
-
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
4008
|
-
/*{CA:PROJECT_IMPORTS:START}*/
|
|
4009
|
-
/*{CA:PROJECT_IMPORTS:END}*/
|
|
4010
4027
|
var DevolucaoModule = /** @class */ (function () {
|
|
4011
4028
|
function DevolucaoModule() {
|
|
4012
4029
|
}
|
|
@@ -4024,6 +4041,7 @@
|
|
|
4024
4041
|
providers: [
|
|
4025
4042
|
DevolucaoService,
|
|
4026
4043
|
ErpProcessService,
|
|
4044
|
+
ErpFormConfigService,
|
|
4027
4045
|
],
|
|
4028
4046
|
declarations: [
|
|
4029
4047
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -4097,10 +4115,6 @@
|
|
|
4097
4115
|
return RecebimentoOrdemCompraService;
|
|
4098
4116
|
}(EntityService));
|
|
4099
4117
|
|
|
4100
|
-
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
4101
|
-
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
4102
|
-
/*{CA:PROJECT_IMPORTS:START}*/
|
|
4103
|
-
/*{CA:PROJECT_IMPORTS:END}*/
|
|
4104
4118
|
var RecebimentoOrdemCompraModule = /** @class */ (function () {
|
|
4105
4119
|
function RecebimentoOrdemCompraModule() {
|
|
4106
4120
|
}
|
|
@@ -4118,6 +4132,7 @@
|
|
|
4118
4132
|
providers: [
|
|
4119
4133
|
RecebimentoOrdemCompraService,
|
|
4120
4134
|
ErpProcessService,
|
|
4135
|
+
ErpFormConfigService,
|
|
4121
4136
|
],
|
|
4122
4137
|
declarations: [
|
|
4123
4138
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -4198,7 +4213,7 @@
|
|
|
4198
4213
|
},
|
|
4199
4214
|
]),
|
|
4200
4215
|
],
|
|
4201
|
-
providers: [ProcessoAvulsoService, ErpProcessService]
|
|
4216
|
+
providers: [ProcessoAvulsoService, ErpProcessService, ErpFormConfigService]
|
|
4202
4217
|
})
|
|
4203
4218
|
], ProcessoAvulsoModule);
|
|
4204
4219
|
return ProcessoAvulsoModule;
|
|
@@ -4682,7 +4697,7 @@
|
|
|
4682
4697
|
})(StatusAgenda || (StatusAgenda = {}));
|
|
4683
4698
|
|
|
4684
4699
|
var DevolucaoFormComponent = /** @class */ (function () {
|
|
4685
|
-
function DevolucaoFormComponent(fb, router, translate, filialService, pessoaService, produtoService, derivacaoService, origemMercadoriaService, transportadoraService, devolucaoService, messageService, route, override, confirmationService, agendaService, erpProcessService) {
|
|
4700
|
+
function DevolucaoFormComponent(fb, router, translate, filialService, pessoaService, produtoService, derivacaoService, origemMercadoriaService, transportadoraService, devolucaoService, messageService, route, override, confirmationService, agendaService, erpProcessService, erpFormConfigService) {
|
|
4686
4701
|
this.fb = fb;
|
|
4687
4702
|
this.router = router;
|
|
4688
4703
|
this.translate = translate;
|
|
@@ -4699,6 +4714,7 @@
|
|
|
4699
4714
|
this.confirmationService = confirmationService;
|
|
4700
4715
|
this.agendaService = agendaService;
|
|
4701
4716
|
this.erpProcessService = erpProcessService;
|
|
4717
|
+
this.erpFormConfigService = erpFormConfigService;
|
|
4702
4718
|
this.filialLookupDisplayFields = ["codigo", "nome", "empresa.nome"];
|
|
4703
4719
|
this.filialAdvancedDisplayFields = ["id", "codigo", "nome", "empresa.nome"];
|
|
4704
4720
|
this.filialLookupSeparator = " - ";
|
|
@@ -4765,6 +4781,7 @@
|
|
|
4765
4781
|
}
|
|
4766
4782
|
this.createdByErpDisableForm();
|
|
4767
4783
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
4784
|
+
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
4768
4785
|
};
|
|
4769
4786
|
DevolucaoFormComponent.prototype.createdByErpDisableForm = function () {
|
|
4770
4787
|
if (this.agenda && this.agenda.createdByErp) {
|
|
@@ -5073,7 +5090,7 @@
|
|
|
5073
5090
|
this.validateAllFormFields(this.formGroup);
|
|
5074
5091
|
}
|
|
5075
5092
|
this.loading = true;
|
|
5076
|
-
if (this.isNew()) {
|
|
5093
|
+
if (this.isNew() || !this.enableRevalidation) {
|
|
5077
5094
|
return this.saveAndInit(start);
|
|
5078
5095
|
}
|
|
5079
5096
|
this.erpProcessData = this.erpProcessService.builderErpProcessData(this.erpProcessData, this.formGroup);
|
|
@@ -5330,7 +5347,8 @@
|
|
|
5330
5347
|
DevolucaoChegadaVeiculoOverride,
|
|
5331
5348
|
api.ConfirmationService,
|
|
5332
5349
|
AgendaService,
|
|
5333
|
-
ErpProcessService
|
|
5350
|
+
ErpProcessService,
|
|
5351
|
+
ErpFormConfigService])
|
|
5334
5352
|
], DevolucaoFormComponent);
|
|
5335
5353
|
return DevolucaoFormComponent;
|
|
5336
5354
|
}());
|
|
@@ -5443,7 +5461,7 @@
|
|
|
5443
5461
|
|
|
5444
5462
|
var moment$k = _moment;
|
|
5445
5463
|
var ExpedicaoFormComponent = /** @class */ (function () {
|
|
5446
|
-
function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService) {
|
|
5464
|
+
function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService) {
|
|
5447
5465
|
this.expedicaoService = expedicaoService;
|
|
5448
5466
|
this.router = router;
|
|
5449
5467
|
this.route = route;
|
|
@@ -5462,6 +5480,7 @@
|
|
|
5462
5480
|
this.override = override;
|
|
5463
5481
|
this.confirmationService = confirmationService;
|
|
5464
5482
|
this.erpProcessService = erpProcessService;
|
|
5483
|
+
this.erpFormConfigService = erpFormConfigService;
|
|
5465
5484
|
this.localeConfig = {};
|
|
5466
5485
|
this.currencyLocaleOptions = {};
|
|
5467
5486
|
this.permissions = {};
|
|
@@ -5577,6 +5596,7 @@
|
|
|
5577
5596
|
}
|
|
5578
5597
|
this.setPedidosValueChanges();
|
|
5579
5598
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
5599
|
+
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
5580
5600
|
this.revalidacaoTransportadora();
|
|
5581
5601
|
};
|
|
5582
5602
|
ExpedicaoFormComponent.prototype.revalidacaoTransportadora = function () {
|
|
@@ -5809,7 +5829,7 @@
|
|
|
5809
5829
|
this.setValuesPedidoBiodisel();
|
|
5810
5830
|
var _a = this.fieldCustomization.getFiles(this.formGroup), filesToDelete = _a.filesToDelete, filesToCommit = _a.filesToCommit;
|
|
5811
5831
|
this.loading = true;
|
|
5812
|
-
if (this.isNew()) {
|
|
5832
|
+
if (this.isNew() || !this.enableRevalidation) {
|
|
5813
5833
|
return this.saveAndInit(filesToDelete, filesToCommit, start);
|
|
5814
5834
|
}
|
|
5815
5835
|
this.erpProcessData = this.erpProcessService.builderErpProcessData(this.erpProcessData, this.formGroup);
|
|
@@ -6856,6 +6876,10 @@
|
|
|
6856
6876
|
core.Input(),
|
|
6857
6877
|
__metadata("design:type", Agenda)
|
|
6858
6878
|
], ExpedicaoFormComponent.prototype, "agenda", void 0);
|
|
6879
|
+
__decorate([
|
|
6880
|
+
core.Input(),
|
|
6881
|
+
__metadata("design:type", Boolean)
|
|
6882
|
+
], ExpedicaoFormComponent.prototype, "revalidacao", void 0);
|
|
6859
6883
|
__decorate([
|
|
6860
6884
|
core.ViewChild("customTemplate"),
|
|
6861
6885
|
__metadata("design:type", core.TemplateRef)
|
|
@@ -6887,7 +6911,8 @@
|
|
|
6887
6911
|
AgendaService,
|
|
6888
6912
|
ExpedicaoChegadaVeiculoOverride,
|
|
6889
6913
|
api.ConfirmationService,
|
|
6890
|
-
ErpProcessService
|
|
6914
|
+
ErpProcessService,
|
|
6915
|
+
ErpFormConfigService])
|
|
6891
6916
|
], ExpedicaoFormComponent);
|
|
6892
6917
|
return ExpedicaoFormComponent;
|
|
6893
6918
|
}());
|
|
@@ -7170,7 +7195,7 @@
|
|
|
7170
7195
|
}());
|
|
7171
7196
|
|
|
7172
7197
|
var ProcessoAvulsoFormComponent = /** @class */ (function () {
|
|
7173
|
-
function ProcessoAvulsoFormComponent(fb, router, route, filialService, processoAvulsoService, messageService, processoAvulsoOverride, translate, confirmationService, agendaService, erpProcessService) {
|
|
7198
|
+
function ProcessoAvulsoFormComponent(fb, router, route, filialService, processoAvulsoService, messageService, processoAvulsoOverride, translate, confirmationService, agendaService, erpProcessService, erpFormConfigService) {
|
|
7174
7199
|
this.fb = fb;
|
|
7175
7200
|
this.router = router;
|
|
7176
7201
|
this.route = route;
|
|
@@ -7182,6 +7207,7 @@
|
|
|
7182
7207
|
this.confirmationService = confirmationService;
|
|
7183
7208
|
this.agendaService = agendaService;
|
|
7184
7209
|
this.erpProcessService = erpProcessService;
|
|
7210
|
+
this.erpFormConfigService = erpFormConfigService;
|
|
7185
7211
|
this.loading = false;
|
|
7186
7212
|
this.filialLookupDisplayFields = ["codigo", "nome", "empresa.nome"];
|
|
7187
7213
|
this.filialAdvancedDisplayFields = ["id", "codigo", "nome", "empresa.nome"];
|
|
@@ -7208,6 +7234,7 @@
|
|
|
7208
7234
|
});
|
|
7209
7235
|
this.processoAvulsoOverride.initialize();
|
|
7210
7236
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
7237
|
+
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
7211
7238
|
};
|
|
7212
7239
|
ProcessoAvulsoFormComponent.prototype.ngAfterViewInit = function () {
|
|
7213
7240
|
this.saveAndInitButton = document.getElementById('init');
|
|
@@ -7223,7 +7250,7 @@
|
|
|
7223
7250
|
return this.validateAllFormFields(this.formGroup);
|
|
7224
7251
|
}
|
|
7225
7252
|
this.loading = true;
|
|
7226
|
-
if (this.isNew()) {
|
|
7253
|
+
if (this.isNew() || !this.enableRevalidation) {
|
|
7227
7254
|
return this.saveAndInit(start);
|
|
7228
7255
|
}
|
|
7229
7256
|
this.erpProcessData = this.erpProcessService.builderErpProcessData(this.erpProcessData, this.formGroup);
|
|
@@ -7445,7 +7472,8 @@
|
|
|
7445
7472
|
core$1.TranslateService,
|
|
7446
7473
|
api.ConfirmationService,
|
|
7447
7474
|
AgendaService,
|
|
7448
|
-
ErpProcessService
|
|
7475
|
+
ErpProcessService,
|
|
7476
|
+
ErpFormConfigService])
|
|
7449
7477
|
], ProcessoAvulsoFormComponent);
|
|
7450
7478
|
return ProcessoAvulsoFormComponent;
|
|
7451
7479
|
}());
|
|
@@ -7638,7 +7666,7 @@
|
|
|
7638
7666
|
}());
|
|
7639
7667
|
|
|
7640
7668
|
var RecebimentoOrdemCompraFormComponent = /** @class */ (function () {
|
|
7641
|
-
function RecebimentoOrdemCompraFormComponent(formBuilder, translate, filialService, pessoaService, produtoService, derivacaoService, transportadoraService, ordemCompraService, recebimentoOrdemCompraService, messageService, route, router, origemMercadoriaService, safraService, override, notaValidatorService, confirmationService, dialogService, agendaService, erpProcessService) {
|
|
7669
|
+
function RecebimentoOrdemCompraFormComponent(formBuilder, translate, filialService, pessoaService, produtoService, derivacaoService, transportadoraService, ordemCompraService, recebimentoOrdemCompraService, messageService, route, router, origemMercadoriaService, safraService, override, notaValidatorService, confirmationService, dialogService, agendaService, erpProcessService, erpFormConfigService) {
|
|
7642
7670
|
var _this = this;
|
|
7643
7671
|
this.formBuilder = formBuilder;
|
|
7644
7672
|
this.translate = translate;
|
|
@@ -7660,6 +7688,7 @@
|
|
|
7660
7688
|
this.dialogService = dialogService;
|
|
7661
7689
|
this.agendaService = agendaService;
|
|
7662
7690
|
this.erpProcessService = erpProcessService;
|
|
7691
|
+
this.erpFormConfigService = erpFormConfigService;
|
|
7663
7692
|
this.derivacaoLookupDisplayFields = ["codigo", "descricao"];
|
|
7664
7693
|
this.derivacaoAdvancedDisplayFields = ["id", "codigo", "descricao"];
|
|
7665
7694
|
this.derivacaoLookupSeparator = " - ";
|
|
@@ -7762,6 +7791,7 @@
|
|
|
7762
7791
|
}
|
|
7763
7792
|
this.createdByErpDisableForm();
|
|
7764
7793
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
7794
|
+
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
7765
7795
|
};
|
|
7766
7796
|
RecebimentoOrdemCompraFormComponent.prototype.ngAfterViewInit = function () {
|
|
7767
7797
|
this.override.initialize();
|
|
@@ -8169,7 +8199,7 @@
|
|
|
8169
8199
|
return;
|
|
8170
8200
|
}
|
|
8171
8201
|
this.loading = true;
|
|
8172
|
-
if (this.isNew()) {
|
|
8202
|
+
if (this.isNew() || !this.enableRevalidation) {
|
|
8173
8203
|
return this.saveAndInit(start);
|
|
8174
8204
|
}
|
|
8175
8205
|
this.erpProcessData = this.erpProcessService.builderErpProcessData(this.erpProcessData, this.formGroup);
|
|
@@ -8757,7 +8787,8 @@
|
|
|
8757
8787
|
api.ConfirmationService,
|
|
8758
8788
|
api.DialogService,
|
|
8759
8789
|
AgendaService,
|
|
8760
|
-
ErpProcessService
|
|
8790
|
+
ErpProcessService,
|
|
8791
|
+
ErpFormConfigService])
|
|
8761
8792
|
], RecebimentoOrdemCompraFormComponent);
|
|
8762
8793
|
return RecebimentoOrdemCompraFormComponent;
|
|
8763
8794
|
}());
|
|
@@ -9294,7 +9325,7 @@
|
|
|
9294
9325
|
|
|
9295
9326
|
var moment$r = _moment;
|
|
9296
9327
|
var RecebimentoFormComponent = /** @class */ (function () {
|
|
9297
|
-
function RecebimentoFormComponent(recebimentoService, router, route, messageService, confirmationService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, filialService, transportadoraService, pessoaEnderecoService, contratoCompraService, pessoaService, produtoService, derivacaoService, recebimentoChegadaOverride, notaValidatorService, transgeniaService, dialogService, agendaService, erpProcessService) {
|
|
9328
|
+
function RecebimentoFormComponent(recebimentoService, router, route, messageService, confirmationService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, filialService, transportadoraService, pessoaEnderecoService, contratoCompraService, pessoaService, produtoService, derivacaoService, recebimentoChegadaOverride, notaValidatorService, transgeniaService, dialogService, agendaService, erpProcessService, erpFormConfigService) {
|
|
9298
9329
|
var _this = this;
|
|
9299
9330
|
this.recebimentoService = recebimentoService;
|
|
9300
9331
|
this.router = router;
|
|
@@ -9319,6 +9350,7 @@
|
|
|
9319
9350
|
this.dialogService = dialogService;
|
|
9320
9351
|
this.agendaService = agendaService;
|
|
9321
9352
|
this.erpProcessService = erpProcessService;
|
|
9353
|
+
this.erpFormConfigService = erpFormConfigService;
|
|
9322
9354
|
this.localeConfig = {};
|
|
9323
9355
|
this.currencyLocaleOptions = {};
|
|
9324
9356
|
this.permissions = {};
|
|
@@ -9482,6 +9514,7 @@
|
|
|
9482
9514
|
}
|
|
9483
9515
|
this.createdByErpDisableForm();
|
|
9484
9516
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
9517
|
+
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
9485
9518
|
};
|
|
9486
9519
|
RecebimentoFormComponent.prototype.ngAfterViewInit = function () {
|
|
9487
9520
|
var inputList = document.getElementsByTagName("input");
|
|
@@ -9630,7 +9663,7 @@
|
|
|
9630
9663
|
return this.validateAllFormFields(this.formGroup);
|
|
9631
9664
|
}
|
|
9632
9665
|
this.loading = true;
|
|
9633
|
-
if (this.isNew()) {
|
|
9666
|
+
if (this.isNew() || !this.enableRevalidation) {
|
|
9634
9667
|
return this.saveAndInit(start);
|
|
9635
9668
|
}
|
|
9636
9669
|
this.erpProcessData = this.erpProcessService.builderErpProcessData(this.erpProcessData, this.formGroup);
|
|
@@ -10981,7 +11014,8 @@
|
|
|
10981
11014
|
TransgeniaService,
|
|
10982
11015
|
api.DialogService,
|
|
10983
11016
|
AgendaService,
|
|
10984
|
-
ErpProcessService
|
|
11017
|
+
ErpProcessService,
|
|
11018
|
+
ErpFormConfigService])
|
|
10985
11019
|
], RecebimentoFormComponent);
|
|
10986
11020
|
return RecebimentoFormComponent;
|
|
10987
11021
|
}());
|
|
@@ -11123,6 +11157,7 @@
|
|
|
11123
11157
|
exports.ERP_SENIOR_HEADER = ERP_SENIOR_HEADER;
|
|
11124
11158
|
exports.EmpresaModule = EmpresaModule;
|
|
11125
11159
|
exports.EmpresaService = EmpresaService;
|
|
11160
|
+
exports.ErpFormConfigService = ErpFormConfigService;
|
|
11126
11161
|
exports.ErpProcessData = ErpProcessData;
|
|
11127
11162
|
exports.ErpProcessService = ErpProcessService;
|
|
11128
11163
|
exports.ErpSeniorModule = ErpSeniorModule;
|