@seniorsistemas/yms-integration 1.25.0-fb567b04-f458-4186-9566-f0563cb9fb94 → 1.26.0-a427cb89-5ea5-4fd6-a0f6-7554120c00e2
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 +77 -53
- 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/seniorsistemas-yms-integration.js +47 -46
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +12 -4
- package/esm2015/src/wms/entities/integration/integration.service.js +20 -0
- package/esm5/seniorsistemas-yms-integration.js +47 -46
- package/esm5/src/wms/components/document-grid/document-grid.component.js +13 -4
- package/esm5/src/wms/entities/integration/integration.service.js +21 -0
- package/fesm2015/seniorsistemas-yms-integration.js +31 -10
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +31 -8
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +46 -45
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +5 -1
- package/src/wms/entities/integration/integration.service.d.ts +10 -0
|
@@ -3093,6 +3093,21 @@ var FormWmsComponent = /** @class */ (function (_super) {
|
|
|
3093
3093
|
return FormWmsComponent;
|
|
3094
3094
|
}(FormWmsDescritor));
|
|
3095
3095
|
|
|
3096
|
+
var IntegrationService = /** @class */ (function () {
|
|
3097
|
+
function IntegrationService(httpClient) {
|
|
3098
|
+
this.httpClient = httpClient;
|
|
3099
|
+
}
|
|
3100
|
+
IntegrationService.prototype.getProcessTypeByScheduling = function (idSchedulingType) {
|
|
3101
|
+
return this.httpClient.post('yms/integration/queries/getProcessTypeByScheduling', { idSchedulingType: idSchedulingType });
|
|
3102
|
+
};
|
|
3103
|
+
IntegrationService.ngInjectableDef = defineInjectable({ factory: function IntegrationService_Factory() { return new IntegrationService(inject(HttpClient)); }, token: IntegrationService, providedIn: "root" });
|
|
3104
|
+
IntegrationService = __decorate([
|
|
3105
|
+
Injectable({ providedIn: 'root' }),
|
|
3106
|
+
__metadata("design:paramtypes", [HttpClient])
|
|
3107
|
+
], IntegrationService);
|
|
3108
|
+
return IntegrationService;
|
|
3109
|
+
}());
|
|
3110
|
+
|
|
3096
3111
|
var DocumentService = /** @class */ (function (_super) {
|
|
3097
3112
|
__extends(DocumentService, _super);
|
|
3098
3113
|
function DocumentService(http, messageService) {
|
|
@@ -3112,11 +3127,12 @@ var DocumentService = /** @class */ (function (_super) {
|
|
|
3112
3127
|
}(EntityService));
|
|
3113
3128
|
|
|
3114
3129
|
var DocumentGridComponent = /** @class */ (function () {
|
|
3115
|
-
function DocumentGridComponent(translate, documentService, messageService, confirmationService) {
|
|
3130
|
+
function DocumentGridComponent(translate, documentService, messageService, confirmationService, integrationService) {
|
|
3116
3131
|
this.translate = translate;
|
|
3117
3132
|
this.documentService = documentService;
|
|
3118
3133
|
this.messageService = messageService;
|
|
3119
3134
|
this.confirmationService = confirmationService;
|
|
3135
|
+
this.integrationService = integrationService;
|
|
3120
3136
|
this.viewDocument = new EventEmitter();
|
|
3121
3137
|
this.gridData = [];
|
|
3122
3138
|
this.ngUnsubscribe = new Subject();
|
|
@@ -3124,8 +3140,14 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3124
3140
|
}
|
|
3125
3141
|
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3126
3142
|
this.gridColumns = this.getGridColumns();
|
|
3143
|
+
this.getProcessTypeByScheduling();
|
|
3127
3144
|
this.listDocuments();
|
|
3128
3145
|
};
|
|
3146
|
+
DocumentGridComponent.prototype.getProcessTypeByScheduling = function () {
|
|
3147
|
+
var _this = this;
|
|
3148
|
+
this.integrationService.getProcessTypeByScheduling(this.agenda.tipoAgendamento.id)
|
|
3149
|
+
.subscribe(function (result) { return _this.processType = result.processType; });
|
|
3150
|
+
};
|
|
3129
3151
|
DocumentGridComponent.prototype.onChangeDocument = function (document) {
|
|
3130
3152
|
this.gridData.push(document);
|
|
3131
3153
|
this.disabled = false;
|
|
@@ -3293,13 +3315,14 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3293
3315
|
DocumentGridComponent = __decorate([
|
|
3294
3316
|
Component({
|
|
3295
3317
|
selector: 'document-grid',
|
|
3296
|
-
template: "<p-panel>\n
|
|
3318
|
+
template: "<div *ngIf=\"this.processType === 'DESCARREGAMENTO'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"key\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceNumber\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceSerialNumber\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"ownerName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"ownerDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"code\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document> \n <insert-key [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n </p-panel>\n</div>\n <div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document> \n <insert-key [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling' | translate\"\n >\n </s-empty-state>\n </div>\n</ng-template>",
|
|
3297
3319
|
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px}"]
|
|
3298
3320
|
}),
|
|
3299
3321
|
__metadata("design:paramtypes", [TranslateService,
|
|
3300
3322
|
DocumentService,
|
|
3301
3323
|
MessageService,
|
|
3302
|
-
ConfirmationService
|
|
3324
|
+
ConfirmationService,
|
|
3325
|
+
IntegrationService])
|
|
3303
3326
|
], DocumentGridComponent);
|
|
3304
3327
|
return DocumentGridComponent;
|
|
3305
3328
|
}());
|
|
@@ -3984,7 +4007,7 @@ var ExpedicaoChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
3984
4007
|
return ExpedicaoChegadaVeiculoOverride;
|
|
3985
4008
|
}());
|
|
3986
4009
|
|
|
3987
|
-
var IntegrationService = /** @class */ (function () {
|
|
4010
|
+
var IntegrationService$1 = /** @class */ (function () {
|
|
3988
4011
|
function IntegrationService(http, messageService) {
|
|
3989
4012
|
this.http = http;
|
|
3990
4013
|
this.messageService = messageService;
|
|
@@ -4066,7 +4089,7 @@ var FormComponent = /** @class */ (function (_super) {
|
|
|
4066
4089
|
Component({
|
|
4067
4090
|
template: "\n <div *ngIf=\"agenda\">\n <div [ngSwitch]=\"tipoProcessoErpAtual\">\n <recebimento-form *ngSwitchCase=\"'RECEBIMENTO_CONTRATO'\" [agenda]=\"agenda\"></recebimento-form>\n <expedicao-form *ngSwitchCase=\"'EXPEDICAO'\" [agenda]=\"agenda\"></expedicao-form>\n <devolucao-form *ngSwitchCase=\"'DEVOLUCAO'\" [agenda]=\"agenda\"></devolucao-form>\n <recebimento-ordem-compra-form *ngSwitchCase=\"'RECEBIMENTO_ORDEM_COMPRA'\" [agenda]=\"agenda\"></recebimento-ordem-compra-form>\n <processo-avulso-form *ngSwitchCase=\"'PROCESSO_AVULSO'\" [agenda]=\"agenda\"></processo-avulso-form>\n <div *ngSwitchDefault>\n <s-loading-state [loading]=\"loading\">\n <h3 *ngIf=\"!loading\" style=\"text-align: center;\">\n ATEN\u00C7\u00C3O, n\u00E3o existe Tipo de Processo configurado para esse tipo de agendamento.\n </h3>\n <h3 *ngIf=\"loading\" style=\"text-align: center;\"> Carregando configura\u00E7\u00F5es </h3>\n </s-loading-state>\n </div>\n </div>\n </div>\n "
|
|
4068
4091
|
}),
|
|
4069
|
-
__metadata("design:paramtypes", [IntegrationEventsCallback, IntegrationService])
|
|
4092
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback, IntegrationService$1])
|
|
4070
4093
|
], FormComponent);
|
|
4071
4094
|
return FormComponent;
|
|
4072
4095
|
}(FormDescritor));
|
|
@@ -4117,7 +4140,7 @@ var InfoComponent = /** @class */ (function (_super) {
|
|
|
4117
4140
|
Component({
|
|
4118
4141
|
template: "\n <div *ngIf=\"agenda\">\n <div [ngSwitch]=\"tipoProcessoErpAtual\">\n <recebimento-info *ngSwitchCase=\"'RECEBIMENTO_CONTRATO'\" [agenda]=\"agenda\"></recebimento-info>\n <expedicao-info *ngSwitchCase=\"'EXPEDICAO'\" [agenda]=\"agenda\"></expedicao-info>\n <devolucao-info *ngSwitchCase=\"'DEVOLUCAO'\" [agenda]=\"agenda\"></devolucao-info> \n <recebimento-ordem-compra-info *ngSwitchCase=\"'RECEBIMENTO_ORDEM_COMPRA'\" [agenda]=\"agenda\"></recebimento-ordem-compra-info>\n <processo-avulso-info *ngSwitchCase=\"'PROCESSO_AVULSO'\" [agenda]=\"agenda\"></processo-avulso-info>\n </div>\n </div>\n "
|
|
4119
4142
|
}),
|
|
4120
|
-
__metadata("design:paramtypes", [IntegrationService])
|
|
4143
|
+
__metadata("design:paramtypes", [IntegrationService$1])
|
|
4121
4144
|
], InfoComponent);
|
|
4122
4145
|
return InfoComponent;
|
|
4123
4146
|
}(InfoDescritor));
|
|
@@ -6843,7 +6866,7 @@ var CoreModule = /** @class */ (function () {
|
|
|
6843
6866
|
LogIntegracaoModule
|
|
6844
6867
|
],
|
|
6845
6868
|
providers: [
|
|
6846
|
-
IntegrationService,
|
|
6869
|
+
IntegrationService$1,
|
|
6847
6870
|
NotaValidatorService
|
|
6848
6871
|
],
|
|
6849
6872
|
exports: [],
|
|
@@ -13907,5 +13930,5 @@ var DockModule = /** @class */ (function () {
|
|
|
13907
13930
|
return DockModule;
|
|
13908
13931
|
}());
|
|
13909
13932
|
|
|
13910
|
-
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb,
|
|
13933
|
+
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, RegisterDocumentComponent as ɵba, AgendaService as ɵbb, EntityService$2 as ɵbc, EntityService$1 as ɵbd, InsertKeyModule as ɵbe, InsertKeyComponent as ɵbf, IntegrationService$1 as ɵbg, RecebimentoFormComponent as ɵbh, DerivacaoService as ɵbi, NotaValidatorService as ɵbj, TransgeniaService as ɵbk, VerificaNotafiscal as ɵbl, BuildFormField as ɵbm, ExpedicaoFormComponent as ɵbn, ExpedicaoInfoComponent as ɵbo, RecebimentoInfoComponent as ɵbp, DevolucaoFormComponent as ɵbq, DevolucaoService as ɵbr, DevolucaoChegadaVeiculoOverride as ɵbs, RecebimentoOrdemCompraFormComponent as ɵbt, OrdemCompraService as ɵbu, RecebimentoOrdemCompraService as ɵbv, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbw, RecebimentoOrdemCompraInfoComponent as ɵbx, DevolucaoInfoComponent as ɵby, ContratoFormComponent as ɵbz, ViewImageComponent as ɵc, OrdemCompraFormComponent as ɵca, ProcessoAvulsoFormComponent as ɵcb, ProcessoAvulsoService as ɵcc, ProcessoAvulsoChegadaVeiculoOverride as ɵcd, ProcessoAvulsoInfoComponent as ɵce, LogIntegracaoDescritor as ɵcf, LogIntegracaoComponent as ɵcg, LogIntegracaoService as ɵch, DerivacaoModule as ɵci, DevolucaoModule as ɵcj, OrdemCompraModule as ɵck, RecebimentoOrdemCompraModule as ɵcl, TransgeniaModule as ɵcm, ProcessoAvulsoModule as ɵcn, LogIntegracaoModule as ɵco, NotaFormModule as ɵcp, DirectivesModule as ɵcq, TrimDirective as ɵcr, NotaFormComponent as ɵcs, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, RegisterDocumentModule as ɵz };
|
|
13911
13934
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|