@seniorsistemas/yms-integration 1.23.0 → 1.25.0-fb567b04-f458-4186-9566-f0563cb9fb94
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 +134 -59
- 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 +50 -49
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +7 -2
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +19 -4
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +16 -3
- package/esm2015/src/wms/entities/document/document-dto.js +1 -1
- package/esm2015/src/wms/entities/wms-system/wms-system.js +3 -2
- package/esm2015/src/wms/form/form-wms.component.js +20 -5
- package/esm2015/src/wms/form/form-wms.service.js +25 -0
- package/esm2015/src/wms/wms.module.js +4 -2
- package/esm5/seniorsistemas-yms-integration.js +50 -49
- package/esm5/src/wms/components/document-grid/document-grid.component.js +7 -2
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +19 -4
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +16 -3
- package/esm5/src/wms/entities/document/document-dto.js +1 -1
- package/esm5/src/wms/entities/wms-system/wms-system.js +3 -2
- package/esm5/src/wms/form/form-wms.component.js +21 -5
- package/esm5/src/wms/form/form-wms.service.js +28 -0
- package/esm5/src/wms/wms.module.js +4 -2
- package/fesm2015/seniorsistemas-yms-integration.js +82 -12
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +86 -12
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +49 -48
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +2 -0
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +4 -0
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +4 -0
- package/src/wms/entities/document/document-dto.d.ts +1 -1
- package/src/wms/entities/wms-system/wms-system.d.ts +2 -1
- package/src/wms/form/form-wms.component.d.ts +5 -1
- package/src/wms/form/form-wms.service.d.ts +9 -0
|
@@ -9,7 +9,7 @@ import { MessageModule } from 'primeng/message';
|
|
|
9
9
|
import { TableModule, Table } from 'primeng/table';
|
|
10
10
|
import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
11
11
|
import { MessageService, DynamicDialogRef, DynamicDialogConfig, DialogService, ConfirmationService } from 'primeng/api';
|
|
12
|
-
import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule,
|
|
12
|
+
import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule, Agendamento, ChegadaVeiculoOverride } from '@seniorsistemas/yms-routines';
|
|
13
13
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
14
14
|
import { PermissionsModule } from '@seniorsistemas/platform-components';
|
|
15
15
|
import { StompConfig, StompService } from '@stomp/ng2-stompjs';
|
|
@@ -2995,11 +2995,44 @@ var VisitorListModule = /** @class */ (function () {
|
|
|
2995
2995
|
return VisitorListModule;
|
|
2996
2996
|
}());
|
|
2997
2997
|
|
|
2998
|
+
var WmsSystem;
|
|
2999
|
+
(function (WmsSystem) {
|
|
3000
|
+
WmsSystem["NONE"] = "NONE";
|
|
3001
|
+
WmsSystem["SENIOR"] = "SENIOR";
|
|
3002
|
+
WmsSystem["WIS"] = "WIS";
|
|
3003
|
+
WmsSystem["ALCIS"] = "ALCIS";
|
|
3004
|
+
WmsSystem["SENIOR_CONNECT"] = "SENIOR_CONNECT";
|
|
3005
|
+
WmsSystem["GENERIC"] = "GENERIC";
|
|
3006
|
+
})(WmsSystem || (WmsSystem = {}));
|
|
3007
|
+
|
|
3008
|
+
var FormWmsService = /** @class */ (function (_super) {
|
|
3009
|
+
__extends(FormWmsService, _super);
|
|
3010
|
+
function FormWmsService(http, messageService) {
|
|
3011
|
+
var _this = _super.call(this, messageService) || this;
|
|
3012
|
+
_this.http = http;
|
|
3013
|
+
_this.messageService = messageService;
|
|
3014
|
+
return _this;
|
|
3015
|
+
}
|
|
3016
|
+
FormWmsService.prototype.getSystemIntegration = function () {
|
|
3017
|
+
return this.http.post("yms_int/wms/queries/getSystemIntegration", {});
|
|
3018
|
+
};
|
|
3019
|
+
FormWmsService.ngInjectableDef = defineInjectable({ factory: function FormWmsService_Factory() { return new FormWmsService(inject(HttpClient), inject(MessageService$1)); }, token: FormWmsService, providedIn: "root" });
|
|
3020
|
+
FormWmsService = __decorate([
|
|
3021
|
+
Injectable({ providedIn: 'root' }),
|
|
3022
|
+
__metadata("design:paramtypes", [HttpClient, MessageService$1])
|
|
3023
|
+
], FormWmsService);
|
|
3024
|
+
return FormWmsService;
|
|
3025
|
+
}(Service));
|
|
3026
|
+
|
|
2998
3027
|
var INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
2999
3028
|
var FormWmsDescritor = /** @class */ (function () {
|
|
3000
3029
|
function FormWmsDescritor() {
|
|
3001
3030
|
}
|
|
3002
3031
|
FormWmsDescritor = __decorate([
|
|
3032
|
+
Agendamento({
|
|
3033
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3034
|
+
name: 'yms.integracao.wms'
|
|
3035
|
+
}),
|
|
3003
3036
|
ChegadaVeiculo({
|
|
3004
3037
|
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3005
3038
|
name: 'yms.integracao.wms',
|
|
@@ -3010,9 +3043,10 @@ var FormWmsDescritor = /** @class */ (function () {
|
|
|
3010
3043
|
}());
|
|
3011
3044
|
var FormWmsComponent = /** @class */ (function (_super) {
|
|
3012
3045
|
__extends(FormWmsComponent, _super);
|
|
3013
|
-
function FormWmsComponent(integrationCallback) {
|
|
3046
|
+
function FormWmsComponent(integrationCallback, wmsService) {
|
|
3014
3047
|
var _this = _super.call(this) || this;
|
|
3015
3048
|
_this.integrationCallback = integrationCallback;
|
|
3049
|
+
_this.wmsService = wmsService;
|
|
3016
3050
|
_this.save = [];
|
|
3017
3051
|
_this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
3018
3052
|
_this.loading = false;
|
|
@@ -3028,6 +3062,11 @@ var FormWmsComponent = /** @class */ (function (_super) {
|
|
|
3028
3062
|
return empty();
|
|
3029
3063
|
}))
|
|
3030
3064
|
.subscribe();
|
|
3065
|
+
this.wmsService.getSystemIntegration()
|
|
3066
|
+
.subscribe(function (_a) {
|
|
3067
|
+
var system = _a.system;
|
|
3068
|
+
_this.wmsSystem = system;
|
|
3069
|
+
});
|
|
3031
3070
|
};
|
|
3032
3071
|
FormWmsComponent.prototype.ngOnDestroy = function () {
|
|
3033
3072
|
this.unsubscribe$.next();
|
|
@@ -3041,11 +3080,15 @@ var FormWmsComponent = /** @class */ (function (_super) {
|
|
|
3041
3080
|
Input(),
|
|
3042
3081
|
__metadata("design:type", Array)
|
|
3043
3082
|
], FormWmsComponent.prototype, "save", void 0);
|
|
3083
|
+
__decorate([
|
|
3084
|
+
Input(),
|
|
3085
|
+
__metadata("design:type", String)
|
|
3086
|
+
], FormWmsComponent.prototype, "wmsSystem", void 0);
|
|
3044
3087
|
FormWmsComponent = __decorate([
|
|
3045
3088
|
Component({
|
|
3046
|
-
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\"></document-grid>\n </div>\n "
|
|
3089
|
+
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\" [wmsSystem]=\"wmsSystem\" ></document-grid>\n </div>\n "
|
|
3047
3090
|
}),
|
|
3048
|
-
__metadata("design:paramtypes", [IntegrationEventsCallback])
|
|
3091
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback, FormWmsService])
|
|
3049
3092
|
], FormWmsComponent);
|
|
3050
3093
|
return FormWmsComponent;
|
|
3051
3094
|
}(FormWmsDescritor));
|
|
@@ -3207,6 +3250,10 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3207
3250
|
Input(),
|
|
3208
3251
|
__metadata("design:type", Object)
|
|
3209
3252
|
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3253
|
+
__decorate([
|
|
3254
|
+
Input(),
|
|
3255
|
+
__metadata("design:type", String)
|
|
3256
|
+
], DocumentGridComponent.prototype, "wmsSystem", void 0);
|
|
3210
3257
|
__decorate([
|
|
3211
3258
|
Output(),
|
|
3212
3259
|
__metadata("design:type", Boolean)
|
|
@@ -3246,7 +3293,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3246
3293
|
DocumentGridComponent = __decorate([
|
|
3247
3294
|
Component({
|
|
3248
3295
|
selector: 'document-grid',
|
|
3249
|
-
template: "<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[\"
|
|
3296
|
+
template: "<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 class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\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",
|
|
3250
3297
|
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}"]
|
|
3251
3298
|
}),
|
|
3252
3299
|
__metadata("design:paramtypes", [TranslateService,
|
|
@@ -3451,6 +3498,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3451
3498
|
this.formGroup.reset();
|
|
3452
3499
|
};
|
|
3453
3500
|
RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
|
|
3501
|
+
this.formGroup.get('key').setValue(document.key);
|
|
3454
3502
|
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3455
3503
|
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3456
3504
|
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
@@ -3470,7 +3518,8 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3470
3518
|
};
|
|
3471
3519
|
RegisterDocumentComponent.prototype.getFormGroup = function () {
|
|
3472
3520
|
this.formGroup = this.fb.group({
|
|
3473
|
-
|
|
3521
|
+
key: [undefined, Validators.required],
|
|
3522
|
+
invoiceKey: [undefined],
|
|
3474
3523
|
schedulingId: [undefined],
|
|
3475
3524
|
invoiceNumber: [undefined],
|
|
3476
3525
|
invoiceSerialNumber: [undefined],
|
|
@@ -3502,6 +3551,12 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3502
3551
|
detail: this.translateService.instant("yms.int.wms_success_message_description"),
|
|
3503
3552
|
});
|
|
3504
3553
|
};
|
|
3554
|
+
RegisterDocumentComponent.prototype.isWmsWis = function () {
|
|
3555
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3556
|
+
};
|
|
3557
|
+
RegisterDocumentComponent.prototype.isWmsSeniorConnect = function () {
|
|
3558
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3559
|
+
};
|
|
3505
3560
|
__decorate([
|
|
3506
3561
|
Input(),
|
|
3507
3562
|
__metadata("design:type", Array)
|
|
@@ -3518,6 +3573,10 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3518
3573
|
Output(),
|
|
3519
3574
|
__metadata("design:type", EventEmitter)
|
|
3520
3575
|
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3576
|
+
__decorate([
|
|
3577
|
+
Input(),
|
|
3578
|
+
__metadata("design:type", String)
|
|
3579
|
+
], RegisterDocumentComponent.prototype, "wmsSystem", void 0);
|
|
3521
3580
|
__decorate([
|
|
3522
3581
|
Input(),
|
|
3523
3582
|
__metadata("design:type", EventEmitter)
|
|
@@ -3529,7 +3588,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3529
3588
|
RegisterDocumentComponent = __decorate([
|
|
3530
3589
|
Component({
|
|
3531
3590
|
selector: "register-document",
|
|
3532
|
-
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6
|
|
3591
|
+
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }} {{ wmsSystem }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-8\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-4\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-8\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-4\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-8\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-4\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"4\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-4\">\n <label for=\"code\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"code\" pInputText type=\"text\" formControlName=\"code\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\" (click)=\"save()\" [attr.data-hidden]=\"hideSaveButton\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
|
|
3533
3592
|
}),
|
|
3534
3593
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3535
3594
|
MessageService,
|
|
@@ -3576,9 +3635,19 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3576
3635
|
}
|
|
3577
3636
|
InsertKeyComponent.prototype.ngOnInit = function () {
|
|
3578
3637
|
this.formGroup = this.formBuilder.group({
|
|
3579
|
-
key: [undefined]
|
|
3638
|
+
key: [undefined],
|
|
3639
|
+
purchaseOrder: [undefined],
|
|
3640
|
+
invoiceNumber: [undefined],
|
|
3641
|
+
invoiceSerie: [undefined],
|
|
3642
|
+
partnerDocument: [undefined]
|
|
3580
3643
|
});
|
|
3581
3644
|
};
|
|
3645
|
+
InsertKeyComponent.prototype.isWmsWis = function () {
|
|
3646
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3647
|
+
};
|
|
3648
|
+
InsertKeyComponent.prototype.isWmsSeniorConnect = function () {
|
|
3649
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3650
|
+
};
|
|
3582
3651
|
InsertKeyComponent.prototype.add = function () {
|
|
3583
3652
|
this.visibleChange.emit(false);
|
|
3584
3653
|
if (!this.formGroup.get('key').value) {
|
|
@@ -3623,6 +3692,10 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3623
3692
|
Input(),
|
|
3624
3693
|
__metadata("design:type", EventEmitter)
|
|
3625
3694
|
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3695
|
+
__decorate([
|
|
3696
|
+
Input(),
|
|
3697
|
+
__metadata("design:type", String)
|
|
3698
|
+
], InsertKeyComponent.prototype, "wmsSystem", void 0);
|
|
3626
3699
|
__decorate([
|
|
3627
3700
|
Output(),
|
|
3628
3701
|
__metadata("design:type", Object)
|
|
@@ -3630,8 +3703,8 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3630
3703
|
InsertKeyComponent = __decorate([
|
|
3631
3704
|
Component({
|
|
3632
3705
|
selector: "insert-key",
|
|
3633
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.
|
|
3634
|
-
styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:
|
|
3706
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.wms_search_document' | translate}} {{ wmsSystem }}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" \n *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\n <label for=\"key\">{{'yms.int.wms_insert_key_label' | translate}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"purchaseOrder\">{{'yms.int.wms_purchaseOrder' | translate}} </label>\n <input id=\"purchaseOrder\" class=\"size-input\" pInputText type=\"text\" formControlName=\"purchaseOrder\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceSerie\">{{'yms.int.wms_invoice_serie' | translate}}</label>\n <input id=\"invoiceSerie\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceSerie\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"partnerDocument\">{{'yms.int.wms_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" class=\"size-input\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
|
|
3707
|
+
styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:480px}"]
|
|
3635
3708
|
}),
|
|
3636
3709
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3637
3710
|
DocumentService,
|
|
@@ -3729,7 +3802,8 @@ var WmsModule = /** @class */ (function () {
|
|
|
3729
3802
|
],
|
|
3730
3803
|
providers: [
|
|
3731
3804
|
FieldCustomizationService,
|
|
3732
|
-
FocusService
|
|
3805
|
+
FocusService,
|
|
3806
|
+
FormWmsService
|
|
3733
3807
|
]
|
|
3734
3808
|
}),
|
|
3735
3809
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
@@ -13833,5 +13907,5 @@ var DockModule = /** @class */ (function () {
|
|
|
13833
13907
|
return DockModule;
|
|
13834
13908
|
}());
|
|
13835
13909
|
|
|
13836
|
-
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,
|
|
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, AgendaService as ɵba, EntityService$2 as ɵbb, EntityService$1 as ɵbc, InsertKeyModule as ɵbd, InsertKeyComponent as ɵbe, IntegrationService as ɵbf, RecebimentoFormComponent as ɵbg, DerivacaoService as ɵbh, NotaValidatorService as ɵbi, TransgeniaService as ɵbj, VerificaNotafiscal as ɵbk, BuildFormField as ɵbl, ExpedicaoFormComponent as ɵbm, ExpedicaoInfoComponent as ɵbn, RecebimentoInfoComponent as ɵbo, DevolucaoFormComponent as ɵbp, DevolucaoService as ɵbq, DevolucaoChegadaVeiculoOverride as ɵbr, RecebimentoOrdemCompraFormComponent as ɵbs, OrdemCompraService as ɵbt, RecebimentoOrdemCompraService as ɵbu, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbv, RecebimentoOrdemCompraInfoComponent as ɵbw, DevolucaoInfoComponent as ɵbx, ContratoFormComponent as ɵby, OrdemCompraFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoFormComponent as ɵca, ProcessoAvulsoService as ɵcb, ProcessoAvulsoChegadaVeiculoOverride as ɵcc, ProcessoAvulsoInfoComponent as ɵcd, LogIntegracaoDescritor as ɵce, LogIntegracaoComponent as ɵcf, LogIntegracaoService as ɵcg, DerivacaoModule as ɵch, DevolucaoModule as ɵci, OrdemCompraModule as ɵcj, RecebimentoOrdemCompraModule as ɵck, TransgeniaModule as ɵcl, ProcessoAvulsoModule as ɵcm, LogIntegracaoModule as ɵcn, NotaFormModule as ɵco, DirectivesModule as ɵcp, TrimDirective as ɵcq, NotaFormComponent as ɵcr, 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, RegisterDocumentModule as ɵy, RegisterDocumentComponent as ɵz };
|
|
13837
13911
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|