@seniorsistemas/yms-integration 1.7.0 → 1.7.1
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 +71 -36
- 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/expedicao/form/expedicao-form.component.js +17 -6
- package/esm2015/src/erp-senior/processo-avulso/form/processo-avulso-form.component.js +30 -25
- package/esm2015/src/erp-senior/recebimento/form/recebimento-form.component.js +13 -2
- package/esm2015/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +11 -6
- package/esm5/src/erp-senior/expedicao/form/expedicao-form.component.js +18 -6
- package/esm5/src/erp-senior/processo-avulso/form/processo-avulso-form.component.js +32 -26
- package/esm5/src/erp-senior/recebimento/form/recebimento-form.component.js +14 -2
- package/esm5/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +11 -6
- package/fesm2015/seniorsistemas-yms-integration.js +67 -35
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +71 -36
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/erp-senior/expedicao/form/expedicao-form.component.d.ts +1 -0
- package/src/erp-senior/processo-avulso/form/processo-avulso-form.component.d.ts +1 -1
- package/src/erp-senior/recebimento/form/recebimento-form.component.d.ts +1 -0
- package/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.d.ts +1 -0
|
@@ -5520,6 +5520,7 @@
|
|
|
5520
5520
|
this.allPermissions = {};
|
|
5521
5521
|
this.mainPanelCollapsed = false;
|
|
5522
5522
|
this.visibleDialog = false;
|
|
5523
|
+
this.formCarregado = false;
|
|
5523
5524
|
this.clienteFaturamentoLookupDisplayFields = ["codigo", "nome", "cpfCnpj"];
|
|
5524
5525
|
this.clienteFaturamentoAdvancedDisplayFields = ["id", "codigo", "nome"];
|
|
5525
5526
|
this.clienteFaturamentoLookupSeparator = " - ";
|
|
@@ -5631,6 +5632,15 @@
|
|
|
5631
5632
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
5632
5633
|
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
5633
5634
|
this.revalidacaoTransportadora();
|
|
5635
|
+
this.verificaSeTemAlteracao();
|
|
5636
|
+
};
|
|
5637
|
+
ExpedicaoFormComponent.prototype.verificaSeTemAlteracao = function () {
|
|
5638
|
+
var _this = this;
|
|
5639
|
+
this.formGroup.valueChanges.subscribe(function () {
|
|
5640
|
+
if (_this.formCarregado) {
|
|
5641
|
+
_this.hasChangeService.hasChange(_this.agenda.id);
|
|
5642
|
+
}
|
|
5643
|
+
});
|
|
5634
5644
|
};
|
|
5635
5645
|
ExpedicaoFormComponent.prototype.revalidacaoTransportadora = function () {
|
|
5636
5646
|
var _this = this;
|
|
@@ -5909,6 +5919,7 @@
|
|
|
5909
5919
|
ExpedicaoFormComponent.prototype.saveAndInit = function (filesToDelete, filesToCommit, start) {
|
|
5910
5920
|
var _this = this;
|
|
5911
5921
|
this.atualizaExpedicao(filesToDelete, filesToCommit, function () {
|
|
5922
|
+
_this.hasChangeService.hasChangeSave(_this.agenda.id);
|
|
5912
5923
|
if (start && _this.saveAndInitButton) {
|
|
5913
5924
|
_this.hasChangeService.hasChangeSave(_this.agenda.id);
|
|
5914
5925
|
_this.saveAndInitButton.click();
|
|
@@ -6009,8 +6020,8 @@
|
|
|
6009
6020
|
_this.formGroup.get("pedidos").push(form);
|
|
6010
6021
|
});
|
|
6011
6022
|
_this.getValuesPedidoBiodisel();
|
|
6023
|
+
_this.formCarregado = true;
|
|
6012
6024
|
});
|
|
6013
|
-
this.formCarregado = true;
|
|
6014
6025
|
};
|
|
6015
6026
|
ExpedicaoFormComponent.prototype.onClienteFaturamentoLookupRequest = function (value) {
|
|
6016
6027
|
var _this = this;
|
|
@@ -6825,8 +6836,6 @@
|
|
|
6825
6836
|
_this.validateAllFormFields(control);
|
|
6826
6837
|
});
|
|
6827
6838
|
this.focusService.focusFirstInvalidInput();
|
|
6828
|
-
/*{CA:FOCUS_FIRST_INVALID:START}*/
|
|
6829
|
-
/*{CA:FOCUS_FIRST_INVALID:END}*/
|
|
6830
6839
|
};
|
|
6831
6840
|
ExpedicaoFormComponent.prototype.getSaveObservable = function () {
|
|
6832
6841
|
var value = this.formGroup.getRawValue();
|
|
@@ -6880,8 +6889,10 @@
|
|
|
6880
6889
|
ExpedicaoFormComponent.prototype.buscarFilial = function () {
|
|
6881
6890
|
var _this = this;
|
|
6882
6891
|
var planta = this.agenda.planta || { cnpj: [] };
|
|
6883
|
-
if (planta.cnpj.length !== 1)
|
|
6892
|
+
if (planta.cnpj.length !== 1) {
|
|
6893
|
+
this.formCarregado = true;
|
|
6884
6894
|
return;
|
|
6895
|
+
}
|
|
6885
6896
|
this.filialService
|
|
6886
6897
|
.list({
|
|
6887
6898
|
page: 0,
|
|
@@ -6897,6 +6908,7 @@
|
|
|
6897
6908
|
_this.disableOrdersButtons = false;
|
|
6898
6909
|
}
|
|
6899
6910
|
});
|
|
6911
|
+
this.formCarregado = true;
|
|
6900
6912
|
};
|
|
6901
6913
|
ExpedicaoFormComponent.prototype.buscarClienteAFaturar = function (pedidoVenda) {
|
|
6902
6914
|
var _this = this;
|
|
@@ -6935,7 +6947,7 @@
|
|
|
6935
6947
|
ExpedicaoFormComponent = __decorate([
|
|
6936
6948
|
core.Component({
|
|
6937
6949
|
selector: "expedicao-form",
|
|
6938
|
-
template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\"></p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12 ui-md-12\">\n <label class=\"required-h3\">Pedidos:</label>\n <s-button label=\"Adicionar pedido\" priority=\"default\" (onClick)=\"abrirPedidoVenda()\" [disabled]=\"disableButtonSave || disableOrdersButtons\"></s-button>\n <div class=\"error-required-message\" [hidden]=\"ordersValid\">{{'yms.erp.error_required' | translate}}</div>\n <p-accordion>\n <p-accordionTab *ngFor=\"let pedido of getPedidos(); let i = index\">\n <p-header>\n Pedido: {{ pedido.get('pedidoVenda')?.value?.numero }}\n </p-header>\n \n <div style=\"margin: 10px 0; display: block;\">\n <s-button label=\"Adicionar item do pedido\" priority=\"default\" size=\"small\"\n (onClick)=\"abrirPedidoVendaItem(pedido)\" [disabled]=\"disableButtonSave || disableOrdersButtons\"></s-button>\n <s-button label=\"Excluir pedido\" priority=\"default\" size=\"small\"\n (onClick)=\"excluirPedidoVenda(i)\" [disabled]=\"disableButtonSave || disableOrdersButtons\"></s-button>\n </div>\n \n <s-token-list [tokens]=\"buildTokens(pedido.get('itens')?.value)\" [removableTokens]=\"true\"\n (tokenRemoved)=\"excluirPedidoVendaItem($event.id, pedido)\">\n </s-token-list>\n </p-accordionTab>\n </p-accordion>\n <div style=\"display: inline-block;\" class=\"separator\"></div>\n </div>\n </div>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div [attr.data-hidden]=\"true\" class=\"ui-g-12 ui-md-6\">\n <label for=\"id\">{{\"yms.erp.recebimento_id\" | translate}}</label>\n <input #idFormInput type=\"text\" id=\"id\" name=\"id\" pInputText formControlName=\"id\"\n autocomplete=\"off\" />\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"filial\">{{\"yms.erp.expedicao_filial\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n (onSelect)=\"onFilialSelect($event)\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"clienteFaturamento\">{{\"yms.erp.expedicao_cliente_faturamento\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"clienteFaturamento\" name=\"clienteFaturamento\"\n formControlName=\"clienteFaturamento\" [searchFields]=\"clienteFaturamentoSearchFields\"\n [searchGridFields]=\"clienteFaturamentoSearchGridFields\"\n [searchGridData]=\"clienteFaturamentoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"clienteFaturamentoLookupSuggestions\"\n (onLookupRequest)=\"onClienteFaturamentoLookupRequest($event)\"\n (onSearchRequest)=\"onClienteFaturamentoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"clienteFaturamentoSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.cliente_faturamento_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: clienteFaturamentoSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['clienteFaturamento']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"clienteRemessa\">{{\"yms.erp.expedicao_cliente_remessa\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"clienteRemessa\" name=\"clienteRemessa\" formControlName=\"clienteRemessa\"\n [searchFields]=\"clienteRemessaSearchFields\" [searchGridFields]=\"clienteRemessaSearchGridFields\"\n [searchGridData]=\"clienteRemessaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"clienteRemessaLookupSuggestions\"\n (onLookupRequest)=\"onClienteRemessaLookupRequest($event)\"\n (onSearchRequest)=\"onClienteRemessaSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"clienteRemessaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.cliente_remessa_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: clienteRemessaSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['clienteRemessa']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transportadora\">{{\"yms.erp.expedicao_transportadora\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchGridFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"numeroAgendamentoCliente\">N\u00FAmero agendamento do cliente</label>\n <input type=\"text\" pInputText formControlName=\"numeroAgendamentoCliente\" pattern=\"[0-9]+$\">\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"numeroPedidoCliente\">N\u00FAmero pedido do cliente</label>\n <input type=\"text\" pInputText formControlName=\"numeroPedidoCliente\" pattern=\"[0-9]+$\">\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"itemPedidoCliente\">Item pedido do cliente</label>\n <input type=\"text\" pInputText formControlName=\"itemPedidoCliente\" pattern=\"[0-9]+$\">\n </div>\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">{{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} / </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">{{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}</label>\n </div>\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\" [disabled]=\"disableButtonSave\"></s-button>\n <s-button *ngIf=\"saveAndInitButton\" priority=\"primary\" [label]=\"'save_and_init' | translate\" (onClick)=\"onSave(true)\" [disabled]=\"disableButtonSave\"></s-button>\n </div>\n\n <form [formGroup]=\"pedidoVendaForm\" [hidden]=\"true\">\n <s-lookup dataKey=\"id\" id=\"pedidoVenda\" name=\"pedidoVenda\" formControlName=\"pedidoVenda\"\n [searchFields]=\"pedidoVendaSearchFields\" [searchGridFields]=\"pedidoVendaSearchGridFields\"\n [searchGridData]=\"pedidoVendaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"pedidoVendaLookupSuggestions\" (onLookupRequest)=\"onPedidoVendaLookupRequest($event)\"\n (onSearchRequest)=\"onPedidoVendaSearchRequest($event)\" lookupDisplayField=\"label\"\n (onSelect)=\"selecionarPedidoVenda($event)\" [searchTotalRecords]=\"pedidoVendaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.pedido_venda_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\" [filterLabel]=\"'yms.erp.filter' | translate\"\n [clearLabel]=\"'yms.erp.clear' | translate\" [cancelLabel]=\"'yms.erp.cancel' | translate\"\n [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: pedidoVendaSearchTotalRecords}\">\n </s-lookup>\n </form>\n\n <p-dialog [(visible)]=\"visibleDialog\" styleClass=\"s-lookup-modal\" [modal]=\"true\">\n <p-header>\n Adicionar item\n </p-header>\n\n <form [formGroup]=\"itemFormGroup\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"item\">Item do pedido</label>\n <s-lookup dataKey=\"id\" id=\"item\" name=\"item\" formControlName=\"item\"\n [searchFields]=\"pedidoVendaItemSearchFields\"\n [searchGridFields]=\"pedidoVendaItemSearchGridFields\"\n [searchGridData]=\"pedidoVendaItemSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"pedidoVendaItemLookupSuggestions\"\n (onLookupRequest)=\"onPedidoVendaItemLookupRequest($event)\"\n (onSearchRequest)=\"onPedidoVendaItemSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"pedidoVendaItemSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.expedicao_pedido_venda_itens_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: pedidoVendaItemSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"quantidade\">Quantidade</label>\n <input type=\"number\" pInputText formControlName=\"quantidade\">\n </div>\n </div>\n </div>\n </form>\n\n <p-footer>\n <s-button [label]=\"'select' | translate\" (onClick)=\"selecionarPedidoVendaItem()\"></s-button>\n </p-footer>\n </p-dialog>\n</div>",
|
|
6950
|
+
template: "<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12 ui-md-12\">\n <label class=\"required-h3\">Pedidos:</label>\n <s-button label=\"Adicionar pedido\" priority=\"default\" (onClick)=\"abrirPedidoVenda()\" [disabled]=\"disableButtonSave || disableOrdersButtons\"></s-button>\n <div class=\"error-required-message\" [hidden]=\"ordersValid\">{{'yms.erp.error_required' | translate}}</div>\n <p-accordion>\n <p-accordionTab *ngFor=\"let pedido of getPedidos(); let i = index\">\n <p-header>\n Pedido: {{ pedido.get('pedidoVenda')?.value?.numero }}\n </p-header>\n \n <div style=\"margin: 10px 0; display: block;\">\n <s-button label=\"Adicionar item do pedido\" priority=\"default\" size=\"small\"\n (onClick)=\"abrirPedidoVendaItem(pedido)\" [disabled]=\"disableButtonSave || disableOrdersButtons\"></s-button>\n <s-button label=\"Excluir pedido\" priority=\"default\" size=\"small\"\n (onClick)=\"excluirPedidoVenda(i)\" [disabled]=\"disableButtonSave || disableOrdersButtons\"></s-button>\n </div>\n \n <s-token-list [tokens]=\"buildTokens(pedido.get('itens')?.value)\" [removableTokens]=\"true\"\n (tokenRemoved)=\"excluirPedidoVendaItem($event.id, pedido)\">\n </s-token-list>\n </p-accordionTab>\n </p-accordion>\n <div style=\"display: inline-block;\" class=\"separator\"></div>\n </div>\n </div>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div [attr.data-hidden]=\"true\" class=\"ui-g-12 ui-md-6\">\n <label for=\"id\">{{\"yms.erp.recebimento_id\" | translate}}</label>\n <input #idFormInput type=\"text\" id=\"id\" name=\"id\" pInputText formControlName=\"id\"\n autocomplete=\"off\" />\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"filial\">{{\"yms.erp.expedicao_filial\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n (onSelect)=\"onFilialSelect($event)\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"clienteFaturamento\">{{\"yms.erp.expedicao_cliente_faturamento\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"clienteFaturamento\" name=\"clienteFaturamento\"\n formControlName=\"clienteFaturamento\" [searchFields]=\"clienteFaturamentoSearchFields\"\n [searchGridFields]=\"clienteFaturamentoSearchGridFields\"\n [searchGridData]=\"clienteFaturamentoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"clienteFaturamentoLookupSuggestions\"\n (onLookupRequest)=\"onClienteFaturamentoLookupRequest($event)\"\n (onSearchRequest)=\"onClienteFaturamentoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"clienteFaturamentoSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.cliente_faturamento_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: clienteFaturamentoSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['clienteFaturamento']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"clienteRemessa\">{{\"yms.erp.expedicao_cliente_remessa\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"clienteRemessa\" name=\"clienteRemessa\" formControlName=\"clienteRemessa\"\n [searchFields]=\"clienteRemessaSearchFields\" [searchGridFields]=\"clienteRemessaSearchGridFields\"\n [searchGridData]=\"clienteRemessaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"clienteRemessaLookupSuggestions\"\n (onLookupRequest)=\"onClienteRemessaLookupRequest($event)\"\n (onSearchRequest)=\"onClienteRemessaSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"clienteRemessaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.cliente_remessa_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: clienteRemessaSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['clienteRemessa']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transportadora\">{{\"yms.erp.expedicao_transportadora\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchGridFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"numeroAgendamentoCliente\">N\u00FAmero agendamento do cliente</label>\n <input type=\"text\" pInputText formControlName=\"numeroAgendamentoCliente\" pattern=\"[0-9]+$\">\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"numeroPedidoCliente\">N\u00FAmero pedido do cliente</label>\n <input type=\"text\" pInputText formControlName=\"numeroPedidoCliente\" pattern=\"[0-9]+$\">\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"itemPedidoCliente\">Item pedido do cliente</label>\n <input type=\"text\" pInputText formControlName=\"itemPedidoCliente\" pattern=\"[0-9]+$\">\n </div>\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">{{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} / </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">{{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}</label>\n </div>\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\" [disabled]=\"disableButtonSave\"></s-button>\n <s-button *ngIf=\"saveAndInitButton\" priority=\"primary\" [label]=\"'save_and_init' | translate\" (onClick)=\"onSave(true)\" [disabled]=\"disableButtonSave\"></s-button>\n </div>\n\n <form [formGroup]=\"pedidoVendaForm\" [hidden]=\"true\">\n <s-lookup dataKey=\"id\" id=\"pedidoVenda\" name=\"pedidoVenda\" formControlName=\"pedidoVenda\"\n [searchFields]=\"pedidoVendaSearchFields\" [searchGridFields]=\"pedidoVendaSearchGridFields\"\n [searchGridData]=\"pedidoVendaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"pedidoVendaLookupSuggestions\" (onLookupRequest)=\"onPedidoVendaLookupRequest($event)\"\n (onSearchRequest)=\"onPedidoVendaSearchRequest($event)\" lookupDisplayField=\"label\"\n (onSelect)=\"selecionarPedidoVenda($event)\" [searchTotalRecords]=\"pedidoVendaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.pedido_venda_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\" [filterLabel]=\"'yms.erp.filter' | translate\"\n [clearLabel]=\"'yms.erp.clear' | translate\" [cancelLabel]=\"'yms.erp.cancel' | translate\"\n [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: pedidoVendaSearchTotalRecords}\">\n </s-lookup>\n </form>\n\n <p-dialog [(visible)]=\"visibleDialog\" styleClass=\"s-lookup-modal\" [modal]=\"true\">\n <p-header>\n Adicionar item\n </p-header>\n\n <form [formGroup]=\"itemFormGroup\">\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"item\">Item do pedido</label>\n <s-lookup dataKey=\"id\" id=\"item\" name=\"item\" formControlName=\"item\"\n [searchFields]=\"pedidoVendaItemSearchFields\"\n [searchGridFields]=\"pedidoVendaItemSearchGridFields\"\n [searchGridData]=\"pedidoVendaItemSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"pedidoVendaItemLookupSuggestions\"\n (onLookupRequest)=\"onPedidoVendaItemLookupRequest($event)\"\n (onSearchRequest)=\"onPedidoVendaItemSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"pedidoVendaItemSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.expedicao_pedido_venda_itens_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: pedidoVendaItemSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"quantidade\">Quantidade</label>\n <input type=\"number\" pInputText formControlName=\"quantidade\">\n </div>\n </div>\n </div>\n </form>\n\n <p-footer>\n <s-button [label]=\"'select' | translate\" (onClick)=\"selecionarPedidoVendaItem()\"></s-button>\n </p-footer>\n </p-dialog>\n</div>",
|
|
6939
6951
|
styles: [".required-h3{font-size:1.17rem;font-weight:700}.required-h3::after{content:'*';color:#c13018;font-weight:400;margin-left:5px;font-size:14px}.error-required-message{color:#c13018;margin-top:5px;font-size:12px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.input-error{color:#c13018}.detail-pane{display:flex;flex-wrap:wrap;justify-content:flex-start}.detail-pane .detail-span{width:50%;padding:10px 0;display:flex;flex-direction:column}.detail-pane .detail-span .title{font-size:14px;opacity:.7;margin-bottom:4px}.detail-pane .detail-span .data{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nota-error{color:#c13018}"]
|
|
6940
6952
|
}),
|
|
6941
6953
|
__metadata("design:paramtypes", [ExpedicaoService,
|
|
@@ -7258,6 +7270,7 @@
|
|
|
7258
7270
|
this.filialLookupDisplayFields = ["codigo", "nome", "empresa.nome"];
|
|
7259
7271
|
this.filialAdvancedDisplayFields = ["id", "codigo", "nome", "empresa.nome"];
|
|
7260
7272
|
this.filialLookupSeparator = " - ";
|
|
7273
|
+
this.formCarregado = false;
|
|
7261
7274
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
7262
7275
|
}
|
|
7263
7276
|
ProcessoAvulsoFormComponent.prototype.ngOnInit = function () {
|
|
@@ -7281,6 +7294,15 @@
|
|
|
7281
7294
|
this.processoAvulsoOverride.initialize();
|
|
7282
7295
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
7283
7296
|
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
7297
|
+
this.verificaSeTemAlteracao();
|
|
7298
|
+
};
|
|
7299
|
+
ProcessoAvulsoFormComponent.prototype.verificaSeTemAlteracao = function () {
|
|
7300
|
+
var _this = this;
|
|
7301
|
+
this.formGroup.valueChanges.subscribe(function () {
|
|
7302
|
+
if (_this.formCarregado) {
|
|
7303
|
+
_this.hasChangeService.hasChange(_this.agenda.id);
|
|
7304
|
+
}
|
|
7305
|
+
});
|
|
7284
7306
|
};
|
|
7285
7307
|
ProcessoAvulsoFormComponent.prototype.ngAfterViewInit = function () {
|
|
7286
7308
|
var _this = this;
|
|
@@ -7347,6 +7369,7 @@
|
|
|
7347
7369
|
.subscribe(function (response) {
|
|
7348
7370
|
_this.formGroup.patchValue(__assign({}, ProcessoAvulso.fromDto(response)));
|
|
7349
7371
|
_this.successMessage();
|
|
7372
|
+
_this.hasChangeService.hasChangeSave(_this.agenda.id);
|
|
7350
7373
|
if (start && _this.saveAndInitButton) {
|
|
7351
7374
|
_this.hasChangeService.hasChangeSave(_this.agenda.id);
|
|
7352
7375
|
_this.saveAndInitButton.click();
|
|
@@ -7444,12 +7467,13 @@
|
|
|
7444
7467
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
7445
7468
|
.subscribe(function (_a) {
|
|
7446
7469
|
var contents = _a.contents;
|
|
7447
|
-
if (!contents || contents.length <= 0)
|
|
7470
|
+
if (!contents || contents.length <= 0) {
|
|
7448
7471
|
return _this.buscarFilial();
|
|
7472
|
+
}
|
|
7449
7473
|
var processoAvulso = contents[0];
|
|
7450
7474
|
_this.formGroup.patchValue(__assign({}, ProcessoAvulso.fromDto(processoAvulso)));
|
|
7475
|
+
_this.formCarregado = true;
|
|
7451
7476
|
});
|
|
7452
|
-
this.formCarregado = true;
|
|
7453
7477
|
};
|
|
7454
7478
|
ProcessoAvulsoFormComponent.prototype.getFilialSearchFields = function () {
|
|
7455
7479
|
return [
|
|
@@ -7484,31 +7508,25 @@
|
|
|
7484
7508
|
})
|
|
7485
7509
|
];
|
|
7486
7510
|
};
|
|
7487
|
-
ProcessoAvulsoFormComponent.prototype.addMessage = function (severity, summary, detail) {
|
|
7488
|
-
this.messageService.add({
|
|
7489
|
-
severity: severity,
|
|
7490
|
-
summary: this.translate.instant(summary),
|
|
7491
|
-
detail: this.translate.instant(detail),
|
|
7492
|
-
});
|
|
7493
|
-
};
|
|
7494
7511
|
ProcessoAvulsoFormComponent.prototype.buscarFilial = function () {
|
|
7495
7512
|
var _this = this;
|
|
7496
7513
|
var planta = this.agenda.planta || { cnpj: [] };
|
|
7497
|
-
if (planta.cnpj.length
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
}
|
|
7511
|
-
}
|
|
7514
|
+
if (planta.cnpj.length === 1) {
|
|
7515
|
+
this.filialService.list({
|
|
7516
|
+
page: 0,
|
|
7517
|
+
size: 1,
|
|
7518
|
+
filterQuery: "pessoa.cpfCnpj eq '" + planta.cnpj[0] + "'",
|
|
7519
|
+
displayFields: ['*', 'empresa.nome']
|
|
7520
|
+
})
|
|
7521
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
7522
|
+
.subscribe(function (_a) {
|
|
7523
|
+
var contents = _a.contents;
|
|
7524
|
+
if (contents.length === 1) {
|
|
7525
|
+
_this.formGroup.get("filial").setValue(Filial.fromDto(contents[0]));
|
|
7526
|
+
}
|
|
7527
|
+
});
|
|
7528
|
+
}
|
|
7529
|
+
this.formCarregado = true;
|
|
7512
7530
|
};
|
|
7513
7531
|
__decorate([
|
|
7514
7532
|
core.Input(),
|
|
@@ -7517,7 +7535,7 @@
|
|
|
7517
7535
|
ProcessoAvulsoFormComponent = __decorate([
|
|
7518
7536
|
core.Component({
|
|
7519
7537
|
selector: 'processo-avulso-form',
|
|
7520
|
-
template: "<
|
|
7538
|
+
template: "<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"filial\">{{'yms.erp.recebimento_ordem_compra_filial' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"loading\"></s-button>\n <s-button *ngIf=\"saveAndInitButton\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"loading\"></s-button>\n </div>\n</div>"
|
|
7521
7539
|
}),
|
|
7522
7540
|
__metadata("design:paramtypes", [forms.FormBuilder,
|
|
7523
7541
|
router.Router,
|
|
@@ -7780,6 +7798,7 @@
|
|
|
7780
7798
|
this.notasTokens = [];
|
|
7781
7799
|
this.fornecedorNotasTokens = [];
|
|
7782
7800
|
this.fornecedorNotas = [];
|
|
7801
|
+
this.formCarregado = false;
|
|
7783
7802
|
this.ordemCompraSelecionado = null;
|
|
7784
7803
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
7785
7804
|
/**PRODUTO DEPENDE DE FILIAL. ORDEM COMPRA DEPENDE DE FILIAL */
|
|
@@ -7851,17 +7870,20 @@
|
|
|
7851
7870
|
this.createdByErpDisableForm();
|
|
7852
7871
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
7853
7872
|
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
7873
|
+
this.verificaSeTemAlteracao();
|
|
7854
7874
|
};
|
|
7855
|
-
RecebimentoOrdemCompraFormComponent.prototype.
|
|
7875
|
+
RecebimentoOrdemCompraFormComponent.prototype.verificaSeTemAlteracao = function () {
|
|
7856
7876
|
var _this = this;
|
|
7857
|
-
this.override.initialize();
|
|
7858
|
-
this.saveAndInitButton = document.getElementById('init');
|
|
7859
7877
|
this.formGroup.valueChanges.subscribe(function () {
|
|
7860
7878
|
if (_this.formCarregado) {
|
|
7861
7879
|
_this.hasChangeService.hasChange(_this.agenda.id);
|
|
7862
7880
|
}
|
|
7863
7881
|
});
|
|
7864
7882
|
};
|
|
7883
|
+
RecebimentoOrdemCompraFormComponent.prototype.ngAfterViewInit = function () {
|
|
7884
|
+
this.override.initialize();
|
|
7885
|
+
this.saveAndInitButton = document.getElementById('init');
|
|
7886
|
+
};
|
|
7865
7887
|
RecebimentoOrdemCompraFormComponent.prototype.ngOnDestroy = function () {
|
|
7866
7888
|
this.ngUnsubscribe.next();
|
|
7867
7889
|
this.ngUnsubscribe.complete();
|
|
@@ -7896,6 +7918,7 @@
|
|
|
7896
7918
|
}
|
|
7897
7919
|
});
|
|
7898
7920
|
this.createdByErpDisableForm();
|
|
7921
|
+
this.formCarregado = true;
|
|
7899
7922
|
};
|
|
7900
7923
|
RecebimentoOrdemCompraFormComponent.prototype.getEmpresaFilial = function () {
|
|
7901
7924
|
var _this = this;
|
|
@@ -8000,6 +8023,7 @@
|
|
|
8000
8023
|
.subscribe(function (_a) {
|
|
8001
8024
|
var contents = _a.contents;
|
|
8002
8025
|
if (!contents.length) {
|
|
8026
|
+
_this.formCarregado = true;
|
|
8003
8027
|
return _this.configureForm();
|
|
8004
8028
|
}
|
|
8005
8029
|
_this.totalEixosContratados = contents[0].eixos || 0;
|
|
@@ -8022,7 +8046,6 @@
|
|
|
8022
8046
|
});
|
|
8023
8047
|
_this.configureForm();
|
|
8024
8048
|
});
|
|
8025
|
-
this.formCarregado = true;
|
|
8026
8049
|
};
|
|
8027
8050
|
RecebimentoOrdemCompraFormComponent.prototype.onFilialLookupRequest = function (value) {
|
|
8028
8051
|
var _this = this;
|
|
@@ -8310,8 +8333,8 @@
|
|
|
8310
8333
|
.subscribe(function (value) {
|
|
8311
8334
|
_this.formGroup.get("id").setValue(value.id || null);
|
|
8312
8335
|
_this.successMessage();
|
|
8336
|
+
_this.hasChangeService.hasChangeSave(_this.agenda.id);
|
|
8313
8337
|
if (start && _this.saveAndInitButton) {
|
|
8314
|
-
_this.hasChangeService.hasChangeSave(_this.agenda.id);
|
|
8315
8338
|
_this.saveAndInitButton.click();
|
|
8316
8339
|
}
|
|
8317
8340
|
});
|
|
@@ -9597,6 +9620,15 @@
|
|
|
9597
9620
|
}
|
|
9598
9621
|
this.erpProcessService.current.subscribe(function (message) { return _this.erpProcessData = message; });
|
|
9599
9622
|
this.erpFormConfigService.current.subscribe(function (message) { return _this.enableRevalidation = message; });
|
|
9623
|
+
this.verificaSeTemAlteracao();
|
|
9624
|
+
};
|
|
9625
|
+
RecebimentoFormComponent.prototype.verificaSeTemAlteracao = function () {
|
|
9626
|
+
var _this = this;
|
|
9627
|
+
this.formGroup.valueChanges.subscribe(function () {
|
|
9628
|
+
if (_this.formCarregado) {
|
|
9629
|
+
_this.hasChangeService.hasChange(_this.agenda.id);
|
|
9630
|
+
}
|
|
9631
|
+
});
|
|
9600
9632
|
};
|
|
9601
9633
|
RecebimentoFormComponent.prototype.ngAfterViewInit = function () {
|
|
9602
9634
|
var _this = this;
|
|
@@ -11010,8 +11042,10 @@
|
|
|
11010
11042
|
RecebimentoFormComponent.prototype.buscarFilial = function () {
|
|
11011
11043
|
var _this = this;
|
|
11012
11044
|
var planta = this.agenda.planta || { cnpj: [] };
|
|
11013
|
-
if (planta.cnpj.length !== 1)
|
|
11045
|
+
if (planta.cnpj.length !== 1) {
|
|
11046
|
+
this.formCarregado = true;
|
|
11014
11047
|
return;
|
|
11048
|
+
}
|
|
11015
11049
|
this.filialService
|
|
11016
11050
|
.list({
|
|
11017
11051
|
page: 0,
|
|
@@ -11025,6 +11059,7 @@
|
|
|
11025
11059
|
if (contents.length === 1) {
|
|
11026
11060
|
_this.formGroup.get("filial").setValue(Filial.fromDto(contents[0]));
|
|
11027
11061
|
}
|
|
11062
|
+
_this.formCarregado = true;
|
|
11028
11063
|
});
|
|
11029
11064
|
};
|
|
11030
11065
|
RecebimentoFormComponent.prototype.configureFornecedor = function (fornecedorForm) {
|