@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
|
@@ -3187,6 +3187,9 @@
|
|
|
3187
3187
|
DocumentService.prototype.findDocuments = function (input) {
|
|
3188
3188
|
return this.http.post('yms_int/wms/queries/findDocuments', input);
|
|
3189
3189
|
};
|
|
3190
|
+
DocumentService.prototype.getSystemIntegration = function () {
|
|
3191
|
+
return this.http.get('yms_int/wms/queries/getSystemIntegration');
|
|
3192
|
+
};
|
|
3190
3193
|
DocumentService = __decorate([
|
|
3191
3194
|
core.Injectable(),
|
|
3192
3195
|
__metadata("design:paramtypes", [http.HttpClient, api.MessageService])
|
|
@@ -3818,6 +3821,116 @@
|
|
|
3818
3821
|
return WmsModule;
|
|
3819
3822
|
}());
|
|
3820
3823
|
|
|
3824
|
+
var INFORMACAOES_ADICIONAIS_HEADER$1 = "Informações adicionais";
|
|
3825
|
+
var DocumentListDescritor = /** @class */ (function () {
|
|
3826
|
+
function DocumentListDescritor() {
|
|
3827
|
+
}
|
|
3828
|
+
DocumentListDescritor = __decorate([
|
|
3829
|
+
ymsRoutines.ControleCircuito({
|
|
3830
|
+
header: INFORMACAOES_ADICIONAIS_HEADER$1,
|
|
3831
|
+
name: 'yms.integracao.wms'
|
|
3832
|
+
})
|
|
3833
|
+
], DocumentListDescritor);
|
|
3834
|
+
return DocumentListDescritor;
|
|
3835
|
+
}());
|
|
3836
|
+
var DocumentListComponent = /** @class */ (function (_super) {
|
|
3837
|
+
__extends(DocumentListComponent, _super);
|
|
3838
|
+
function DocumentListComponent(documentService) {
|
|
3839
|
+
var _this = _super.call(this) || this;
|
|
3840
|
+
_this.documentService = documentService;
|
|
3841
|
+
_this.getColumns = [];
|
|
3842
|
+
_this.documents = [];
|
|
3843
|
+
_this.labels = [];
|
|
3844
|
+
return _this;
|
|
3845
|
+
}
|
|
3846
|
+
DocumentListComponent.prototype.ngOnInit = function () {
|
|
3847
|
+
this.getSystemIntegration();
|
|
3848
|
+
};
|
|
3849
|
+
DocumentListComponent.prototype.getSystemIntegration = function () {
|
|
3850
|
+
var _this = this;
|
|
3851
|
+
this.documentService.getSystemIntegration().subscribe(function (system) {
|
|
3852
|
+
_this.wmsSystem = system.system;
|
|
3853
|
+
_this.getDocumentBySchedulingId();
|
|
3854
|
+
});
|
|
3855
|
+
};
|
|
3856
|
+
DocumentListComponent.prototype.getDocumentBySchedulingId = function () {
|
|
3857
|
+
var _this = this;
|
|
3858
|
+
this.documentService.list({
|
|
3859
|
+
filterQuery: "schedulingId eq '" + this.agenda.id + "'"
|
|
3860
|
+
}).subscribe(function (contents) {
|
|
3861
|
+
if (contents.totalElements > 0) {
|
|
3862
|
+
_this.documents = contents.contents;
|
|
3863
|
+
_this.getColumns = _this.getColumnLabels();
|
|
3864
|
+
}
|
|
3865
|
+
});
|
|
3866
|
+
};
|
|
3867
|
+
DocumentListComponent.prototype.getColumnLabels = function () {
|
|
3868
|
+
if (this.isWmsWIS()) {
|
|
3869
|
+
return __spread(this.getLabelsInvoice());
|
|
3870
|
+
}
|
|
3871
|
+
if (this.isWmsSeniorConnect()) {
|
|
3872
|
+
return [
|
|
3873
|
+
{ label: 'yms.int.wms_purchaseOrder' },
|
|
3874
|
+
{ label: 'yms.int.wms_register_document_partner_name' },
|
|
3875
|
+
{ label: 'yms.int.wms_register_document_partner_document' }
|
|
3876
|
+
];
|
|
3877
|
+
}
|
|
3878
|
+
return __spread([
|
|
3879
|
+
{ label: 'yms.int.wms_register_document_invoice_key' }
|
|
3880
|
+
], this.getLabelsInvoice());
|
|
3881
|
+
};
|
|
3882
|
+
DocumentListComponent.prototype.isWmsSeniorConnect = function () {
|
|
3883
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3884
|
+
};
|
|
3885
|
+
DocumentListComponent.prototype.isWmsWIS = function () {
|
|
3886
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3887
|
+
};
|
|
3888
|
+
DocumentListComponent.prototype.getLabelsInvoice = function () {
|
|
3889
|
+
return [
|
|
3890
|
+
{ label: 'yms.int.wms_register_document_invoice_number' },
|
|
3891
|
+
{ label: 'yms.int.wms_register_document_invoice_serial_number' }
|
|
3892
|
+
];
|
|
3893
|
+
};
|
|
3894
|
+
__decorate([
|
|
3895
|
+
core.Input(),
|
|
3896
|
+
__metadata("design:type", Object)
|
|
3897
|
+
], DocumentListComponent.prototype, "agenda", void 0);
|
|
3898
|
+
__decorate([
|
|
3899
|
+
core.Input(),
|
|
3900
|
+
__metadata("design:type", String)
|
|
3901
|
+
], DocumentListComponent.prototype, "wmsSystem", void 0);
|
|
3902
|
+
DocumentListComponent = __decorate([
|
|
3903
|
+
core.Component({
|
|
3904
|
+
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>"
|
|
3905
|
+
}),
|
|
3906
|
+
__metadata("design:paramtypes", [DocumentService])
|
|
3907
|
+
], DocumentListComponent);
|
|
3908
|
+
return DocumentListComponent;
|
|
3909
|
+
}(DocumentListDescritor));
|
|
3910
|
+
|
|
3911
|
+
var DocumentListModule = /** @class */ (function () {
|
|
3912
|
+
function DocumentListModule(dispatcher) {
|
|
3913
|
+
this.dispatcher = dispatcher;
|
|
3914
|
+
this.dispatcher.dispatch(DocumentListComponent);
|
|
3915
|
+
}
|
|
3916
|
+
DocumentListModule = __decorate([
|
|
3917
|
+
core.NgModule({
|
|
3918
|
+
imports: [
|
|
3919
|
+
common.CommonModule,
|
|
3920
|
+
core$1.TranslateModule,
|
|
3921
|
+
angularComponents.LoadingStateModule,
|
|
3922
|
+
table.TableModule
|
|
3923
|
+
],
|
|
3924
|
+
declarations: [DocumentListComponent],
|
|
3925
|
+
entryComponents: [DocumentListComponent],
|
|
3926
|
+
exports: [DocumentListComponent],
|
|
3927
|
+
providers: [DocumentService]
|
|
3928
|
+
}),
|
|
3929
|
+
__metadata("design:paramtypes", [ymsRoutines.IntegrationDispatcher])
|
|
3930
|
+
], DocumentListModule);
|
|
3931
|
+
return DocumentListModule;
|
|
3932
|
+
}());
|
|
3933
|
+
|
|
3821
3934
|
var EntityService$1 = /** @class */ (function () {
|
|
3822
3935
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3823
3936
|
this.http = http;
|
|
@@ -14027,6 +14140,8 @@
|
|
|
14027
14140
|
exports.CoreModule = CoreModule;
|
|
14028
14141
|
exports.DockModule = DockModule;
|
|
14029
14142
|
exports.DockService = DockService;
|
|
14143
|
+
exports.DocumentListComponent = DocumentListComponent;
|
|
14144
|
+
exports.DocumentListModule = DocumentListModule;
|
|
14030
14145
|
exports.ERP_ENVIRONMENT = ERP_ENVIRONMENT;
|
|
14031
14146
|
exports.ERP_SENIOR_HEADER = ERP_SENIOR_HEADER;
|
|
14032
14147
|
exports.EmpresaModule = EmpresaModule;
|