@seniorsistemas/yms-integration 1.28.0 → 1.29.0
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 +115 -0
- 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 +3 -1
- package/esm2015/src/wms/components/document-list/document-list.component.js +88 -0
- package/esm2015/src/wms/components/document-list/document-list.module.js +32 -0
- package/esm2015/src/wms/entities/agenda/agenda-dto.js +1 -0
- package/esm2015/src/wms/entities/document/document.service.js +4 -1
- package/esm5/index.js +3 -1
- package/esm5/src/wms/components/document-list/document-list.component.js +93 -0
- package/esm5/src/wms/components/document-list/document-list.module.js +33 -0
- package/esm5/src/wms/entities/agenda/agenda-dto.js +1 -0
- package/esm5/src/wms/entities/document/document.service.js +4 -1
- package/fesm2015/seniorsistemas-yms-integration.js +108 -1
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +114 -1
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-list/document-list.component.d.ts +26 -0
- package/src/wms/components/document-list/document-list.module.d.ts +5 -0
- package/src/wms/entities/agenda/agenda-dto.d.ts +12 -0
- package/src/wms/entities/document/document.service.d.ts +1 -0
|
@@ -3128,6 +3128,9 @@ var DocumentService = /** @class */ (function (_super) {
|
|
|
3128
3128
|
DocumentService.prototype.findDocuments = function (input) {
|
|
3129
3129
|
return this.http.post('yms_int/wms/queries/findDocuments', input);
|
|
3130
3130
|
};
|
|
3131
|
+
DocumentService.prototype.getSystemIntegration = function () {
|
|
3132
|
+
return this.http.get('yms_int/wms/queries/getSystemIntegration');
|
|
3133
|
+
};
|
|
3131
3134
|
DocumentService = __decorate([
|
|
3132
3135
|
Injectable(),
|
|
3133
3136
|
__metadata("design:paramtypes", [HttpClient, MessageService])
|
|
@@ -3759,6 +3762,116 @@ var WmsModule = /** @class */ (function () {
|
|
|
3759
3762
|
return WmsModule;
|
|
3760
3763
|
}());
|
|
3761
3764
|
|
|
3765
|
+
var INFORMACAOES_ADICIONAIS_HEADER$1 = "Informações adicionais";
|
|
3766
|
+
var DocumentListDescritor = /** @class */ (function () {
|
|
3767
|
+
function DocumentListDescritor() {
|
|
3768
|
+
}
|
|
3769
|
+
DocumentListDescritor = __decorate([
|
|
3770
|
+
ControleCircuito({
|
|
3771
|
+
header: INFORMACAOES_ADICIONAIS_HEADER$1,
|
|
3772
|
+
name: 'yms.integracao.wms'
|
|
3773
|
+
})
|
|
3774
|
+
], DocumentListDescritor);
|
|
3775
|
+
return DocumentListDescritor;
|
|
3776
|
+
}());
|
|
3777
|
+
var DocumentListComponent = /** @class */ (function (_super) {
|
|
3778
|
+
__extends(DocumentListComponent, _super);
|
|
3779
|
+
function DocumentListComponent(documentService) {
|
|
3780
|
+
var _this = _super.call(this) || this;
|
|
3781
|
+
_this.documentService = documentService;
|
|
3782
|
+
_this.getColumns = [];
|
|
3783
|
+
_this.documents = [];
|
|
3784
|
+
_this.labels = [];
|
|
3785
|
+
return _this;
|
|
3786
|
+
}
|
|
3787
|
+
DocumentListComponent.prototype.ngOnInit = function () {
|
|
3788
|
+
this.getSystemIntegration();
|
|
3789
|
+
};
|
|
3790
|
+
DocumentListComponent.prototype.getSystemIntegration = function () {
|
|
3791
|
+
var _this = this;
|
|
3792
|
+
this.documentService.getSystemIntegration().subscribe(function (system) {
|
|
3793
|
+
_this.wmsSystem = system.system;
|
|
3794
|
+
_this.getDocumentBySchedulingId();
|
|
3795
|
+
});
|
|
3796
|
+
};
|
|
3797
|
+
DocumentListComponent.prototype.getDocumentBySchedulingId = function () {
|
|
3798
|
+
var _this = this;
|
|
3799
|
+
this.documentService.list({
|
|
3800
|
+
filterQuery: "schedulingId eq '" + this.agenda.id + "'"
|
|
3801
|
+
}).subscribe(function (contents) {
|
|
3802
|
+
if (contents.totalElements > 0) {
|
|
3803
|
+
_this.documents = contents.contents;
|
|
3804
|
+
_this.getColumns = _this.getColumnLabels();
|
|
3805
|
+
}
|
|
3806
|
+
});
|
|
3807
|
+
};
|
|
3808
|
+
DocumentListComponent.prototype.getColumnLabels = function () {
|
|
3809
|
+
if (this.isWmsWIS()) {
|
|
3810
|
+
return __spread(this.getLabelsInvoice());
|
|
3811
|
+
}
|
|
3812
|
+
if (this.isWmsSeniorConnect()) {
|
|
3813
|
+
return [
|
|
3814
|
+
{ label: 'yms.int.wms_purchaseOrder' },
|
|
3815
|
+
{ label: 'yms.int.wms_register_document_partner_name' },
|
|
3816
|
+
{ label: 'yms.int.wms_register_document_partner_document' }
|
|
3817
|
+
];
|
|
3818
|
+
}
|
|
3819
|
+
return __spread([
|
|
3820
|
+
{ label: 'yms.int.wms_register_document_invoice_key' }
|
|
3821
|
+
], this.getLabelsInvoice());
|
|
3822
|
+
};
|
|
3823
|
+
DocumentListComponent.prototype.isWmsSeniorConnect = function () {
|
|
3824
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3825
|
+
};
|
|
3826
|
+
DocumentListComponent.prototype.isWmsWIS = function () {
|
|
3827
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3828
|
+
};
|
|
3829
|
+
DocumentListComponent.prototype.getLabelsInvoice = function () {
|
|
3830
|
+
return [
|
|
3831
|
+
{ label: 'yms.int.wms_register_document_invoice_number' },
|
|
3832
|
+
{ label: 'yms.int.wms_register_document_invoice_serial_number' }
|
|
3833
|
+
];
|
|
3834
|
+
};
|
|
3835
|
+
__decorate([
|
|
3836
|
+
Input(),
|
|
3837
|
+
__metadata("design:type", Object)
|
|
3838
|
+
], DocumentListComponent.prototype, "agenda", void 0);
|
|
3839
|
+
__decorate([
|
|
3840
|
+
Input(),
|
|
3841
|
+
__metadata("design:type", String)
|
|
3842
|
+
], DocumentListComponent.prototype, "wmsSystem", void 0);
|
|
3843
|
+
DocumentListComponent = __decorate([
|
|
3844
|
+
Component({
|
|
3845
|
+
template: "<div> \n <p-table [value]=\"documents\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th id=\"columns\" *ngFor=\"let column of getColumns\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ column.label | translate }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template let-rowData pTemplate=\"body\">\n <tr *ngIf=\"isWmsWIS()\">\n <td id=\"\">{{rowData?.invoiceNumber}}</td>\n <td id=\"\">{{rowData?.invoiceSerialNumber}}</td>\n </tr>\n <tr *ngIf=\"isWmsSeniorConnect()\">\n <td id=\"\">{{rowData?.key}}</td>\n <td id=\"\">{{rowData?.partnerName}}</td>\n <td id=\"\">{{rowData?.partnerDocument}}</td>\n </tr>\n <tr *ngIf=\"!isWmsWIS() && !isWmsSeniorConnect()\">\n <td id=\"\">{{rowData?.invoiceKey}}</td>\n <td id=\"\">{{rowData?.invoiceNumber}}</td>\n <td id=\"\">{{rowData?.invoiceSerialNumber}}</td>\n </tr>\n </ng-template>\n </p-table>\n</div>"
|
|
3846
|
+
}),
|
|
3847
|
+
__metadata("design:paramtypes", [DocumentService])
|
|
3848
|
+
], DocumentListComponent);
|
|
3849
|
+
return DocumentListComponent;
|
|
3850
|
+
}(DocumentListDescritor));
|
|
3851
|
+
|
|
3852
|
+
var DocumentListModule = /** @class */ (function () {
|
|
3853
|
+
function DocumentListModule(dispatcher) {
|
|
3854
|
+
this.dispatcher = dispatcher;
|
|
3855
|
+
this.dispatcher.dispatch(DocumentListComponent);
|
|
3856
|
+
}
|
|
3857
|
+
DocumentListModule = __decorate([
|
|
3858
|
+
NgModule({
|
|
3859
|
+
imports: [
|
|
3860
|
+
CommonModule,
|
|
3861
|
+
TranslateModule,
|
|
3862
|
+
LoadingStateModule,
|
|
3863
|
+
TableModule
|
|
3864
|
+
],
|
|
3865
|
+
declarations: [DocumentListComponent],
|
|
3866
|
+
entryComponents: [DocumentListComponent],
|
|
3867
|
+
exports: [DocumentListComponent],
|
|
3868
|
+
providers: [DocumentService]
|
|
3869
|
+
}),
|
|
3870
|
+
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
3871
|
+
], DocumentListModule);
|
|
3872
|
+
return DocumentListModule;
|
|
3873
|
+
}());
|
|
3874
|
+
|
|
3762
3875
|
var EntityService$1 = /** @class */ (function () {
|
|
3763
3876
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3764
3877
|
this.http = http;
|
|
@@ -13949,5 +14062,5 @@ var DockModule = /** @class */ (function () {
|
|
|
13949
14062
|
return DockModule;
|
|
13950
14063
|
}());
|
|
13951
14064
|
|
|
13952
|
-
export { AgendaModule, 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, InsertKeyModule as ɵbb, InsertKeyComponent as ɵbc, EntityService$1 as ɵbd, IntegrationService$1 as ɵbe, RecebimentoFormComponent as ɵbf, DerivacaoService as ɵbg, NotaValidatorService as ɵbh, TransgeniaService as ɵbi, VerificaNotafiscal as ɵbj, BuildFormField as ɵbk, ExpedicaoFormComponent as ɵbl, ExpedicaoInfoComponent as ɵbm, RecebimentoInfoComponent as ɵbn, DevolucaoFormComponent as ɵbo, DevolucaoService as ɵbp, DevolucaoChegadaVeiculoOverride as ɵbq, RecebimentoOrdemCompraFormComponent as ɵbr, OrdemCompraService as ɵbs, RecebimentoOrdemCompraService as ɵbt, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraInfoComponent as ɵbv, DevolucaoInfoComponent as ɵbw, ContratoFormComponent as ɵbx, OrdemCompraFormComponent as ɵby, ProcessoAvulsoFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoService as ɵca, ProcessoAvulsoChegadaVeiculoOverride as ɵcb, ProcessoAvulsoInfoComponent as ɵcc, LogIntegracaoDescritor as ɵcd, LogIntegracaoComponent as ɵce, LogIntegracaoService as ɵcf, DerivacaoModule as ɵcg, DevolucaoModule as ɵch, OrdemCompraModule as ɵci, RecebimentoOrdemCompraModule as ɵcj, TransgeniaModule as ɵck, ProcessoAvulsoModule as ɵcl, LogIntegracaoModule as ɵcm, NotaFormModule as ɵcn, DirectivesModule as ɵco, TrimDirective as ɵcp, NotaFormComponent as ɵcq, 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 };
|
|
14065
|
+
export { AgendaModule, AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, 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, InsertKeyModule as ɵbb, InsertKeyComponent as ɵbc, EntityService$1 as ɵbd, IntegrationService$1 as ɵbe, RecebimentoFormComponent as ɵbf, DerivacaoService as ɵbg, NotaValidatorService as ɵbh, TransgeniaService as ɵbi, VerificaNotafiscal as ɵbj, BuildFormField as ɵbk, ExpedicaoFormComponent as ɵbl, ExpedicaoInfoComponent as ɵbm, RecebimentoInfoComponent as ɵbn, DevolucaoFormComponent as ɵbo, DevolucaoService as ɵbp, DevolucaoChegadaVeiculoOverride as ɵbq, RecebimentoOrdemCompraFormComponent as ɵbr, OrdemCompraService as ɵbs, RecebimentoOrdemCompraService as ɵbt, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraInfoComponent as ɵbv, DevolucaoInfoComponent as ɵbw, ContratoFormComponent as ɵbx, OrdemCompraFormComponent as ɵby, ProcessoAvulsoFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoService as ɵca, ProcessoAvulsoChegadaVeiculoOverride as ɵcb, ProcessoAvulsoInfoComponent as ɵcc, LogIntegracaoDescritor as ɵcd, LogIntegracaoComponent as ɵce, LogIntegracaoService as ɵcf, DerivacaoModule as ɵcg, DevolucaoModule as ɵch, OrdemCompraModule as ɵci, RecebimentoOrdemCompraModule as ɵcj, TransgeniaModule as ɵck, ProcessoAvulsoModule as ɵcl, LogIntegracaoModule as ɵcm, NotaFormModule as ɵcn, DirectivesModule as ɵco, TrimDirective as ɵcp, NotaFormComponent as ɵcq, 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 };
|
|
13953
14066
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|