@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
|
@@ -3152,6 +3152,21 @@
|
|
|
3152
3152
|
return FormWmsComponent;
|
|
3153
3153
|
}(FormWmsDescritor));
|
|
3154
3154
|
|
|
3155
|
+
var IntegrationService = /** @class */ (function () {
|
|
3156
|
+
function IntegrationService(httpClient) {
|
|
3157
|
+
this.httpClient = httpClient;
|
|
3158
|
+
}
|
|
3159
|
+
IntegrationService.prototype.getProcessTypeByScheduling = function (idSchedulingType) {
|
|
3160
|
+
return this.httpClient.post('yms/integration/queries/getProcessTypeByScheduling', { idSchedulingType: idSchedulingType });
|
|
3161
|
+
};
|
|
3162
|
+
IntegrationService.ngInjectableDef = core.defineInjectable({ factory: function IntegrationService_Factory() { return new IntegrationService(core.inject(http.HttpClient)); }, token: IntegrationService, providedIn: "root" });
|
|
3163
|
+
IntegrationService = __decorate([
|
|
3164
|
+
core.Injectable({ providedIn: 'root' }),
|
|
3165
|
+
__metadata("design:paramtypes", [http.HttpClient])
|
|
3166
|
+
], IntegrationService);
|
|
3167
|
+
return IntegrationService;
|
|
3168
|
+
}());
|
|
3169
|
+
|
|
3155
3170
|
var DocumentService = /** @class */ (function (_super) {
|
|
3156
3171
|
__extends(DocumentService, _super);
|
|
3157
3172
|
function DocumentService(http, messageService) {
|
|
@@ -3171,11 +3186,12 @@
|
|
|
3171
3186
|
}(EntityService));
|
|
3172
3187
|
|
|
3173
3188
|
var DocumentGridComponent = /** @class */ (function () {
|
|
3174
|
-
function DocumentGridComponent(translate, documentService, messageService, confirmationService) {
|
|
3189
|
+
function DocumentGridComponent(translate, documentService, messageService, confirmationService, integrationService) {
|
|
3175
3190
|
this.translate = translate;
|
|
3176
3191
|
this.documentService = documentService;
|
|
3177
3192
|
this.messageService = messageService;
|
|
3178
3193
|
this.confirmationService = confirmationService;
|
|
3194
|
+
this.integrationService = integrationService;
|
|
3179
3195
|
this.viewDocument = new core.EventEmitter();
|
|
3180
3196
|
this.gridData = [];
|
|
3181
3197
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
@@ -3183,8 +3199,14 @@
|
|
|
3183
3199
|
}
|
|
3184
3200
|
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3185
3201
|
this.gridColumns = this.getGridColumns();
|
|
3202
|
+
this.getProcessTypeByScheduling();
|
|
3186
3203
|
this.listDocuments();
|
|
3187
3204
|
};
|
|
3205
|
+
DocumentGridComponent.prototype.getProcessTypeByScheduling = function () {
|
|
3206
|
+
var _this = this;
|
|
3207
|
+
this.integrationService.getProcessTypeByScheduling(this.agenda.tipoAgendamento.id)
|
|
3208
|
+
.subscribe(function (result) { return _this.processType = result.processType; });
|
|
3209
|
+
};
|
|
3188
3210
|
DocumentGridComponent.prototype.onChangeDocument = function (document) {
|
|
3189
3211
|
this.gridData.push(document);
|
|
3190
3212
|
this.disabled = false;
|
|
@@ -3352,13 +3374,14 @@
|
|
|
3352
3374
|
DocumentGridComponent = __decorate([
|
|
3353
3375
|
core.Component({
|
|
3354
3376
|
selector: 'document-grid',
|
|
3355
|
-
template: "<p-panel>\n
|
|
3377
|
+
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>",
|
|
3356
3378
|
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}"]
|
|
3357
3379
|
}),
|
|
3358
3380
|
__metadata("design:paramtypes", [core$1.TranslateService,
|
|
3359
3381
|
DocumentService,
|
|
3360
3382
|
api.MessageService,
|
|
3361
|
-
api.ConfirmationService
|
|
3383
|
+
api.ConfirmationService,
|
|
3384
|
+
IntegrationService])
|
|
3362
3385
|
], DocumentGridComponent);
|
|
3363
3386
|
return DocumentGridComponent;
|
|
3364
3387
|
}());
|
|
@@ -4043,7 +4066,7 @@
|
|
|
4043
4066
|
return ExpedicaoChegadaVeiculoOverride;
|
|
4044
4067
|
}());
|
|
4045
4068
|
|
|
4046
|
-
var IntegrationService = /** @class */ (function () {
|
|
4069
|
+
var IntegrationService$1 = /** @class */ (function () {
|
|
4047
4070
|
function IntegrationService(http, messageService) {
|
|
4048
4071
|
this.http = http;
|
|
4049
4072
|
this.messageService = messageService;
|
|
@@ -4125,7 +4148,7 @@
|
|
|
4125
4148
|
core.Component({
|
|
4126
4149
|
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 "
|
|
4127
4150
|
}),
|
|
4128
|
-
__metadata("design:paramtypes", [ymsRoutines.IntegrationEventsCallback, IntegrationService])
|
|
4151
|
+
__metadata("design:paramtypes", [ymsRoutines.IntegrationEventsCallback, IntegrationService$1])
|
|
4129
4152
|
], FormComponent);
|
|
4130
4153
|
return FormComponent;
|
|
4131
4154
|
}(FormDescritor));
|
|
@@ -4176,7 +4199,7 @@
|
|
|
4176
4199
|
core.Component({
|
|
4177
4200
|
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 "
|
|
4178
4201
|
}),
|
|
4179
|
-
__metadata("design:paramtypes", [IntegrationService])
|
|
4202
|
+
__metadata("design:paramtypes", [IntegrationService$1])
|
|
4180
4203
|
], InfoComponent);
|
|
4181
4204
|
return InfoComponent;
|
|
4182
4205
|
}(InfoDescritor));
|
|
@@ -6902,7 +6925,7 @@
|
|
|
6902
6925
|
LogIntegracaoModule
|
|
6903
6926
|
],
|
|
6904
6927
|
providers: [
|
|
6905
|
-
IntegrationService,
|
|
6928
|
+
IntegrationService$1,
|
|
6906
6929
|
NotaValidatorService
|
|
6907
6930
|
],
|
|
6908
6931
|
exports: [],
|
|
@@ -14061,51 +14084,52 @@
|
|
|
14061
14084
|
exports.highlightLanguages = highlightLanguages;
|
|
14062
14085
|
exports.ɵa = Service;
|
|
14063
14086
|
exports.ɵb = CustomStompConfig;
|
|
14064
|
-
exports.ɵba =
|
|
14065
|
-
exports.ɵbb =
|
|
14066
|
-
exports.ɵbc = EntityService$
|
|
14067
|
-
exports.ɵbd =
|
|
14068
|
-
exports.ɵbe =
|
|
14069
|
-
exports.ɵbf =
|
|
14070
|
-
exports.ɵbg =
|
|
14071
|
-
exports.ɵbh =
|
|
14072
|
-
exports.ɵbi =
|
|
14073
|
-
exports.ɵbj =
|
|
14074
|
-
exports.ɵbk =
|
|
14075
|
-
exports.ɵbl =
|
|
14076
|
-
exports.ɵbm =
|
|
14077
|
-
exports.ɵbn =
|
|
14078
|
-
exports.ɵbo =
|
|
14079
|
-
exports.ɵbp =
|
|
14080
|
-
exports.ɵbq =
|
|
14081
|
-
exports.ɵbr =
|
|
14082
|
-
exports.ɵbs =
|
|
14083
|
-
exports.ɵbt =
|
|
14084
|
-
exports.ɵbu =
|
|
14085
|
-
exports.ɵbv =
|
|
14086
|
-
exports.ɵbw =
|
|
14087
|
-
exports.ɵbx =
|
|
14088
|
-
exports.ɵby =
|
|
14089
|
-
exports.ɵbz =
|
|
14087
|
+
exports.ɵba = RegisterDocumentComponent;
|
|
14088
|
+
exports.ɵbb = AgendaService;
|
|
14089
|
+
exports.ɵbc = EntityService$2;
|
|
14090
|
+
exports.ɵbd = EntityService$1;
|
|
14091
|
+
exports.ɵbe = InsertKeyModule;
|
|
14092
|
+
exports.ɵbf = InsertKeyComponent;
|
|
14093
|
+
exports.ɵbg = IntegrationService$1;
|
|
14094
|
+
exports.ɵbh = RecebimentoFormComponent;
|
|
14095
|
+
exports.ɵbi = DerivacaoService;
|
|
14096
|
+
exports.ɵbj = NotaValidatorService;
|
|
14097
|
+
exports.ɵbk = TransgeniaService;
|
|
14098
|
+
exports.ɵbl = VerificaNotafiscal;
|
|
14099
|
+
exports.ɵbm = BuildFormField;
|
|
14100
|
+
exports.ɵbn = ExpedicaoFormComponent;
|
|
14101
|
+
exports.ɵbo = ExpedicaoInfoComponent;
|
|
14102
|
+
exports.ɵbp = RecebimentoInfoComponent;
|
|
14103
|
+
exports.ɵbq = DevolucaoFormComponent;
|
|
14104
|
+
exports.ɵbr = DevolucaoService;
|
|
14105
|
+
exports.ɵbs = DevolucaoChegadaVeiculoOverride;
|
|
14106
|
+
exports.ɵbt = RecebimentoOrdemCompraFormComponent;
|
|
14107
|
+
exports.ɵbu = OrdemCompraService;
|
|
14108
|
+
exports.ɵbv = RecebimentoOrdemCompraService;
|
|
14109
|
+
exports.ɵbw = RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
14110
|
+
exports.ɵbx = RecebimentoOrdemCompraInfoComponent;
|
|
14111
|
+
exports.ɵby = DevolucaoInfoComponent;
|
|
14112
|
+
exports.ɵbz = ContratoFormComponent;
|
|
14090
14113
|
exports.ɵc = ViewImageComponent;
|
|
14091
|
-
exports.ɵca =
|
|
14092
|
-
exports.ɵcb =
|
|
14093
|
-
exports.ɵcc =
|
|
14094
|
-
exports.ɵcd =
|
|
14095
|
-
exports.ɵce =
|
|
14096
|
-
exports.ɵcf =
|
|
14097
|
-
exports.ɵcg =
|
|
14098
|
-
exports.ɵch =
|
|
14099
|
-
exports.ɵci =
|
|
14100
|
-
exports.ɵcj =
|
|
14101
|
-
exports.ɵck =
|
|
14102
|
-
exports.ɵcl =
|
|
14103
|
-
exports.ɵcm =
|
|
14104
|
-
exports.ɵcn =
|
|
14105
|
-
exports.ɵco =
|
|
14106
|
-
exports.ɵcp =
|
|
14107
|
-
exports.ɵcq =
|
|
14108
|
-
exports.ɵcr =
|
|
14114
|
+
exports.ɵca = OrdemCompraFormComponent;
|
|
14115
|
+
exports.ɵcb = ProcessoAvulsoFormComponent;
|
|
14116
|
+
exports.ɵcc = ProcessoAvulsoService;
|
|
14117
|
+
exports.ɵcd = ProcessoAvulsoChegadaVeiculoOverride;
|
|
14118
|
+
exports.ɵce = ProcessoAvulsoInfoComponent;
|
|
14119
|
+
exports.ɵcf = LogIntegracaoDescritor;
|
|
14120
|
+
exports.ɵcg = LogIntegracaoComponent;
|
|
14121
|
+
exports.ɵch = LogIntegracaoService;
|
|
14122
|
+
exports.ɵci = DerivacaoModule;
|
|
14123
|
+
exports.ɵcj = DevolucaoModule;
|
|
14124
|
+
exports.ɵck = OrdemCompraModule;
|
|
14125
|
+
exports.ɵcl = RecebimentoOrdemCompraModule;
|
|
14126
|
+
exports.ɵcm = TransgeniaModule;
|
|
14127
|
+
exports.ɵcn = ProcessoAvulsoModule;
|
|
14128
|
+
exports.ɵco = LogIntegracaoModule;
|
|
14129
|
+
exports.ɵcp = NotaFormModule;
|
|
14130
|
+
exports.ɵcq = DirectivesModule;
|
|
14131
|
+
exports.ɵcr = TrimDirective;
|
|
14132
|
+
exports.ɵcs = NotaFormComponent;
|
|
14109
14133
|
exports.ɵd = LogDescritor;
|
|
14110
14134
|
exports.ɵe = LogsComponent;
|
|
14111
14135
|
exports.ɵf = PortariasService;
|
|
@@ -14127,8 +14151,8 @@
|
|
|
14127
14151
|
exports.ɵv = DocumentGridModule;
|
|
14128
14152
|
exports.ɵw = DocumentGridComponent;
|
|
14129
14153
|
exports.ɵx = DocumentService;
|
|
14130
|
-
exports.ɵy =
|
|
14131
|
-
exports.ɵz =
|
|
14154
|
+
exports.ɵy = IntegrationService;
|
|
14155
|
+
exports.ɵz = RegisterDocumentModule;
|
|
14132
14156
|
|
|
14133
14157
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14134
14158
|
|