@seniorsistemas/yms-integration 1.19.0 → 1.19.1-50993c93-db44-4e13-ae38-d1cca3a0e113
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 +888 -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/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
- 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/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
- 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 +796 -185
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +829 -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/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.d.ts +1 -0
- 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';
|
|
@@ -1800,6 +1800,16 @@ let VisitanteComponent = class VisitanteComponent {
|
|
|
1800
1800
|
driver: true
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
+
if (this.visitors.length > 0) {
|
|
1804
|
+
this.visitors[0].visitor = {
|
|
1805
|
+
name: mot.nome,
|
|
1806
|
+
document: mot.cpf,
|
|
1807
|
+
contact: this.getContatoMotorista(mot),
|
|
1808
|
+
visitorSituation: VisitorSituation.CHECK_IN_PENDING,
|
|
1809
|
+
documentType: this.getDocumentType(),
|
|
1810
|
+
driver: true
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1803
1813
|
}
|
|
1804
1814
|
adicionaVisitantesGrid() {
|
|
1805
1815
|
if (this.visitors.length) {
|
|
@@ -1884,6 +1894,14 @@ let VisitanteComponent = class VisitanteComponent {
|
|
|
1884
1894
|
if (visitor.document === visitante.document) {
|
|
1885
1895
|
visitor.contact = visitante.contact;
|
|
1886
1896
|
visitor.name = visitante.name;
|
|
1897
|
+
const novoVisitante = this.buildVisitorCredentialsDto(visitor);
|
|
1898
|
+
this.visitors.forEach(result => {
|
|
1899
|
+
if (result.visitor.document === novoVisitante.visitor.document) {
|
|
1900
|
+
result.visitor.name = novoVisitante.visitor.name;
|
|
1901
|
+
result.visitor.contact = novoVisitante.visitor.contact;
|
|
1902
|
+
}
|
|
1903
|
+
});
|
|
1904
|
+
this.visitorsChange.emit(this.visitors);
|
|
1887
1905
|
this.visitorFound = true;
|
|
1888
1906
|
}
|
|
1889
1907
|
});
|
|
@@ -1911,6 +1929,19 @@ let VisitanteComponent = class VisitanteComponent {
|
|
|
1911
1929
|
this.visitorsChange.emit(this.visitors);
|
|
1912
1930
|
this.hasChange.emit(true);
|
|
1913
1931
|
}
|
|
1932
|
+
buildVisitorCredentialsDto(visitor) {
|
|
1933
|
+
const visitorCredentialsDto = new VisitorCredentialsDto();
|
|
1934
|
+
const visitante = {
|
|
1935
|
+
name: visitor.name,
|
|
1936
|
+
document: visitor.document,
|
|
1937
|
+
contact: visitor.contact,
|
|
1938
|
+
documentType: visitor.documentType,
|
|
1939
|
+
visitorSituation: visitor.visitorSituation,
|
|
1940
|
+
driver: false
|
|
1941
|
+
};
|
|
1942
|
+
visitorCredentialsDto.visitor = visitante;
|
|
1943
|
+
return visitorCredentialsDto;
|
|
1944
|
+
}
|
|
1914
1945
|
model(visitante) {
|
|
1915
1946
|
const isDriver = visitante.document === this.motorista.cpf;
|
|
1916
1947
|
const findVisitor = this.visitors.find((visitorWithCredentials) => visitorWithCredentials.visitor.document === visitante.document);
|
|
@@ -2764,6 +2795,268 @@ VisitorListModule = __decorate([
|
|
|
2764
2795
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
2765
2796
|
], VisitorListModule);
|
|
2766
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\"\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\"\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
|
+
|
|
2767
3060
|
class EntityService$1 {
|
|
2768
3061
|
constructor(http, messageService, entityUrl, actionsUrl) {
|
|
2769
3062
|
this.http = http;
|
|
@@ -2854,11 +3147,329 @@ class EntityService$1 {
|
|
|
2854
3147
|
listCustomFilter(listParams, action) {
|
|
2855
3148
|
return this.http.post(`${this.actionsUrl}/${action}`, this.getBodyParams(listParams)).pipe(this.defaultCatch());
|
|
2856
3149
|
}
|
|
2857
|
-
}
|
|
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);
|
|
2858
3469
|
|
|
2859
3470
|
const ERP_ENVIRONMENT = new InjectionToken('integration_environment');
|
|
2860
3471
|
|
|
2861
|
-
let AgendaService = class AgendaService extends EntityService$1 {
|
|
3472
|
+
let AgendaService$1 = class AgendaService extends EntityService$1 {
|
|
2862
3473
|
constructor(http, messageService, environment) {
|
|
2863
3474
|
super(http, messageService, `${environment.project.domain}/${environment.project.service}/entities/agenda`, `${environment.project.domain}/${environment.project.service}/actions`);
|
|
2864
3475
|
this.http = http;
|
|
@@ -2882,12 +3493,12 @@ let AgendaService = class AgendaService extends EntityService$1 {
|
|
|
2882
3493
|
.pipe(this.defaultCatch());
|
|
2883
3494
|
}
|
|
2884
3495
|
};
|
|
2885
|
-
AgendaService = __decorate([
|
|
3496
|
+
AgendaService$1 = __decorate([
|
|
2886
3497
|
Injectable(),
|
|
2887
3498
|
__param(2, Inject(ERP_ENVIRONMENT)),
|
|
2888
3499
|
__metadata("design:paramtypes", [HttpClient,
|
|
2889
3500
|
MessageService$1, Object])
|
|
2890
|
-
], AgendaService);
|
|
3501
|
+
], AgendaService$1);
|
|
2891
3502
|
|
|
2892
3503
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
2893
3504
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -2949,7 +3560,7 @@ let RecebimentoChegadaVeiculoOverride = class RecebimentoChegadaVeiculoOverride
|
|
|
2949
3560
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
2950
3561
|
Injectable(),
|
|
2951
3562
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
2952
|
-
AgendaService,
|
|
3563
|
+
AgendaService$1,
|
|
2953
3564
|
RecebimentoContratoService])
|
|
2954
3565
|
], RecebimentoChegadaVeiculoOverride);
|
|
2955
3566
|
|
|
@@ -3004,7 +3615,7 @@ let ExpedicaoChegadaVeiculoOverride = class ExpedicaoChegadaVeiculoOverride {
|
|
|
3004
3615
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3005
3616
|
Injectable(),
|
|
3006
3617
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
3007
|
-
AgendaService,
|
|
3618
|
+
AgendaService$1,
|
|
3008
3619
|
ExpedicaoService])
|
|
3009
3620
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3010
3621
|
|
|
@@ -3227,15 +3838,15 @@ OrdemCompraService = __decorate([
|
|
|
3227
3838
|
MessageService$1, Object])
|
|
3228
3839
|
], OrdemCompraService);
|
|
3229
3840
|
|
|
3230
|
-
const moment$
|
|
3841
|
+
const moment$5 = _moment;
|
|
3231
3842
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3232
3843
|
class Empresa {
|
|
3233
3844
|
/*{CA:CLASS_ATTRIBUTES:START}*/
|
|
3234
3845
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3235
3846
|
static fromDto(empresaDto, originEntity) {
|
|
3236
3847
|
const model = Object.assign({}, empresaDto);
|
|
3237
|
-
model.createdDate = model.createdDate && moment$
|
|
3238
|
-
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();
|
|
3239
3850
|
const lookupSeparator = " - ";
|
|
3240
3851
|
const displayFields = [
|
|
3241
3852
|
"codigo",
|
|
@@ -3247,8 +3858,8 @@ class Empresa {
|
|
|
3247
3858
|
}
|
|
3248
3859
|
static toDto(empresa, originEntity) {
|
|
3249
3860
|
const dto = Object.assign({}, empresa);
|
|
3250
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3251
|
-
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();
|
|
3252
3863
|
delete dto.label;
|
|
3253
3864
|
return dto;
|
|
3254
3865
|
}
|
|
@@ -3256,7 +3867,7 @@ class Empresa {
|
|
|
3256
3867
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3257
3868
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3258
3869
|
|
|
3259
|
-
const moment$
|
|
3870
|
+
const moment$6 = _moment;
|
|
3260
3871
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3261
3872
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3262
3873
|
class Pessoa {
|
|
@@ -3264,8 +3875,8 @@ class Pessoa {
|
|
|
3264
3875
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3265
3876
|
static fromDto(pessoaDto, originEntity) {
|
|
3266
3877
|
const model = Object.assign({}, pessoaDto);
|
|
3267
|
-
model.createdDate = model.createdDate && moment$
|
|
3268
|
-
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();
|
|
3269
3880
|
const lookupSeparator = " - ";
|
|
3270
3881
|
const displayFields = [
|
|
3271
3882
|
"codigo",
|
|
@@ -3277,8 +3888,8 @@ class Pessoa {
|
|
|
3277
3888
|
}
|
|
3278
3889
|
static toDto(pessoa, originEntity) {
|
|
3279
3890
|
const dto = Object.assign({}, pessoa);
|
|
3280
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3281
|
-
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();
|
|
3282
3893
|
delete dto.label;
|
|
3283
3894
|
return dto;
|
|
3284
3895
|
}
|
|
@@ -3286,7 +3897,7 @@ class Pessoa {
|
|
|
3286
3897
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3287
3898
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3288
3899
|
|
|
3289
|
-
const moment$
|
|
3900
|
+
const moment$7 = _moment;
|
|
3290
3901
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3291
3902
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3292
3903
|
class PessoaJuridica {
|
|
@@ -3294,8 +3905,8 @@ class PessoaJuridica {
|
|
|
3294
3905
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3295
3906
|
static fromDto(pessoaJuridicaDto, originEntity) {
|
|
3296
3907
|
const model = Object.assign({}, pessoaJuridicaDto);
|
|
3297
|
-
model.createdDate = model.createdDate && moment$
|
|
3298
|
-
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();
|
|
3299
3910
|
const lookupSeparator = " - ";
|
|
3300
3911
|
const displayFields = [
|
|
3301
3912
|
"id",
|
|
@@ -3322,8 +3933,8 @@ class PessoaJuridica {
|
|
|
3322
3933
|
}
|
|
3323
3934
|
static toDto(pessoaJuridica, originEntity) {
|
|
3324
3935
|
const dto = Object.assign({}, pessoaJuridica);
|
|
3325
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3326
|
-
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();
|
|
3327
3938
|
delete dto.label;
|
|
3328
3939
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3329
3940
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
|
|
@@ -3333,7 +3944,7 @@ class PessoaJuridica {
|
|
|
3333
3944
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3334
3945
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3335
3946
|
|
|
3336
|
-
const moment$
|
|
3947
|
+
const moment$8 = _moment;
|
|
3337
3948
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3338
3949
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3339
3950
|
class Pais {
|
|
@@ -3341,8 +3952,8 @@ class Pais {
|
|
|
3341
3952
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3342
3953
|
static fromDto(paisDto, originEntity) {
|
|
3343
3954
|
const model = Object.assign({}, paisDto);
|
|
3344
|
-
model.createdDate = model.createdDate && moment$
|
|
3345
|
-
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();
|
|
3346
3957
|
const lookupSeparator = " - ";
|
|
3347
3958
|
const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
3348
3959
|
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
@@ -3350,8 +3961,8 @@ class Pais {
|
|
|
3350
3961
|
}
|
|
3351
3962
|
static toDto(pais, originEntity) {
|
|
3352
3963
|
const dto = Object.assign({}, pais);
|
|
3353
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3354
|
-
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();
|
|
3355
3966
|
delete dto.label;
|
|
3356
3967
|
return dto;
|
|
3357
3968
|
}
|
|
@@ -3359,7 +3970,7 @@ class Pais {
|
|
|
3359
3970
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3360
3971
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3361
3972
|
|
|
3362
|
-
const moment$
|
|
3973
|
+
const moment$9 = _moment;
|
|
3363
3974
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3364
3975
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3365
3976
|
class Estado {
|
|
@@ -3367,8 +3978,8 @@ class Estado {
|
|
|
3367
3978
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3368
3979
|
static fromDto(estadoDto, originEntity) {
|
|
3369
3980
|
const model = Object.assign({}, estadoDto);
|
|
3370
|
-
model.createdDate = model.createdDate && moment$
|
|
3371
|
-
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();
|
|
3372
3983
|
const lookupSeparator = " - ";
|
|
3373
3984
|
const displayFields = [
|
|
3374
3985
|
"id",
|
|
@@ -3390,8 +4001,8 @@ class Estado {
|
|
|
3390
4001
|
}
|
|
3391
4002
|
static toDto(estado, originEntity) {
|
|
3392
4003
|
const dto = Object.assign({}, estado);
|
|
3393
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3394
|
-
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();
|
|
3395
4006
|
delete dto.label;
|
|
3396
4007
|
if (originEntity !== "Pais" && dto.pais)
|
|
3397
4008
|
dto.pais = Pais.toDto(dto.pais, "Estado");
|
|
@@ -3401,7 +4012,7 @@ class Estado {
|
|
|
3401
4012
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3402
4013
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3403
4014
|
|
|
3404
|
-
const moment$
|
|
4015
|
+
const moment$a = _moment;
|
|
3405
4016
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3406
4017
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3407
4018
|
class Cidade {
|
|
@@ -3409,8 +4020,8 @@ class Cidade {
|
|
|
3409
4020
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3410
4021
|
static fromDto(cidadeDto, originEntity) {
|
|
3411
4022
|
const model = Object.assign({}, cidadeDto);
|
|
3412
|
-
model.createdDate = model.createdDate && moment$
|
|
3413
|
-
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();
|
|
3414
4025
|
const lookupSeparator = " - ";
|
|
3415
4026
|
const displayFields = [
|
|
3416
4027
|
"id",
|
|
@@ -3431,8 +4042,8 @@ class Cidade {
|
|
|
3431
4042
|
}
|
|
3432
4043
|
static toDto(cidade, originEntity) {
|
|
3433
4044
|
const dto = Object.assign({}, cidade);
|
|
3434
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3435
|
-
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();
|
|
3436
4047
|
delete dto.label;
|
|
3437
4048
|
if (originEntity !== "Estado" && dto.estado)
|
|
3438
4049
|
dto.estado = Estado.toDto(dto.estado, "Cidade");
|
|
@@ -3442,12 +4053,12 @@ class Cidade {
|
|
|
3442
4053
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3443
4054
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3444
4055
|
|
|
3445
|
-
const moment$
|
|
4056
|
+
const moment$b = _moment;
|
|
3446
4057
|
class PessoaEndereco {
|
|
3447
4058
|
static fromDto(pessoaEnderecoDto, originEntity) {
|
|
3448
4059
|
const model = Object.assign({}, pessoaEnderecoDto);
|
|
3449
|
-
model.createdDate = model.createdDate && moment$
|
|
3450
|
-
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();
|
|
3451
4062
|
const lookupSeparator = " - ";
|
|
3452
4063
|
const displayFields = [
|
|
3453
4064
|
"codigo",
|
|
@@ -3463,8 +4074,8 @@ class PessoaEndereco {
|
|
|
3463
4074
|
}
|
|
3464
4075
|
static toDto(pessoaEndereco, originEntity) {
|
|
3465
4076
|
const dto = Object.assign({}, pessoaEndereco);
|
|
3466
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3467
|
-
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();
|
|
3468
4079
|
delete dto.label;
|
|
3469
4080
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3470
4081
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
|
|
@@ -3474,7 +4085,7 @@ class PessoaEndereco {
|
|
|
3474
4085
|
}
|
|
3475
4086
|
}
|
|
3476
4087
|
|
|
3477
|
-
const moment$
|
|
4088
|
+
const moment$c = _moment;
|
|
3478
4089
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3479
4090
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3480
4091
|
class Filial {
|
|
@@ -3482,8 +4093,8 @@ class Filial {
|
|
|
3482
4093
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3483
4094
|
static fromDto(filialDto, originEntity) {
|
|
3484
4095
|
const model = Object.assign({}, filialDto);
|
|
3485
|
-
model.createdDate = model.createdDate && moment$
|
|
3486
|
-
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();
|
|
3487
4098
|
const lookupSeparator = " - ";
|
|
3488
4099
|
const displayFields = [
|
|
3489
4100
|
"codigo",
|
|
@@ -3501,8 +4112,8 @@ class Filial {
|
|
|
3501
4112
|
}
|
|
3502
4113
|
static toDto(filial, originEntity) {
|
|
3503
4114
|
const dto = Object.assign({}, filial);
|
|
3504
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3505
|
-
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();
|
|
3506
4117
|
delete dto.label;
|
|
3507
4118
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3508
4119
|
dto.empresa = Empresa.toDto(dto.empresa, "Filial");
|
|
@@ -3516,12 +4127,12 @@ class Filial {
|
|
|
3516
4127
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3517
4128
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3518
4129
|
|
|
3519
|
-
const moment$
|
|
4130
|
+
const moment$d = _moment;
|
|
3520
4131
|
class OrdemCompra {
|
|
3521
4132
|
static fromDto(ordemCompraDto, originEntity) {
|
|
3522
4133
|
const model = Object.assign({}, ordemCompraDto);
|
|
3523
|
-
model.createdDate = model.createdDate && moment$
|
|
3524
|
-
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();
|
|
3525
4136
|
const lookupSeparator = " - ";
|
|
3526
4137
|
const displayFields = [
|
|
3527
4138
|
"codigo",
|
|
@@ -3537,8 +4148,8 @@ class OrdemCompra {
|
|
|
3537
4148
|
}
|
|
3538
4149
|
static toDto(ordemCompra, originEntity) {
|
|
3539
4150
|
const dto = Object.assign({}, ordemCompra);
|
|
3540
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3541
|
-
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();
|
|
3542
4153
|
delete dto.label;
|
|
3543
4154
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3544
4155
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -3548,7 +4159,7 @@ class OrdemCompra {
|
|
|
3548
4159
|
}
|
|
3549
4160
|
}
|
|
3550
4161
|
|
|
3551
|
-
const moment$
|
|
4162
|
+
const moment$e = _moment;
|
|
3552
4163
|
let OrdemCompraFormComponent = class OrdemCompraFormComponent {
|
|
3553
4164
|
constructor(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
|
|
3554
4165
|
this.dialogRef = dialogRef;
|
|
@@ -3617,7 +4228,7 @@ let OrdemCompraFormComponent = class OrdemCompraFormComponent {
|
|
|
3617
4228
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
3618
4229
|
filter.empresaId = filial.empresa.id;
|
|
3619
4230
|
}
|
|
3620
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
4231
|
+
filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
|
|
3621
4232
|
const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
3622
4233
|
this.ordemCompraService
|
|
3623
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: {
|
|
@@ -3968,7 +4579,7 @@ AgendaModule = __decorate([
|
|
|
3968
4579
|
]),
|
|
3969
4580
|
],
|
|
3970
4581
|
providers: [
|
|
3971
|
-
AgendaService,
|
|
4582
|
+
AgendaService$1,
|
|
3972
4583
|
],
|
|
3973
4584
|
declarations: [
|
|
3974
4585
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -5650,11 +6261,11 @@ let DevolucaoChegadaVeiculoOverride = class DevolucaoChegadaVeiculoOverride {
|
|
|
5650
6261
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
5651
6262
|
Injectable(),
|
|
5652
6263
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
5653
|
-
AgendaService,
|
|
6264
|
+
AgendaService$1,
|
|
5654
6265
|
DevolucaoService])
|
|
5655
6266
|
], DevolucaoChegadaVeiculoOverride);
|
|
5656
6267
|
|
|
5657
|
-
const moment$
|
|
6268
|
+
const moment$f = _moment;
|
|
5658
6269
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5659
6270
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5660
6271
|
class UnidadeMedida {
|
|
@@ -5662,8 +6273,8 @@ class UnidadeMedida {
|
|
|
5662
6273
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5663
6274
|
static fromDto(unidadeMedidaDto, originEntity) {
|
|
5664
6275
|
const model = Object.assign({}, unidadeMedidaDto);
|
|
5665
|
-
model.createdDate = model.createdDate && moment$
|
|
5666
|
-
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();
|
|
5667
6278
|
const lookupSeparator = " - ";
|
|
5668
6279
|
const displayFields = [
|
|
5669
6280
|
"id",
|
|
@@ -5680,8 +6291,8 @@ class UnidadeMedida {
|
|
|
5680
6291
|
}
|
|
5681
6292
|
static toDto(unidadeMedida, originEntity) {
|
|
5682
6293
|
const dto = Object.assign({}, unidadeMedida);
|
|
5683
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5684
|
-
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();
|
|
5685
6296
|
delete dto.label;
|
|
5686
6297
|
return dto;
|
|
5687
6298
|
}
|
|
@@ -5689,7 +6300,7 @@ class UnidadeMedida {
|
|
|
5689
6300
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5690
6301
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5691
6302
|
|
|
5692
|
-
const moment$
|
|
6303
|
+
const moment$g = _moment;
|
|
5693
6304
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5694
6305
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5695
6306
|
class Royalty {
|
|
@@ -5697,8 +6308,8 @@ class Royalty {
|
|
|
5697
6308
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5698
6309
|
static fromDto(royaltyDto, originEntity) {
|
|
5699
6310
|
const model = Object.assign({}, royaltyDto);
|
|
5700
|
-
model.createdDate = model.createdDate && moment$
|
|
5701
|
-
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();
|
|
5702
6313
|
const lookupSeparator = " - ";
|
|
5703
6314
|
const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
5704
6315
|
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
@@ -5708,8 +6319,8 @@ class Royalty {
|
|
|
5708
6319
|
}
|
|
5709
6320
|
static toDto(royalty, originEntity) {
|
|
5710
6321
|
const dto = Object.assign({}, royalty);
|
|
5711
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5712
|
-
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();
|
|
5713
6324
|
delete dto.label;
|
|
5714
6325
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5715
6326
|
dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
|
|
@@ -5719,16 +6330,16 @@ class Royalty {
|
|
|
5719
6330
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5720
6331
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5721
6332
|
|
|
5722
|
-
const moment$
|
|
6333
|
+
const moment$h = _moment;
|
|
5723
6334
|
class FamiliaProduto {
|
|
5724
6335
|
static fromDto(familiaProdutoDto, originEntity) {
|
|
5725
6336
|
if (familiaProdutoDto.id === undefined) {
|
|
5726
6337
|
return familiaProdutoDto;
|
|
5727
6338
|
}
|
|
5728
6339
|
const model = Object.assign({}, familiaProdutoDto);
|
|
5729
|
-
model.createdDate = model.codigo && moment$
|
|
5730
|
-
model.createdDate = model.createdDate && moment$
|
|
5731
|
-
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();
|
|
5732
6343
|
const lookupSeparator = " - ";
|
|
5733
6344
|
const displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
5734
6345
|
model.label = displayFields.map(field => model[field]).join(lookupSeparator);
|
|
@@ -5738,8 +6349,8 @@ class FamiliaProduto {
|
|
|
5738
6349
|
}
|
|
5739
6350
|
static toDto(familiaProduto, originEntity) {
|
|
5740
6351
|
const dto = Object.assign({}, familiaProduto);
|
|
5741
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5742
|
-
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();
|
|
5743
6354
|
delete dto.label;
|
|
5744
6355
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5745
6356
|
dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
|
|
@@ -5747,7 +6358,7 @@ class FamiliaProduto {
|
|
|
5747
6358
|
}
|
|
5748
6359
|
}
|
|
5749
6360
|
|
|
5750
|
-
const moment$
|
|
6361
|
+
const moment$i = _moment;
|
|
5751
6362
|
class Produto {
|
|
5752
6363
|
constructor() {
|
|
5753
6364
|
this.produtoMisto = false;
|
|
@@ -5755,8 +6366,8 @@ class Produto {
|
|
|
5755
6366
|
}
|
|
5756
6367
|
static fromDto(produtoDto, originEntity) {
|
|
5757
6368
|
const model = Object.assign({}, produtoDto);
|
|
5758
|
-
model.createdDate = model.createdDate && moment$
|
|
5759
|
-
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();
|
|
5760
6371
|
const lookupSeparator = " - ";
|
|
5761
6372
|
const displayFields = [
|
|
5762
6373
|
"codigo",
|
|
@@ -5777,8 +6388,8 @@ class Produto {
|
|
|
5777
6388
|
}
|
|
5778
6389
|
static toDto(produto, originEntity) {
|
|
5779
6390
|
const dto = Object.assign({}, produto);
|
|
5780
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5781
|
-
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();
|
|
5782
6393
|
delete dto.label;
|
|
5783
6394
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5784
6395
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -5794,7 +6405,7 @@ class Produto {
|
|
|
5794
6405
|
}
|
|
5795
6406
|
}
|
|
5796
6407
|
|
|
5797
|
-
const moment$
|
|
6408
|
+
const moment$j = _moment;
|
|
5798
6409
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5799
6410
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5800
6411
|
class Derivacao {
|
|
@@ -5802,8 +6413,8 @@ class Derivacao {
|
|
|
5802
6413
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5803
6414
|
static fromDto(derivacaoDto, originEntity) {
|
|
5804
6415
|
const model = Object.assign({}, derivacaoDto);
|
|
5805
|
-
model.createdDate = model.createdDate && moment$
|
|
5806
|
-
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();
|
|
5807
6418
|
const lookupSeparator = " - ";
|
|
5808
6419
|
const displayFields = ["codigo", "descricao"];
|
|
5809
6420
|
model.label = getLookupLabel(model, displayFields, lookupSeparator);
|
|
@@ -5815,8 +6426,8 @@ class Derivacao {
|
|
|
5815
6426
|
}
|
|
5816
6427
|
static toDto(derivacao, originEntity) {
|
|
5817
6428
|
const dto = Object.assign({}, derivacao);
|
|
5818
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5819
|
-
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();
|
|
5820
6431
|
delete dto.label;
|
|
5821
6432
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
5822
6433
|
dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
|
|
@@ -5828,7 +6439,7 @@ class Derivacao {
|
|
|
5828
6439
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5829
6440
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5830
6441
|
|
|
5831
|
-
const moment$
|
|
6442
|
+
const moment$k = _moment;
|
|
5832
6443
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5833
6444
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5834
6445
|
class Transportadora {
|
|
@@ -5836,8 +6447,8 @@ class Transportadora {
|
|
|
5836
6447
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5837
6448
|
static fromDto(transportadoraDto, originEntity) {
|
|
5838
6449
|
const model = Object.assign({}, transportadoraDto);
|
|
5839
|
-
model.createdDate = model.createdDate && moment$
|
|
5840
|
-
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();
|
|
5841
6452
|
const lookupSeparator = " - ";
|
|
5842
6453
|
const displayFields = [
|
|
5843
6454
|
"codigo", "pessoa.nome", "pessoa.cpfCnpj"
|
|
@@ -5851,8 +6462,8 @@ class Transportadora {
|
|
|
5851
6462
|
}
|
|
5852
6463
|
static toDto(transportadora, originEntity) {
|
|
5853
6464
|
const dto = Object.assign({}, transportadora);
|
|
5854
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5855
|
-
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();
|
|
5856
6467
|
delete dto.label;
|
|
5857
6468
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
5858
6469
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
|
|
@@ -5864,7 +6475,7 @@ class Transportadora {
|
|
|
5864
6475
|
/*{CA:FILE_CONTENTS:START}*/
|
|
5865
6476
|
/*{CA:FILE_CONTENTS:END}*/
|
|
5866
6477
|
|
|
5867
|
-
const moment$
|
|
6478
|
+
const moment$l = _moment;
|
|
5868
6479
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
5869
6480
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
5870
6481
|
class Devolucao {
|
|
@@ -5872,8 +6483,8 @@ class Devolucao {
|
|
|
5872
6483
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
5873
6484
|
static fromDto(devolucaoDto, originEntity) {
|
|
5874
6485
|
const model = Object.assign({}, devolucaoDto);
|
|
5875
|
-
model.createdDate = model.createdDate && moment$
|
|
5876
|
-
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();
|
|
5877
6488
|
const lookupSeparator = " - ";
|
|
5878
6489
|
const displayFields = [
|
|
5879
6490
|
''
|
|
@@ -5897,8 +6508,8 @@ class Devolucao {
|
|
|
5897
6508
|
}
|
|
5898
6509
|
static toDto(devolucao, originEntity) {
|
|
5899
6510
|
const dto = Object.assign({}, devolucao);
|
|
5900
|
-
dto.createdDate = dto.createdDate && moment$
|
|
5901
|
-
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();
|
|
5902
6513
|
delete dto.label;
|
|
5903
6514
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
5904
6515
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
|
|
@@ -6549,7 +7160,7 @@ DevolucaoFormComponent = __decorate([
|
|
|
6549
7160
|
ActivatedRoute,
|
|
6550
7161
|
DevolucaoChegadaVeiculoOverride,
|
|
6551
7162
|
ConfirmationService,
|
|
6552
|
-
AgendaService,
|
|
7163
|
+
AgendaService$1,
|
|
6553
7164
|
ErpProcessService,
|
|
6554
7165
|
ErpFormConfigService,
|
|
6555
7166
|
HasChangeService])
|
|
@@ -6636,7 +7247,7 @@ DevolucaoInfoComponent = __decorate([
|
|
|
6636
7247
|
|
|
6637
7248
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
6638
7249
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
6639
|
-
const moment$
|
|
7250
|
+
const moment$m = _moment;
|
|
6640
7251
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6641
7252
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6642
7253
|
class Expedicao {
|
|
@@ -6644,8 +7255,8 @@ class Expedicao {
|
|
|
6644
7255
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6645
7256
|
static fromDto(expedicaoDto, originEntity) {
|
|
6646
7257
|
const model = Object.assign({}, expedicaoDto);
|
|
6647
|
-
model.createdDate = model.createdDate && moment$
|
|
6648
|
-
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();
|
|
6649
7260
|
const lookupSeparator = " - ";
|
|
6650
7261
|
const displayFields = [
|
|
6651
7262
|
"id",
|
|
@@ -6684,8 +7295,8 @@ class Expedicao {
|
|
|
6684
7295
|
}
|
|
6685
7296
|
static toDto(expedicao, originEntity) {
|
|
6686
7297
|
const dto = Object.assign({}, expedicao);
|
|
6687
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6688
|
-
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();
|
|
6689
7300
|
delete dto.label;
|
|
6690
7301
|
if (originEntity !== "Pessoa" && dto.clienteFaturamento)
|
|
6691
7302
|
dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
|
|
@@ -6701,7 +7312,7 @@ class Expedicao {
|
|
|
6701
7312
|
}
|
|
6702
7313
|
}
|
|
6703
7314
|
|
|
6704
|
-
const moment$
|
|
7315
|
+
const moment$n = _moment;
|
|
6705
7316
|
let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
6706
7317
|
constructor(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
|
|
6707
7318
|
this.expedicaoService = expedicaoService;
|
|
@@ -7225,11 +7836,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7225
7836
|
if (typeof value == "number")
|
|
7226
7837
|
return `${name} eq ${value}`;
|
|
7227
7838
|
else if (type == FieldType.Date)
|
|
7228
|
-
return `${name} eq '${moment$
|
|
7839
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7229
7840
|
else if (type == FieldType.Time)
|
|
7230
|
-
return `${name} eq '${moment$
|
|
7841
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7231
7842
|
else if (type == FieldType.DateTime)
|
|
7232
|
-
return `${name} eq '${moment$
|
|
7843
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7233
7844
|
else if (type == FieldType.Enum)
|
|
7234
7845
|
return `${name} eq '${value}'`;
|
|
7235
7846
|
else if (type == FieldType.String)
|
|
@@ -7275,11 +7886,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7275
7886
|
if (typeof value == "number")
|
|
7276
7887
|
return `${name} eq ${value}`;
|
|
7277
7888
|
else if (type == FieldType.Date)
|
|
7278
|
-
return `${name} eq '${moment$
|
|
7889
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7279
7890
|
else if (type == FieldType.Time)
|
|
7280
|
-
return `${name} eq '${moment$
|
|
7891
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7281
7892
|
else if (type == FieldType.DateTime)
|
|
7282
|
-
return `${name} eq '${moment$
|
|
7893
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7283
7894
|
else if (type == FieldType.Enum)
|
|
7284
7895
|
return `${name} eq '${value}'`;
|
|
7285
7896
|
else if (type == FieldType.String)
|
|
@@ -7383,11 +7994,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7383
7994
|
if (typeof value == "number")
|
|
7384
7995
|
return `${name} eq ${value}`;
|
|
7385
7996
|
else if (type == FieldType.Date)
|
|
7386
|
-
return `${name} eq '${moment$
|
|
7997
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7387
7998
|
else if (type == FieldType.Time)
|
|
7388
|
-
return `${name} eq '${moment$
|
|
7999
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7389
8000
|
else if (type == FieldType.DateTime)
|
|
7390
|
-
return `${name} eq '${moment$
|
|
8001
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7391
8002
|
else if (type == FieldType.String)
|
|
7392
8003
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
7393
8004
|
else
|
|
@@ -7563,11 +8174,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7563
8174
|
if (typeof value == "number")
|
|
7564
8175
|
return `${name} eq ${value}`;
|
|
7565
8176
|
else if (type == FieldType.Date)
|
|
7566
|
-
return `${name} eq '${moment$
|
|
8177
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7567
8178
|
else if (type == FieldType.Time)
|
|
7568
|
-
return `${name} eq '${moment$
|
|
8179
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7569
8180
|
else if (type == FieldType.DateTime)
|
|
7570
|
-
return `${name} eq '${moment$
|
|
8181
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7571
8182
|
else if (type == FieldType.String)
|
|
7572
8183
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
7573
8184
|
else
|
|
@@ -7604,11 +8215,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
|
|
|
7604
8215
|
if (typeof value == "number")
|
|
7605
8216
|
return `${name} eq ${value}`;
|
|
7606
8217
|
else if (type == FieldType.Date)
|
|
7607
|
-
return `${name} eq '${moment$
|
|
8218
|
+
return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
|
|
7608
8219
|
else if (type == FieldType.Time)
|
|
7609
|
-
return `${name} eq '${moment$
|
|
8220
|
+
return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
|
|
7610
8221
|
else if (type == FieldType.DateTime)
|
|
7611
|
-
return `${name} eq '${moment$
|
|
8222
|
+
return `${name} eq '${moment$n(value).format()}'`;
|
|
7612
8223
|
else if (type == FieldType.Enum)
|
|
7613
8224
|
return `${name} eq '${value}'`;
|
|
7614
8225
|
else if (type == FieldType.String)
|
|
@@ -8091,7 +8702,7 @@ ExpedicaoFormComponent = __decorate([
|
|
|
8091
8702
|
TransportadoraService,
|
|
8092
8703
|
PedidoVendaService,
|
|
8093
8704
|
PedidoVendaItemService,
|
|
8094
|
-
AgendaService,
|
|
8705
|
+
AgendaService$1,
|
|
8095
8706
|
ExpedicaoChegadaVeiculoOverride,
|
|
8096
8707
|
ConfirmationService,
|
|
8097
8708
|
ErpProcessService,
|
|
@@ -8371,7 +8982,7 @@ let ProcessoAvulsoChegadaVeiculoOverride = class ProcessoAvulsoChegadaVeiculoOve
|
|
|
8371
8982
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
8372
8983
|
Injectable(),
|
|
8373
8984
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
8374
|
-
AgendaService,
|
|
8985
|
+
AgendaService$1,
|
|
8375
8986
|
ProcessoAvulsoService])
|
|
8376
8987
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
8377
8988
|
|
|
@@ -8651,7 +9262,7 @@ ProcessoAvulsoFormComponent = __decorate([
|
|
|
8651
9262
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
8652
9263
|
TranslateService,
|
|
8653
9264
|
ConfirmationService,
|
|
8654
|
-
AgendaService,
|
|
9265
|
+
AgendaService$1,
|
|
8655
9266
|
ErpProcessService,
|
|
8656
9267
|
ErpFormConfigService,
|
|
8657
9268
|
HasChangeService])
|
|
@@ -8698,7 +9309,7 @@ ProcessoAvulsoInfoComponent = __decorate([
|
|
|
8698
9309
|
__metadata("design:paramtypes", [ProcessoAvulsoService])
|
|
8699
9310
|
], ProcessoAvulsoInfoComponent);
|
|
8700
9311
|
|
|
8701
|
-
const moment$
|
|
9312
|
+
const moment$o = _moment;
|
|
8702
9313
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
8703
9314
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
8704
9315
|
class Safra {
|
|
@@ -8706,10 +9317,10 @@ class Safra {
|
|
|
8706
9317
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
8707
9318
|
static fromDto(safraDto, originEntity) {
|
|
8708
9319
|
const model = Object.assign({}, safraDto);
|
|
8709
|
-
model.competenciaInicial = model.competenciaInicial && moment$
|
|
8710
|
-
model.competenciaFinal = model.competenciaFinal && moment$
|
|
8711
|
-
model.createdDate = model.createdDate && moment$
|
|
8712
|
-
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();
|
|
8713
9324
|
const lookupSeparator = " - ";
|
|
8714
9325
|
const displayFields = [
|
|
8715
9326
|
"codigo",
|
|
@@ -8722,10 +9333,10 @@ class Safra {
|
|
|
8722
9333
|
}
|
|
8723
9334
|
static toDto(safra, originEntity) {
|
|
8724
9335
|
const dto = Object.assign({}, safra);
|
|
8725
|
-
dto.competenciaInicial = dto.competenciaInicial && moment$
|
|
8726
|
-
dto.competenciaFinal = dto.competenciaFinal && moment$
|
|
8727
|
-
dto.createdDate = dto.createdDate && moment$
|
|
8728
|
-
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();
|
|
8729
9340
|
delete dto.label;
|
|
8730
9341
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
8731
9342
|
dto.empresa = Empresa.toDto(dto.empresa, "Safra");
|
|
@@ -8737,7 +9348,7 @@ class Safra {
|
|
|
8737
9348
|
|
|
8738
9349
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
8739
9350
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
8740
|
-
const moment$
|
|
9351
|
+
const moment$p = _moment;
|
|
8741
9352
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
8742
9353
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
8743
9354
|
class RecebimentoOrdemCompra {
|
|
@@ -8745,8 +9356,8 @@ class RecebimentoOrdemCompra {
|
|
|
8745
9356
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
8746
9357
|
static fromDto(recebimentoOrdemCompraDto, originEntity) {
|
|
8747
9358
|
const model = Object.assign({}, recebimentoOrdemCompraDto);
|
|
8748
|
-
model.createdDate = model.createdDate && moment$
|
|
8749
|
-
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();
|
|
8750
9361
|
const lookupSeparator = " - ";
|
|
8751
9362
|
const displayFields = [
|
|
8752
9363
|
''
|
|
@@ -8775,8 +9386,8 @@ class RecebimentoOrdemCompra {
|
|
|
8775
9386
|
}
|
|
8776
9387
|
static toDto(recebimentoOrdemCompra, originEntity) {
|
|
8777
9388
|
const dto = Object.assign({}, recebimentoOrdemCompra);
|
|
8778
|
-
dto.createdDate = dto.createdDate && moment$
|
|
8779
|
-
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();
|
|
8780
9391
|
delete dto.label;
|
|
8781
9392
|
if (originEntity !== "Agenda" && dto.agenda)
|
|
8782
9393
|
dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
|
|
@@ -8834,7 +9445,7 @@ let RecebimentoOrdemCompraChegadaVeiculoOverride = class RecebimentoOrdemCompraC
|
|
|
8834
9445
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
8835
9446
|
Injectable(),
|
|
8836
9447
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
8837
|
-
AgendaService,
|
|
9448
|
+
AgendaService$1,
|
|
8838
9449
|
RecebimentoOrdemCompraService])
|
|
8839
9450
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
8840
9451
|
|
|
@@ -9933,7 +10544,7 @@ RecebimentoOrdemCompraFormComponent = __decorate([
|
|
|
9933
10544
|
NotaValidatorService,
|
|
9934
10545
|
ConfirmationService,
|
|
9935
10546
|
DialogService,
|
|
9936
|
-
AgendaService,
|
|
10547
|
+
AgendaService$1,
|
|
9937
10548
|
ErpProcessService,
|
|
9938
10549
|
ErpFormConfigService,
|
|
9939
10550
|
VerificaNotafiscal,
|
|
@@ -10048,7 +10659,7 @@ RecebimentoOrdemCompraInfoComponent = __decorate([
|
|
|
10048
10659
|
__metadata("design:paramtypes", [RecebimentoOrdemCompraService])
|
|
10049
10660
|
], RecebimentoOrdemCompraInfoComponent);
|
|
10050
10661
|
|
|
10051
|
-
const moment$
|
|
10662
|
+
const moment$q = _moment;
|
|
10052
10663
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10053
10664
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10054
10665
|
class ContratoCompra {
|
|
@@ -10056,11 +10667,11 @@ class ContratoCompra {
|
|
|
10056
10667
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
10057
10668
|
static fromDto(contratoCompraDto, originEntity) {
|
|
10058
10669
|
const model = Object.assign({}, contratoCompraDto);
|
|
10059
|
-
model.dataEmissao = model.dataEmissao && moment$
|
|
10060
|
-
model.dataInicioVigencia = model.dataInicioVigencia && moment$
|
|
10061
|
-
model.dataFimVigencia = model.dataFimVigencia && moment$
|
|
10062
|
-
model.createdDate = model.createdDate && moment$
|
|
10063
|
-
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();
|
|
10064
10675
|
model.label = `Número: ${model.numero}, Filial: ${model.filial.codigo}`;
|
|
10065
10676
|
if (originEntity !== "Empresa" && model.empresa)
|
|
10066
10677
|
model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
|
|
@@ -10076,11 +10687,11 @@ class ContratoCompra {
|
|
|
10076
10687
|
}
|
|
10077
10688
|
static toDto(contratoCompra, originEntity) {
|
|
10078
10689
|
const dto = Object.assign({}, contratoCompra);
|
|
10079
|
-
dto.dataEmissao = dto.dataEmissao && moment$
|
|
10080
|
-
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$
|
|
10081
|
-
dto.dataFimVigencia = dto.dataFimVigencia && moment$
|
|
10082
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10083
|
-
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();
|
|
10084
10695
|
delete dto.label;
|
|
10085
10696
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
10086
10697
|
dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
|
|
@@ -10100,7 +10711,7 @@ class ContratoCompra {
|
|
|
10100
10711
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10101
10712
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10102
10713
|
|
|
10103
|
-
const moment$
|
|
10714
|
+
const moment$r = _moment;
|
|
10104
10715
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10105
10716
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10106
10717
|
class ContratoCompraItem {
|
|
@@ -10109,9 +10720,9 @@ class ContratoCompraItem {
|
|
|
10109
10720
|
static fromDto(contratoCompraItemDto, originEntity) {
|
|
10110
10721
|
const model = Object.assign({}, contratoCompraItemDto);
|
|
10111
10722
|
model.sku = model.sku || {};
|
|
10112
|
-
model.dataCompetencia = model.dataCompetencia && moment$
|
|
10113
|
-
model.createdDate = model.createdDate && moment$
|
|
10114
|
-
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();
|
|
10115
10726
|
model.label = `${model.sequencia} - ${model.sku.descricao} - ${model.sku.codigo}`;
|
|
10116
10727
|
if (originEntity !== "ContratoCompra" && model.contrato)
|
|
10117
10728
|
model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
|
|
@@ -10121,9 +10732,9 @@ class ContratoCompraItem {
|
|
|
10121
10732
|
}
|
|
10122
10733
|
static toDto(contratoCompraItem, originEntity) {
|
|
10123
10734
|
const dto = Object.assign({}, contratoCompraItem);
|
|
10124
|
-
dto.dataCompetencia = dto.dataCompetencia && moment$
|
|
10125
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10126
|
-
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();
|
|
10127
10738
|
delete dto.label;
|
|
10128
10739
|
if (originEntity !== "ContratoCompra" && dto.contrato)
|
|
10129
10740
|
dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
|
|
@@ -10135,7 +10746,7 @@ class ContratoCompraItem {
|
|
|
10135
10746
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10136
10747
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10137
10748
|
|
|
10138
|
-
const moment$
|
|
10749
|
+
const moment$s = _moment;
|
|
10139
10750
|
let ContratoFormComponent = class ContratoFormComponent {
|
|
10140
10751
|
constructor(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
|
|
10141
10752
|
this.dialogRef = dialogRef;
|
|
@@ -10219,7 +10830,7 @@ let ContratoFormComponent = class ContratoFormComponent {
|
|
|
10219
10830
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
10220
10831
|
filter.empresaId = filial.empresa.id;
|
|
10221
10832
|
}
|
|
10222
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
10833
|
+
filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
|
|
10223
10834
|
const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
10224
10835
|
this.contratoCompraService
|
|
10225
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: {
|
|
@@ -10441,12 +11052,12 @@ class Transgenia {
|
|
|
10441
11052
|
}
|
|
10442
11053
|
}
|
|
10443
11054
|
|
|
10444
|
-
const moment$
|
|
11055
|
+
const moment$t = _moment;
|
|
10445
11056
|
class RecebimentoContrato {
|
|
10446
11057
|
static fromDto(recebimentoDto, originEntity) {
|
|
10447
11058
|
const model = Object.assign({}, recebimentoDto);
|
|
10448
|
-
model.createdDate = model.createdDate && moment$
|
|
10449
|
-
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();
|
|
10450
11061
|
const lookupSeparator = " - ";
|
|
10451
11062
|
const displayFields = [
|
|
10452
11063
|
"id",
|
|
@@ -10495,8 +11106,8 @@ class RecebimentoContrato {
|
|
|
10495
11106
|
}
|
|
10496
11107
|
static toDto(recebimento, originEntity) {
|
|
10497
11108
|
const dto = Object.assign({}, recebimento);
|
|
10498
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10499
|
-
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();
|
|
10500
11111
|
delete dto.label;
|
|
10501
11112
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
10502
11113
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
|
|
@@ -10529,7 +11140,7 @@ var Situacao;
|
|
|
10529
11140
|
Situacao["ATIVO"] = "ATIVO";
|
|
10530
11141
|
})(Situacao || (Situacao = {}));
|
|
10531
11142
|
|
|
10532
|
-
const moment$
|
|
11143
|
+
const moment$u = _moment;
|
|
10533
11144
|
let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
10534
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) {
|
|
10535
11146
|
this.recebimentoService = recebimentoService;
|
|
@@ -11172,11 +11783,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11172
11783
|
if (typeof value == "number")
|
|
11173
11784
|
return `${name} eq ${value}`;
|
|
11174
11785
|
else if (type == FieldType.Date)
|
|
11175
|
-
return `${name} eq '${moment$
|
|
11786
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11176
11787
|
else if (type == FieldType.Time)
|
|
11177
|
-
return `${name} eq '${moment$
|
|
11788
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11178
11789
|
else if (type == FieldType.DateTime)
|
|
11179
|
-
return `${name} eq '${moment$
|
|
11790
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11180
11791
|
else if (type == FieldType.String)
|
|
11181
11792
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
11182
11793
|
else
|
|
@@ -11210,11 +11821,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11210
11821
|
if (typeof value == "number")
|
|
11211
11822
|
return `${name} eq ${value}`;
|
|
11212
11823
|
else if (type == FieldType.Date)
|
|
11213
|
-
return `${name} eq '${moment$
|
|
11824
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11214
11825
|
else if (type == FieldType.Time)
|
|
11215
|
-
return `${name} eq '${moment$
|
|
11826
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11216
11827
|
else if (type == FieldType.DateTime)
|
|
11217
|
-
return `${name} eq '${moment$
|
|
11828
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11218
11829
|
else if (type == FieldType.Enum)
|
|
11219
11830
|
return `${name} eq '${value}'`;
|
|
11220
11831
|
else if (type == FieldType.String)
|
|
@@ -11251,11 +11862,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11251
11862
|
if (typeof value == "number")
|
|
11252
11863
|
return `${name} eq ${value}`;
|
|
11253
11864
|
else if (type == FieldType.Date)
|
|
11254
|
-
return `${name} eq '${moment$
|
|
11865
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11255
11866
|
else if (type == FieldType.Time)
|
|
11256
|
-
return `${name} eq '${moment$
|
|
11867
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11257
11868
|
else if (type == FieldType.DateTime)
|
|
11258
|
-
return `${name} eq '${moment$
|
|
11869
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11259
11870
|
else if (type == FieldType.String)
|
|
11260
11871
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
11261
11872
|
else
|
|
@@ -11290,11 +11901,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11290
11901
|
if (typeof value == "number")
|
|
11291
11902
|
return `${name} eq ${value}`;
|
|
11292
11903
|
else if (type == FieldType.Date)
|
|
11293
|
-
return `${name} eq '${moment$
|
|
11904
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11294
11905
|
else if (type == FieldType.Time)
|
|
11295
|
-
return `${name} eq '${moment$
|
|
11906
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11296
11907
|
else if (type == FieldType.DateTime)
|
|
11297
|
-
return `${name} eq '${moment$
|
|
11908
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11298
11909
|
else if (type == FieldType.Enum)
|
|
11299
11910
|
return `${name} eq '${value}'`;
|
|
11300
11911
|
else if (type == FieldType.String)
|
|
@@ -11379,11 +11990,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11379
11990
|
if (typeof value == "number")
|
|
11380
11991
|
return `${name} eq ${value}`;
|
|
11381
11992
|
else if (type == FieldType.Date)
|
|
11382
|
-
return `${name} eq '${moment$
|
|
11993
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11383
11994
|
else if (type == FieldType.Time)
|
|
11384
|
-
return `${name} eq '${moment$
|
|
11995
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11385
11996
|
else if (type == FieldType.DateTime)
|
|
11386
|
-
return `${name} eq '${moment$
|
|
11997
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11387
11998
|
else if (type == FieldType.String)
|
|
11388
11999
|
return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
|
|
11389
12000
|
else
|
|
@@ -11416,11 +12027,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11416
12027
|
if (typeof value == "number")
|
|
11417
12028
|
return `${name} eq ${value}`;
|
|
11418
12029
|
else if (type == FieldType.Date)
|
|
11419
|
-
return `${name} eq '${moment$
|
|
12030
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11420
12031
|
else if (type == FieldType.Time)
|
|
11421
|
-
return `${name} eq '${moment$
|
|
12032
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11422
12033
|
else if (type == FieldType.DateTime)
|
|
11423
|
-
return `${name} eq '${moment$
|
|
12034
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11424
12035
|
else if (type == FieldType.Enum)
|
|
11425
12036
|
return `${name} eq '${value}'`;
|
|
11426
12037
|
else if (type == FieldType.String)
|
|
@@ -11463,11 +12074,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
|
|
|
11463
12074
|
if (typeof value == "number")
|
|
11464
12075
|
return `${name} eq ${value}`;
|
|
11465
12076
|
else if (type == FieldType.Date)
|
|
11466
|
-
return `${name} eq '${moment$
|
|
12077
|
+
return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
|
|
11467
12078
|
else if (type == FieldType.Time)
|
|
11468
|
-
return `${name} eq '${moment$
|
|
12079
|
+
return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
|
|
11469
12080
|
else if (type == FieldType.DateTime)
|
|
11470
|
-
return `${name} eq '${moment$
|
|
12081
|
+
return `${name} eq '${moment$u(value).format()}'`;
|
|
11471
12082
|
else if (type == FieldType.Enum)
|
|
11472
12083
|
return `${name} eq '${value}'`;
|
|
11473
12084
|
else if (type == FieldType.String)
|
|
@@ -12202,7 +12813,7 @@ RecebimentoFormComponent = __decorate([
|
|
|
12202
12813
|
NotaValidatorService,
|
|
12203
12814
|
TransgeniaService,
|
|
12204
12815
|
DialogService,
|
|
12205
|
-
AgendaService,
|
|
12816
|
+
AgendaService$1,
|
|
12206
12817
|
ErpProcessService,
|
|
12207
12818
|
ErpFormConfigService,
|
|
12208
12819
|
VerificaNotafiscal,
|
|
@@ -12433,5 +13044,5 @@ DockModule = __decorate([
|
|
|
12433
13044
|
})
|
|
12434
13045
|
], DockModule);
|
|
12435
13046
|
|
|
12436
|
-
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 };
|
|
12437
13048
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|