@seniorsistemas/yms-integration 1.19.1 → 1.20.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 +857 -229
- 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 +4 -1
- package/esm2015/seniorsistemas-yms-integration.js +47 -38
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +166 -0
- package/esm2015/src/wms/components/document-grid/document-grid.module.js +35 -0
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +82 -0
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +26 -0
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +125 -0
- package/esm2015/src/wms/components/document-grid/register-document/register-document.module.js +32 -0
- package/esm2015/src/wms/entities/agenda/agenda.service.js +22 -0
- package/esm2015/src/wms/entities/document/document-dto.js +1 -0
- package/esm2015/src/wms/entities/document/document.js +39 -0
- package/esm2015/src/wms/entities/document/document.service.js +21 -0
- package/esm2015/src/wms/entities/document/find-documents-input.js +1 -0
- package/esm2015/src/wms/entities/entity-service.js +4 -0
- package/esm2015/src/wms/entities/wms-system/wms-system.js +9 -0
- package/esm2015/src/wms/form/form-wms.component.js +60 -0
- package/esm2015/src/wms/wms.module.js +68 -0
- package/esm5/index.js +4 -1
- package/esm5/seniorsistemas-yms-integration.js +47 -38
- package/esm5/src/wms/components/document-grid/document-grid.component.js +171 -0
- package/esm5/src/wms/components/document-grid/document-grid.module.js +38 -0
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +84 -0
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +29 -0
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +127 -0
- package/esm5/src/wms/components/document-grid/register-document/register-document.module.js +35 -0
- package/esm5/src/wms/entities/agenda/agenda.service.js +25 -0
- package/esm5/src/wms/entities/document/document-dto.js +1 -0
- package/esm5/src/wms/entities/document/document.js +44 -0
- package/esm5/src/wms/entities/document/document.service.js +24 -0
- package/esm5/src/wms/entities/document/find-documents-input.js +1 -0
- package/esm5/src/wms/entities/entity-service.js +11 -0
- package/esm5/src/wms/entities/wms-system/wms-system.js +9 -0
- package/esm5/src/wms/form/form-wms.component.js +63 -0
- package/esm5/src/wms/wms.module.js +69 -0
- package/fesm2015/seniorsistemas-yms-integration.js +765 -185
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +798 -182
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +46 -37
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +41 -0
- package/src/wms/components/document-grid/document-grid.module.d.ts +2 -0
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +22 -0
- package/src/wms/components/document-grid/insert-key/insert-key.module.d.ts +2 -0
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +31 -0
- package/src/wms/components/document-grid/register-document/register-document.module.d.ts +2 -0
- package/src/wms/entities/agenda/agenda.service.d.ts +9 -0
- package/src/wms/entities/document/document-dto.d.ts +16 -0
- package/src/wms/entities/document/document.d.ts +20 -0
- package/src/wms/entities/document/document.service.d.ts +11 -0
- package/src/wms/entities/document/find-documents-input.d.ts +7 -0
- package/src/wms/entities/entity-service.d.ts +3 -0
- package/src/wms/entities/wms-system/wms-system.d.ts +7 -0
- package/src/wms/form/form-wms.component.d.ts +18 -0
- package/src/wms/wms.module.d.ts +4 -0
|
@@ -2,9 +2,9 @@ import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER, of,
|
|
|
2
2
|
import { takeUntil, catchError, finalize, map, filter, mergeMap, tap, concatMap, switchMap, debounceTime } from 'rxjs/operators';
|
|
3
3
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter,
|
|
5
|
+
import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter, ViewChild, TemplateRef, InjectionToken, Inject } from '@angular/core';
|
|
6
6
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
7
|
-
import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule } from '@seniorsistemas/angular-components';
|
|
7
|
+
import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule, SidebarModule } from '@seniorsistemas/angular-components';
|
|
8
8
|
import { MessageModule } from 'primeng/message';
|
|
9
9
|
import { TableModule, Table } from 'primeng/table';
|
|
10
10
|
import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
@@ -16,8 +16,8 @@ import { StompConfig, StompService } from '@stomp/ng2-stompjs';
|
|
|
16
16
|
import * as SockJS from 'sockjs-client';
|
|
17
17
|
import { CookieService } from 'ngx-cookie-service';
|
|
18
18
|
import { DynamicDialogModule } from 'primeng/components/dynamicdialog/dynamicdialog';
|
|
19
|
-
import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule } from 'primeng/primeng';
|
|
20
|
-
import { SelectPlantService, SelectPlantModule } from '@seniorsistemas/yms-components';
|
|
19
|
+
import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule, InputTextareaModule } from 'primeng/primeng';
|
|
20
|
+
import { SelectPlantService, SelectPlantModule, ComponentsModule } from '@seniorsistemas/yms-components';
|
|
21
21
|
import { Router, RouterModule, ActivatedRoute } from '@angular/router';
|
|
22
22
|
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
23
23
|
import { InputTextModule } from 'primeng/inputtext';
|
|
@@ -2795,6 +2795,268 @@ VisitorListModule = __decorate([
|
|
|
2795
2795
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
2796
2796
|
], VisitorListModule);
|
|
2797
2797
|
|
|
2798
|
+
const INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
2799
|
+
let FormWmsDescritor = class FormWmsDescritor {
|
|
2800
|
+
};
|
|
2801
|
+
FormWmsDescritor = __decorate([
|
|
2802
|
+
ChegadaVeiculo({
|
|
2803
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
2804
|
+
name: 'yms.integracao.wms',
|
|
2805
|
+
icon: 'fa fa-plus'
|
|
2806
|
+
})
|
|
2807
|
+
], FormWmsDescritor);
|
|
2808
|
+
let FormWmsComponent = class FormWmsComponent extends FormWmsDescritor {
|
|
2809
|
+
constructor(integrationCallback) {
|
|
2810
|
+
super();
|
|
2811
|
+
this.integrationCallback = integrationCallback;
|
|
2812
|
+
this.save = [];
|
|
2813
|
+
this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
2814
|
+
this.loading = false;
|
|
2815
|
+
this.unsubscribe$ = new Subject();
|
|
2816
|
+
this._integrationCallback = integrationCallback;
|
|
2817
|
+
}
|
|
2818
|
+
ngOnInit() {
|
|
2819
|
+
this._integrationCallback.onAgendamentoSaved()
|
|
2820
|
+
.pipe(takeUntil(this.unsubscribe$), mergeMap(agenda => {
|
|
2821
|
+
this.agenda = agenda;
|
|
2822
|
+
return empty();
|
|
2823
|
+
}))
|
|
2824
|
+
.subscribe();
|
|
2825
|
+
}
|
|
2826
|
+
ngOnDestroy() {
|
|
2827
|
+
this.unsubscribe$.next();
|
|
2828
|
+
this.unsubscribe$.complete();
|
|
2829
|
+
}
|
|
2830
|
+
};
|
|
2831
|
+
__decorate([
|
|
2832
|
+
Output(),
|
|
2833
|
+
__metadata("design:type", Agenda)
|
|
2834
|
+
], FormWmsComponent.prototype, "agenda", void 0);
|
|
2835
|
+
__decorate([
|
|
2836
|
+
Input(),
|
|
2837
|
+
__metadata("design:type", Array)
|
|
2838
|
+
], FormWmsComponent.prototype, "save", void 0);
|
|
2839
|
+
FormWmsComponent = __decorate([
|
|
2840
|
+
Component({
|
|
2841
|
+
template: `
|
|
2842
|
+
<div *ngIf="agenda">
|
|
2843
|
+
<document-grid [agenda]="agenda"></document-grid>
|
|
2844
|
+
</div>
|
|
2845
|
+
`
|
|
2846
|
+
}),
|
|
2847
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback])
|
|
2848
|
+
], FormWmsComponent);
|
|
2849
|
+
|
|
2850
|
+
let DocumentService = class DocumentService extends EntityService {
|
|
2851
|
+
constructor(http, messageService) {
|
|
2852
|
+
super(http, messageService, 'yms_int/wms/entities/document', '');
|
|
2853
|
+
this.http = http;
|
|
2854
|
+
this.messageService = messageService;
|
|
2855
|
+
}
|
|
2856
|
+
findDocuments(input) {
|
|
2857
|
+
return this.http.post('yms_int/wms/queries/findDocuments', input);
|
|
2858
|
+
}
|
|
2859
|
+
};
|
|
2860
|
+
DocumentService = __decorate([
|
|
2861
|
+
Injectable(),
|
|
2862
|
+
__metadata("design:paramtypes", [HttpClient, MessageService])
|
|
2863
|
+
], DocumentService);
|
|
2864
|
+
|
|
2865
|
+
let DocumentGridComponent = class DocumentGridComponent {
|
|
2866
|
+
constructor(translate, documentService, messageService) {
|
|
2867
|
+
this.translate = translate;
|
|
2868
|
+
this.documentService = documentService;
|
|
2869
|
+
this.messageService = messageService;
|
|
2870
|
+
this.viewDocument = new EventEmitter();
|
|
2871
|
+
this.gridData = [];
|
|
2872
|
+
this.ngUnsubscribe = new Subject();
|
|
2873
|
+
}
|
|
2874
|
+
ngOnInit() {
|
|
2875
|
+
this.gridColumns = this.getGridColumns();
|
|
2876
|
+
this.listDocuments();
|
|
2877
|
+
}
|
|
2878
|
+
onChangeDocument(document) {
|
|
2879
|
+
this.gridData.push(document);
|
|
2880
|
+
this.disabled = false;
|
|
2881
|
+
}
|
|
2882
|
+
getActions() {
|
|
2883
|
+
return [
|
|
2884
|
+
{
|
|
2885
|
+
label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
|
|
2886
|
+
command: () => {
|
|
2887
|
+
this.visibleInvoiceKey = true;
|
|
2888
|
+
},
|
|
2889
|
+
icon: "fa fa-search"
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
2893
|
+
command: () => {
|
|
2894
|
+
this.edit = true;
|
|
2895
|
+
this.visibleDocumentRegister = true;
|
|
2896
|
+
},
|
|
2897
|
+
icon: "fas fa-pen-square"
|
|
2898
|
+
}
|
|
2899
|
+
];
|
|
2900
|
+
}
|
|
2901
|
+
getProp(obj, path) {
|
|
2902
|
+
return path.split(".").reduce((result, prop) => (result[prop] === undefined ? "" : result[prop]), obj);
|
|
2903
|
+
}
|
|
2904
|
+
view(selection) {
|
|
2905
|
+
this.viewDocument.emit(selection);
|
|
2906
|
+
this.visibleDocumentRegister = true;
|
|
2907
|
+
this.edit = false;
|
|
2908
|
+
}
|
|
2909
|
+
save() {
|
|
2910
|
+
if (this.gridData.length > 0) {
|
|
2911
|
+
this.gridData.forEach(data => {
|
|
2912
|
+
if (!data.id) {
|
|
2913
|
+
if (!data.schedulingId) {
|
|
2914
|
+
data.schedulingId = this.agenda.id;
|
|
2915
|
+
}
|
|
2916
|
+
this.documentService.insert(data).subscribe(() => {
|
|
2917
|
+
this.message("success", "saved_message_title", "saved_message_content");
|
|
2918
|
+
});
|
|
2919
|
+
this.disabled = true;
|
|
2920
|
+
}
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
onDelete(selection) {
|
|
2925
|
+
if (!selection.id) {
|
|
2926
|
+
return;
|
|
2927
|
+
}
|
|
2928
|
+
this.documentService.delete(selection.id)
|
|
2929
|
+
.pipe(takeUntil(this.ngUnsubscribe), finalize(() => {
|
|
2930
|
+
this.gridData = [];
|
|
2931
|
+
this.listDocuments();
|
|
2932
|
+
})).
|
|
2933
|
+
subscribe(() => this.message("success", "deleted_message_title", "deleted_message_content"));
|
|
2934
|
+
}
|
|
2935
|
+
listDocuments() {
|
|
2936
|
+
this.documentService.list({
|
|
2937
|
+
filterQuery: `schedulingId eq '${this.agenda.id}'`
|
|
2938
|
+
})
|
|
2939
|
+
.subscribe((contents) => {
|
|
2940
|
+
if (contents.totalElements > 0) {
|
|
2941
|
+
this.gridData = contents.contents;
|
|
2942
|
+
this.documentTotalRecords = contents.totalElements;
|
|
2943
|
+
}
|
|
2944
|
+
else {
|
|
2945
|
+
this.disabled = true;
|
|
2946
|
+
this.documentTotalRecords = this.gridData.length;
|
|
2947
|
+
}
|
|
2948
|
+
this.loading = false;
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
getGridColumns() {
|
|
2952
|
+
return [
|
|
2953
|
+
{ field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
|
|
2954
|
+
{ field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
|
|
2955
|
+
{ field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
|
|
2956
|
+
{ field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
|
|
2957
|
+
{ field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
|
|
2958
|
+
{ field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
|
|
2959
|
+
{ field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
|
|
2960
|
+
{ field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
|
|
2961
|
+
];
|
|
2962
|
+
}
|
|
2963
|
+
message(severity, summary, detail) {
|
|
2964
|
+
this.messageService.add({
|
|
2965
|
+
severity,
|
|
2966
|
+
summary: this.translate.instant(summary),
|
|
2967
|
+
detail: this.translate.instant(detail),
|
|
2968
|
+
});
|
|
2969
|
+
}
|
|
2970
|
+
};
|
|
2971
|
+
__decorate([
|
|
2972
|
+
Input(),
|
|
2973
|
+
__metadata("design:type", Object)
|
|
2974
|
+
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
2975
|
+
__decorate([
|
|
2976
|
+
Output(),
|
|
2977
|
+
__metadata("design:type", Boolean)
|
|
2978
|
+
], DocumentGridComponent.prototype, "visibleInvoiceKey", void 0);
|
|
2979
|
+
__decorate([
|
|
2980
|
+
Output(),
|
|
2981
|
+
__metadata("design:type", Boolean)
|
|
2982
|
+
], DocumentGridComponent.prototype, "visibleDocumentRegister", void 0);
|
|
2983
|
+
__decorate([
|
|
2984
|
+
Output(),
|
|
2985
|
+
__metadata("design:type", EventEmitter)
|
|
2986
|
+
], DocumentGridComponent.prototype, "viewDocument", void 0);
|
|
2987
|
+
__decorate([
|
|
2988
|
+
ViewChild("documentTable"),
|
|
2989
|
+
__metadata("design:type", Table)
|
|
2990
|
+
], DocumentGridComponent.prototype, "table", void 0);
|
|
2991
|
+
__decorate([
|
|
2992
|
+
ViewChild("customTemplate"),
|
|
2993
|
+
__metadata("design:type", TemplateRef)
|
|
2994
|
+
], DocumentGridComponent.prototype, "customTemplate", void 0);
|
|
2995
|
+
__decorate([
|
|
2996
|
+
ViewChild("customFilterFields"),
|
|
2997
|
+
__metadata("design:type", TemplateRef)
|
|
2998
|
+
], DocumentGridComponent.prototype, "customFilterFields", void 0);
|
|
2999
|
+
__decorate([
|
|
3000
|
+
ViewChild("customGridColgroup"),
|
|
3001
|
+
__metadata("design:type", TemplateRef)
|
|
3002
|
+
], DocumentGridComponent.prototype, "customGridColgroup", void 0);
|
|
3003
|
+
__decorate([
|
|
3004
|
+
ViewChild("customGridHeader"),
|
|
3005
|
+
__metadata("design:type", TemplateRef)
|
|
3006
|
+
], DocumentGridComponent.prototype, "customGridHeader", void 0);
|
|
3007
|
+
__decorate([
|
|
3008
|
+
ViewChild("customGridBody"),
|
|
3009
|
+
__metadata("design:type", TemplateRef)
|
|
3010
|
+
], DocumentGridComponent.prototype, "customGridBody", void 0);
|
|
3011
|
+
DocumentGridComponent = __decorate([
|
|
3012
|
+
Component({
|
|
3013
|
+
selector: 'document-grid',
|
|
3014
|
+
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 || disabled\"\n (onClick)=\"view(selection)\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (click)=\"onDelete(selection)\">\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=\"single\" [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=\"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 (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[\"invoiceKey\"] }}</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[\"orderReceivingCode\"] }}</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 [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (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]=\"'yms.dock.area_dock_empty_state_title' | translate\"\n [description]=\"'yms.dock.area_dock_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
3015
|
+
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}"]
|
|
3016
|
+
}),
|
|
3017
|
+
__metadata("design:paramtypes", [TranslateService,
|
|
3018
|
+
DocumentService,
|
|
3019
|
+
MessageService])
|
|
3020
|
+
], DocumentGridComponent);
|
|
3021
|
+
|
|
3022
|
+
const moment$4 = _moment;
|
|
3023
|
+
class Document {
|
|
3024
|
+
static fromDto(documentDto, originEntity) {
|
|
3025
|
+
const model = Object.assign({}, documentDto);
|
|
3026
|
+
model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
|
|
3027
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
|
|
3028
|
+
const lookupSeparator = " - ";
|
|
3029
|
+
const displayFields = [
|
|
3030
|
+
"id",
|
|
3031
|
+
"schedulingId",
|
|
3032
|
+
"invoiceKey",
|
|
3033
|
+
"invoiceNumber",
|
|
3034
|
+
"invoiceSerialNumber",
|
|
3035
|
+
"systemIntegration",
|
|
3036
|
+
"logistcUnitName",
|
|
3037
|
+
"logistcUnitDocument",
|
|
3038
|
+
"ownerName",
|
|
3039
|
+
"ownerDocument",
|
|
3040
|
+
"partnerName",
|
|
3041
|
+
"partnerDocument",
|
|
3042
|
+
"notes",
|
|
3043
|
+
"orderReceivingCode",
|
|
3044
|
+
"createdBy",
|
|
3045
|
+
"createdDate",
|
|
3046
|
+
"lastModifiedBy",
|
|
3047
|
+
"lastModifiedDate",
|
|
3048
|
+
];
|
|
3049
|
+
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
3050
|
+
return model;
|
|
3051
|
+
}
|
|
3052
|
+
static toDto(document, originEntity) {
|
|
3053
|
+
const dto = Object.assign({}, document);
|
|
3054
|
+
dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
|
|
3055
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
|
|
3056
|
+
return dto;
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
|
|
2798
3060
|
class EntityService$1 {
|
|
2799
3061
|
constructor(http, messageService, entityUrl, actionsUrl) {
|
|
2800
3062
|
this.http = http;
|
|
@@ -2885,11 +3147,329 @@ class EntityService$1 {
|
|
|
2885
3147
|
listCustomFilter(listParams, action) {
|
|
2886
3148
|
return this.http.post(`${this.actionsUrl}/${action}`, this.getBodyParams(listParams)).pipe(this.defaultCatch());
|
|
2887
3149
|
}
|
|
2888
|
-
}
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
class EntityService$2 extends EntityService$1 {
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
let AgendaService = class AgendaService extends EntityService$2 {
|
|
3156
|
+
constructor(http, messageService) {
|
|
3157
|
+
super(http, messageService, 'yms/agenda/entities/agenda', '');
|
|
3158
|
+
this.http = http;
|
|
3159
|
+
this.messageService = messageService;
|
|
3160
|
+
}
|
|
3161
|
+
};
|
|
3162
|
+
AgendaService.ngInjectableDef = defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(inject(HttpClient), inject(MessageService$1)); }, token: AgendaService, providedIn: "root" });
|
|
3163
|
+
AgendaService = __decorate([
|
|
3164
|
+
Injectable({ providedIn: 'root' }),
|
|
3165
|
+
__metadata("design:paramtypes", [HttpClient, MessageService$1])
|
|
3166
|
+
], AgendaService);
|
|
3167
|
+
|
|
3168
|
+
let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
3169
|
+
constructor(fb, messageService, translateService, agendaService) {
|
|
3170
|
+
this.fb = fb;
|
|
3171
|
+
this.messageService = messageService;
|
|
3172
|
+
this.translateService = translateService;
|
|
3173
|
+
this.agendaService = agendaService;
|
|
3174
|
+
this.document = new EventEmitter();
|
|
3175
|
+
this.visible = new EventEmitter();
|
|
3176
|
+
this.visibleChange = new EventEmitter();
|
|
3177
|
+
}
|
|
3178
|
+
ngOnInit() {
|
|
3179
|
+
this.getFormGroup();
|
|
3180
|
+
}
|
|
3181
|
+
ngOnChanges() {
|
|
3182
|
+
this.visibilityConfig();
|
|
3183
|
+
}
|
|
3184
|
+
visibilityConfig() {
|
|
3185
|
+
if (!this.edit && this.visible) {
|
|
3186
|
+
this.formGroup.disable();
|
|
3187
|
+
this.setValuesFormGroup(this.viewDocument);
|
|
3188
|
+
this.setValueForPartner();
|
|
3189
|
+
this.hideSaveButton = true;
|
|
3190
|
+
return this.visible;
|
|
3191
|
+
}
|
|
3192
|
+
return this.visible;
|
|
3193
|
+
}
|
|
3194
|
+
close() {
|
|
3195
|
+
this.visibleChange.emit(false);
|
|
3196
|
+
}
|
|
3197
|
+
setValuesFormGroup(document) {
|
|
3198
|
+
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3199
|
+
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3200
|
+
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
3201
|
+
this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
|
|
3202
|
+
this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
|
|
3203
|
+
this.formGroup.get('notes').setValue(document.notes);
|
|
3204
|
+
this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
|
|
3205
|
+
this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
|
|
3206
|
+
this.formGroup.get('ownerName').setValue(document.ownerName);
|
|
3207
|
+
}
|
|
3208
|
+
setValueForPartner() {
|
|
3209
|
+
this.agendaService.get(this.agenda.id).subscribe((agenda) => {
|
|
3210
|
+
this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
|
|
3211
|
+
this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
|
|
3212
|
+
});
|
|
3213
|
+
}
|
|
3214
|
+
getFormGroup() {
|
|
3215
|
+
this.formGroup = this.fb.group({
|
|
3216
|
+
invoiceKey: [undefined, Validators.required],
|
|
3217
|
+
schedulingId: [undefined],
|
|
3218
|
+
invoiceNumber: [undefined],
|
|
3219
|
+
invoiceSerialNumber: [undefined],
|
|
3220
|
+
logistcUnitName: [undefined],
|
|
3221
|
+
logistcUnitDocument: [undefined],
|
|
3222
|
+
ownerName: [undefined],
|
|
3223
|
+
ownerDocument: [undefined],
|
|
3224
|
+
partnerName: [undefined],
|
|
3225
|
+
partnerDocument: [undefined],
|
|
3226
|
+
notes: [undefined],
|
|
3227
|
+
orderReceivingCode: [undefined],
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
save() {
|
|
3231
|
+
const value = this.formGroup.getRawValue();
|
|
3232
|
+
if (value.id === undefined) {
|
|
3233
|
+
if (this.agenda.id !== undefined) {
|
|
3234
|
+
value.schedulingId = this.agenda.id;
|
|
3235
|
+
}
|
|
3236
|
+
this.document.emit(Document.fromDto(value));
|
|
3237
|
+
this.successMessage();
|
|
3238
|
+
this.visibleChange.emit(false);
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
successMessage() {
|
|
3242
|
+
this.messageService.add({
|
|
3243
|
+
severity: "success",
|
|
3244
|
+
summary: this.translateService.instant("saved_message_title"),
|
|
3245
|
+
detail: this.translateService.instant("saved_message_content"),
|
|
3246
|
+
});
|
|
3247
|
+
}
|
|
3248
|
+
};
|
|
3249
|
+
__decorate([
|
|
3250
|
+
Input(),
|
|
3251
|
+
__metadata("design:type", Document)
|
|
3252
|
+
], RegisterDocumentComponent.prototype, "viewDocument", void 0);
|
|
3253
|
+
__decorate([
|
|
3254
|
+
Input(),
|
|
3255
|
+
__metadata("design:type", Boolean)
|
|
3256
|
+
], RegisterDocumentComponent.prototype, "edit", void 0);
|
|
3257
|
+
__decorate([
|
|
3258
|
+
Input(),
|
|
3259
|
+
__metadata("design:type", Agenda)
|
|
3260
|
+
], RegisterDocumentComponent.prototype, "agenda", void 0);
|
|
3261
|
+
__decorate([
|
|
3262
|
+
Output(),
|
|
3263
|
+
__metadata("design:type", EventEmitter)
|
|
3264
|
+
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3265
|
+
__decorate([
|
|
3266
|
+
Input(),
|
|
3267
|
+
__metadata("design:type", EventEmitter)
|
|
3268
|
+
], RegisterDocumentComponent.prototype, "visible", void 0);
|
|
3269
|
+
__decorate([
|
|
3270
|
+
Output(),
|
|
3271
|
+
__metadata("design:type", Object)
|
|
3272
|
+
], RegisterDocumentComponent.prototype, "visibleChange", void 0);
|
|
3273
|
+
RegisterDocumentComponent = __decorate([
|
|
3274
|
+
Component({
|
|
3275
|
+
selector: "register-document",
|
|
3276
|
+
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 required\">\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\">\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\">\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-6\">\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-6\">\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-6\">\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-6\">\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-6\">\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-6\">\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=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"orderReceivingCode\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"orderReceivingCode\" pInputText type=\"text\" formControlName=\"orderReceivingCode\">\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>"
|
|
3277
|
+
}),
|
|
3278
|
+
__metadata("design:paramtypes", [FormBuilder,
|
|
3279
|
+
MessageService,
|
|
3280
|
+
TranslateService,
|
|
3281
|
+
AgendaService])
|
|
3282
|
+
], RegisterDocumentComponent);
|
|
3283
|
+
|
|
3284
|
+
let RegisterDocumentModule = class RegisterDocumentModule {
|
|
3285
|
+
};
|
|
3286
|
+
RegisterDocumentModule = __decorate([
|
|
3287
|
+
NgModule({
|
|
3288
|
+
imports: [
|
|
3289
|
+
CommonModule,
|
|
3290
|
+
SidebarModule,
|
|
3291
|
+
ButtonModule,
|
|
3292
|
+
PanelModule,
|
|
3293
|
+
ConfirmDialogModule,
|
|
3294
|
+
TranslateModule,
|
|
3295
|
+
InputTextModule$1,
|
|
3296
|
+
ControlErrorsModule,
|
|
3297
|
+
InputTextareaModule,
|
|
3298
|
+
ReactiveFormsModule
|
|
3299
|
+
],
|
|
3300
|
+
exports: [RegisterDocumentComponent],
|
|
3301
|
+
declarations: [RegisterDocumentComponent],
|
|
3302
|
+
providers: [DocumentService]
|
|
3303
|
+
})
|
|
3304
|
+
], RegisterDocumentModule);
|
|
3305
|
+
|
|
3306
|
+
let InsertKeyComponent = class InsertKeyComponent {
|
|
3307
|
+
constructor(formBuilder, documentService, messageService, translate) {
|
|
3308
|
+
this.formBuilder = formBuilder;
|
|
3309
|
+
this.documentService = documentService;
|
|
3310
|
+
this.messageService = messageService;
|
|
3311
|
+
this.translate = translate;
|
|
3312
|
+
this.document = new EventEmitter();
|
|
3313
|
+
this.visible = new EventEmitter();
|
|
3314
|
+
this.visibleChange = new EventEmitter();
|
|
3315
|
+
}
|
|
3316
|
+
ngOnInit() {
|
|
3317
|
+
this.formGroup = this.formBuilder.group({
|
|
3318
|
+
key: [undefined]
|
|
3319
|
+
});
|
|
3320
|
+
}
|
|
3321
|
+
add() {
|
|
3322
|
+
this.visibleChange.emit(false);
|
|
3323
|
+
if (!this.formGroup.get('key').value) {
|
|
3324
|
+
return;
|
|
3325
|
+
}
|
|
3326
|
+
this.searchKey();
|
|
3327
|
+
}
|
|
3328
|
+
searchKey() {
|
|
3329
|
+
const key = {
|
|
3330
|
+
documentKeys: [this.formGroup.get('key').value],
|
|
3331
|
+
invoices: undefined,
|
|
3332
|
+
logistcUnitName: undefined,
|
|
3333
|
+
size: 0,
|
|
3334
|
+
offset: 0
|
|
3335
|
+
};
|
|
3336
|
+
this.documentService.findDocuments(key).subscribe((content) => {
|
|
3337
|
+
if (content.totalElements < 1) {
|
|
3338
|
+
this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
|
|
3339
|
+
return;
|
|
3340
|
+
}
|
|
3341
|
+
this.document.emit(content.contents[0]);
|
|
3342
|
+
this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
|
|
3343
|
+
this.formGroup.reset();
|
|
3344
|
+
});
|
|
3345
|
+
}
|
|
3346
|
+
message(success, header, description) {
|
|
3347
|
+
this.messageService.add({
|
|
3348
|
+
severity: success,
|
|
3349
|
+
summary: this.translate.instant(header),
|
|
3350
|
+
detail: this.translate.instant(description),
|
|
3351
|
+
});
|
|
3352
|
+
}
|
|
3353
|
+
cancel() {
|
|
3354
|
+
this.visibleChange.emit(false);
|
|
3355
|
+
}
|
|
3356
|
+
};
|
|
3357
|
+
__decorate([
|
|
3358
|
+
Output(),
|
|
3359
|
+
__metadata("design:type", EventEmitter)
|
|
3360
|
+
], InsertKeyComponent.prototype, "document", void 0);
|
|
3361
|
+
__decorate([
|
|
3362
|
+
Input(),
|
|
3363
|
+
__metadata("design:type", EventEmitter)
|
|
3364
|
+
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3365
|
+
__decorate([
|
|
3366
|
+
Output(),
|
|
3367
|
+
__metadata("design:type", Object)
|
|
3368
|
+
], InsertKeyComponent.prototype, "visibleChange", void 0);
|
|
3369
|
+
InsertKeyComponent = __decorate([
|
|
3370
|
+
Component({
|
|
3371
|
+
selector: "insert-key",
|
|
3372
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.insert_key_label'}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\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>",
|
|
3373
|
+
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:550px}"]
|
|
3374
|
+
}),
|
|
3375
|
+
__metadata("design:paramtypes", [FormBuilder,
|
|
3376
|
+
DocumentService,
|
|
3377
|
+
MessageService,
|
|
3378
|
+
TranslateService])
|
|
3379
|
+
], InsertKeyComponent);
|
|
3380
|
+
|
|
3381
|
+
let InsertKeyModule = class InsertKeyModule {
|
|
3382
|
+
};
|
|
3383
|
+
InsertKeyModule = __decorate([
|
|
3384
|
+
NgModule({
|
|
3385
|
+
imports: [
|
|
3386
|
+
CommonModule,
|
|
3387
|
+
ReactiveFormsModule,
|
|
3388
|
+
ButtonModule,
|
|
3389
|
+
TranslateModule,
|
|
3390
|
+
DialogModule,
|
|
3391
|
+
InputTextModule$1
|
|
3392
|
+
],
|
|
3393
|
+
exports: [InsertKeyComponent],
|
|
3394
|
+
declarations: [InsertKeyComponent]
|
|
3395
|
+
})
|
|
3396
|
+
], InsertKeyModule);
|
|
3397
|
+
|
|
3398
|
+
let DocumentGridModule = class DocumentGridModule {
|
|
3399
|
+
};
|
|
3400
|
+
DocumentGridModule = __decorate([
|
|
3401
|
+
NgModule({
|
|
3402
|
+
declarations: [DocumentGridComponent],
|
|
3403
|
+
entryComponents: [DocumentGridComponent],
|
|
3404
|
+
exports: [DocumentGridComponent],
|
|
3405
|
+
imports: [
|
|
3406
|
+
CommonModule,
|
|
3407
|
+
TranslateModule,
|
|
3408
|
+
ButtonModule,
|
|
3409
|
+
PanelModule,
|
|
3410
|
+
TableModule,
|
|
3411
|
+
RegisterDocumentModule,
|
|
3412
|
+
InsertKeyModule,
|
|
3413
|
+
ButtonModule$1,
|
|
3414
|
+
ComponentsModule,
|
|
3415
|
+
EmptyStateModule
|
|
3416
|
+
],
|
|
3417
|
+
})
|
|
3418
|
+
], DocumentGridModule);
|
|
3419
|
+
|
|
3420
|
+
let WmsModule = class WmsModule {
|
|
3421
|
+
constructor(dispatcher) {
|
|
3422
|
+
dispatcher.dispatch(FormWmsComponent);
|
|
3423
|
+
}
|
|
3424
|
+
};
|
|
3425
|
+
WmsModule = __decorate([
|
|
3426
|
+
NgModule({
|
|
3427
|
+
declarations: [FormWmsComponent],
|
|
3428
|
+
entryComponents: [FormWmsComponent],
|
|
3429
|
+
exports: [FormWmsComponent],
|
|
3430
|
+
imports: [
|
|
3431
|
+
IntegrationModule,
|
|
3432
|
+
DocumentGridModule,
|
|
3433
|
+
CommonModule,
|
|
3434
|
+
TranslateModule,
|
|
3435
|
+
FormsModule,
|
|
3436
|
+
ButtonModule,
|
|
3437
|
+
SharedModule,
|
|
3438
|
+
CardModule,
|
|
3439
|
+
ButtonModule$1,
|
|
3440
|
+
ReactiveFormsModule,
|
|
3441
|
+
SharedModule$1,
|
|
3442
|
+
CustomFieldsModule,
|
|
3443
|
+
ControlErrorsModule,
|
|
3444
|
+
DialogModule,
|
|
3445
|
+
EmptyStateModule,
|
|
3446
|
+
DynamicFormModule,
|
|
3447
|
+
TokenListModule,
|
|
3448
|
+
PanelModule,
|
|
3449
|
+
InputTextModule$1,
|
|
3450
|
+
DropdownModule,
|
|
3451
|
+
ButtonModule,
|
|
3452
|
+
LoadingStateModule,
|
|
3453
|
+
NumberInputModule,
|
|
3454
|
+
ConfirmDialogModule,
|
|
3455
|
+
LocaleModule,
|
|
3456
|
+
PermissionsModule,
|
|
3457
|
+
DynamicDialogModule,
|
|
3458
|
+
TableModule,
|
|
3459
|
+
TabViewModule,
|
|
3460
|
+
CalendarModule,
|
|
3461
|
+
],
|
|
3462
|
+
providers: [
|
|
3463
|
+
FieldCustomizationService,
|
|
3464
|
+
FocusService
|
|
3465
|
+
]
|
|
3466
|
+
}),
|
|
3467
|
+
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
3468
|
+
], WmsModule);
|
|
2889
3469
|
|
|
2890
3470
|
const ERP_ENVIRONMENT = new InjectionToken('integration_environment');
|
|
2891
3471
|
|
|
2892
|
-
let AgendaService = class AgendaService extends EntityService$1 {
|
|
3472
|
+
let AgendaService$1 = class AgendaService extends EntityService$1 {
|
|
2893
3473
|
constructor(http, messageService, environment) {
|
|
2894
3474
|
super(http, messageService, `${environment.project.domain}/${environment.project.service}/entities/agenda`, `${environment.project.domain}/${environment.project.service}/actions`);
|
|
2895
3475
|
this.http = http;
|
|
@@ -2913,12 +3493,12 @@ let AgendaService = class AgendaService extends EntityService$1 {
|
|
|
2913
3493
|
.pipe(this.defaultCatch());
|
|
2914
3494
|
}
|
|
2915
3495
|
};
|
|
2916
|
-
AgendaService = __decorate([
|
|
3496
|
+
AgendaService$1 = __decorate([
|
|
2917
3497
|
Injectable(),
|
|
2918
3498
|
__param(2, Inject(ERP_ENVIRONMENT)),
|
|
2919
3499
|
__metadata("design:paramtypes", [HttpClient,
|
|
2920
3500
|
MessageService$1, Object])
|
|
2921
|
-
], AgendaService);
|
|
3501
|
+
], AgendaService$1);
|
|
2922
3502
|
|
|
2923
3503
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
2924
3504
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -2980,7 +3560,7 @@ let RecebimentoChegadaVeiculoOverride = class RecebimentoChegadaVeiculoOverride
|
|
|
2980
3560
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
2981
3561
|
Injectable(),
|
|
2982
3562
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
2983
|
-
AgendaService,
|
|
3563
|
+
AgendaService$1,
|
|
2984
3564
|
RecebimentoContratoService])
|
|
2985
3565
|
], RecebimentoChegadaVeiculoOverride);
|
|
2986
3566
|
|
|
@@ -3035,7 +3615,7 @@ let ExpedicaoChegadaVeiculoOverride = class ExpedicaoChegadaVeiculoOverride {
|
|
|
3035
3615
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3036
3616
|
Injectable(),
|
|
3037
3617
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
3038
|
-
AgendaService,
|
|
3618
|
+
AgendaService$1,
|
|
3039
3619
|
ExpedicaoService])
|
|
3040
3620
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3041
3621
|
|
|
@@ -3258,15 +3838,15 @@ OrdemCompraService = __decorate([
|
|
|
3258
3838
|
MessageService$1, Object])
|
|
3259
3839
|
], OrdemCompraService);
|
|
3260
3840
|
|
|
3261
|
-
const moment$
|
|
3841
|
+
const moment$5 = _moment;
|
|
3262
3842
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3263
3843
|
class Empresa {
|
|
3264
3844
|
/*{CA:CLASS_ATTRIBUTES:START}*/
|
|
3265
3845
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3266
3846
|
static fromDto(empresaDto, originEntity) {
|
|
3267
3847
|
const model = Object.assign({}, empresaDto);
|
|
3268
|
-
model.createdDate = model.createdDate && moment$
|
|
3269
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
3848
|
+
model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
|
|
3849
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
|
|
3270
3850
|
const lookupSeparator = " - ";
|
|
3271
3851
|
const displayFields = [
|
|
3272
3852
|
"codigo",
|
|
@@ -3278,8 +3858,8 @@ class Empresa {
|
|
|
3278
3858
|
}
|
|
3279
3859
|
static toDto(empresa, originEntity) {
|
|
3280
3860
|
const dto = Object.assign({}, empresa);
|
|
3281
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3282
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
3861
|
+
dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
|
|
3862
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
|
|
3283
3863
|
delete dto.label;
|
|
3284
3864
|
return dto;
|
|
3285
3865
|
}
|
|
@@ -3287,7 +3867,7 @@ class Empresa {
|
|
|
3287
3867
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3288
3868
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3289
3869
|
|
|
3290
|
-
const moment$
|
|
3870
|
+
const moment$6 = _moment;
|
|
3291
3871
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3292
3872
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3293
3873
|
class Pessoa {
|
|
@@ -3295,8 +3875,8 @@ class Pessoa {
|
|
|
3295
3875
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3296
3876
|
static fromDto(pessoaDto, originEntity) {
|
|
3297
3877
|
const model = Object.assign({}, pessoaDto);
|
|
3298
|
-
model.createdDate = model.createdDate && moment$
|
|
3299
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
3878
|
+
model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
|
|
3879
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
|
|
3300
3880
|
const lookupSeparator = " - ";
|
|
3301
3881
|
const displayFields = [
|
|
3302
3882
|
"codigo",
|
|
@@ -3308,8 +3888,8 @@ class Pessoa {
|
|
|
3308
3888
|
}
|
|
3309
3889
|
static toDto(pessoa, originEntity) {
|
|
3310
3890
|
const dto = Object.assign({}, pessoa);
|
|
3311
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3312
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
3891
|
+
dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
|
|
3892
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
|
|
3313
3893
|
delete dto.label;
|
|
3314
3894
|
return dto;
|
|
3315
3895
|
}
|
|
@@ -3317,7 +3897,7 @@ class Pessoa {
|
|
|
3317
3897
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3318
3898
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3319
3899
|
|
|
3320
|
-
const moment$
|
|
3900
|
+
const moment$7 = _moment;
|
|
3321
3901
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3322
3902
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3323
3903
|
class PessoaJuridica {
|
|
@@ -3325,8 +3905,8 @@ class PessoaJuridica {
|
|
|
3325
3905
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3326
3906
|
static fromDto(pessoaJuridicaDto, originEntity) {
|
|
3327
3907
|
const model = Object.assign({}, pessoaJuridicaDto);
|
|
3328
|
-
model.createdDate = model.createdDate && moment$
|
|
3329
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
3908
|
+
model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
|
|
3909
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
|
|
3330
3910
|
const lookupSeparator = " - ";
|
|
3331
3911
|
const displayFields = [
|
|
3332
3912
|
"id",
|
|
@@ -3353,8 +3933,8 @@ class PessoaJuridica {
|
|
|
3353
3933
|
}
|
|
3354
3934
|
static toDto(pessoaJuridica, originEntity) {
|
|
3355
3935
|
const dto = Object.assign({}, pessoaJuridica);
|
|
3356
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3357
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
3936
|
+
dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
|
|
3937
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
|
|
3358
3938
|
delete dto.label;
|
|
3359
3939
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3360
3940
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
|
|
@@ -3364,7 +3944,7 @@ class PessoaJuridica {
|
|
|
3364
3944
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3365
3945
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3366
3946
|
|
|
3367
|
-
const moment$
|
|
3947
|
+
const moment$8 = _moment;
|
|
3368
3948
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3369
3949
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3370
3950
|
class Pais {
|
|
@@ -3372,8 +3952,8 @@ class Pais {
|
|
|
3372
3952
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3373
3953
|
static fromDto(paisDto, originEntity) {
|
|
3374
3954
|
const model = Object.assign({}, paisDto);
|
|
3375
|
-
model.createdDate = model.createdDate && moment$
|
|
3376
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
3955
|
+
model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
|
|
3956
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
|
|
3377
3957
|
const lookupSeparator = " - ";
|
|
3378
3958
|
const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
3379
3959
|
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
@@ -3381,8 +3961,8 @@ class Pais {
|
|
|
3381
3961
|
}
|
|
3382
3962
|
static toDto(pais, originEntity) {
|
|
3383
3963
|
const dto = Object.assign({}, pais);
|
|
3384
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3385
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
3964
|
+
dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
|
|
3965
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
|
|
3386
3966
|
delete dto.label;
|
|
3387
3967
|
return dto;
|
|
3388
3968
|
}
|
|
@@ -3390,7 +3970,7 @@ class Pais {
|
|
|
3390
3970
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3391
3971
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3392
3972
|
|
|
3393
|
-
const moment$
|
|
3973
|
+
const moment$9 = _moment;
|
|
3394
3974
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3395
3975
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3396
3976
|
class Estado {
|
|
@@ -3398,8 +3978,8 @@ class Estado {
|
|
|
3398
3978
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3399
3979
|
static fromDto(estadoDto, originEntity) {
|
|
3400
3980
|
const model = Object.assign({}, estadoDto);
|
|
3401
|
-
model.createdDate = model.createdDate && moment$
|
|
3402
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
3981
|
+
model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
|
|
3982
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
|
|
3403
3983
|
const lookupSeparator = " - ";
|
|
3404
3984
|
const displayFields = [
|
|
3405
3985
|
"id",
|
|
@@ -3421,8 +4001,8 @@ class Estado {
|
|
|
3421
4001
|
}
|
|
3422
4002
|
static toDto(estado, originEntity) {
|
|
3423
4003
|
const dto = Object.assign({}, estado);
|
|
3424
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3425
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4004
|
+
dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
|
|
4005
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
|
|
3426
4006
|
delete dto.label;
|
|
3427
4007
|
if (originEntity !== "Pais" && dto.pais)
|
|
3428
4008
|
dto.pais = Pais.toDto(dto.pais, "Estado");
|
|
@@ -3432,7 +4012,7 @@ class Estado {
|
|
|
3432
4012
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3433
4013
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3434
4014
|
|
|
3435
|
-
const moment$
|
|
4015
|
+
const moment$a = _moment;
|
|
3436
4016
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3437
4017
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3438
4018
|
class Cidade {
|
|
@@ -3440,8 +4020,8 @@ class Cidade {
|
|
|
3440
4020
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3441
4021
|
static fromDto(cidadeDto, originEntity) {
|
|
3442
4022
|
const model = Object.assign({}, cidadeDto);
|
|
3443
|
-
model.createdDate = model.createdDate && moment$
|
|
3444
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4023
|
+
model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
|
|
4024
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
|
|
3445
4025
|
const lookupSeparator = " - ";
|
|
3446
4026
|
const displayFields = [
|
|
3447
4027
|
"id",
|
|
@@ -3462,8 +4042,8 @@ class Cidade {
|
|
|
3462
4042
|
}
|
|
3463
4043
|
static toDto(cidade, originEntity) {
|
|
3464
4044
|
const dto = Object.assign({}, cidade);
|
|
3465
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3466
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4045
|
+
dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
|
|
4046
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
|
|
3467
4047
|
delete dto.label;
|
|
3468
4048
|
if (originEntity !== "Estado" && dto.estado)
|
|
3469
4049
|
dto.estado = Estado.toDto(dto.estado, "Cidade");
|
|
@@ -3473,12 +4053,12 @@ class Cidade {
|
|
|
3473
4053
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3474
4054
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3475
4055
|
|
|
3476
|
-
const moment$
|
|
4056
|
+
const moment$b = _moment;
|
|
3477
4057
|
class PessoaEndereco {
|
|
3478
4058
|
static fromDto(pessoaEnderecoDto, originEntity) {
|
|
3479
4059
|
const model = Object.assign({}, pessoaEnderecoDto);
|
|
3480
|
-
model.createdDate = model.createdDate && moment$
|
|
3481
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4060
|
+
model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
|
|
4061
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
|
|
3482
4062
|
const lookupSeparator = " - ";
|
|
3483
4063
|
const displayFields = [
|
|
3484
4064
|
"codigo",
|
|
@@ -3494,8 +4074,8 @@ class PessoaEndereco {
|
|
|
3494
4074
|
}
|
|
3495
4075
|
static toDto(pessoaEndereco, originEntity) {
|
|
3496
4076
|
const dto = Object.assign({}, pessoaEndereco);
|
|
3497
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3498
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4077
|
+
dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
|
|
4078
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
|
|
3499
4079
|
delete dto.label;
|
|
3500
4080
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3501
4081
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
|
|
@@ -3505,7 +4085,7 @@ class PessoaEndereco {
|
|
|
3505
4085
|
}
|
|
3506
4086
|
}
|
|
3507
4087
|
|
|
3508
|
-
const moment$
|
|
4088
|
+
const moment$c = _moment;
|
|
3509
4089
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3510
4090
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3511
4091
|
class Filial {
|
|
@@ -3513,8 +4093,8 @@ class Filial {
|
|
|
3513
4093
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3514
4094
|
static fromDto(filialDto, originEntity) {
|
|
3515
4095
|
const model = Object.assign({}, filialDto);
|
|
3516
|
-
model.createdDate = model.createdDate && moment$
|
|
3517
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4096
|
+
model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
|
|
4097
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
|
|
3518
4098
|
const lookupSeparator = " - ";
|
|
3519
4099
|
const displayFields = [
|
|
3520
4100
|
"codigo",
|
|
@@ -3532,8 +4112,8 @@ class Filial {
|
|
|
3532
4112
|
}
|
|
3533
4113
|
static toDto(filial, originEntity) {
|
|
3534
4114
|
const dto = Object.assign({}, filial);
|
|
3535
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3536
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4115
|
+
dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
|
|
4116
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
|
|
3537
4117
|
delete dto.label;
|
|
3538
4118
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3539
4119
|
dto.empresa = Empresa.toDto(dto.empresa, "Filial");
|
|
@@ -3547,12 +4127,12 @@ class Filial {
|
|
|
3547
4127
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3548
4128
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3549
4129
|
|
|
3550
|
-
const moment$
|
|
4130
|
+
const moment$d = _moment;
|
|
3551
4131
|
class OrdemCompra {
|
|
3552
4132
|
static fromDto(ordemCompraDto, originEntity) {
|
|
3553
4133
|
const model = Object.assign({}, ordemCompraDto);
|
|
3554
|
-
model.createdDate = model.createdDate && moment$
|
|
3555
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4134
|
+
model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
|
|
4135
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
|
|
3556
4136
|
const lookupSeparator = " - ";
|
|
3557
4137
|
const displayFields = [
|
|
3558
4138
|
"codigo",
|
|
@@ -3568,8 +4148,8 @@ class OrdemCompra {
|
|
|
3568
4148
|
}
|
|
3569
4149
|
static toDto(ordemCompra, originEntity) {
|
|
3570
4150
|
const dto = Object.assign({}, ordemCompra);
|
|
3571
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3572
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4151
|
+
dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
|
|
4152
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
|
|
3573
4153
|
delete dto.label;
|
|
3574
4154
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3575
4155
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -3579,7 +4159,7 @@ class OrdemCompra {
|
|
|
3579
4159
|
}
|
|
3580
4160
|
}
|
|
3581
4161
|
|
|
3582
|
-
const moment$
|
|
4162
|
+
const moment$e = _moment;
|
|
3583
4163
|
let OrdemCompraFormComponent = class OrdemCompraFormComponent {
|
|
3584
4164
|
constructor(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
|
|
3585
4165
|
this.dialogRef = dialogRef;
|
|
@@ -3648,7 +4228,7 @@ let OrdemCompraFormComponent = class OrdemCompraFormComponent {
|
|
|
3648
4228
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
3649
4229
|
filter.empresaId = filial.empresa.id;
|
|
3650
4230
|
}
|
|
3651
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
4231
|
+
filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
|
|
3652
4232
|
const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
3653
4233
|
this.ordemCompraService
|
|
3654
4234
|
.listOrdensCompra(Object.assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, ordensCompraSelecionados: this.ordensCompra, pagina: {
|
|
@@ -3999,7 +4579,7 @@ AgendaModule = __decorate([
|
|
|
3999
4579
|
]),
|
|
4000
4580
|
],
|
|
4001
4581
|
providers: [
|
|
4002
|
-
AgendaService,
|
|
4582
|
+
AgendaService$1,
|
|
4003
4583
|
],
|
|
4004
4584
|
declarations: [
|
|
4005
4585
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -5681,11 +6261,11 @@ let DevolucaoChegadaVeiculoOverride = class DevolucaoChegadaVeiculoOverride {
|
|
|
5681
6261
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
5682
6262
|
Injectable(),
|
|
5683
6263
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
5684
|
-
AgendaService,
|
|
6264
|
+
AgendaService$1,
|
|
5685
6265
|
DevolucaoService])
|
|
5686
6266
|
], DevolucaoChegadaVeiculoOverride);
|
|
5687
6267
|
|
|
5688
|
-
const moment$
|
|
6268
|
+
const moment$f = _moment;
|
|
5689
6269
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5690
6270
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5691
6271
|
class UnidadeMedida {
|
|
@@ -5693,8 +6273,8 @@ class UnidadeMedida {
|
|
|
5693
6273
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5694
6274
|
static fromDto(unidadeMedidaDto, originEntity) {
|
|
5695
6275
|
const model = Object.assign({}, unidadeMedidaDto);
|
|
5696
|
-
model.createdDate = model.createdDate && moment$
|
|
5697
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6276
|
+
model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
|
|
6277
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
|
|
5698
6278
|
const lookupSeparator = " - ";
|
|
5699
6279
|
const displayFields = [
|
|
5700
6280
|
"id",
|
|
@@ -5711,8 +6291,8 @@ class UnidadeMedida {
|
|
|
5711
6291
|
}
|
|
5712
6292
|
static toDto(unidadeMedida, originEntity) {
|
|
5713
6293
|
const dto = Object.assign({}, unidadeMedida);
|
|
5714
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5715
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6294
|
+
dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
|
|
6295
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
|
|
5716
6296
|
delete dto.label;
|
|
5717
6297
|
return dto;
|
|
5718
6298
|
}
|
|
@@ -5720,7 +6300,7 @@ class UnidadeMedida {
|
|
|
5720
6300
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5721
6301
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5722
6302
|
|
|
5723
|
-
const moment$
|
|
6303
|
+
const moment$g = _moment;
|
|
5724
6304
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5725
6305
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5726
6306
|
class Royalty {
|
|
@@ -5728,8 +6308,8 @@ class Royalty {
|
|
|
5728
6308
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5729
6309
|
static fromDto(royaltyDto, originEntity) {
|
|
5730
6310
|
const model = Object.assign({}, royaltyDto);
|
|
5731
|
-
model.createdDate = model.createdDate && moment$
|
|
5732
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6311
|
+
model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
|
|
6312
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
|
|
5733
6313
|
const lookupSeparator = " - ";
|
|
5734
6314
|
const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
5735
6315
|
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
@@ -5739,8 +6319,8 @@ class Royalty {
|
|
|
5739
6319
|
}
|
|
5740
6320
|
static toDto(royalty, originEntity) {
|
|
5741
6321
|
const dto = Object.assign({}, royalty);
|
|
5742
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5743
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6322
|
+
dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
|
|
6323
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
|
|
5744
6324
|
delete dto.label;
|
|
5745
6325
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5746
6326
|
dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
|
|
@@ -5750,16 +6330,16 @@ class Royalty {
|
|
|
5750
6330
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5751
6331
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5752
6332
|
|
|
5753
|
-
const moment$
|
|
6333
|
+
const moment$h = _moment;
|
|
5754
6334
|
class FamiliaProduto {
|
|
5755
6335
|
static fromDto(familiaProdutoDto, originEntity) {
|
|
5756
6336
|
if (familiaProdutoDto.id === undefined) {
|
|
5757
6337
|
return familiaProdutoDto;
|
|
5758
6338
|
}
|
|
5759
6339
|
const model = Object.assign({}, familiaProdutoDto);
|
|
5760
|
-
model.createdDate = model.codigo && moment$
|
|
5761
|
-
model.createdDate = model.createdDate && moment$
|
|
5762
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6340
|
+
model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
|
|
6341
|
+
model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
|
|
6342
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
|
|
5763
6343
|
const lookupSeparator = " - ";
|
|
5764
6344
|
const displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
5765
6345
|
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
@@ -5769,8 +6349,8 @@ class FamiliaProduto {
|
|
|
5769
6349
|
}
|
|
5770
6350
|
static toDto(familiaProduto, originEntity) {
|
|
5771
6351
|
const dto = Object.assign({}, familiaProduto);
|
|
5772
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5773
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6352
|
+
dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
|
|
6353
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
|
|
5774
6354
|
delete dto.label;
|
|
5775
6355
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5776
6356
|
dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
|
|
@@ -5778,7 +6358,7 @@ class FamiliaProduto {
|
|
|
5778
6358
|
}
|
|
5779
6359
|
}
|
|
5780
6360
|
|
|
5781
|
-
const moment$
|
|
6361
|
+
const moment$i = _moment;
|
|
5782
6362
|
class Produto {
|
|
5783
6363
|
constructor() {
|
|
5784
6364
|
this.produtoMisto = false;
|
|
@@ -5786,8 +6366,8 @@ class Produto {
|
|
|
5786
6366
|
}
|
|
5787
6367
|
static fromDto(produtoDto, originEntity) {
|
|
5788
6368
|
const model = Object.assign({}, produtoDto);
|
|
5789
|
-
model.createdDate = model.createdDate && moment$
|
|
5790
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6369
|
+
model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
|
|
6370
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
|
|
5791
6371
|
const lookupSeparator = " - ";
|
|
5792
6372
|
const displayFields = [
|
|
5793
6373
|
"codigo",
|
|
@@ -5808,8 +6388,8 @@ class Produto {
|
|
|
5808
6388
|
}
|
|
5809
6389
|
static toDto(produto, originEntity) {
|
|
5810
6390
|
const dto = Object.assign({}, produto);
|
|
5811
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5812
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6391
|
+
dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
|
|
6392
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
|
|
5813
6393
|
delete dto.label;
|
|
5814
6394
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5815
6395
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -5825,7 +6405,7 @@ class Produto {
|
|
|
5825
6405
|
}
|
|
5826
6406
|
}
|
|
5827
6407
|
|
|
5828
|
-
const moment$
|
|
6408
|
+
const moment$j = _moment;
|
|
5829
6409
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5830
6410
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5831
6411
|
class Derivacao {
|
|
@@ -5833,8 +6413,8 @@ class Derivacao {
|
|
|
5833
6413
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5834
6414
|
static fromDto(derivacaoDto, originEntity) {
|
|
5835
6415
|
const model = Object.assign({}, derivacaoDto);
|
|
5836
|
-
model.createdDate = model.createdDate && moment$
|
|
5837
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6416
|
+
model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
|
|
6417
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
|
|
5838
6418
|
const lookupSeparator = " - ";
|
|
5839
6419
|
const displayFields = ["codigo", "descricao"];
|
|
5840
6420
|
model.label = getLookupLabel(model, displayFields, lookupSeparator);
|
|
@@ -5846,8 +6426,8 @@ class Derivacao {
|
|
|
5846
6426
|
}
|
|
5847
6427
|
static toDto(derivacao, originEntity) {
|
|
5848
6428
|
const dto = Object.assign({}, derivacao);
|
|
5849
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5850
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6429
|
+
dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
|
|
6430
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
|
|
5851
6431
|
delete dto.label;
|
|
5852
6432
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5853
6433
|
dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
|
|
@@ -5859,7 +6439,7 @@ class Derivacao {
|
|
|
5859
6439
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5860
6440
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5861
6441
|
|
|
5862
|
-
const moment$
|
|
6442
|
+
const moment$k = _moment;
|
|
5863
6443
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5864
6444
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5865
6445
|
class Transportadora {
|
|
@@ -5867,8 +6447,8 @@ class Transportadora {
|
|
|
5867
6447
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5868
6448
|
static fromDto(transportadoraDto, originEntity) {
|
|
5869
6449
|
const model = Object.assign({}, transportadoraDto);
|
|
5870
|
-
model.createdDate = model.createdDate && moment$
|
|
5871
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6450
|
+
model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
|
|
6451
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
|
|
5872
6452
|
const lookupSeparator = " - ";
|
|
5873
6453
|
const displayFields = [
|
|
5874
6454
|
"codigo", "pessoa.nome", "pessoa.cpfCnpj"
|
|
@@ -5882,8 +6462,8 @@ class Transportadora {
|
|
|
5882
6462
|
}
|
|
5883
6463
|
static toDto(transportadora, originEntity) {
|
|
5884
6464
|
const dto = Object.assign({}, transportadora);
|
|
5885
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5886
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6465
|
+
dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
|
|
6466
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
|
|
5887
6467
|
delete dto.label;
|
|
5888
6468
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
5889
6469
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
|
|
@@ -5895,7 +6475,7 @@ class Transportadora {
|
|
|
5895
6475
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5896
6476
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5897
6477
|
|
|
5898
|
-
const moment$
|
|
6478
|
+
const moment$l = _moment;
|
|
5899
6479
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5900
6480
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5901
6481
|
class Devolucao {
|
|
@@ -5903,8 +6483,8 @@ class Devolucao {
|
|
|
5903
6483
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5904
6484
|
static fromDto(devolucaoDto, originEntity) {
|
|
5905
6485
|
const model = Object.assign({}, devolucaoDto);
|
|
5906
|
-
model.createdDate = model.createdDate && moment$
|
|
5907
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6486
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
6487
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
5908
6488
|
const lookupSeparator = " - ";
|
|
5909
6489
|
const displayFields = [
|
|
5910
6490
|
''
|
|
@@ -5928,8 +6508,8 @@ class Devolucao {
|
|
|
5928
6508
|
}
|
|
5929
6509
|
static toDto(devolucao, originEntity) {
|
|
5930
6510
|
const dto = Object.assign({}, devolucao);
|
|
5931
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5932
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6511
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
6512
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
5933
6513
|
delete dto.label;
|
|
5934
6514
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
5935
6515
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
|
|
@@ -6580,7 +7160,7 @@ DevolucaoFormComponent = __decorate([
|
|
|
6580
7160
|
ActivatedRoute,
|
|
6581
7161
|
DevolucaoChegadaVeiculoOverride,
|
|
6582
7162
|
ConfirmationService,
|
|
6583
|
-
AgendaService,
|
|
7163
|
+
AgendaService$1,
|
|
6584
7164
|
ErpProcessService,
|
|
6585
7165
|
ErpFormConfigService,
|
|
6586
7166
|
HasChangeService])
|
|
@@ -6667,7 +7247,7 @@ DevolucaoInfoComponent = __decorate([
|
|
|
6667
7247
|
|
|
6668
7248
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
6669
7249
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
6670
|
-
const moment$
|
|
7250
|
+
const moment$m = _moment;
|
|
6671
7251
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6672
7252
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6673
7253
|
class Expedicao {
|
|
@@ -6675,8 +7255,8 @@ class Expedicao {
|
|
|
6675
7255
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6676
7256
|
static fromDto(expedicaoDto, originEntity) {
|
|
6677
7257
|
const model = Object.assign({}, expedicaoDto);
|
|
6678
|
-
model.createdDate = model.createdDate && moment$
|
|
6679
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7258
|
+
model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
|
|
7259
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
|
|
6680
7260
|
const lookupSeparator = " - ";
|
|
6681
7261
|
const displayFields = [
|
|
6682
7262
|
"id",
|
|
@@ -6715,8 +7295,8 @@ class Expedicao {
|
|
|
6715
7295
|
}
|
|
6716
7296
|
static toDto(expedicao, originEntity) {
|
|
6717
7297
|
const dto = Object.assign({}, expedicao);
|
|
6718
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6719
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7298
|
+
dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
|
|
7299
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
|
|
6720
7300
|
delete dto.label;
|
|
6721
7301
|
if (originEntity !== "Pessoa" && dto.clienteFaturamento)
|
|
6722
7302
|
dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
|
|
@@ -6732,7 +7312,7 @@ class Expedicao {
|
|
|
6732
7312
|
}
|
|
6733
7313
|
}
|
|
6734
7314
|
|
|
6735
|
-
const moment$
|
|
7315
|
+
const moment$n = _moment;
|
|
6736
7316
|
let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
6737
7317
|
constructor(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
|
|
6738
7318
|
this.expedicaoService = expedicaoService;
|
|
@@ -7256,11 +7836,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7256
7836
|
if (typeof value == "number")
|
|
7257
7837
|
return `${name} eq ${value}`;
|
|
7258
7838
|
else if (type == FieldType.Date)
|
|
7259
|
-
return `${name} eq '${moment$
|
|
7839
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7260
7840
|
else if (type == FieldType.Time)
|
|
7261
|
-
return `${name} eq '${moment$
|
|
7841
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7262
7842
|
else if (type == FieldType.DateTime)
|
|
7263
|
-
return `${name} eq '${moment$
|
|
7843
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7264
7844
|
else if (type == FieldType.Enum)
|
|
7265
7845
|
return `${name} eq '${value}'`;
|
|
7266
7846
|
else if (type == FieldType.String)
|
|
@@ -7306,11 +7886,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7306
7886
|
if (typeof value == "number")
|
|
7307
7887
|
return `${name} eq ${value}`;
|
|
7308
7888
|
else if (type == FieldType.Date)
|
|
7309
|
-
return `${name} eq '${moment$
|
|
7889
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7310
7890
|
else if (type == FieldType.Time)
|
|
7311
|
-
return `${name} eq '${moment$
|
|
7891
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7312
7892
|
else if (type == FieldType.DateTime)
|
|
7313
|
-
return `${name} eq '${moment$
|
|
7893
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7314
7894
|
else if (type == FieldType.Enum)
|
|
7315
7895
|
return `${name} eq '${value}'`;
|
|
7316
7896
|
else if (type == FieldType.String)
|
|
@@ -7414,11 +7994,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7414
7994
|
if (typeof value == "number")
|
|
7415
7995
|
return `${name} eq ${value}`;
|
|
7416
7996
|
else if (type == FieldType.Date)
|
|
7417
|
-
return `${name} eq '${moment$
|
|
7997
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7418
7998
|
else if (type == FieldType.Time)
|
|
7419
|
-
return `${name} eq '${moment$
|
|
7999
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7420
8000
|
else if (type == FieldType.DateTime)
|
|
7421
|
-
return `${name} eq '${moment$
|
|
8001
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7422
8002
|
else if (type == FieldType.String)
|
|
7423
8003
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
7424
8004
|
else
|
|
@@ -7594,11 +8174,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7594
8174
|
if (typeof value == "number")
|
|
7595
8175
|
return `${name} eq ${value}`;
|
|
7596
8176
|
else if (type == FieldType.Date)
|
|
7597
|
-
return `${name} eq '${moment$
|
|
8177
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7598
8178
|
else if (type == FieldType.Time)
|
|
7599
|
-
return `${name} eq '${moment$
|
|
8179
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7600
8180
|
else if (type == FieldType.DateTime)
|
|
7601
|
-
return `${name} eq '${moment$
|
|
8181
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7602
8182
|
else if (type == FieldType.String)
|
|
7603
8183
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
7604
8184
|
else
|
|
@@ -7635,11 +8215,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7635
8215
|
if (typeof value == "number")
|
|
7636
8216
|
return `${name} eq ${value}`;
|
|
7637
8217
|
else if (type == FieldType.Date)
|
|
7638
|
-
return `${name} eq '${moment$
|
|
8218
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7639
8219
|
else if (type == FieldType.Time)
|
|
7640
|
-
return `${name} eq '${moment$
|
|
8220
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7641
8221
|
else if (type == FieldType.DateTime)
|
|
7642
|
-
return `${name} eq '${moment$
|
|
8222
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7643
8223
|
else if (type == FieldType.Enum)
|
|
7644
8224
|
return `${name} eq '${value}'`;
|
|
7645
8225
|
else if (type == FieldType.String)
|
|
@@ -8122,7 +8702,7 @@ ExpedicaoFormComponent = __decorate([
|
|
|
8122
8702
|
TransportadoraService,
|
|
8123
8703
|
PedidoVendaService,
|
|
8124
8704
|
PedidoVendaItemService,
|
|
8125
|
-
AgendaService,
|
|
8705
|
+
AgendaService$1,
|
|
8126
8706
|
ExpedicaoChegadaVeiculoOverride,
|
|
8127
8707
|
ConfirmationService,
|
|
8128
8708
|
ErpProcessService,
|
|
@@ -8402,7 +8982,7 @@ let ProcessoAvulsoChegadaVeiculoOverride = class ProcessoAvulsoChegadaVeiculoOve
|
|
|
8402
8982
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
8403
8983
|
Injectable(),
|
|
8404
8984
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
8405
|
-
AgendaService,
|
|
8985
|
+
AgendaService$1,
|
|
8406
8986
|
ProcessoAvulsoService])
|
|
8407
8987
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
8408
8988
|
|
|
@@ -8682,7 +9262,7 @@ ProcessoAvulsoFormComponent = __decorate([
|
|
|
8682
9262
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
8683
9263
|
TranslateService,
|
|
8684
9264
|
ConfirmationService,
|
|
8685
|
-
AgendaService,
|
|
9265
|
+
AgendaService$1,
|
|
8686
9266
|
ErpProcessService,
|
|
8687
9267
|
ErpFormConfigService,
|
|
8688
9268
|
HasChangeService])
|
|
@@ -8729,7 +9309,7 @@ ProcessoAvulsoInfoComponent = __decorate([
|
|
|
8729
9309
|
__metadata("design:paramtypes", [ProcessoAvulsoService])
|
|
8730
9310
|
], ProcessoAvulsoInfoComponent);
|
|
8731
9311
|
|
|
8732
|
-
const moment$
|
|
9312
|
+
const moment$o = _moment;
|
|
8733
9313
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
8734
9314
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
8735
9315
|
class Safra {
|
|
@@ -8737,10 +9317,10 @@ class Safra {
|
|
|
8737
9317
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
8738
9318
|
static fromDto(safraDto, originEntity) {
|
|
8739
9319
|
const model = Object.assign({}, safraDto);
|
|
8740
|
-
model.competenciaInicial = model.competenciaInicial && moment$
|
|
8741
|
-
model.competenciaFinal = model.competenciaFinal && moment$
|
|
8742
|
-
model.createdDate = model.createdDate && moment$
|
|
8743
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
9320
|
+
model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
|
|
9321
|
+
model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
|
|
9322
|
+
model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
|
|
9323
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
|
|
8744
9324
|
const lookupSeparator = " - ";
|
|
8745
9325
|
const displayFields = [
|
|
8746
9326
|
"codigo",
|
|
@@ -8753,10 +9333,10 @@ class Safra {
|
|
|
8753
9333
|
}
|
|
8754
9334
|
static toDto(safra, originEntity) {
|
|
8755
9335
|
const dto = Object.assign({}, safra);
|
|
8756
|
-
dto.competenciaInicial = dto.competenciaInicial && moment$
|
|
8757
|
-
dto.competenciaFinal = dto.competenciaFinal && moment$
|
|
8758
|
-
dto.createdDate = dto.createdDate && moment$
|
|
8759
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
9336
|
+
dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
|
|
9337
|
+
dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
|
|
9338
|
+
dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
|
|
9339
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
|
|
8760
9340
|
delete dto.label;
|
|
8761
9341
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
8762
9342
|
dto.empresa = Empresa.toDto(dto.empresa, "Safra");
|
|
@@ -8768,7 +9348,7 @@ class Safra {
|
|
|
8768
9348
|
|
|
8769
9349
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
8770
9350
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
8771
|
-
const moment$
|
|
9351
|
+
const moment$p = _moment;
|
|
8772
9352
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
8773
9353
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
8774
9354
|
class RecebimentoOrdemCompra {
|
|
@@ -8776,8 +9356,8 @@ class RecebimentoOrdemCompra {
|
|
|
8776
9356
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
8777
9357
|
static fromDto(recebimentoOrdemCompraDto, originEntity) {
|
|
8778
9358
|
const model = Object.assign({}, recebimentoOrdemCompraDto);
|
|
8779
|
-
model.createdDate = model.createdDate && moment$
|
|
8780
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
9359
|
+
model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
|
|
9360
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
|
|
8781
9361
|
const lookupSeparator = " - ";
|
|
8782
9362
|
const displayFields = [
|
|
8783
9363
|
''
|
|
@@ -8806,8 +9386,8 @@ class RecebimentoOrdemCompra {
|
|
|
8806
9386
|
}
|
|
8807
9387
|
static toDto(recebimentoOrdemCompra, originEntity) {
|
|
8808
9388
|
const dto = Object.assign({}, recebimentoOrdemCompra);
|
|
8809
|
-
dto.createdDate = dto.createdDate && moment$
|
|
8810
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
9389
|
+
dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
|
|
9390
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
|
|
8811
9391
|
delete dto.label;
|
|
8812
9392
|
if (originEntity !== "Agenda" && dto.agenda)
|
|
8813
9393
|
dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
|
|
@@ -8865,7 +9445,7 @@ let RecebimentoOrdemCompraChegadaVeiculoOverride = class RecebimentoOrdemCompraC
|
|
|
8865
9445
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
8866
9446
|
Injectable(),
|
|
8867
9447
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
8868
|
-
AgendaService,
|
|
9448
|
+
AgendaService$1,
|
|
8869
9449
|
RecebimentoOrdemCompraService])
|
|
8870
9450
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
8871
9451
|
|
|
@@ -9964,7 +10544,7 @@ RecebimentoOrdemCompraFormComponent = __decorate([
|
|
|
9964
10544
|
NotaValidatorService,
|
|
9965
10545
|
ConfirmationService,
|
|
9966
10546
|
DialogService,
|
|
9967
|
-
AgendaService,
|
|
10547
|
+
AgendaService$1,
|
|
9968
10548
|
ErpProcessService,
|
|
9969
10549
|
ErpFormConfigService,
|
|
9970
10550
|
VerificaNotafiscal,
|
|
@@ -10079,7 +10659,7 @@ RecebimentoOrdemCompraInfoComponent = __decorate([
|
|
|
10079
10659
|
__metadata("design:paramtypes", [RecebimentoOrdemCompraService])
|
|
10080
10660
|
], RecebimentoOrdemCompraInfoComponent);
|
|
10081
10661
|
|
|
10082
|
-
const moment$
|
|
10662
|
+
const moment$q = _moment;
|
|
10083
10663
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10084
10664
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10085
10665
|
class ContratoCompra {
|
|
@@ -10087,11 +10667,11 @@ class ContratoCompra {
|
|
|
10087
10667
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
10088
10668
|
static fromDto(contratoCompraDto, originEntity) {
|
|
10089
10669
|
const model = Object.assign({}, contratoCompraDto);
|
|
10090
|
-
model.dataEmissao = model.dataEmissao && moment$
|
|
10091
|
-
model.dataInicioVigencia = model.dataInicioVigencia && moment$
|
|
10092
|
-
model.dataFimVigencia = model.dataFimVigencia && moment$
|
|
10093
|
-
model.createdDate = model.createdDate && moment$
|
|
10094
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
10670
|
+
model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
|
|
10671
|
+
model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
|
|
10672
|
+
model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
|
|
10673
|
+
model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
|
|
10674
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
|
|
10095
10675
|
model.label = `Número: ${model.numero}, Filial: ${model.filial.codigo}`;
|
|
10096
10676
|
if (originEntity !== "Empresa" && model.empresa)
|
|
10097
10677
|
model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
|
|
@@ -10107,11 +10687,11 @@ class ContratoCompra {
|
|
|
10107
10687
|
}
|
|
10108
10688
|
static toDto(contratoCompra, originEntity) {
|
|
10109
10689
|
const dto = Object.assign({}, contratoCompra);
|
|
10110
|
-
dto.dataEmissao = dto.dataEmissao && moment$
|
|
10111
|
-
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$
|
|
10112
|
-
dto.dataFimVigencia = dto.dataFimVigencia && moment$
|
|
10113
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10114
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10690
|
+
dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
|
|
10691
|
+
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
|
|
10692
|
+
dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
|
|
10693
|
+
dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
|
|
10694
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
|
|
10115
10695
|
delete dto.label;
|
|
10116
10696
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
10117
10697
|
dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
|
|
@@ -10131,7 +10711,7 @@ class ContratoCompra {
|
|
|
10131
10711
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10132
10712
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10133
10713
|
|
|
10134
|
-
const moment$
|
|
10714
|
+
const moment$r = _moment;
|
|
10135
10715
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10136
10716
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10137
10717
|
class ContratoCompraItem {
|
|
@@ -10140,9 +10720,9 @@ class ContratoCompraItem {
|
|
|
10140
10720
|
static fromDto(contratoCompraItemDto, originEntity) {
|
|
10141
10721
|
const model = Object.assign({}, contratoCompraItemDto);
|
|
10142
10722
|
model.sku = model.sku || {};
|
|
10143
|
-
model.dataCompetencia = model.dataCompetencia && moment$
|
|
10144
|
-
model.createdDate = model.createdDate && moment$
|
|
10145
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
10723
|
+
model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
|
|
10724
|
+
model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
|
|
10725
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
|
|
10146
10726
|
model.label = `${model.sequencia} - ${model.sku.descricao} - ${model.sku.codigo}`;
|
|
10147
10727
|
if (originEntity !== "ContratoCompra" && model.contrato)
|
|
10148
10728
|
model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
|
|
@@ -10152,9 +10732,9 @@ class ContratoCompraItem {
|
|
|
10152
10732
|
}
|
|
10153
10733
|
static toDto(contratoCompraItem, originEntity) {
|
|
10154
10734
|
const dto = Object.assign({}, contratoCompraItem);
|
|
10155
|
-
dto.dataCompetencia = dto.dataCompetencia && moment$
|
|
10156
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10157
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10735
|
+
dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
|
|
10736
|
+
dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
|
|
10737
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
|
|
10158
10738
|
delete dto.label;
|
|
10159
10739
|
if (originEntity !== "ContratoCompra" && dto.contrato)
|
|
10160
10740
|
dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
|
|
@@ -10166,7 +10746,7 @@ class ContratoCompraItem {
|
|
|
10166
10746
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10167
10747
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10168
10748
|
|
|
10169
|
-
const moment$
|
|
10749
|
+
const moment$s = _moment;
|
|
10170
10750
|
let ContratoFormComponent = class ContratoFormComponent {
|
|
10171
10751
|
constructor(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
|
|
10172
10752
|
this.dialogRef = dialogRef;
|
|
@@ -10250,7 +10830,7 @@ let ContratoFormComponent = class ContratoFormComponent {
|
|
|
10250
10830
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
10251
10831
|
filter.empresaId = filial.empresa.id;
|
|
10252
10832
|
}
|
|
10253
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
10833
|
+
filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
|
|
10254
10834
|
const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
10255
10835
|
this.contratoCompraService
|
|
10256
10836
|
.listContratosCompra(Object.assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, produtoId: (this.produto || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, contratosSelecionados: this.contratos, pagina: {
|
|
@@ -10472,12 +11052,12 @@ class Transgenia {
|
|
|
10472
11052
|
}
|
|
10473
11053
|
}
|
|
10474
11054
|
|
|
10475
|
-
const moment$
|
|
11055
|
+
const moment$t = _moment;
|
|
10476
11056
|
class RecebimentoContrato {
|
|
10477
11057
|
static fromDto(recebimentoDto, originEntity) {
|
|
10478
11058
|
const model = Object.assign({}, recebimentoDto);
|
|
10479
|
-
model.createdDate = model.createdDate && moment$
|
|
10480
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11059
|
+
model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
|
|
11060
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
|
|
10481
11061
|
const lookupSeparator = " - ";
|
|
10482
11062
|
const displayFields = [
|
|
10483
11063
|
"id",
|
|
@@ -10526,8 +11106,8 @@ class RecebimentoContrato {
|
|
|
10526
11106
|
}
|
|
10527
11107
|
static toDto(recebimento, originEntity) {
|
|
10528
11108
|
const dto = Object.assign({}, recebimento);
|
|
10529
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10530
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11109
|
+
dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
|
|
11110
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
|
|
10531
11111
|
delete dto.label;
|
|
10532
11112
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
10533
11113
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
|
|
@@ -10560,7 +11140,7 @@ var Situacao;
|
|
|
10560
11140
|
Situacao["ATIVO"] = "ATIVO";
|
|
10561
11141
|
})(Situacao || (Situacao = {}));
|
|
10562
11142
|
|
|
10563
|
-
const moment$
|
|
11143
|
+
const moment$u = _moment;
|
|
10564
11144
|
let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
10565
11145
|
constructor(recebimentoService, router, route, messageService, confirmationService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, filialService, transportadoraService, pessoaEnderecoService, contratoCompraService, pessoaService, produtoService, derivacaoService, recebimentoChegadaOverride, notaValidatorService, transgeniaService, dialogService, agendaService, erpProcessService, erpFormConfigService, verificaNotaFiscal, hasChangeService, buildFormField) {
|
|
10566
11146
|
this.recebimentoService = recebimentoService;
|
|
@@ -11203,11 +11783,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11203
11783
|
if (typeof value == "number")
|
|
11204
11784
|
return `${name} eq ${value}`;
|
|
11205
11785
|
else if (type == FieldType.Date)
|
|
11206
|
-
return `${name} eq '${moment$
|
|
11786
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11207
11787
|
else if (type == FieldType.Time)
|
|
11208
|
-
return `${name} eq '${moment$
|
|
11788
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11209
11789
|
else if (type == FieldType.DateTime)
|
|
11210
|
-
return `${name} eq '${moment$
|
|
11790
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11211
11791
|
else if (type == FieldType.String)
|
|
11212
11792
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
11213
11793
|
else
|
|
@@ -11241,11 +11821,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11241
11821
|
if (typeof value == "number")
|
|
11242
11822
|
return `${name} eq ${value}`;
|
|
11243
11823
|
else if (type == FieldType.Date)
|
|
11244
|
-
return `${name} eq '${moment$
|
|
11824
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11245
11825
|
else if (type == FieldType.Time)
|
|
11246
|
-
return `${name} eq '${moment$
|
|
11826
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11247
11827
|
else if (type == FieldType.DateTime)
|
|
11248
|
-
return `${name} eq '${moment$
|
|
11828
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11249
11829
|
else if (type == FieldType.Enum)
|
|
11250
11830
|
return `${name} eq '${value}'`;
|
|
11251
11831
|
else if (type == FieldType.String)
|
|
@@ -11282,11 +11862,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11282
11862
|
if (typeof value == "number")
|
|
11283
11863
|
return `${name} eq ${value}`;
|
|
11284
11864
|
else if (type == FieldType.Date)
|
|
11285
|
-
return `${name} eq '${moment$
|
|
11865
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11286
11866
|
else if (type == FieldType.Time)
|
|
11287
|
-
return `${name} eq '${moment$
|
|
11867
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11288
11868
|
else if (type == FieldType.DateTime)
|
|
11289
|
-
return `${name} eq '${moment$
|
|
11869
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11290
11870
|
else if (type == FieldType.String)
|
|
11291
11871
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
11292
11872
|
else
|
|
@@ -11321,11 +11901,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11321
11901
|
if (typeof value == "number")
|
|
11322
11902
|
return `${name} eq ${value}`;
|
|
11323
11903
|
else if (type == FieldType.Date)
|
|
11324
|
-
return `${name} eq '${moment$
|
|
11904
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11325
11905
|
else if (type == FieldType.Time)
|
|
11326
|
-
return `${name} eq '${moment$
|
|
11906
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11327
11907
|
else if (type == FieldType.DateTime)
|
|
11328
|
-
return `${name} eq '${moment$
|
|
11908
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11329
11909
|
else if (type == FieldType.Enum)
|
|
11330
11910
|
return `${name} eq '${value}'`;
|
|
11331
11911
|
else if (type == FieldType.String)
|
|
@@ -11410,11 +11990,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11410
11990
|
if (typeof value == "number")
|
|
11411
11991
|
return `${name} eq ${value}`;
|
|
11412
11992
|
else if (type == FieldType.Date)
|
|
11413
|
-
return `${name} eq '${moment$
|
|
11993
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11414
11994
|
else if (type == FieldType.Time)
|
|
11415
|
-
return `${name} eq '${moment$
|
|
11995
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11416
11996
|
else if (type == FieldType.DateTime)
|
|
11417
|
-
return `${name} eq '${moment$
|
|
11997
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11418
11998
|
else if (type == FieldType.String)
|
|
11419
11999
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
11420
12000
|
else
|
|
@@ -11447,11 +12027,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11447
12027
|
if (typeof value == "number")
|
|
11448
12028
|
return `${name} eq ${value}`;
|
|
11449
12029
|
else if (type == FieldType.Date)
|
|
11450
|
-
return `${name} eq '${moment$
|
|
12030
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11451
12031
|
else if (type == FieldType.Time)
|
|
11452
|
-
return `${name} eq '${moment$
|
|
12032
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11453
12033
|
else if (type == FieldType.DateTime)
|
|
11454
|
-
return `${name} eq '${moment$
|
|
12034
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11455
12035
|
else if (type == FieldType.Enum)
|
|
11456
12036
|
return `${name} eq '${value}'`;
|
|
11457
12037
|
else if (type == FieldType.String)
|
|
@@ -11494,11 +12074,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11494
12074
|
if (typeof value == "number")
|
|
11495
12075
|
return `${name} eq ${value}`;
|
|
11496
12076
|
else if (type == FieldType.Date)
|
|
11497
|
-
return `${name} eq '${moment$
|
|
12077
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11498
12078
|
else if (type == FieldType.Time)
|
|
11499
|
-
return `${name} eq '${moment$
|
|
12079
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11500
12080
|
else if (type == FieldType.DateTime)
|
|
11501
|
-
return `${name} eq '${moment$
|
|
12081
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11502
12082
|
else if (type == FieldType.Enum)
|
|
11503
12083
|
return `${name} eq '${value}'`;
|
|
11504
12084
|
else if (type == FieldType.String)
|
|
@@ -12233,7 +12813,7 @@ RecebimentoFormComponent = __decorate([
|
|
|
12233
12813
|
NotaValidatorService,
|
|
12234
12814
|
TransgeniaService,
|
|
12235
12815
|
DialogService,
|
|
12236
|
-
AgendaService,
|
|
12816
|
+
AgendaService$1,
|
|
12237
12817
|
ErpProcessService,
|
|
12238
12818
|
ErpFormConfigService,
|
|
12239
12819
|
VerificaNotafiscal,
|
|
@@ -12464,5 +13044,5 @@ DockModule = __decorate([
|
|
|
12464
13044
|
})
|
|
12465
13045
|
], DockModule);
|
|
12466
13046
|
|
|
12467
|
-
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, HasChangeService, 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, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb,
|
|
13047
|
+
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, EntityService$2 as ɵba, EntityService$1 as ɵbb, InsertKeyModule as ɵbc, InsertKeyComponent as ɵbd, IntegrationService 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, NotaFormComponent as ɵco, 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, DocumentGridModule as ɵu, DocumentGridComponent as ɵv, DocumentService as ɵw, RegisterDocumentModule as ɵx, RegisterDocumentComponent as ɵy, AgendaService as ɵz };
|
|
12468
13048
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|