@seniorsistemas/yms-integration 1.19.1 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-yms-integration.umd.js +906 -236
- 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 +49 -38
- package/esm2015/src/erp-senior/components/nota-form/nota-form.component.js +3 -3
- package/esm2015/src/erp-senior/components/nota-form/nota-form.module.js +4 -2
- package/esm2015/src/erp-senior/erp-senior.module.js +3 -1
- package/esm2015/src/erp-senior/recebimento/form/recebimento-form.component.js +3 -3
- package/esm2015/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +3 -3
- package/esm2015/src/utils/directives/directives.module.js +15 -0
- package/esm2015/src/utils/directives/trim.directive.js +27 -0
- 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 +49 -38
- package/esm5/src/erp-senior/components/nota-form/nota-form.component.js +3 -3
- package/esm5/src/erp-senior/components/nota-form/nota-form.module.js +4 -2
- package/esm5/src/erp-senior/erp-senior.module.js +3 -1
- package/esm5/src/erp-senior/recebimento/form/recebimento-form.component.js +3 -3
- package/esm5/src/erp-senior/recebimento-ordem-compra/form/recebimento-ordem-compra-form.component.js +3 -3
- package/esm5/src/utils/directives/directives.module.js +18 -0
- package/esm5/src/utils/directives/trim.directive.js +28 -0
- 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 +808 -192
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +845 -189
- 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 +48 -37
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/utils/directives/directives.module.d.ts +2 -0
- package/src/utils/directives/trim.directive.d.ts +6 -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
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
xmlx = xmlx && Object.prototype.hasOwnProperty.call(xmlx, 'default') ? xmlx['default'] : xmlx;
|
|
9
9
|
|
|
10
10
|
/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation.
|
|
11
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
13
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
14
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
18
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
19
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
22
|
+
and limitations under the License.
|
|
23
23
|
***************************************************************************** */
|
|
24
24
|
/* global Reflect, Promise */
|
|
25
25
|
|
|
@@ -63,15 +63,14 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function __values(o) {
|
|
66
|
-
var
|
|
66
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
67
67
|
if (m) return m.call(o);
|
|
68
|
-
|
|
68
|
+
return {
|
|
69
69
|
next: function () {
|
|
70
70
|
if (o && i >= o.length) o = void 0;
|
|
71
71
|
return { value: o && o[i++], done: !o };
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
function __read(o, n) {
|
|
@@ -3055,6 +3054,282 @@
|
|
|
3055
3054
|
return VisitorListModule;
|
|
3056
3055
|
}());
|
|
3057
3056
|
|
|
3057
|
+
var INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
3058
|
+
var FormWmsDescritor = /** @class */ (function () {
|
|
3059
|
+
function FormWmsDescritor() {
|
|
3060
|
+
}
|
|
3061
|
+
FormWmsDescritor = __decorate([
|
|
3062
|
+
ymsRoutines.ChegadaVeiculo({
|
|
3063
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3064
|
+
name: 'yms.integracao.wms',
|
|
3065
|
+
icon: 'fa fa-plus'
|
|
3066
|
+
})
|
|
3067
|
+
], FormWmsDescritor);
|
|
3068
|
+
return FormWmsDescritor;
|
|
3069
|
+
}());
|
|
3070
|
+
var FormWmsComponent = /** @class */ (function (_super) {
|
|
3071
|
+
__extends(FormWmsComponent, _super);
|
|
3072
|
+
function FormWmsComponent(integrationCallback) {
|
|
3073
|
+
var _this = _super.call(this) || this;
|
|
3074
|
+
_this.integrationCallback = integrationCallback;
|
|
3075
|
+
_this.save = [];
|
|
3076
|
+
_this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
3077
|
+
_this.loading = false;
|
|
3078
|
+
_this.unsubscribe$ = new rxjs.Subject();
|
|
3079
|
+
_this._integrationCallback = integrationCallback;
|
|
3080
|
+
return _this;
|
|
3081
|
+
}
|
|
3082
|
+
FormWmsComponent.prototype.ngOnInit = function () {
|
|
3083
|
+
var _this = this;
|
|
3084
|
+
this._integrationCallback.onAgendamentoSaved()
|
|
3085
|
+
.pipe(operators.takeUntil(this.unsubscribe$), operators.mergeMap(function (agenda) {
|
|
3086
|
+
_this.agenda = agenda;
|
|
3087
|
+
return rxjs.empty();
|
|
3088
|
+
}))
|
|
3089
|
+
.subscribe();
|
|
3090
|
+
};
|
|
3091
|
+
FormWmsComponent.prototype.ngOnDestroy = function () {
|
|
3092
|
+
this.unsubscribe$.next();
|
|
3093
|
+
this.unsubscribe$.complete();
|
|
3094
|
+
};
|
|
3095
|
+
__decorate([
|
|
3096
|
+
core.Output(),
|
|
3097
|
+
__metadata("design:type", Agenda)
|
|
3098
|
+
], FormWmsComponent.prototype, "agenda", void 0);
|
|
3099
|
+
__decorate([
|
|
3100
|
+
core.Input(),
|
|
3101
|
+
__metadata("design:type", Array)
|
|
3102
|
+
], FormWmsComponent.prototype, "save", void 0);
|
|
3103
|
+
FormWmsComponent = __decorate([
|
|
3104
|
+
core.Component({
|
|
3105
|
+
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\"></document-grid>\n </div>\n "
|
|
3106
|
+
}),
|
|
3107
|
+
__metadata("design:paramtypes", [ymsRoutines.IntegrationEventsCallback])
|
|
3108
|
+
], FormWmsComponent);
|
|
3109
|
+
return FormWmsComponent;
|
|
3110
|
+
}(FormWmsDescritor));
|
|
3111
|
+
|
|
3112
|
+
var DocumentService = /** @class */ (function (_super) {
|
|
3113
|
+
__extends(DocumentService, _super);
|
|
3114
|
+
function DocumentService(http, messageService) {
|
|
3115
|
+
var _this = _super.call(this, http, messageService, 'yms_int/wms/entities/document', '') || this;
|
|
3116
|
+
_this.http = http;
|
|
3117
|
+
_this.messageService = messageService;
|
|
3118
|
+
return _this;
|
|
3119
|
+
}
|
|
3120
|
+
DocumentService.prototype.findDocuments = function (input) {
|
|
3121
|
+
return this.http.post('yms_int/wms/queries/findDocuments', input);
|
|
3122
|
+
};
|
|
3123
|
+
DocumentService = __decorate([
|
|
3124
|
+
core.Injectable(),
|
|
3125
|
+
__metadata("design:paramtypes", [http.HttpClient, api.MessageService])
|
|
3126
|
+
], DocumentService);
|
|
3127
|
+
return DocumentService;
|
|
3128
|
+
}(EntityService));
|
|
3129
|
+
|
|
3130
|
+
var DocumentGridComponent = /** @class */ (function () {
|
|
3131
|
+
function DocumentGridComponent(translate, documentService, messageService) {
|
|
3132
|
+
this.translate = translate;
|
|
3133
|
+
this.documentService = documentService;
|
|
3134
|
+
this.messageService = messageService;
|
|
3135
|
+
this.viewDocument = new core.EventEmitter();
|
|
3136
|
+
this.gridData = [];
|
|
3137
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
3138
|
+
}
|
|
3139
|
+
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3140
|
+
this.gridColumns = this.getGridColumns();
|
|
3141
|
+
this.listDocuments();
|
|
3142
|
+
};
|
|
3143
|
+
DocumentGridComponent.prototype.onChangeDocument = function (document) {
|
|
3144
|
+
this.gridData.push(document);
|
|
3145
|
+
this.disabled = false;
|
|
3146
|
+
};
|
|
3147
|
+
DocumentGridComponent.prototype.getActions = function () {
|
|
3148
|
+
var _this = this;
|
|
3149
|
+
return [
|
|
3150
|
+
{
|
|
3151
|
+
label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
|
|
3152
|
+
command: function () {
|
|
3153
|
+
_this.visibleInvoiceKey = true;
|
|
3154
|
+
},
|
|
3155
|
+
icon: "fa fa-search"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
3159
|
+
command: function () {
|
|
3160
|
+
_this.edit = true;
|
|
3161
|
+
_this.visibleDocumentRegister = true;
|
|
3162
|
+
},
|
|
3163
|
+
icon: "fas fa-pen-square"
|
|
3164
|
+
}
|
|
3165
|
+
];
|
|
3166
|
+
};
|
|
3167
|
+
DocumentGridComponent.prototype.getProp = function (obj, path) {
|
|
3168
|
+
return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
|
|
3169
|
+
};
|
|
3170
|
+
DocumentGridComponent.prototype.view = function (selection) {
|
|
3171
|
+
this.viewDocument.emit(selection);
|
|
3172
|
+
this.visibleDocumentRegister = true;
|
|
3173
|
+
this.edit = false;
|
|
3174
|
+
};
|
|
3175
|
+
DocumentGridComponent.prototype.save = function () {
|
|
3176
|
+
var _this = this;
|
|
3177
|
+
if (this.gridData.length > 0) {
|
|
3178
|
+
this.gridData.forEach(function (data) {
|
|
3179
|
+
if (!data.id) {
|
|
3180
|
+
if (!data.schedulingId) {
|
|
3181
|
+
data.schedulingId = _this.agenda.id;
|
|
3182
|
+
}
|
|
3183
|
+
_this.documentService.insert(data).subscribe(function () {
|
|
3184
|
+
_this.message("success", "saved_message_title", "saved_message_content");
|
|
3185
|
+
});
|
|
3186
|
+
_this.disabled = true;
|
|
3187
|
+
}
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3190
|
+
};
|
|
3191
|
+
DocumentGridComponent.prototype.onDelete = function (selection) {
|
|
3192
|
+
var _this = this;
|
|
3193
|
+
if (!selection.id) {
|
|
3194
|
+
return;
|
|
3195
|
+
}
|
|
3196
|
+
this.documentService.delete(selection.id)
|
|
3197
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () {
|
|
3198
|
+
_this.gridData = [];
|
|
3199
|
+
_this.listDocuments();
|
|
3200
|
+
})).
|
|
3201
|
+
subscribe(function () { return _this.message("success", "deleted_message_title", "deleted_message_content"); });
|
|
3202
|
+
};
|
|
3203
|
+
DocumentGridComponent.prototype.listDocuments = function () {
|
|
3204
|
+
var _this = this;
|
|
3205
|
+
this.documentService.list({
|
|
3206
|
+
filterQuery: "schedulingId eq '" + this.agenda.id + "'"
|
|
3207
|
+
})
|
|
3208
|
+
.subscribe(function (contents) {
|
|
3209
|
+
if (contents.totalElements > 0) {
|
|
3210
|
+
_this.gridData = contents.contents;
|
|
3211
|
+
_this.documentTotalRecords = contents.totalElements;
|
|
3212
|
+
}
|
|
3213
|
+
else {
|
|
3214
|
+
_this.disabled = true;
|
|
3215
|
+
_this.documentTotalRecords = _this.gridData.length;
|
|
3216
|
+
}
|
|
3217
|
+
_this.loading = false;
|
|
3218
|
+
});
|
|
3219
|
+
};
|
|
3220
|
+
DocumentGridComponent.prototype.getGridColumns = function () {
|
|
3221
|
+
return [
|
|
3222
|
+
{ field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
|
|
3223
|
+
{ field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
|
|
3224
|
+
{ field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
|
|
3225
|
+
{ field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
|
|
3226
|
+
{ field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
|
|
3227
|
+
{ field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
|
|
3228
|
+
{ field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
|
|
3229
|
+
{ field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
|
|
3230
|
+
];
|
|
3231
|
+
};
|
|
3232
|
+
DocumentGridComponent.prototype.message = function (severity, summary, detail) {
|
|
3233
|
+
this.messageService.add({
|
|
3234
|
+
severity: severity,
|
|
3235
|
+
summary: this.translate.instant(summary),
|
|
3236
|
+
detail: this.translate.instant(detail),
|
|
3237
|
+
});
|
|
3238
|
+
};
|
|
3239
|
+
__decorate([
|
|
3240
|
+
core.Input(),
|
|
3241
|
+
__metadata("design:type", Object)
|
|
3242
|
+
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3243
|
+
__decorate([
|
|
3244
|
+
core.Output(),
|
|
3245
|
+
__metadata("design:type", Boolean)
|
|
3246
|
+
], DocumentGridComponent.prototype, "visibleInvoiceKey", void 0);
|
|
3247
|
+
__decorate([
|
|
3248
|
+
core.Output(),
|
|
3249
|
+
__metadata("design:type", Boolean)
|
|
3250
|
+
], DocumentGridComponent.prototype, "visibleDocumentRegister", void 0);
|
|
3251
|
+
__decorate([
|
|
3252
|
+
core.Output(),
|
|
3253
|
+
__metadata("design:type", core.EventEmitter)
|
|
3254
|
+
], DocumentGridComponent.prototype, "viewDocument", void 0);
|
|
3255
|
+
__decorate([
|
|
3256
|
+
core.ViewChild("documentTable"),
|
|
3257
|
+
__metadata("design:type", table.Table)
|
|
3258
|
+
], DocumentGridComponent.prototype, "table", void 0);
|
|
3259
|
+
__decorate([
|
|
3260
|
+
core.ViewChild("customTemplate"),
|
|
3261
|
+
__metadata("design:type", core.TemplateRef)
|
|
3262
|
+
], DocumentGridComponent.prototype, "customTemplate", void 0);
|
|
3263
|
+
__decorate([
|
|
3264
|
+
core.ViewChild("customFilterFields"),
|
|
3265
|
+
__metadata("design:type", core.TemplateRef)
|
|
3266
|
+
], DocumentGridComponent.prototype, "customFilterFields", void 0);
|
|
3267
|
+
__decorate([
|
|
3268
|
+
core.ViewChild("customGridColgroup"),
|
|
3269
|
+
__metadata("design:type", core.TemplateRef)
|
|
3270
|
+
], DocumentGridComponent.prototype, "customGridColgroup", void 0);
|
|
3271
|
+
__decorate([
|
|
3272
|
+
core.ViewChild("customGridHeader"),
|
|
3273
|
+
__metadata("design:type", core.TemplateRef)
|
|
3274
|
+
], DocumentGridComponent.prototype, "customGridHeader", void 0);
|
|
3275
|
+
__decorate([
|
|
3276
|
+
core.ViewChild("customGridBody"),
|
|
3277
|
+
__metadata("design:type", core.TemplateRef)
|
|
3278
|
+
], DocumentGridComponent.prototype, "customGridBody", void 0);
|
|
3279
|
+
DocumentGridComponent = __decorate([
|
|
3280
|
+
core.Component({
|
|
3281
|
+
selector: 'document-grid',
|
|
3282
|
+
template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (onClick)=\"view(selection)\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (click)=\"onDelete(selection)\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"single\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceKey\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceNumber\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceSerialNumber\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"ownerName\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"ownerDocument\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"orderReceivingCode\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"!disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'yms.dock.area_dock_empty_state_title' | translate\"\n [description]=\"'yms.dock.area_dock_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
3283
|
+
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}"]
|
|
3284
|
+
}),
|
|
3285
|
+
__metadata("design:paramtypes", [core$1.TranslateService,
|
|
3286
|
+
DocumentService,
|
|
3287
|
+
api.MessageService])
|
|
3288
|
+
], DocumentGridComponent);
|
|
3289
|
+
return DocumentGridComponent;
|
|
3290
|
+
}());
|
|
3291
|
+
|
|
3292
|
+
var moment$4 = _moment;
|
|
3293
|
+
var Document = /** @class */ (function () {
|
|
3294
|
+
function Document() {
|
|
3295
|
+
}
|
|
3296
|
+
Document.fromDto = function (documentDto, originEntity) {
|
|
3297
|
+
var model = __assign({}, documentDto);
|
|
3298
|
+
model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
|
|
3299
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
|
|
3300
|
+
var lookupSeparator = " - ";
|
|
3301
|
+
var displayFields = [
|
|
3302
|
+
"id",
|
|
3303
|
+
"schedulingId",
|
|
3304
|
+
"invoiceKey",
|
|
3305
|
+
"invoiceNumber",
|
|
3306
|
+
"invoiceSerialNumber",
|
|
3307
|
+
"systemIntegration",
|
|
3308
|
+
"logistcUnitName",
|
|
3309
|
+
"logistcUnitDocument",
|
|
3310
|
+
"ownerName",
|
|
3311
|
+
"ownerDocument",
|
|
3312
|
+
"partnerName",
|
|
3313
|
+
"partnerDocument",
|
|
3314
|
+
"notes",
|
|
3315
|
+
"orderReceivingCode",
|
|
3316
|
+
"createdBy",
|
|
3317
|
+
"createdDate",
|
|
3318
|
+
"lastModifiedBy",
|
|
3319
|
+
"lastModifiedDate",
|
|
3320
|
+
];
|
|
3321
|
+
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
3322
|
+
return model;
|
|
3323
|
+
};
|
|
3324
|
+
Document.toDto = function (document, originEntity) {
|
|
3325
|
+
var dto = __assign({}, document);
|
|
3326
|
+
dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
|
|
3327
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
|
|
3328
|
+
return dto;
|
|
3329
|
+
};
|
|
3330
|
+
return Document;
|
|
3331
|
+
}());
|
|
3332
|
+
|
|
3058
3333
|
var EntityService$1 = /** @class */ (function () {
|
|
3059
3334
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3060
3335
|
this.http = http;
|
|
@@ -3149,9 +3424,349 @@
|
|
|
3149
3424
|
return EntityService;
|
|
3150
3425
|
}());
|
|
3151
3426
|
|
|
3427
|
+
var EntityService$2 = /** @class */ (function (_super) {
|
|
3428
|
+
__extends(EntityService, _super);
|
|
3429
|
+
function EntityService() {
|
|
3430
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3431
|
+
}
|
|
3432
|
+
return EntityService;
|
|
3433
|
+
}(EntityService$1));
|
|
3434
|
+
|
|
3435
|
+
var AgendaService = /** @class */ (function (_super) {
|
|
3436
|
+
__extends(AgendaService, _super);
|
|
3437
|
+
function AgendaService(http, messageService) {
|
|
3438
|
+
var _this = _super.call(this, http, messageService, 'yms/agenda/entities/agenda', '') || this;
|
|
3439
|
+
_this.http = http;
|
|
3440
|
+
_this.messageService = messageService;
|
|
3441
|
+
return _this;
|
|
3442
|
+
}
|
|
3443
|
+
AgendaService.ngInjectableDef = core.defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(core.inject(http.HttpClient), core.inject(messageservice.MessageService)); }, token: AgendaService, providedIn: "root" });
|
|
3444
|
+
AgendaService = __decorate([
|
|
3445
|
+
core.Injectable({ providedIn: 'root' }),
|
|
3446
|
+
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService])
|
|
3447
|
+
], AgendaService);
|
|
3448
|
+
return AgendaService;
|
|
3449
|
+
}(EntityService$2));
|
|
3450
|
+
|
|
3451
|
+
var RegisterDocumentComponent = /** @class */ (function () {
|
|
3452
|
+
function RegisterDocumentComponent(fb, messageService, translateService, agendaService) {
|
|
3453
|
+
this.fb = fb;
|
|
3454
|
+
this.messageService = messageService;
|
|
3455
|
+
this.translateService = translateService;
|
|
3456
|
+
this.agendaService = agendaService;
|
|
3457
|
+
this.document = new core.EventEmitter();
|
|
3458
|
+
this.visible = new core.EventEmitter();
|
|
3459
|
+
this.visibleChange = new core.EventEmitter();
|
|
3460
|
+
}
|
|
3461
|
+
RegisterDocumentComponent.prototype.ngOnInit = function () {
|
|
3462
|
+
this.getFormGroup();
|
|
3463
|
+
};
|
|
3464
|
+
RegisterDocumentComponent.prototype.ngOnChanges = function () {
|
|
3465
|
+
this.visibilityConfig();
|
|
3466
|
+
};
|
|
3467
|
+
RegisterDocumentComponent.prototype.visibilityConfig = function () {
|
|
3468
|
+
if (!this.edit && this.visible) {
|
|
3469
|
+
this.formGroup.disable();
|
|
3470
|
+
this.setValuesFormGroup(this.viewDocument);
|
|
3471
|
+
this.setValueForPartner();
|
|
3472
|
+
this.hideSaveButton = true;
|
|
3473
|
+
return this.visible;
|
|
3474
|
+
}
|
|
3475
|
+
return this.visible;
|
|
3476
|
+
};
|
|
3477
|
+
RegisterDocumentComponent.prototype.close = function () {
|
|
3478
|
+
this.visibleChange.emit(false);
|
|
3479
|
+
};
|
|
3480
|
+
RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
|
|
3481
|
+
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3482
|
+
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3483
|
+
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
3484
|
+
this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
|
|
3485
|
+
this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
|
|
3486
|
+
this.formGroup.get('notes').setValue(document.notes);
|
|
3487
|
+
this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
|
|
3488
|
+
this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
|
|
3489
|
+
this.formGroup.get('ownerName').setValue(document.ownerName);
|
|
3490
|
+
};
|
|
3491
|
+
RegisterDocumentComponent.prototype.setValueForPartner = function () {
|
|
3492
|
+
var _this = this;
|
|
3493
|
+
this.agendaService.get(this.agenda.id).subscribe(function (agenda) {
|
|
3494
|
+
_this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
|
|
3495
|
+
_this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
|
|
3496
|
+
});
|
|
3497
|
+
};
|
|
3498
|
+
RegisterDocumentComponent.prototype.getFormGroup = function () {
|
|
3499
|
+
this.formGroup = this.fb.group({
|
|
3500
|
+
invoiceKey: [undefined, forms.Validators.required],
|
|
3501
|
+
schedulingId: [undefined],
|
|
3502
|
+
invoiceNumber: [undefined],
|
|
3503
|
+
invoiceSerialNumber: [undefined],
|
|
3504
|
+
logistcUnitName: [undefined],
|
|
3505
|
+
logistcUnitDocument: [undefined],
|
|
3506
|
+
ownerName: [undefined],
|
|
3507
|
+
ownerDocument: [undefined],
|
|
3508
|
+
partnerName: [undefined],
|
|
3509
|
+
partnerDocument: [undefined],
|
|
3510
|
+
notes: [undefined],
|
|
3511
|
+
orderReceivingCode: [undefined],
|
|
3512
|
+
});
|
|
3513
|
+
};
|
|
3514
|
+
RegisterDocumentComponent.prototype.save = function () {
|
|
3515
|
+
var value = this.formGroup.getRawValue();
|
|
3516
|
+
if (value.id === undefined) {
|
|
3517
|
+
if (this.agenda.id !== undefined) {
|
|
3518
|
+
value.schedulingId = this.agenda.id;
|
|
3519
|
+
}
|
|
3520
|
+
this.document.emit(Document.fromDto(value));
|
|
3521
|
+
this.successMessage();
|
|
3522
|
+
this.visibleChange.emit(false);
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
RegisterDocumentComponent.prototype.successMessage = function () {
|
|
3526
|
+
this.messageService.add({
|
|
3527
|
+
severity: "success",
|
|
3528
|
+
summary: this.translateService.instant("saved_message_title"),
|
|
3529
|
+
detail: this.translateService.instant("saved_message_content"),
|
|
3530
|
+
});
|
|
3531
|
+
};
|
|
3532
|
+
__decorate([
|
|
3533
|
+
core.Input(),
|
|
3534
|
+
__metadata("design:type", Document)
|
|
3535
|
+
], RegisterDocumentComponent.prototype, "viewDocument", void 0);
|
|
3536
|
+
__decorate([
|
|
3537
|
+
core.Input(),
|
|
3538
|
+
__metadata("design:type", Boolean)
|
|
3539
|
+
], RegisterDocumentComponent.prototype, "edit", void 0);
|
|
3540
|
+
__decorate([
|
|
3541
|
+
core.Input(),
|
|
3542
|
+
__metadata("design:type", Agenda)
|
|
3543
|
+
], RegisterDocumentComponent.prototype, "agenda", void 0);
|
|
3544
|
+
__decorate([
|
|
3545
|
+
core.Output(),
|
|
3546
|
+
__metadata("design:type", core.EventEmitter)
|
|
3547
|
+
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3548
|
+
__decorate([
|
|
3549
|
+
core.Input(),
|
|
3550
|
+
__metadata("design:type", core.EventEmitter)
|
|
3551
|
+
], RegisterDocumentComponent.prototype, "visible", void 0);
|
|
3552
|
+
__decorate([
|
|
3553
|
+
core.Output(),
|
|
3554
|
+
__metadata("design:type", Object)
|
|
3555
|
+
], RegisterDocumentComponent.prototype, "visibleChange", void 0);
|
|
3556
|
+
RegisterDocumentComponent = __decorate([
|
|
3557
|
+
core.Component({
|
|
3558
|
+
selector: "register-document",
|
|
3559
|
+
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>"
|
|
3560
|
+
}),
|
|
3561
|
+
__metadata("design:paramtypes", [forms.FormBuilder,
|
|
3562
|
+
api.MessageService,
|
|
3563
|
+
core$1.TranslateService,
|
|
3564
|
+
AgendaService])
|
|
3565
|
+
], RegisterDocumentComponent);
|
|
3566
|
+
return RegisterDocumentComponent;
|
|
3567
|
+
}());
|
|
3568
|
+
|
|
3569
|
+
var RegisterDocumentModule = /** @class */ (function () {
|
|
3570
|
+
function RegisterDocumentModule() {
|
|
3571
|
+
}
|
|
3572
|
+
RegisterDocumentModule = __decorate([
|
|
3573
|
+
core.NgModule({
|
|
3574
|
+
imports: [
|
|
3575
|
+
common.CommonModule,
|
|
3576
|
+
angularComponents.SidebarModule,
|
|
3577
|
+
angularComponents.ButtonModule,
|
|
3578
|
+
primeng.PanelModule,
|
|
3579
|
+
primeng.ConfirmDialogModule,
|
|
3580
|
+
core$1.TranslateModule,
|
|
3581
|
+
primeng.InputTextModule,
|
|
3582
|
+
angularComponents.ControlErrorsModule,
|
|
3583
|
+
primeng.InputTextareaModule,
|
|
3584
|
+
forms.ReactiveFormsModule
|
|
3585
|
+
],
|
|
3586
|
+
exports: [RegisterDocumentComponent],
|
|
3587
|
+
declarations: [RegisterDocumentComponent],
|
|
3588
|
+
providers: [DocumentService]
|
|
3589
|
+
})
|
|
3590
|
+
], RegisterDocumentModule);
|
|
3591
|
+
return RegisterDocumentModule;
|
|
3592
|
+
}());
|
|
3593
|
+
|
|
3594
|
+
var InsertKeyComponent = /** @class */ (function () {
|
|
3595
|
+
function InsertKeyComponent(formBuilder, documentService, messageService, translate) {
|
|
3596
|
+
this.formBuilder = formBuilder;
|
|
3597
|
+
this.documentService = documentService;
|
|
3598
|
+
this.messageService = messageService;
|
|
3599
|
+
this.translate = translate;
|
|
3600
|
+
this.document = new core.EventEmitter();
|
|
3601
|
+
this.visible = new core.EventEmitter();
|
|
3602
|
+
this.visibleChange = new core.EventEmitter();
|
|
3603
|
+
}
|
|
3604
|
+
InsertKeyComponent.prototype.ngOnInit = function () {
|
|
3605
|
+
this.formGroup = this.formBuilder.group({
|
|
3606
|
+
key: [undefined]
|
|
3607
|
+
});
|
|
3608
|
+
};
|
|
3609
|
+
InsertKeyComponent.prototype.add = function () {
|
|
3610
|
+
this.visibleChange.emit(false);
|
|
3611
|
+
if (!this.formGroup.get('key').value) {
|
|
3612
|
+
return;
|
|
3613
|
+
}
|
|
3614
|
+
this.searchKey();
|
|
3615
|
+
};
|
|
3616
|
+
InsertKeyComponent.prototype.searchKey = function () {
|
|
3617
|
+
var _this = this;
|
|
3618
|
+
var key = {
|
|
3619
|
+
documentKeys: [this.formGroup.get('key').value],
|
|
3620
|
+
invoices: undefined,
|
|
3621
|
+
logistcUnitName: undefined,
|
|
3622
|
+
size: 0,
|
|
3623
|
+
offset: 0
|
|
3624
|
+
};
|
|
3625
|
+
this.documentService.findDocuments(key).subscribe(function (content) {
|
|
3626
|
+
if (content.totalElements < 1) {
|
|
3627
|
+
_this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
|
|
3628
|
+
return;
|
|
3629
|
+
}
|
|
3630
|
+
_this.document.emit(content.contents[0]);
|
|
3631
|
+
_this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
|
|
3632
|
+
_this.formGroup.reset();
|
|
3633
|
+
});
|
|
3634
|
+
};
|
|
3635
|
+
InsertKeyComponent.prototype.message = function (success, header, description) {
|
|
3636
|
+
this.messageService.add({
|
|
3637
|
+
severity: success,
|
|
3638
|
+
summary: this.translate.instant(header),
|
|
3639
|
+
detail: this.translate.instant(description),
|
|
3640
|
+
});
|
|
3641
|
+
};
|
|
3642
|
+
InsertKeyComponent.prototype.cancel = function () {
|
|
3643
|
+
this.visibleChange.emit(false);
|
|
3644
|
+
};
|
|
3645
|
+
__decorate([
|
|
3646
|
+
core.Output(),
|
|
3647
|
+
__metadata("design:type", core.EventEmitter)
|
|
3648
|
+
], InsertKeyComponent.prototype, "document", void 0);
|
|
3649
|
+
__decorate([
|
|
3650
|
+
core.Input(),
|
|
3651
|
+
__metadata("design:type", core.EventEmitter)
|
|
3652
|
+
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3653
|
+
__decorate([
|
|
3654
|
+
core.Output(),
|
|
3655
|
+
__metadata("design:type", Object)
|
|
3656
|
+
], InsertKeyComponent.prototype, "visibleChange", void 0);
|
|
3657
|
+
InsertKeyComponent = __decorate([
|
|
3658
|
+
core.Component({
|
|
3659
|
+
selector: "insert-key",
|
|
3660
|
+
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>",
|
|
3661
|
+
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}"]
|
|
3662
|
+
}),
|
|
3663
|
+
__metadata("design:paramtypes", [forms.FormBuilder,
|
|
3664
|
+
DocumentService,
|
|
3665
|
+
api.MessageService,
|
|
3666
|
+
core$1.TranslateService])
|
|
3667
|
+
], InsertKeyComponent);
|
|
3668
|
+
return InsertKeyComponent;
|
|
3669
|
+
}());
|
|
3670
|
+
|
|
3671
|
+
var InsertKeyModule = /** @class */ (function () {
|
|
3672
|
+
function InsertKeyModule() {
|
|
3673
|
+
}
|
|
3674
|
+
InsertKeyModule = __decorate([
|
|
3675
|
+
core.NgModule({
|
|
3676
|
+
imports: [
|
|
3677
|
+
common.CommonModule,
|
|
3678
|
+
forms.ReactiveFormsModule,
|
|
3679
|
+
angularComponents.ButtonModule,
|
|
3680
|
+
core$1.TranslateModule,
|
|
3681
|
+
primeng.DialogModule,
|
|
3682
|
+
primeng.InputTextModule
|
|
3683
|
+
],
|
|
3684
|
+
exports: [InsertKeyComponent],
|
|
3685
|
+
declarations: [InsertKeyComponent]
|
|
3686
|
+
})
|
|
3687
|
+
], InsertKeyModule);
|
|
3688
|
+
return InsertKeyModule;
|
|
3689
|
+
}());
|
|
3690
|
+
|
|
3691
|
+
var DocumentGridModule = /** @class */ (function () {
|
|
3692
|
+
function DocumentGridModule() {
|
|
3693
|
+
}
|
|
3694
|
+
DocumentGridModule = __decorate([
|
|
3695
|
+
core.NgModule({
|
|
3696
|
+
declarations: [DocumentGridComponent],
|
|
3697
|
+
entryComponents: [DocumentGridComponent],
|
|
3698
|
+
exports: [DocumentGridComponent],
|
|
3699
|
+
imports: [
|
|
3700
|
+
common.CommonModule,
|
|
3701
|
+
core$1.TranslateModule,
|
|
3702
|
+
angularComponents.ButtonModule,
|
|
3703
|
+
primeng.PanelModule,
|
|
3704
|
+
table.TableModule,
|
|
3705
|
+
RegisterDocumentModule,
|
|
3706
|
+
InsertKeyModule,
|
|
3707
|
+
button.ButtonModule,
|
|
3708
|
+
ymsComponents.ComponentsModule,
|
|
3709
|
+
angularComponents.EmptyStateModule
|
|
3710
|
+
],
|
|
3711
|
+
})
|
|
3712
|
+
], DocumentGridModule);
|
|
3713
|
+
return DocumentGridModule;
|
|
3714
|
+
}());
|
|
3715
|
+
|
|
3716
|
+
var WmsModule = /** @class */ (function () {
|
|
3717
|
+
function WmsModule(dispatcher) {
|
|
3718
|
+
dispatcher.dispatch(FormWmsComponent);
|
|
3719
|
+
}
|
|
3720
|
+
WmsModule = __decorate([
|
|
3721
|
+
core.NgModule({
|
|
3722
|
+
declarations: [FormWmsComponent],
|
|
3723
|
+
entryComponents: [FormWmsComponent],
|
|
3724
|
+
exports: [FormWmsComponent],
|
|
3725
|
+
imports: [
|
|
3726
|
+
ymsRoutines.IntegrationModule,
|
|
3727
|
+
DocumentGridModule,
|
|
3728
|
+
common.CommonModule,
|
|
3729
|
+
core$1.TranslateModule,
|
|
3730
|
+
forms.FormsModule,
|
|
3731
|
+
angularComponents.ButtonModule,
|
|
3732
|
+
primeng.SharedModule,
|
|
3733
|
+
primeng.CardModule,
|
|
3734
|
+
button.ButtonModule,
|
|
3735
|
+
forms.ReactiveFormsModule,
|
|
3736
|
+
shared.SharedModule,
|
|
3737
|
+
angularComponents.CustomFieldsModule,
|
|
3738
|
+
angularComponents.ControlErrorsModule,
|
|
3739
|
+
primeng.DialogModule,
|
|
3740
|
+
angularComponents.EmptyStateModule,
|
|
3741
|
+
angularComponents.DynamicFormModule,
|
|
3742
|
+
angularComponents.TokenListModule,
|
|
3743
|
+
primeng.PanelModule,
|
|
3744
|
+
primeng.InputTextModule,
|
|
3745
|
+
primeng.DropdownModule,
|
|
3746
|
+
angularComponents.ButtonModule,
|
|
3747
|
+
angularComponents.LoadingStateModule,
|
|
3748
|
+
angularComponents.NumberInputModule,
|
|
3749
|
+
primeng.ConfirmDialogModule,
|
|
3750
|
+
angularComponents.LocaleModule,
|
|
3751
|
+
platformComponents.PermissionsModule,
|
|
3752
|
+
dynamicdialog.DynamicDialogModule,
|
|
3753
|
+
table.TableModule,
|
|
3754
|
+
primeng.TabViewModule,
|
|
3755
|
+
primeng.CalendarModule,
|
|
3756
|
+
],
|
|
3757
|
+
providers: [
|
|
3758
|
+
FieldCustomizationService,
|
|
3759
|
+
FocusService
|
|
3760
|
+
]
|
|
3761
|
+
}),
|
|
3762
|
+
__metadata("design:paramtypes", [ymsRoutines.IntegrationDispatcher])
|
|
3763
|
+
], WmsModule);
|
|
3764
|
+
return WmsModule;
|
|
3765
|
+
}());
|
|
3766
|
+
|
|
3152
3767
|
var ERP_ENVIRONMENT = new core.InjectionToken('integration_environment');
|
|
3153
3768
|
|
|
3154
|
-
var AgendaService = /** @class */ (function (_super) {
|
|
3769
|
+
var AgendaService$1 = /** @class */ (function (_super) {
|
|
3155
3770
|
__extends(AgendaService, _super);
|
|
3156
3771
|
function AgendaService(http, messageService, environment) {
|
|
3157
3772
|
var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/agenda", environment.project.domain + "/" + environment.project.service + "/actions") || this;
|
|
@@ -3252,7 +3867,7 @@
|
|
|
3252
3867
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
3253
3868
|
core.Injectable(),
|
|
3254
3869
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
3255
|
-
AgendaService,
|
|
3870
|
+
AgendaService$1,
|
|
3256
3871
|
RecebimentoContratoService])
|
|
3257
3872
|
], RecebimentoChegadaVeiculoOverride);
|
|
3258
3873
|
return RecebimentoChegadaVeiculoOverride;
|
|
@@ -3316,7 +3931,7 @@
|
|
|
3316
3931
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3317
3932
|
core.Injectable(),
|
|
3318
3933
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
3319
|
-
AgendaService,
|
|
3934
|
+
AgendaService$1,
|
|
3320
3935
|
ExpedicaoService])
|
|
3321
3936
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3322
3937
|
return ExpedicaoChegadaVeiculoOverride;
|
|
@@ -3533,7 +4148,7 @@
|
|
|
3533
4148
|
return OrdemCompraService;
|
|
3534
4149
|
}(EntityService$1));
|
|
3535
4150
|
|
|
3536
|
-
var moment$
|
|
4151
|
+
var moment$5 = _moment;
|
|
3537
4152
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3538
4153
|
var Empresa = /** @class */ (function () {
|
|
3539
4154
|
function Empresa() {
|
|
@@ -3542,8 +4157,8 @@
|
|
|
3542
4157
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3543
4158
|
Empresa.fromDto = function (empresaDto, originEntity) {
|
|
3544
4159
|
var model = __assign({}, empresaDto);
|
|
3545
|
-
model.createdDate = model.createdDate && moment$
|
|
3546
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4160
|
+
model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
|
|
4161
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
|
|
3547
4162
|
var lookupSeparator = " - ";
|
|
3548
4163
|
var displayFields = [
|
|
3549
4164
|
"codigo",
|
|
@@ -3555,8 +4170,8 @@
|
|
|
3555
4170
|
};
|
|
3556
4171
|
Empresa.toDto = function (empresa, originEntity) {
|
|
3557
4172
|
var dto = __assign({}, empresa);
|
|
3558
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3559
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4173
|
+
dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
|
|
4174
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
|
|
3560
4175
|
delete dto.label;
|
|
3561
4176
|
return dto;
|
|
3562
4177
|
};
|
|
@@ -3565,7 +4180,7 @@
|
|
|
3565
4180
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3566
4181
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3567
4182
|
|
|
3568
|
-
var moment$
|
|
4183
|
+
var moment$6 = _moment;
|
|
3569
4184
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3570
4185
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3571
4186
|
var Pessoa = /** @class */ (function () {
|
|
@@ -3575,8 +4190,8 @@
|
|
|
3575
4190
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3576
4191
|
Pessoa.fromDto = function (pessoaDto, originEntity) {
|
|
3577
4192
|
var model = __assign({}, pessoaDto);
|
|
3578
|
-
model.createdDate = model.createdDate && moment$
|
|
3579
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4193
|
+
model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
|
|
4194
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
|
|
3580
4195
|
var lookupSeparator = " - ";
|
|
3581
4196
|
var displayFields = [
|
|
3582
4197
|
"codigo",
|
|
@@ -3588,8 +4203,8 @@
|
|
|
3588
4203
|
};
|
|
3589
4204
|
Pessoa.toDto = function (pessoa, originEntity) {
|
|
3590
4205
|
var dto = __assign({}, pessoa);
|
|
3591
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3592
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4206
|
+
dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
|
|
4207
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
|
|
3593
4208
|
delete dto.label;
|
|
3594
4209
|
return dto;
|
|
3595
4210
|
};
|
|
@@ -3598,7 +4213,7 @@
|
|
|
3598
4213
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3599
4214
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3600
4215
|
|
|
3601
|
-
var moment$
|
|
4216
|
+
var moment$7 = _moment;
|
|
3602
4217
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3603
4218
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3604
4219
|
var PessoaJuridica = /** @class */ (function () {
|
|
@@ -3608,8 +4223,8 @@
|
|
|
3608
4223
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3609
4224
|
PessoaJuridica.fromDto = function (pessoaJuridicaDto, originEntity) {
|
|
3610
4225
|
var model = __assign({}, pessoaJuridicaDto);
|
|
3611
|
-
model.createdDate = model.createdDate && moment$
|
|
3612
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4226
|
+
model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
|
|
4227
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
|
|
3613
4228
|
var lookupSeparator = " - ";
|
|
3614
4229
|
var displayFields = [
|
|
3615
4230
|
"id",
|
|
@@ -3636,8 +4251,8 @@
|
|
|
3636
4251
|
};
|
|
3637
4252
|
PessoaJuridica.toDto = function (pessoaJuridica, originEntity) {
|
|
3638
4253
|
var dto = __assign({}, pessoaJuridica);
|
|
3639
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3640
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4254
|
+
dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
|
|
4255
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
|
|
3641
4256
|
delete dto.label;
|
|
3642
4257
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3643
4258
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
|
|
@@ -3648,7 +4263,7 @@
|
|
|
3648
4263
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3649
4264
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3650
4265
|
|
|
3651
|
-
var moment$
|
|
4266
|
+
var moment$8 = _moment;
|
|
3652
4267
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3653
4268
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3654
4269
|
var Pais = /** @class */ (function () {
|
|
@@ -3658,8 +4273,8 @@
|
|
|
3658
4273
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3659
4274
|
Pais.fromDto = function (paisDto, originEntity) {
|
|
3660
4275
|
var model = __assign({}, paisDto);
|
|
3661
|
-
model.createdDate = model.createdDate && moment$
|
|
3662
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4276
|
+
model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
|
|
4277
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
|
|
3663
4278
|
var lookupSeparator = " - ";
|
|
3664
4279
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
3665
4280
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -3667,8 +4282,8 @@
|
|
|
3667
4282
|
};
|
|
3668
4283
|
Pais.toDto = function (pais, originEntity) {
|
|
3669
4284
|
var dto = __assign({}, pais);
|
|
3670
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3671
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4285
|
+
dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
|
|
4286
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
|
|
3672
4287
|
delete dto.label;
|
|
3673
4288
|
return dto;
|
|
3674
4289
|
};
|
|
@@ -3677,7 +4292,7 @@
|
|
|
3677
4292
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3678
4293
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3679
4294
|
|
|
3680
|
-
var moment$
|
|
4295
|
+
var moment$9 = _moment;
|
|
3681
4296
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3682
4297
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3683
4298
|
var Estado = /** @class */ (function () {
|
|
@@ -3687,8 +4302,8 @@
|
|
|
3687
4302
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3688
4303
|
Estado.fromDto = function (estadoDto, originEntity) {
|
|
3689
4304
|
var model = __assign({}, estadoDto);
|
|
3690
|
-
model.createdDate = model.createdDate && moment$
|
|
3691
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4305
|
+
model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
|
|
4306
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
|
|
3692
4307
|
var lookupSeparator = " - ";
|
|
3693
4308
|
var displayFields = [
|
|
3694
4309
|
"id",
|
|
@@ -3710,8 +4325,8 @@
|
|
|
3710
4325
|
};
|
|
3711
4326
|
Estado.toDto = function (estado, originEntity) {
|
|
3712
4327
|
var dto = __assign({}, estado);
|
|
3713
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3714
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4328
|
+
dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
|
|
4329
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
|
|
3715
4330
|
delete dto.label;
|
|
3716
4331
|
if (originEntity !== "Pais" && dto.pais)
|
|
3717
4332
|
dto.pais = Pais.toDto(dto.pais, "Estado");
|
|
@@ -3722,7 +4337,7 @@
|
|
|
3722
4337
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3723
4338
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3724
4339
|
|
|
3725
|
-
var moment$
|
|
4340
|
+
var moment$a = _moment;
|
|
3726
4341
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3727
4342
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3728
4343
|
var Cidade = /** @class */ (function () {
|
|
@@ -3732,8 +4347,8 @@
|
|
|
3732
4347
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3733
4348
|
Cidade.fromDto = function (cidadeDto, originEntity) {
|
|
3734
4349
|
var model = __assign({}, cidadeDto);
|
|
3735
|
-
model.createdDate = model.createdDate && moment$
|
|
3736
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4350
|
+
model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
|
|
4351
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
|
|
3737
4352
|
var lookupSeparator = " - ";
|
|
3738
4353
|
var displayFields = [
|
|
3739
4354
|
"id",
|
|
@@ -3754,8 +4369,8 @@
|
|
|
3754
4369
|
};
|
|
3755
4370
|
Cidade.toDto = function (cidade, originEntity) {
|
|
3756
4371
|
var dto = __assign({}, cidade);
|
|
3757
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3758
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4372
|
+
dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
|
|
4373
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
|
|
3759
4374
|
delete dto.label;
|
|
3760
4375
|
if (originEntity !== "Estado" && dto.estado)
|
|
3761
4376
|
dto.estado = Estado.toDto(dto.estado, "Cidade");
|
|
@@ -3766,14 +4381,14 @@
|
|
|
3766
4381
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3767
4382
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3768
4383
|
|
|
3769
|
-
var moment$
|
|
4384
|
+
var moment$b = _moment;
|
|
3770
4385
|
var PessoaEndereco = /** @class */ (function () {
|
|
3771
4386
|
function PessoaEndereco() {
|
|
3772
4387
|
}
|
|
3773
4388
|
PessoaEndereco.fromDto = function (pessoaEnderecoDto, originEntity) {
|
|
3774
4389
|
var model = __assign({}, pessoaEnderecoDto);
|
|
3775
|
-
model.createdDate = model.createdDate && moment$
|
|
3776
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4390
|
+
model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
|
|
4391
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
|
|
3777
4392
|
var lookupSeparator = " - ";
|
|
3778
4393
|
var displayFields = [
|
|
3779
4394
|
"codigo",
|
|
@@ -3789,8 +4404,8 @@
|
|
|
3789
4404
|
};
|
|
3790
4405
|
PessoaEndereco.toDto = function (pessoaEndereco, originEntity) {
|
|
3791
4406
|
var dto = __assign({}, pessoaEndereco);
|
|
3792
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3793
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4407
|
+
dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
|
|
4408
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
|
|
3794
4409
|
delete dto.label;
|
|
3795
4410
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3796
4411
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
|
|
@@ -3801,7 +4416,7 @@
|
|
|
3801
4416
|
return PessoaEndereco;
|
|
3802
4417
|
}());
|
|
3803
4418
|
|
|
3804
|
-
var moment$
|
|
4419
|
+
var moment$c = _moment;
|
|
3805
4420
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3806
4421
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3807
4422
|
var Filial = /** @class */ (function () {
|
|
@@ -3811,8 +4426,8 @@
|
|
|
3811
4426
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3812
4427
|
Filial.fromDto = function (filialDto, originEntity) {
|
|
3813
4428
|
var model = __assign({}, filialDto);
|
|
3814
|
-
model.createdDate = model.createdDate && moment$
|
|
3815
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4429
|
+
model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
|
|
4430
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
|
|
3816
4431
|
var lookupSeparator = " - ";
|
|
3817
4432
|
var displayFields = [
|
|
3818
4433
|
"codigo",
|
|
@@ -3830,8 +4445,8 @@
|
|
|
3830
4445
|
};
|
|
3831
4446
|
Filial.toDto = function (filial, originEntity) {
|
|
3832
4447
|
var dto = __assign({}, filial);
|
|
3833
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3834
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4448
|
+
dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
|
|
4449
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
|
|
3835
4450
|
delete dto.label;
|
|
3836
4451
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3837
4452
|
dto.empresa = Empresa.toDto(dto.empresa, "Filial");
|
|
@@ -3846,14 +4461,14 @@
|
|
|
3846
4461
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3847
4462
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3848
4463
|
|
|
3849
|
-
var moment$
|
|
4464
|
+
var moment$d = _moment;
|
|
3850
4465
|
var OrdemCompra = /** @class */ (function () {
|
|
3851
4466
|
function OrdemCompra() {
|
|
3852
4467
|
}
|
|
3853
4468
|
OrdemCompra.fromDto = function (ordemCompraDto, originEntity) {
|
|
3854
4469
|
var model = __assign({}, ordemCompraDto);
|
|
3855
|
-
model.createdDate = model.createdDate && moment$
|
|
3856
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4470
|
+
model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
|
|
4471
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
|
|
3857
4472
|
var lookupSeparator = " - ";
|
|
3858
4473
|
var displayFields = [
|
|
3859
4474
|
"codigo",
|
|
@@ -3869,8 +4484,8 @@
|
|
|
3869
4484
|
};
|
|
3870
4485
|
OrdemCompra.toDto = function (ordemCompra, originEntity) {
|
|
3871
4486
|
var dto = __assign({}, ordemCompra);
|
|
3872
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3873
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4487
|
+
dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
|
|
4488
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
|
|
3874
4489
|
delete dto.label;
|
|
3875
4490
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3876
4491
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -3881,7 +4496,7 @@
|
|
|
3881
4496
|
return OrdemCompra;
|
|
3882
4497
|
}());
|
|
3883
4498
|
|
|
3884
|
-
var moment$
|
|
4499
|
+
var moment$e = _moment;
|
|
3885
4500
|
var OrdemCompraFormComponent = /** @class */ (function () {
|
|
3886
4501
|
function OrdemCompraFormComponent(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
|
|
3887
4502
|
this.dialogRef = dialogRef;
|
|
@@ -3960,7 +4575,7 @@
|
|
|
3960
4575
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
3961
4576
|
filter.empresaId = filial.empresa.id;
|
|
3962
4577
|
}
|
|
3963
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
4578
|
+
filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
|
|
3964
4579
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
3965
4580
|
this.ordemCompraService
|
|
3966
4581
|
.listOrdensCompra(__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: {
|
|
@@ -4207,7 +4822,7 @@
|
|
|
4207
4822
|
this.removeErrorChaveNota();
|
|
4208
4823
|
this.loading = true;
|
|
4209
4824
|
this.notaValidatorService.pesquisarDocumentoValidaNotaEmUso({
|
|
4210
|
-
chaveDocumento: (chaveNotaFiscal || "").
|
|
4825
|
+
chaveDocumento: (chaveNotaFiscal || "").replace(/\s/g, ""),
|
|
4211
4826
|
filialId: this.filialId
|
|
4212
4827
|
})
|
|
4213
4828
|
.pipe(operators.takeUntil(this.unsubscribe$), operators.finalize(function () { return _this.loading = false; }))
|
|
@@ -4269,7 +4884,7 @@
|
|
|
4269
4884
|
};
|
|
4270
4885
|
NotaFormComponent = __decorate([
|
|
4271
4886
|
core.Component({
|
|
4272
|
-
template: "<form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\" *sLoadingState=\"loading\">\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input
|
|
4887
|
+
template: "<form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\" *sLoadingState=\"loading\">\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input\n id=\"chaveNotaFiscal\"\n trim\n pInputText\n type=\"text\"\n formControlName=\"chaveNotaFiscal\"\n (blur)=\"onBlurNotaFiscal()\"\n >\n <s-control-errors [control]=\"formGroup.controls.chaveNotaFiscal\" [errorMessages]=\"{ errorChaveNota: 'yms.erp.produto_nota_error_detail' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12\">\n <label for=\"serieNotaFiscal\">{{'yms.erp.recebimento_serie_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"serieNotaFiscal\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"serieLegalNotaFiscal\">{{'yms.erp.recebimento_serie_legal_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"serieLegalNotaFiscal\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"numeroNotaFiscal\">{{'yms.erp.recebimento_numero_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" formControlName=\"numeroNotaFiscal\">\n </div>\n </div>\n\n <s-control-errors [control]=\"formGroup\" [errorMessages]=\"{ erroMultiplosCampos: 'yms.erp.nota_fiscal_no_value' | translate }\"></s-control-errors>\n\n <s-button label=\"Cancelar\" (onClick)=\"close()\" priority=\"link\"></s-button>\n <s-button label=\"Salvar\" [disabled]=\"botaoDesabilitado\" (onClick)=\"save()\"></s-button>\n</form>\n\n<p-confirmDialog appendTo=\"body\"></p-confirmDialog>",
|
|
4273
4888
|
providers: [api.ConfirmationService]
|
|
4274
4889
|
}),
|
|
4275
4890
|
__metadata("design:paramtypes", [forms.FormBuilder,
|
|
@@ -4284,6 +4899,44 @@
|
|
|
4284
4899
|
return NotaFormComponent;
|
|
4285
4900
|
}());
|
|
4286
4901
|
|
|
4902
|
+
var TrimDirective = /** @class */ (function () {
|
|
4903
|
+
function TrimDirective(elementRef) {
|
|
4904
|
+
this.elementRef = elementRef;
|
|
4905
|
+
}
|
|
4906
|
+
TrimDirective.prototype.onBlur = function () {
|
|
4907
|
+
var value = this.elementRef.nativeElement.value;
|
|
4908
|
+
if (value) {
|
|
4909
|
+
this.elementRef.nativeElement.value = value.replace(/\s/g, "");
|
|
4910
|
+
}
|
|
4911
|
+
};
|
|
4912
|
+
__decorate([
|
|
4913
|
+
core.HostListener('blur'),
|
|
4914
|
+
__metadata("design:type", Function),
|
|
4915
|
+
__metadata("design:paramtypes", []),
|
|
4916
|
+
__metadata("design:returntype", void 0)
|
|
4917
|
+
], TrimDirective.prototype, "onBlur", null);
|
|
4918
|
+
TrimDirective = __decorate([
|
|
4919
|
+
core.Directive({
|
|
4920
|
+
selector: '[trim]',
|
|
4921
|
+
}),
|
|
4922
|
+
__metadata("design:paramtypes", [core.ElementRef])
|
|
4923
|
+
], TrimDirective);
|
|
4924
|
+
return TrimDirective;
|
|
4925
|
+
}());
|
|
4926
|
+
|
|
4927
|
+
var DirectivesModule = /** @class */ (function () {
|
|
4928
|
+
function DirectivesModule() {
|
|
4929
|
+
}
|
|
4930
|
+
DirectivesModule = __decorate([
|
|
4931
|
+
core.NgModule({
|
|
4932
|
+
imports: [common.CommonModule],
|
|
4933
|
+
declarations: [TrimDirective],
|
|
4934
|
+
exports: [TrimDirective]
|
|
4935
|
+
})
|
|
4936
|
+
], DirectivesModule);
|
|
4937
|
+
return DirectivesModule;
|
|
4938
|
+
}());
|
|
4939
|
+
|
|
4287
4940
|
var NotaFormModule = /** @class */ (function () {
|
|
4288
4941
|
function NotaFormModule() {
|
|
4289
4942
|
}
|
|
@@ -4298,7 +4951,8 @@
|
|
|
4298
4951
|
angularComponents.ControlErrorsModule,
|
|
4299
4952
|
core$1.TranslateModule,
|
|
4300
4953
|
angularComponents.LoadingStateModule,
|
|
4301
|
-
confirmdialog.ConfirmDialogModule
|
|
4954
|
+
confirmdialog.ConfirmDialogModule,
|
|
4955
|
+
DirectivesModule
|
|
4302
4956
|
],
|
|
4303
4957
|
declarations: [NotaFormComponent],
|
|
4304
4958
|
entryComponents: [NotaFormComponent]
|
|
@@ -4324,7 +4978,7 @@
|
|
|
4324
4978
|
]),
|
|
4325
4979
|
],
|
|
4326
4980
|
providers: [
|
|
4327
|
-
AgendaService,
|
|
4981
|
+
AgendaService$1,
|
|
4328
4982
|
],
|
|
4329
4983
|
declarations: [
|
|
4330
4984
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -6191,13 +6845,13 @@
|
|
|
6191
6845
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
6192
6846
|
core.Injectable(),
|
|
6193
6847
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
6194
|
-
AgendaService,
|
|
6848
|
+
AgendaService$1,
|
|
6195
6849
|
DevolucaoService])
|
|
6196
6850
|
], DevolucaoChegadaVeiculoOverride);
|
|
6197
6851
|
return DevolucaoChegadaVeiculoOverride;
|
|
6198
6852
|
}());
|
|
6199
6853
|
|
|
6200
|
-
var moment$
|
|
6854
|
+
var moment$f = _moment;
|
|
6201
6855
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6202
6856
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6203
6857
|
var UnidadeMedida = /** @class */ (function () {
|
|
@@ -6207,8 +6861,8 @@
|
|
|
6207
6861
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6208
6862
|
UnidadeMedida.fromDto = function (unidadeMedidaDto, originEntity) {
|
|
6209
6863
|
var model = __assign({}, unidadeMedidaDto);
|
|
6210
|
-
model.createdDate = model.createdDate && moment$
|
|
6211
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6864
|
+
model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
|
|
6865
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
|
|
6212
6866
|
var lookupSeparator = " - ";
|
|
6213
6867
|
var displayFields = [
|
|
6214
6868
|
"id",
|
|
@@ -6225,8 +6879,8 @@
|
|
|
6225
6879
|
};
|
|
6226
6880
|
UnidadeMedida.toDto = function (unidadeMedida, originEntity) {
|
|
6227
6881
|
var dto = __assign({}, unidadeMedida);
|
|
6228
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6229
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6882
|
+
dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
|
|
6883
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
|
|
6230
6884
|
delete dto.label;
|
|
6231
6885
|
return dto;
|
|
6232
6886
|
};
|
|
@@ -6235,7 +6889,7 @@
|
|
|
6235
6889
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6236
6890
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6237
6891
|
|
|
6238
|
-
var moment$
|
|
6892
|
+
var moment$g = _moment;
|
|
6239
6893
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6240
6894
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6241
6895
|
var Royalty = /** @class */ (function () {
|
|
@@ -6245,8 +6899,8 @@
|
|
|
6245
6899
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6246
6900
|
Royalty.fromDto = function (royaltyDto, originEntity) {
|
|
6247
6901
|
var model = __assign({}, royaltyDto);
|
|
6248
|
-
model.createdDate = model.createdDate && moment$
|
|
6249
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6902
|
+
model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
|
|
6903
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
|
|
6250
6904
|
var lookupSeparator = " - ";
|
|
6251
6905
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6252
6906
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6256,8 +6910,8 @@
|
|
|
6256
6910
|
};
|
|
6257
6911
|
Royalty.toDto = function (royalty, originEntity) {
|
|
6258
6912
|
var dto = __assign({}, royalty);
|
|
6259
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6260
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6913
|
+
dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
|
|
6914
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
|
|
6261
6915
|
delete dto.label;
|
|
6262
6916
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6263
6917
|
dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
|
|
@@ -6268,7 +6922,7 @@
|
|
|
6268
6922
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6269
6923
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6270
6924
|
|
|
6271
|
-
var moment$
|
|
6925
|
+
var moment$h = _moment;
|
|
6272
6926
|
var FamiliaProduto = /** @class */ (function () {
|
|
6273
6927
|
function FamiliaProduto() {
|
|
6274
6928
|
}
|
|
@@ -6277,9 +6931,9 @@
|
|
|
6277
6931
|
return familiaProdutoDto;
|
|
6278
6932
|
}
|
|
6279
6933
|
var model = __assign({}, familiaProdutoDto);
|
|
6280
|
-
model.createdDate = model.codigo && moment$
|
|
6281
|
-
model.createdDate = model.createdDate && moment$
|
|
6282
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6934
|
+
model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
|
|
6935
|
+
model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
|
|
6936
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
|
|
6283
6937
|
var lookupSeparator = " - ";
|
|
6284
6938
|
var displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6285
6939
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6289,8 +6943,8 @@
|
|
|
6289
6943
|
};
|
|
6290
6944
|
FamiliaProduto.toDto = function (familiaProduto, originEntity) {
|
|
6291
6945
|
var dto = __assign({}, familiaProduto);
|
|
6292
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6293
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6946
|
+
dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
|
|
6947
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
|
|
6294
6948
|
delete dto.label;
|
|
6295
6949
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6296
6950
|
dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
|
|
@@ -6299,7 +6953,7 @@
|
|
|
6299
6953
|
return FamiliaProduto;
|
|
6300
6954
|
}());
|
|
6301
6955
|
|
|
6302
|
-
var moment$
|
|
6956
|
+
var moment$i = _moment;
|
|
6303
6957
|
var Produto = /** @class */ (function () {
|
|
6304
6958
|
function Produto() {
|
|
6305
6959
|
this.produtoMisto = false;
|
|
@@ -6307,8 +6961,8 @@
|
|
|
6307
6961
|
}
|
|
6308
6962
|
Produto.fromDto = function (produtoDto, originEntity) {
|
|
6309
6963
|
var model = __assign({}, produtoDto);
|
|
6310
|
-
model.createdDate = model.createdDate && moment$
|
|
6311
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6964
|
+
model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
|
|
6965
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
|
|
6312
6966
|
var lookupSeparator = " - ";
|
|
6313
6967
|
var displayFields = [
|
|
6314
6968
|
"codigo",
|
|
@@ -6329,8 +6983,8 @@
|
|
|
6329
6983
|
};
|
|
6330
6984
|
Produto.toDto = function (produto, originEntity) {
|
|
6331
6985
|
var dto = __assign({}, produto);
|
|
6332
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6333
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6986
|
+
dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
|
|
6987
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
|
|
6334
6988
|
delete dto.label;
|
|
6335
6989
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6336
6990
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -6347,7 +7001,7 @@
|
|
|
6347
7001
|
return Produto;
|
|
6348
7002
|
}());
|
|
6349
7003
|
|
|
6350
|
-
var moment$
|
|
7004
|
+
var moment$j = _moment;
|
|
6351
7005
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6352
7006
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6353
7007
|
var Derivacao = /** @class */ (function () {
|
|
@@ -6357,8 +7011,8 @@
|
|
|
6357
7011
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6358
7012
|
Derivacao.fromDto = function (derivacaoDto, originEntity) {
|
|
6359
7013
|
var model = __assign({}, derivacaoDto);
|
|
6360
|
-
model.createdDate = model.createdDate && moment$
|
|
6361
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7014
|
+
model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
|
|
7015
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
|
|
6362
7016
|
var lookupSeparator = " - ";
|
|
6363
7017
|
var displayFields = ["codigo", "descricao"];
|
|
6364
7018
|
model.label = getLookupLabel(model, displayFields, lookupSeparator);
|
|
@@ -6370,8 +7024,8 @@
|
|
|
6370
7024
|
};
|
|
6371
7025
|
Derivacao.toDto = function (derivacao, originEntity) {
|
|
6372
7026
|
var dto = __assign({}, derivacao);
|
|
6373
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6374
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7027
|
+
dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
|
|
7028
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
|
|
6375
7029
|
delete dto.label;
|
|
6376
7030
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6377
7031
|
dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
|
|
@@ -6384,7 +7038,7 @@
|
|
|
6384
7038
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6385
7039
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6386
7040
|
|
|
6387
|
-
var moment$
|
|
7041
|
+
var moment$k = _moment;
|
|
6388
7042
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6389
7043
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6390
7044
|
var Transportadora = /** @class */ (function () {
|
|
@@ -6394,8 +7048,8 @@
|
|
|
6394
7048
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6395
7049
|
Transportadora.fromDto = function (transportadoraDto, originEntity) {
|
|
6396
7050
|
var model = __assign({}, transportadoraDto);
|
|
6397
|
-
model.createdDate = model.createdDate && moment$
|
|
6398
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7051
|
+
model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
|
|
7052
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
|
|
6399
7053
|
var lookupSeparator = " - ";
|
|
6400
7054
|
var displayFields = [
|
|
6401
7055
|
"codigo", "pessoa.nome", "pessoa.cpfCnpj"
|
|
@@ -6409,8 +7063,8 @@
|
|
|
6409
7063
|
};
|
|
6410
7064
|
Transportadora.toDto = function (transportadora, originEntity) {
|
|
6411
7065
|
var dto = __assign({}, transportadora);
|
|
6412
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6413
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7066
|
+
dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
|
|
7067
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
|
|
6414
7068
|
delete dto.label;
|
|
6415
7069
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
6416
7070
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
|
|
@@ -6423,7 +7077,7 @@
|
|
|
6423
7077
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6424
7078
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6425
7079
|
|
|
6426
|
-
var moment$
|
|
7080
|
+
var moment$l = _moment;
|
|
6427
7081
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6428
7082
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6429
7083
|
var Devolucao = /** @class */ (function () {
|
|
@@ -6433,8 +7087,8 @@
|
|
|
6433
7087
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6434
7088
|
Devolucao.fromDto = function (devolucaoDto, originEntity) {
|
|
6435
7089
|
var model = __assign({}, devolucaoDto);
|
|
6436
|
-
model.createdDate = model.createdDate && moment$
|
|
6437
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7090
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
7091
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
6438
7092
|
var lookupSeparator = " - ";
|
|
6439
7093
|
var displayFields = [
|
|
6440
7094
|
''
|
|
@@ -6458,8 +7112,8 @@
|
|
|
6458
7112
|
};
|
|
6459
7113
|
Devolucao.toDto = function (devolucao, originEntity) {
|
|
6460
7114
|
var dto = __assign({}, devolucao);
|
|
6461
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6462
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7115
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
7116
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
6463
7117
|
delete dto.label;
|
|
6464
7118
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
6465
7119
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
|
|
@@ -7156,7 +7810,7 @@
|
|
|
7156
7810
|
router.ActivatedRoute,
|
|
7157
7811
|
DevolucaoChegadaVeiculoOverride,
|
|
7158
7812
|
api.ConfirmationService,
|
|
7159
|
-
AgendaService,
|
|
7813
|
+
AgendaService$1,
|
|
7160
7814
|
ErpProcessService,
|
|
7161
7815
|
ErpFormConfigService,
|
|
7162
7816
|
HasChangeService])
|
|
@@ -7202,7 +7856,7 @@
|
|
|
7202
7856
|
|
|
7203
7857
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
7204
7858
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
7205
|
-
var moment$
|
|
7859
|
+
var moment$m = _moment;
|
|
7206
7860
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
7207
7861
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
7208
7862
|
var Expedicao = /** @class */ (function () {
|
|
@@ -7212,8 +7866,8 @@
|
|
|
7212
7866
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
7213
7867
|
Expedicao.fromDto = function (expedicaoDto, originEntity) {
|
|
7214
7868
|
var model = __assign({}, expedicaoDto);
|
|
7215
|
-
model.createdDate = model.createdDate && moment$
|
|
7216
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7869
|
+
model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
|
|
7870
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
|
|
7217
7871
|
var lookupSeparator = " - ";
|
|
7218
7872
|
var displayFields = [
|
|
7219
7873
|
"id",
|
|
@@ -7252,8 +7906,8 @@
|
|
|
7252
7906
|
};
|
|
7253
7907
|
Expedicao.toDto = function (expedicao, originEntity) {
|
|
7254
7908
|
var dto = __assign({}, expedicao);
|
|
7255
|
-
dto.createdDate = dto.createdDate && moment$
|
|
7256
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7909
|
+
dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
|
|
7910
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
|
|
7257
7911
|
delete dto.label;
|
|
7258
7912
|
if (originEntity !== "Pessoa" && dto.clienteFaturamento)
|
|
7259
7913
|
dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
|
|
@@ -7270,7 +7924,7 @@
|
|
|
7270
7924
|
return Expedicao;
|
|
7271
7925
|
}());
|
|
7272
7926
|
|
|
7273
|
-
var moment$
|
|
7927
|
+
var moment$n = _moment;
|
|
7274
7928
|
var ExpedicaoFormComponent = /** @class */ (function () {
|
|
7275
7929
|
function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
|
|
7276
7930
|
this.expedicaoService = expedicaoService;
|
|
@@ -7820,11 +8474,11 @@
|
|
|
7820
8474
|
if (typeof value == "number")
|
|
7821
8475
|
return name + " eq " + value;
|
|
7822
8476
|
else if (type == angularComponents.FieldType.Date)
|
|
7823
|
-
return name + " eq '" + moment$
|
|
8477
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7824
8478
|
else if (type == angularComponents.FieldType.Time)
|
|
7825
|
-
return name + " eq '" + moment$
|
|
8479
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7826
8480
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7827
|
-
return name + " eq '" + moment$
|
|
8481
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7828
8482
|
else if (type == angularComponents.FieldType.Enum)
|
|
7829
8483
|
return name + " eq '" + value + "'";
|
|
7830
8484
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -7876,11 +8530,11 @@
|
|
|
7876
8530
|
if (typeof value == "number")
|
|
7877
8531
|
return name + " eq " + value;
|
|
7878
8532
|
else if (type == angularComponents.FieldType.Date)
|
|
7879
|
-
return name + " eq '" + moment$
|
|
8533
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7880
8534
|
else if (type == angularComponents.FieldType.Time)
|
|
7881
|
-
return name + " eq '" + moment$
|
|
8535
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7882
8536
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7883
|
-
return name + " eq '" + moment$
|
|
8537
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7884
8538
|
else if (type == angularComponents.FieldType.Enum)
|
|
7885
8539
|
return name + " eq '" + value + "'";
|
|
7886
8540
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -8007,11 +8661,11 @@
|
|
|
8007
8661
|
if (typeof value == "number")
|
|
8008
8662
|
return name + " eq " + value;
|
|
8009
8663
|
else if (type == angularComponents.FieldType.Date)
|
|
8010
|
-
return name + " eq '" + moment$
|
|
8664
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8011
8665
|
else if (type == angularComponents.FieldType.Time)
|
|
8012
|
-
return name + " eq '" + moment$
|
|
8666
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8013
8667
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8014
|
-
return name + " eq '" + moment$
|
|
8668
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8015
8669
|
else if (type == angularComponents.FieldType.String)
|
|
8016
8670
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
8017
8671
|
else
|
|
@@ -8200,11 +8854,11 @@
|
|
|
8200
8854
|
if (typeof value == "number")
|
|
8201
8855
|
return name + " eq " + value;
|
|
8202
8856
|
else if (type == angularComponents.FieldType.Date)
|
|
8203
|
-
return name + " eq '" + moment$
|
|
8857
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8204
8858
|
else if (type == angularComponents.FieldType.Time)
|
|
8205
|
-
return name + " eq '" + moment$
|
|
8859
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8206
8860
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8207
|
-
return name + " eq '" + moment$
|
|
8861
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8208
8862
|
else if (type == angularComponents.FieldType.String)
|
|
8209
8863
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
8210
8864
|
else
|
|
@@ -8246,11 +8900,11 @@
|
|
|
8246
8900
|
if (typeof value == "number")
|
|
8247
8901
|
return name + " eq " + value;
|
|
8248
8902
|
else if (type == angularComponents.FieldType.Date)
|
|
8249
|
-
return name + " eq '" + moment$
|
|
8903
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8250
8904
|
else if (type == angularComponents.FieldType.Time)
|
|
8251
|
-
return name + " eq '" + moment$
|
|
8905
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8252
8906
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8253
|
-
return name + " eq '" + moment$
|
|
8907
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8254
8908
|
else if (type == angularComponents.FieldType.Enum)
|
|
8255
8909
|
return name + " eq '" + value + "'";
|
|
8256
8910
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -8737,7 +9391,7 @@
|
|
|
8737
9391
|
TransportadoraService,
|
|
8738
9392
|
PedidoVendaService,
|
|
8739
9393
|
PedidoVendaItemService,
|
|
8740
|
-
AgendaService,
|
|
9394
|
+
AgendaService$1,
|
|
8741
9395
|
ExpedicaoChegadaVeiculoOverride,
|
|
8742
9396
|
api.ConfirmationService,
|
|
8743
9397
|
ErpProcessService,
|
|
@@ -9018,7 +9672,7 @@
|
|
|
9018
9672
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
9019
9673
|
core.Injectable(),
|
|
9020
9674
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
9021
|
-
AgendaService,
|
|
9675
|
+
AgendaService$1,
|
|
9022
9676
|
ProcessoAvulsoService])
|
|
9023
9677
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
9024
9678
|
return ProcessoAvulsoChegadaVeiculoOverride;
|
|
@@ -9324,7 +9978,7 @@
|
|
|
9324
9978
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
9325
9979
|
core$1.TranslateService,
|
|
9326
9980
|
api.ConfirmationService,
|
|
9327
|
-
AgendaService,
|
|
9981
|
+
AgendaService$1,
|
|
9328
9982
|
ErpProcessService,
|
|
9329
9983
|
ErpFormConfigService,
|
|
9330
9984
|
HasChangeService])
|
|
@@ -9367,7 +10021,7 @@
|
|
|
9367
10021
|
return ProcessoAvulsoInfoComponent;
|
|
9368
10022
|
}());
|
|
9369
10023
|
|
|
9370
|
-
var moment$
|
|
10024
|
+
var moment$o = _moment;
|
|
9371
10025
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9372
10026
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9373
10027
|
var Safra = /** @class */ (function () {
|
|
@@ -9377,10 +10031,10 @@
|
|
|
9377
10031
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9378
10032
|
Safra.fromDto = function (safraDto, originEntity) {
|
|
9379
10033
|
var model = __assign({}, safraDto);
|
|
9380
|
-
model.competenciaInicial = model.competenciaInicial && moment$
|
|
9381
|
-
model.competenciaFinal = model.competenciaFinal && moment$
|
|
9382
|
-
model.createdDate = model.createdDate && moment$
|
|
9383
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
10034
|
+
model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
|
|
10035
|
+
model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
|
|
10036
|
+
model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
|
|
10037
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
|
|
9384
10038
|
var lookupSeparator = " - ";
|
|
9385
10039
|
var displayFields = [
|
|
9386
10040
|
"codigo",
|
|
@@ -9393,10 +10047,10 @@
|
|
|
9393
10047
|
};
|
|
9394
10048
|
Safra.toDto = function (safra, originEntity) {
|
|
9395
10049
|
var dto = __assign({}, safra);
|
|
9396
|
-
dto.competenciaInicial = dto.competenciaInicial && moment$
|
|
9397
|
-
dto.competenciaFinal = dto.competenciaFinal && moment$
|
|
9398
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9399
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10050
|
+
dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
|
|
10051
|
+
dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
|
|
10052
|
+
dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
|
|
10053
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
|
|
9400
10054
|
delete dto.label;
|
|
9401
10055
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
9402
10056
|
dto.empresa = Empresa.toDto(dto.empresa, "Safra");
|
|
@@ -9409,7 +10063,7 @@
|
|
|
9409
10063
|
|
|
9410
10064
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
9411
10065
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
9412
|
-
var moment$
|
|
10066
|
+
var moment$p = _moment;
|
|
9413
10067
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9414
10068
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9415
10069
|
var RecebimentoOrdemCompra = /** @class */ (function () {
|
|
@@ -9419,8 +10073,8 @@
|
|
|
9419
10073
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9420
10074
|
RecebimentoOrdemCompra.fromDto = function (recebimentoOrdemCompraDto, originEntity) {
|
|
9421
10075
|
var model = __assign({}, recebimentoOrdemCompraDto);
|
|
9422
|
-
model.createdDate = model.createdDate && moment$
|
|
9423
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
10076
|
+
model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
|
|
10077
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
|
|
9424
10078
|
var lookupSeparator = " - ";
|
|
9425
10079
|
var displayFields = [
|
|
9426
10080
|
''
|
|
@@ -9449,8 +10103,8 @@
|
|
|
9449
10103
|
};
|
|
9450
10104
|
RecebimentoOrdemCompra.toDto = function (recebimentoOrdemCompra, originEntity) {
|
|
9451
10105
|
var dto = __assign({}, recebimentoOrdemCompra);
|
|
9452
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9453
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10106
|
+
dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
|
|
10107
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
|
|
9454
10108
|
delete dto.label;
|
|
9455
10109
|
if (originEntity !== "Agenda" && dto.agenda)
|
|
9456
10110
|
dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
|
|
@@ -9513,7 +10167,7 @@
|
|
|
9513
10167
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
9514
10168
|
core.Injectable(),
|
|
9515
10169
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
9516
|
-
AgendaService,
|
|
10170
|
+
AgendaService$1,
|
|
9517
10171
|
RecebimentoOrdemCompraService])
|
|
9518
10172
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
9519
10173
|
return RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
@@ -9772,7 +10426,7 @@
|
|
|
9772
10426
|
this.mensagemBuscandoNota();
|
|
9773
10427
|
this.notaValidatorService.pesquisarDocumentoValidaNotaEmUso({
|
|
9774
10428
|
filialId: (this.formGroup.get("filial").value && this.formGroup.get("filial").value.id) || null,
|
|
9775
|
-
chaveDocumento: value.
|
|
10429
|
+
chaveDocumento: value.replace(/\s/g, "") || ""
|
|
9776
10430
|
}).pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () { return _this.loading = false; })).subscribe(function (response) {
|
|
9777
10431
|
_this.addNovaNota(response);
|
|
9778
10432
|
});
|
|
@@ -10672,7 +11326,7 @@
|
|
|
10672
11326
|
RecebimentoOrdemCompraFormComponent = __decorate([
|
|
10673
11327
|
core.Component({
|
|
10674
11328
|
selector: 'recebimento-ordem-compra-form',
|
|
10675
|
-
template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\">\n</p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-fluid ui-g\">\n\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input pInputText type=\"text\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{standalone: true}\" (blur)=\"onBlurChaveNotaFiscal()\">\n <!-- <input [class.ng-invalid]=\"erroChaveNota\" pInputText type=\"text\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{standalone: true}\" (blur)=\"onBlurChaveNotaFiscal()\"> -->\n <!-- <span class=\"input-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span> -->\n </div>\n\n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"filial\">{{'yms.erp.recebimento_ordem_compra_filial' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"transportadora\">{{'yms.erp.recebimento_ordem_compra_transportadora' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">\n {{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} /\n </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">\n {{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}\n </label>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\" styleClass=\"btn-erp-forms\" \n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" \n (onClick)=\"addFornecedor()\" [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\">\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\">\n </s-button>\n </p-header>\n \n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"fornecedor\">{{'yms.erp.recebimento_ordem_compra_fornecedor' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"fornecedorSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: fornecedorSearchTotalRecords }\">\n </s-lookup>\n <s-control-errors\n [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\">\n </s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"origem_mercadoria\">{{'yms.erp.recebimento_ordem_compra_mercadoria' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origem_mercadoria\" name=\"origem_mercadoria\" formControlName=\"origemMercadoria\" \n [searchFields]=\"origemMercadoriaSearchFields\" [searchGridFields]=\"origemMercadoriaSearchFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\" lookupDisplayField=\"label\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest(fornecedorForm, $event)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest(fornecedorForm, $event)\" \n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.origem_mercadoria_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: origemMercadoriaSearchTotalRecords }\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmOrdemCompra(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDaOrdemCompra($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar ordem de compra\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addOrdemCompra(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Ordens de Compra</h4>\n <p-table [value]=\"getOrdensCompra(fornecedorForm).controls\" [(selection)]=\"ordemCompraSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('ordemCompra').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Ordem {{rowData.get('ordemCompra').value.codigo}}, Filial {{rowData.get('ordemCompra').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerOrdemCompra(fornecedorForm, rowData)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n\n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </p-panel>\n </form>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"loading || disableButtonSave\">\n </s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"loading || disableButtonSave\">\n </s-button>\n </div>\n</div>",
|
|
11329
|
+
template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\">\n</p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-fluid ui-g\">\n\n <div class=\"ui-g-12\">\n <label for=\"chaveNotaFiscal\">{{'yms.erp.recebimento_chave_nota_fiscal' | translate}}</label>\n <input\n id=\"chaveNotaFiscal\"\n trim\n pInputText\n type=\"text\"\n [(ngModel)]=\"chaveNotaFiscal\"\n [ngModelOptions]=\"{standalone: true}\"\n (blur)=\"onBlurChaveNotaFiscal()\"\n >\n <!-- <input [class.ng-invalid]=\"erroChaveNota\" pInputText type=\"text\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{standalone: true}\" (blur)=\"onBlurChaveNotaFiscal()\"> -->\n <!-- <span class=\"input-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span> -->\n </div>\n\n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"filial\">{{'yms.erp.recebimento_ordem_compra_filial' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\" (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"transportadora\">{{'yms.erp.recebimento_ordem_compra_transportadora' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">\n {{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} /\n </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">\n {{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}\n </label>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\" styleClass=\"btn-erp-forms\" \n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" \n (onClick)=\"addFornecedor()\" [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\">\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\">\n </s-button>\n </p-header>\n \n <div class=\"ui-md-6 ui-g-12 required\">\n <label for=\"fornecedor\">{{'yms.erp.recebimento_ordem_compra_fornecedor' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"fornecedorSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: fornecedorSearchTotalRecords }\">\n </s-lookup>\n <s-control-errors\n [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\">\n </s-control-errors>\n </div>\n\n <div class=\"ui-md-6 ui-g-12\">\n <label for=\"origem_mercadoria\">{{'yms.erp.recebimento_ordem_compra_mercadoria' | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origem_mercadoria\" name=\"origem_mercadoria\" formControlName=\"origemMercadoria\" \n [searchFields]=\"origemMercadoriaSearchFields\" [searchGridFields]=\"origemMercadoriaSearchFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\" lookupDisplayField=\"label\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest(fornecedorForm, $event)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest(fornecedorForm, $event)\" \n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.origem_mercadoria_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: { value: origemMercadoriaSearchTotalRecords }\">\n </s-lookup>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmOrdemCompra(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDaOrdemCompra($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar ordem de compra\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addOrdemCompra(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Ordens de Compra</h4>\n <p-table [value]=\"getOrdensCompra(fornecedorForm).controls\" [(selection)]=\"ordemCompraSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('ordemCompra').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Ordem {{rowData.get('ordemCompra').value.codigo}}, Filial {{rowData.get('ordemCompra').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerOrdemCompra(fornecedorForm, rowData)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n\n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n\n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </p-panel>\n </form>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"loading || disableButtonSave\">\n </s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"loading || disableButtonSave\">\n </s-button>\n </div>\n</div>",
|
|
10676
11330
|
providers: [api.ConfirmationService],
|
|
10677
11331
|
styles: [".required-h3{font-size:1.17rem;font-weight:700}.required-h3::after{content:'*';color:#c13018;font-weight:400;margin-left:5px;font-size:14px}.error-required-message{color:#c13018;margin-top:5px;font-size:12px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.input-error{color:#c13018}.detail-pane{display:flex;flex-wrap:wrap;justify-content:flex-start}.detail-pane .detail-span{width:50%;padding:10px 0;display:flex;flex-direction:column}.detail-pane .detail-span .title{font-size:14px;opacity:.7;margin-bottom:4px}.detail-pane .detail-span .data{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nota-error{color:#c13018}"]
|
|
10678
11332
|
}),
|
|
@@ -10694,7 +11348,7 @@
|
|
|
10694
11348
|
NotaValidatorService,
|
|
10695
11349
|
api.ConfirmationService,
|
|
10696
11350
|
api.DialogService,
|
|
10697
|
-
AgendaService,
|
|
11351
|
+
AgendaService$1,
|
|
10698
11352
|
ErpProcessService,
|
|
10699
11353
|
ErpFormConfigService,
|
|
10700
11354
|
VerificaNotafiscal,
|
|
@@ -10741,7 +11395,7 @@
|
|
|
10741
11395
|
return RecebimentoOrdemCompraInfoComponent;
|
|
10742
11396
|
}());
|
|
10743
11397
|
|
|
10744
|
-
var moment$
|
|
11398
|
+
var moment$q = _moment;
|
|
10745
11399
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10746
11400
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10747
11401
|
var ContratoCompra = /** @class */ (function () {
|
|
@@ -10751,11 +11405,11 @@
|
|
|
10751
11405
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
10752
11406
|
ContratoCompra.fromDto = function (contratoCompraDto, originEntity) {
|
|
10753
11407
|
var model = __assign({}, contratoCompraDto);
|
|
10754
|
-
model.dataEmissao = model.dataEmissao && moment$
|
|
10755
|
-
model.dataInicioVigencia = model.dataInicioVigencia && moment$
|
|
10756
|
-
model.dataFimVigencia = model.dataFimVigencia && moment$
|
|
10757
|
-
model.createdDate = model.createdDate && moment$
|
|
10758
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11408
|
+
model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
|
|
11409
|
+
model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
|
|
11410
|
+
model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
|
|
11411
|
+
model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
|
|
11412
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
|
|
10759
11413
|
model.label = "N\u00FAmero: " + model.numero + ", Filial: " + model.filial.codigo;
|
|
10760
11414
|
if (originEntity !== "Empresa" && model.empresa)
|
|
10761
11415
|
model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
|
|
@@ -10771,11 +11425,11 @@
|
|
|
10771
11425
|
};
|
|
10772
11426
|
ContratoCompra.toDto = function (contratoCompra, originEntity) {
|
|
10773
11427
|
var dto = __assign({}, contratoCompra);
|
|
10774
|
-
dto.dataEmissao = dto.dataEmissao && moment$
|
|
10775
|
-
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$
|
|
10776
|
-
dto.dataFimVigencia = dto.dataFimVigencia && moment$
|
|
10777
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10778
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11428
|
+
dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
|
|
11429
|
+
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
|
|
11430
|
+
dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
|
|
11431
|
+
dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
|
|
11432
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
|
|
10779
11433
|
delete dto.label;
|
|
10780
11434
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
10781
11435
|
dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
|
|
@@ -10796,7 +11450,7 @@
|
|
|
10796
11450
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10797
11451
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10798
11452
|
|
|
10799
|
-
var moment$
|
|
11453
|
+
var moment$r = _moment;
|
|
10800
11454
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10801
11455
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10802
11456
|
var ContratoCompraItem = /** @class */ (function () {
|
|
@@ -10807,9 +11461,9 @@
|
|
|
10807
11461
|
ContratoCompraItem.fromDto = function (contratoCompraItemDto, originEntity) {
|
|
10808
11462
|
var model = __assign({}, contratoCompraItemDto);
|
|
10809
11463
|
model.sku = model.sku || {};
|
|
10810
|
-
model.dataCompetencia = model.dataCompetencia && moment$
|
|
10811
|
-
model.createdDate = model.createdDate && moment$
|
|
10812
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11464
|
+
model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
|
|
11465
|
+
model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
|
|
11466
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
|
|
10813
11467
|
model.label = model.sequencia + " - " + model.sku.descricao + " - " + model.sku.codigo;
|
|
10814
11468
|
if (originEntity !== "ContratoCompra" && model.contrato)
|
|
10815
11469
|
model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
|
|
@@ -10819,9 +11473,9 @@
|
|
|
10819
11473
|
};
|
|
10820
11474
|
ContratoCompraItem.toDto = function (contratoCompraItem, originEntity) {
|
|
10821
11475
|
var dto = __assign({}, contratoCompraItem);
|
|
10822
|
-
dto.dataCompetencia = dto.dataCompetencia && moment$
|
|
10823
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10824
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11476
|
+
dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
|
|
11477
|
+
dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
|
|
11478
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
|
|
10825
11479
|
delete dto.label;
|
|
10826
11480
|
if (originEntity !== "ContratoCompra" && dto.contrato)
|
|
10827
11481
|
dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
|
|
@@ -10834,7 +11488,7 @@
|
|
|
10834
11488
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10835
11489
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10836
11490
|
|
|
10837
|
-
var moment$
|
|
11491
|
+
var moment$s = _moment;
|
|
10838
11492
|
var ContratoFormComponent = /** @class */ (function () {
|
|
10839
11493
|
function ContratoFormComponent(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
|
|
10840
11494
|
this.dialogRef = dialogRef;
|
|
@@ -10928,7 +11582,7 @@
|
|
|
10928
11582
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
10929
11583
|
filter.empresaId = filial.empresa.id;
|
|
10930
11584
|
}
|
|
10931
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
11585
|
+
filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
|
|
10932
11586
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
10933
11587
|
this.contratoCompraService
|
|
10934
11588
|
.listContratosCompra(__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: {
|
|
@@ -11157,14 +11811,14 @@
|
|
|
11157
11811
|
return Transgenia;
|
|
11158
11812
|
}());
|
|
11159
11813
|
|
|
11160
|
-
var moment$
|
|
11814
|
+
var moment$t = _moment;
|
|
11161
11815
|
var RecebimentoContrato = /** @class */ (function () {
|
|
11162
11816
|
function RecebimentoContrato() {
|
|
11163
11817
|
}
|
|
11164
11818
|
RecebimentoContrato.fromDto = function (recebimentoDto, originEntity) {
|
|
11165
11819
|
var model = __assign({}, recebimentoDto);
|
|
11166
|
-
model.createdDate = model.createdDate && moment$
|
|
11167
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11820
|
+
model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
|
|
11821
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
|
|
11168
11822
|
var lookupSeparator = " - ";
|
|
11169
11823
|
var displayFields = [
|
|
11170
11824
|
"id",
|
|
@@ -11213,8 +11867,8 @@
|
|
|
11213
11867
|
};
|
|
11214
11868
|
RecebimentoContrato.toDto = function (recebimento, originEntity) {
|
|
11215
11869
|
var dto = __assign({}, recebimento);
|
|
11216
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11217
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11870
|
+
dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
|
|
11871
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
|
|
11218
11872
|
delete dto.label;
|
|
11219
11873
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
11220
11874
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
|
|
@@ -11248,7 +11902,7 @@
|
|
|
11248
11902
|
Situacao["ATIVO"] = "ATIVO";
|
|
11249
11903
|
})(Situacao || (Situacao = {}));
|
|
11250
11904
|
|
|
11251
|
-
var moment$
|
|
11905
|
+
var moment$u = _moment;
|
|
11252
11906
|
var RecebimentoFormComponent = /** @class */ (function () {
|
|
11253
11907
|
function RecebimentoFormComponent(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) {
|
|
11254
11908
|
var _this = this;
|
|
@@ -11589,7 +12243,7 @@
|
|
|
11589
12243
|
this.mensagemBuscandoNota();
|
|
11590
12244
|
this.notaValidatorService.pesquisarDocumentoValidaNotaEmUso({
|
|
11591
12245
|
filialId: (this.formGroup.get("filial").value && this.formGroup.get("filial").value.id) || null,
|
|
11592
|
-
chaveDocumento: value.
|
|
12246
|
+
chaveDocumento: value.replace(/\s/g, "")
|
|
11593
12247
|
}).pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () { return _this.loading = false; })).subscribe(function (response) { return _this.addNovaNota(response); });
|
|
11594
12248
|
}
|
|
11595
12249
|
};
|
|
@@ -11930,11 +12584,11 @@
|
|
|
11930
12584
|
if (typeof value == "number")
|
|
11931
12585
|
return name + " eq " + value;
|
|
11932
12586
|
else if (type == angularComponents.FieldType.Date)
|
|
11933
|
-
return name + " eq '" + moment$
|
|
12587
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11934
12588
|
else if (type == angularComponents.FieldType.Time)
|
|
11935
|
-
return name + " eq '" + moment$
|
|
12589
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11936
12590
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11937
|
-
return name + " eq '" + moment$
|
|
12591
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11938
12592
|
else if (type == angularComponents.FieldType.String)
|
|
11939
12593
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
11940
12594
|
else
|
|
@@ -11973,11 +12627,11 @@
|
|
|
11973
12627
|
if (typeof value == "number")
|
|
11974
12628
|
return name + " eq " + value;
|
|
11975
12629
|
else if (type == angularComponents.FieldType.Date)
|
|
11976
|
-
return name + " eq '" + moment$
|
|
12630
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11977
12631
|
else if (type == angularComponents.FieldType.Time)
|
|
11978
|
-
return name + " eq '" + moment$
|
|
12632
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11979
12633
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11980
|
-
return name + " eq '" + moment$
|
|
12634
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11981
12635
|
else if (type == angularComponents.FieldType.Enum)
|
|
11982
12636
|
return name + " eq '" + value + "'";
|
|
11983
12637
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12019,11 +12673,11 @@
|
|
|
12019
12673
|
if (typeof value == "number")
|
|
12020
12674
|
return name + " eq " + value;
|
|
12021
12675
|
else if (type == angularComponents.FieldType.Date)
|
|
12022
|
-
return name + " eq '" + moment$
|
|
12676
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12023
12677
|
else if (type == angularComponents.FieldType.Time)
|
|
12024
|
-
return name + " eq '" + moment$
|
|
12678
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12025
12679
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12026
|
-
return name + " eq '" + moment$
|
|
12680
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12027
12681
|
else if (type == angularComponents.FieldType.String)
|
|
12028
12682
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
12029
12683
|
else
|
|
@@ -12063,11 +12717,11 @@
|
|
|
12063
12717
|
if (typeof value == "number")
|
|
12064
12718
|
return name + " eq " + value;
|
|
12065
12719
|
else if (type == angularComponents.FieldType.Date)
|
|
12066
|
-
return name + " eq '" + moment$
|
|
12720
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12067
12721
|
else if (type == angularComponents.FieldType.Time)
|
|
12068
|
-
return name + " eq '" + moment$
|
|
12722
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12069
12723
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12070
|
-
return name + " eq '" + moment$
|
|
12724
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12071
12725
|
else if (type == angularComponents.FieldType.Enum)
|
|
12072
12726
|
return name + " eq '" + value + "'";
|
|
12073
12727
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12164,11 +12818,11 @@
|
|
|
12164
12818
|
if (typeof value == "number")
|
|
12165
12819
|
return name + " eq " + value;
|
|
12166
12820
|
else if (type == angularComponents.FieldType.Date)
|
|
12167
|
-
return name + " eq '" + moment$
|
|
12821
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12168
12822
|
else if (type == angularComponents.FieldType.Time)
|
|
12169
|
-
return name + " eq '" + moment$
|
|
12823
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12170
12824
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12171
|
-
return name + " eq '" + moment$
|
|
12825
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12172
12826
|
else if (type == angularComponents.FieldType.String)
|
|
12173
12827
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
12174
12828
|
else
|
|
@@ -12206,11 +12860,11 @@
|
|
|
12206
12860
|
if (typeof value == "number")
|
|
12207
12861
|
return name + " eq " + value;
|
|
12208
12862
|
else if (type == angularComponents.FieldType.Date)
|
|
12209
|
-
return name + " eq '" + moment$
|
|
12863
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12210
12864
|
else if (type == angularComponents.FieldType.Time)
|
|
12211
|
-
return name + " eq '" + moment$
|
|
12865
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12212
12866
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12213
|
-
return name + " eq '" + moment$
|
|
12867
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12214
12868
|
else if (type == angularComponents.FieldType.Enum)
|
|
12215
12869
|
return name + " eq '" + value + "'";
|
|
12216
12870
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12259,11 +12913,11 @@
|
|
|
12259
12913
|
if (typeof value == "number")
|
|
12260
12914
|
return name + " eq " + value;
|
|
12261
12915
|
else if (type == angularComponents.FieldType.Date)
|
|
12262
|
-
return name + " eq '" + moment$
|
|
12916
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12263
12917
|
else if (type == angularComponents.FieldType.Time)
|
|
12264
|
-
return name + " eq '" + moment$
|
|
12918
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12265
12919
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12266
|
-
return name + " eq '" + moment$
|
|
12920
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12267
12921
|
else if (type == angularComponents.FieldType.Enum)
|
|
12268
12922
|
return name + " eq '" + value + "'";
|
|
12269
12923
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -13014,7 +13668,7 @@
|
|
|
13014
13668
|
RecebimentoFormComponent = __decorate([
|
|
13015
13669
|
core.Component({
|
|
13016
13670
|
selector: 'recebimento-form',
|
|
13017
|
-
template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\"></p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"chaveNotaFiscal\">{{\"yms.erp.recebimento_chave_nota_fiscal\" | translate}}</label>\n <input [class.ng-invalid]=\"erroChaveNota\" [(ngModel)]=\"chaveNotaFiscal\" [ngModelOptions]=\"{ standalone: true }\" type=\"text\" id=\"chaveNotaFiscal\" name=\"chaveNotaFiscal\" pInputText autocomplete=\"off\" (blur)=\"onBlurChaveNotaFiscal()\"/>\n <span class=\"nota-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span>\n </div>\n </div>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div [attr.data-hidden]=\"true\" class=\"ui-g-12 ui-md-6\">\n <label for=\"id\">{{\"yms.erp.recebimento_id\" | translate}}</label>\n <input #idFormInput type=\"text\" id=\"id\" name=\"id\" pInputText formControlName=\"id\" autocomplete=\"off\" />\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"filial\">{{\"yms.erp.filial\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\"\n (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"produto\">{{\"yms.erp.recebimento_produto\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"produto\" name=\"produto\" formControlName=\"produto\"\n [searchFields]=\"produtoSearchFields\" [searchGridFields]=\"produtoSearchGridFields\"\n [searchGridData]=\"produtoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"produtoLookupSuggestions\"\n (onLookupRequest)=\"onProdutoLookupRequest($event)\"\n (onSearchRequest)=\"onProdutoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=produtoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_produto_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: produtoSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['produto']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"derivacao\">{{\"yms.erp.recebimento_derivacao\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"derivacao\" name=\"derivacao\" formControlName=\"derivacao\"\n [searchFields]=\"derivacaoSearchFields\" [searchGridFields]=\"derivacaoSearchGridFields\"\n [searchGridData]=\"derivacaoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"derivacaoLookupSuggestions\"\n (onLookupRequest)=\"onDerivacaoLookupRequest($event)\"\n (onSearchRequest)=\"onDerivacaoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=derivacaoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_derivacao_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: derivacaoSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transportadora\">{{\"yms.erp.recebimento_transportadora\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchGridFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transgenia\">{{\"yms.erp.recebimento_transgenia\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transgenia\" name=\"transgenia\"\n formControlName=\"transgenia\" [searchFields]=\"transgeniaSearchFields\"\n [searchGridFields]=\"transgeniaSearchGridFields\"\n [searchGridData]=\"transgeniaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transgeniaLookupSuggestions\"\n (onLookupRequest)=\"onTransgeniaLookupRequest($event)\"\n (onSearchRequest)=\"onTransgeniaSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transgeniaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_transgenia_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transgeniaSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button styleClass=\"btn-erp-forms\" *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\"\n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" (onClick)=\"addFornecedor()\"\n [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedoresNotaDuplicada\">{{ erroFornecedoresNotaDuplicada }}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\" >\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\"\n >\n </s-button>\n </p-header>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"fornecedor\">{{\"yms.erp.recebimento_fornecedor\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchGridFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" \n lookupDisplayField=\"label\"\n [searchTotalRecords]=fornecedorSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: fornecedorSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"origemMercadoria\">{{\"yms.erp.recebimento_origem_mercadoria\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origemMercadoria\" name=\"origemMercadoria\"\n formControlName=\"origemMercadoria\" [searchFields]=\"origemMercadoriaSearchFields\"\n [searchGridFields]=\"origemMercadoriaSearchGridFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest($event, fornecedorForm)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest($event, fornecedorForm)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_pessoa_endereco_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: origemMercadoriaSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('origemMercadoria')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmContrato(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDoContrato($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar contrato\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addContrato(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"tipoNotaFiscal\">{{\"yms.erp.recebimento_tipo_nota_fiscal\" | translate}}</label>\n <p-dropdown inputId=\"tipoNotaFiscal\" name=\"tipoNotaFiscal\" [options]=\"tiposNota\" formControlName=\"tipoNotaFiscal\">\n </p-dropdown>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Contratos</h4>\n <p-table [value]=\"getContratos(fornecedorForm).controls\" [(selection)]=\"contratoSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('contrato').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Contrato {{rowData.get('contrato').value.numero}}, Filial {{rowData.get('contrato').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerContrato(fornecedorForm, rowData)\"></span>\n </p-header>\n \n <div class=\"detail-pane\" *ngFor=\"let item of getItensContrato(rowData).controls\">\n <div class=\"detail-span\">\n <span class=\"title\">Sequ\u00EAncia</span>\n <span class=\"data\">{{item.value?.item.sequencia}}</span>\n </div>\n </div>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n \n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n </p-panel>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">{{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} / </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">{{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}</label>\n </div>\n </form>\n\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n </div>\n</div>",
|
|
13671
|
+
template: "<p-confirmDialog [acceptLabel]=\"'yes' | translate\" acceptIcon=\"\" [rejectLabel]=\"'no' | translate\" rejectIcon=\"\"></p-confirmDialog>\n<div *sLoadingState=\"loading\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"chaveNotaFiscal\">{{\"yms.erp.recebimento_chave_nota_fiscal\" | translate}}</label>\n <input\n id=\"chaveNotaFiscal\"\n trim\n [class.ng-invalid]=\"erroChaveNota\"\n [(ngModel)]=\"chaveNotaFiscal\"\n [ngModelOptions]=\"{ standalone: true }\"\n type=\"text\"\n name=\"chaveNotaFiscal\"\n pInputText\n autocomplete=\"off\"\n (blur)=\"onBlurChaveNotaFiscal()\"\n />\n <span class=\"nota-error\" *ngIf=\"erroChaveNota\">{{'yms.erp.produto_nota_error_detail' | translate}}</span>\n </div>\n </div>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <div [attr.data-hidden]=\"true\" class=\"ui-g-12 ui-md-6\">\n <label for=\"id\">{{\"yms.erp.recebimento_id\" | translate}}</label>\n <input #idFormInput type=\"text\" id=\"id\" name=\"id\" pInputText formControlName=\"id\" autocomplete=\"off\" />\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"filial\">{{\"yms.erp.filial\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"filial\" name=\"filial\" formControlName=\"filial\"\n [searchFields]=\"filialSearchFields\" [searchGridFields]=\"filialSearchGridFields\"\n [searchGridData]=\"filialSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"filialLookupSuggestions\"\n (onLookupRequest)=\"onFilialLookupRequest($event)\"\n (onSearchRequest)=\"onFilialSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"filialSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.filial_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: filialSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['filial']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"produto\">{{\"yms.erp.recebimento_produto\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"produto\" name=\"produto\" formControlName=\"produto\"\n [searchFields]=\"produtoSearchFields\" [searchGridFields]=\"produtoSearchGridFields\"\n [searchGridData]=\"produtoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"produtoLookupSuggestions\"\n (onLookupRequest)=\"onProdutoLookupRequest($event)\"\n (onSearchRequest)=\"onProdutoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=produtoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_produto_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: produtoSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"formGroup.controls['produto']\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"derivacao\">{{\"yms.erp.recebimento_derivacao\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"derivacao\" name=\"derivacao\" formControlName=\"derivacao\"\n [searchFields]=\"derivacaoSearchFields\" [searchGridFields]=\"derivacaoSearchGridFields\"\n [searchGridData]=\"derivacaoSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"derivacaoLookupSuggestions\"\n (onLookupRequest)=\"onDerivacaoLookupRequest($event)\"\n (onSearchRequest)=\"onDerivacaoSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=derivacaoSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_derivacao_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: derivacaoSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transportadora\">{{\"yms.erp.recebimento_transportadora\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transportadora\" name=\"transportadora\" formControlName=\"transportadora\"\n [searchFields]=\"transportadoraSearchFields\" [searchGridFields]=\"transportadoraSearchGridFields\"\n [searchGridData]=\"transportadoraSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transportadoraLookupSuggestions\"\n (onLookupRequest)=\"onTransportadoraLookupRequest($event)\"\n (onSearchRequest)=\"onTransportadoraSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transportadoraSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.transportadora_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transportadoraSearchTotalRecords}\">\n </s-lookup>\n </div>\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"transgenia\">{{\"yms.erp.recebimento_transgenia\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"transgenia\" name=\"transgenia\"\n formControlName=\"transgenia\" [searchFields]=\"transgeniaSearchFields\"\n [searchGridFields]=\"transgeniaSearchGridFields\"\n [searchGridData]=\"transgeniaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"transgeniaLookupSuggestions\"\n (onLookupRequest)=\"onTransgeniaLookupRequest($event)\"\n (onSearchRequest)=\"onTransgeniaSearchRequest($event)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"transgeniaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_transgenia_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: transgeniaSearchTotalRecords}\">\n </s-lookup>\n </div>\n\n <div class=\"ui-md-12\">\n <s-button styleClass=\"btn-erp-forms\" *ngIf=\"showButtons() && !!formGroup.get('filial').value && !createdByErp\"\n iconClass=\"fas fa-plus\" label=\"Adicionar fornecedor\" priority=\"secondary\" (onClick)=\"addFornecedor()\"\n [disabled]=\"disableButtonSave || !permissions.editar\"></s-button>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedores\">{{'Selecione ao menos um fornecedor para continuar' | translate}}</span>\n <span style=\"display: block;\" class=\"input-error\" *ngIf=\"erroFornecedoresNotaDuplicada\">{{ erroFornecedoresNotaDuplicada }}</span>\n </div>\n\n <form class=\"ui-g-12\" *ngFor=\"let fornecedorForm of getFornecedoresForm().controls; let i = index;\" [formGroup]=\"fornecedorForm\">\n <p-panel [style]=\"{position: 'relative'}\" styleClass=\"form-group ui-g-12 ui-md-12\" [toggleable]=\"true\" >\n\n <p-header>\n Fornecedor {{+i+1}}\n <s-button \n style=\"display: inline-block; position: absolute; right: 50px; top: 10px\" \n *ngIf=\"showButtons() && !createdByErp\"\n iconClass=\"fas fa-trash\"\n label=\"Remover\"\n priority=\"default\"\n [auxiliary]=\"true\"\n (onClick)=\"removeFornecedor(fornecedorForm)\"\n >\n </s-button>\n </p-header>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"fornecedor\">{{\"yms.erp.recebimento_fornecedor\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"fornecedor\" name=\"fornecedor\" formControlName=\"fornecedor\"\n [searchFields]=\"fornecedorSearchFields\" [searchGridFields]=\"fornecedorSearchGridFields\"\n [searchGridData]=\"fornecedorSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"fornecedorLookupSuggestions\"\n (onLookupRequest)=\"onFornecedorLookupRequest($event)\"\n (onSearchRequest)=\"onFornecedorSearchRequest($event)\" \n lookupDisplayField=\"label\"\n [searchTotalRecords]=fornecedorSearchTotalRecords\n [searchTitle]=\"'yms.erp.recebimento_fornecedor_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: fornecedorSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('fornecedor')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n <div class=\"ui-g-12 ui-md-6 required\">\n <label for=\"origemMercadoria\">{{\"yms.erp.recebimento_origem_mercadoria\" | translate}}</label>\n <s-lookup dataKey=\"id\" id=\"origemMercadoria\" name=\"origemMercadoria\"\n formControlName=\"origemMercadoria\" [searchFields]=\"origemMercadoriaSearchFields\"\n [searchGridFields]=\"origemMercadoriaSearchGridFields\"\n [searchGridData]=\"origemMercadoriaSearchGridData\" [multiple]=\"false\"\n [lookupSuggestions]=\"origemMercadoriaLookupSuggestions\"\n (onLookupRequest)=\"onOrigemMercadoriaLookupRequest($event, fornecedorForm)\"\n (onSearchRequest)=\"onOrigemMercadoriaSearchRequest($event, fornecedorForm)\" lookupDisplayField=\"label\"\n [searchTotalRecords]=\"origemMercadoriaSearchTotalRecords\"\n [searchTitle]=\"'yms.erp.recebimento_pessoa_endereco_search_title' | translate\"\n [searchEmptyTitle]=\"'yms.erp.nothing_found' | translate\"\n [filterLabel]=\"'yms.erp.filter' | translate\" [clearLabel]=\"'yms.erp.clear' | translate\"\n [cancelLabel]=\"'yms.erp.cancel' | translate\" [selectLabel]=\"'yms.erp.select' | translate\"\n [searchTotalRecordsLabel]=\"'yms.erp.total_records' | translate: {value: origemMercadoriaSearchTotalRecords}\">\n </s-lookup>\n <s-control-errors [control]=\"fornecedorForm.get('origemMercadoria')\"\n [errorMessages]=\"{ required: 'yms.erp.error_required' | translate }\"></s-control-errors>\n </div>\n\n <div class=\"ui-g-12\">\n <label for=\"fornecedorNotas\">Notas a serem adicionadas</label>\n <s-token-list id=\"fornecedorNotas\" [tokens]=\"fornecedorNotasTokens\" (tokenSelected)=\"addFornecedorNotasTokenEmContrato(fornecedorForm, $event)\" (tokenRemoved)=\"removeFornecedorNotasTokenDoContrato($event)\" [removableTokens]=\"true\"></s-token-list>\n </div>\n\n <div class=\"ui-g-12\">\n <s-button label=\"Adicionar nota\" *ngIf=\"showButtons()\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addNota(fornecedorForm)\" [disabled]=\"disableAdicionarNota()\"></s-button>\n <s-button label=\"Adicionar contrato\" *ngIf=\"showButtons() && !createdByErp\" styleClass=\"btn-erp-forms\" priority=\"secondary\" (onClick)=\"addContrato(fornecedorForm)\"></s-button>\n </div>\n\n <div class=\"ui-g-12 ui-md-6\">\n <label for=\"tipoNotaFiscal\">{{\"yms.erp.recebimento_tipo_nota_fiscal\" | translate}}</label>\n <p-dropdown inputId=\"tipoNotaFiscal\" name=\"tipoNotaFiscal\" [options]=\"tiposNota\" formControlName=\"tipoNotaFiscal\">\n </p-dropdown>\n </div>\n\n <div class=\"ui-g-12\">\n <h4>Contratos</h4>\n <p-table [value]=\"getContratos(fornecedorForm).controls\" [(selection)]=\"contratoSelecionado\">\n <ng-template pTemplate=\"body\" let-rowData>\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 50px\">\n <p-tableRadioButton [value]=\"rowData.get('contrato').value\"></p-tableRadioButton>\n </td>\n <td>\n <p-accordion>\n <p-accordionTab>\n <p-header>\n Contrato {{rowData.get('contrato').value.numero}}, Filial {{rowData.get('contrato').value.filial?.codigo}}\n\n <span *ngIf=\"showButtons() && !createdByErp\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerContrato(fornecedorForm, rowData)\"></span>\n </p-header>\n \n <div class=\"detail-pane\" *ngFor=\"let item of getItensContrato(rowData).controls\">\n <div class=\"detail-span\">\n <span class=\"title\">Sequ\u00EAncia</span>\n <span class=\"data\">{{item.value?.item.sequencia}}</span>\n </div>\n </div>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">Notas</span>\n <span class=\"data\">\n <p-accordion>\n <p-accordionTab *ngFor=\"let nota of getNotas(rowData).controls\">\n <p-header>\n {{nota.get('chaveNotaFiscal').value || (nota.get('serieNotaFiscal').value + ' - ' + nota.get('numeroNotaFiscal').value)}}\n\n <span *ngIf=\"showButtons()\" style=\"margin-left: 10px; float: right;\" class=\"fas fa-trash\" (click)=\"removerNota(fornecedorForm, rowData, nota)\"></span>\n </p-header>\n \n <div class=\"detail-pane\">\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">S\u00E9rie legal nota fiscal</span>\n <span class=\"data\">{{nota.value?.serieLegalNotaFiscal}}</span>\n </div>\n <div class=\"detail-span\">\n <span class=\"title\">N\u00FAmero nota fiscal</span>\n <span class=\"data\">{{nota.value?.numeroNotaFiscal}}</span>\n </div>\n </div>\n \n </p-accordionTab> \n </p-accordion>\n </span>\n </div>\n </div>\n </p-accordionTab>\n </p-accordion>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n </p-panel>\n\n <div class=\"ui-g-12\" style=\"text-align: right;\" *ngIf=\"totalEixosContratados || totalEixosComposicao\">\n <label for=\"totalEixosContratados\" float=\"right\" style=\"display: inline;\">{{totalEixosContratados}} {{'yms.erp.total_eixos_contratados' | translate}} / </label>\n <label for=\"totalEixosComposicao\" float=\"right\" style=\"display: inline;\">{{totalEixosComposicao}} {{'yms.erp.total_eixos_composicao' | translate}}</label>\n </div>\n </form>\n\n </div>\n </div>\n </form>\n\n <div style=\"margin: 5px 0 5px 0;\">\n <s-button *ngIf=\"showButtons()\" priority=\"primary\" [label]=\"'save' | translate\" (onClick)=\"onSave()\"\n [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n <s-button *ngIf=\"saveAndInitButton && showButtons()\" priority=\"primary\" [label]=\"'save_and_init' | translate\"\n (onClick)=\"onSave(true)\" [disabled]=\"disableButtonSave || !allPermissions.agenda.editar\"></s-button>\n </div>\n</div>",
|
|
13018
13672
|
providers: [
|
|
13019
13673
|
api.ConfirmationService,
|
|
13020
13674
|
],
|
|
@@ -13041,7 +13695,7 @@
|
|
|
13041
13695
|
NotaValidatorService,
|
|
13042
13696
|
TransgeniaService,
|
|
13043
13697
|
api.DialogService,
|
|
13044
|
-
AgendaService,
|
|
13698
|
+
AgendaService$1,
|
|
13045
13699
|
ErpProcessService,
|
|
13046
13700
|
ErpFormConfigService,
|
|
13047
13701
|
VerificaNotafiscal,
|
|
@@ -13158,6 +13812,7 @@
|
|
|
13158
13812
|
languages: highlightLanguages
|
|
13159
13813
|
}),
|
|
13160
13814
|
angular2Hotkeys.HotkeyModule.forRoot(),
|
|
13815
|
+
DirectivesModule
|
|
13161
13816
|
],
|
|
13162
13817
|
providers: [
|
|
13163
13818
|
FieldCustomizationService,
|
|
@@ -13206,7 +13861,7 @@
|
|
|
13206
13861
|
}());
|
|
13207
13862
|
|
|
13208
13863
|
exports.AgendaModule = AgendaModule;
|
|
13209
|
-
exports.AgendaService = AgendaService;
|
|
13864
|
+
exports.AgendaService = AgendaService$1;
|
|
13210
13865
|
exports.BalancaModule = BalancaModule;
|
|
13211
13866
|
exports.BalancasService = BalancasService;
|
|
13212
13867
|
exports.CamerasModule = CamerasModule;
|
|
@@ -13246,7 +13901,10 @@
|
|
|
13246
13901
|
exports.FormDescritor = FormDescritor;
|
|
13247
13902
|
exports.FormSamComponent = FormSamComponent;
|
|
13248
13903
|
exports.FormSamDescritor = FormSamDescritor;
|
|
13904
|
+
exports.FormWmsComponent = FormWmsComponent;
|
|
13905
|
+
exports.FormWmsDescritor = FormWmsDescritor;
|
|
13249
13906
|
exports.HasChangeService = HasChangeService;
|
|
13907
|
+
exports.INFORMACAOES_ADICIONAIS_HEADER = INFORMACAOES_ADICIONAIS_HEADER;
|
|
13250
13908
|
exports.InfoComponent = InfoComponent;
|
|
13251
13909
|
exports.InfoDescritor = InfoDescritor;
|
|
13252
13910
|
exports.IntegrationWebSocket = IntegrationWebSocket;
|
|
@@ -13293,42 +13951,54 @@
|
|
|
13293
13951
|
exports.VisitorListService = VisitorListService;
|
|
13294
13952
|
exports.VisualizarBalancaComponent = VisualizarBalancaComponent;
|
|
13295
13953
|
exports.VisualizarBalancaDescritor = VisualizarBalancaDescritor;
|
|
13954
|
+
exports.WmsModule = WmsModule;
|
|
13296
13955
|
exports.highlightLanguages = highlightLanguages;
|
|
13297
13956
|
exports.ɵa = Service;
|
|
13298
13957
|
exports.ɵb = CustomStompConfig;
|
|
13299
|
-
exports.ɵba =
|
|
13300
|
-
exports.ɵbb =
|
|
13301
|
-
exports.ɵbc =
|
|
13302
|
-
exports.ɵbd =
|
|
13303
|
-
exports.ɵbe =
|
|
13304
|
-
exports.ɵbf =
|
|
13305
|
-
exports.ɵbg =
|
|
13306
|
-
exports.ɵbh =
|
|
13307
|
-
exports.ɵbi =
|
|
13308
|
-
exports.ɵbj =
|
|
13309
|
-
exports.ɵbk =
|
|
13310
|
-
exports.ɵbl =
|
|
13311
|
-
exports.ɵbm =
|
|
13312
|
-
exports.ɵbn =
|
|
13313
|
-
exports.ɵbo =
|
|
13314
|
-
exports.ɵbp =
|
|
13315
|
-
exports.ɵbq =
|
|
13316
|
-
exports.ɵbr =
|
|
13317
|
-
exports.ɵbs =
|
|
13318
|
-
exports.ɵbt =
|
|
13319
|
-
exports.ɵbu =
|
|
13320
|
-
exports.ɵbv =
|
|
13321
|
-
exports.ɵbw =
|
|
13322
|
-
exports.ɵbx =
|
|
13323
|
-
exports.ɵby =
|
|
13324
|
-
exports.ɵbz =
|
|
13958
|
+
exports.ɵba = EntityService$2;
|
|
13959
|
+
exports.ɵbb = EntityService$1;
|
|
13960
|
+
exports.ɵbc = InsertKeyModule;
|
|
13961
|
+
exports.ɵbd = InsertKeyComponent;
|
|
13962
|
+
exports.ɵbe = IntegrationService;
|
|
13963
|
+
exports.ɵbf = RecebimentoFormComponent;
|
|
13964
|
+
exports.ɵbg = DerivacaoService;
|
|
13965
|
+
exports.ɵbh = NotaValidatorService;
|
|
13966
|
+
exports.ɵbi = TransgeniaService;
|
|
13967
|
+
exports.ɵbj = VerificaNotafiscal;
|
|
13968
|
+
exports.ɵbk = BuildFormField;
|
|
13969
|
+
exports.ɵbl = ExpedicaoFormComponent;
|
|
13970
|
+
exports.ɵbm = ExpedicaoInfoComponent;
|
|
13971
|
+
exports.ɵbn = RecebimentoInfoComponent;
|
|
13972
|
+
exports.ɵbo = DevolucaoFormComponent;
|
|
13973
|
+
exports.ɵbp = DevolucaoService;
|
|
13974
|
+
exports.ɵbq = DevolucaoChegadaVeiculoOverride;
|
|
13975
|
+
exports.ɵbr = RecebimentoOrdemCompraFormComponent;
|
|
13976
|
+
exports.ɵbs = OrdemCompraService;
|
|
13977
|
+
exports.ɵbt = RecebimentoOrdemCompraService;
|
|
13978
|
+
exports.ɵbu = RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
13979
|
+
exports.ɵbv = RecebimentoOrdemCompraInfoComponent;
|
|
13980
|
+
exports.ɵbw = DevolucaoInfoComponent;
|
|
13981
|
+
exports.ɵbx = ContratoFormComponent;
|
|
13982
|
+
exports.ɵby = OrdemCompraFormComponent;
|
|
13983
|
+
exports.ɵbz = ProcessoAvulsoFormComponent;
|
|
13325
13984
|
exports.ɵc = ViewImageComponent;
|
|
13326
|
-
exports.ɵca =
|
|
13327
|
-
exports.ɵcb =
|
|
13328
|
-
exports.ɵcc =
|
|
13329
|
-
exports.ɵcd =
|
|
13330
|
-
exports.ɵce =
|
|
13331
|
-
exports.ɵcf =
|
|
13985
|
+
exports.ɵca = ProcessoAvulsoService;
|
|
13986
|
+
exports.ɵcb = ProcessoAvulsoChegadaVeiculoOverride;
|
|
13987
|
+
exports.ɵcc = ProcessoAvulsoInfoComponent;
|
|
13988
|
+
exports.ɵcd = LogIntegracaoDescritor;
|
|
13989
|
+
exports.ɵce = LogIntegracaoComponent;
|
|
13990
|
+
exports.ɵcf = LogIntegracaoService;
|
|
13991
|
+
exports.ɵcg = DerivacaoModule;
|
|
13992
|
+
exports.ɵch = DevolucaoModule;
|
|
13993
|
+
exports.ɵci = OrdemCompraModule;
|
|
13994
|
+
exports.ɵcj = RecebimentoOrdemCompraModule;
|
|
13995
|
+
exports.ɵck = TransgeniaModule;
|
|
13996
|
+
exports.ɵcl = ProcessoAvulsoModule;
|
|
13997
|
+
exports.ɵcm = LogIntegracaoModule;
|
|
13998
|
+
exports.ɵcn = NotaFormModule;
|
|
13999
|
+
exports.ɵco = DirectivesModule;
|
|
14000
|
+
exports.ɵcp = TrimDirective;
|
|
14001
|
+
exports.ɵcq = NotaFormComponent;
|
|
13332
14002
|
exports.ɵd = LogDescritor;
|
|
13333
14003
|
exports.ɵe = LogsComponent;
|
|
13334
14004
|
exports.ɵf = PortariasService;
|
|
@@ -13346,12 +14016,12 @@
|
|
|
13346
14016
|
exports.ɵr = VisitanteFormComponent;
|
|
13347
14017
|
exports.ɵs = CredencialFormComponent;
|
|
13348
14018
|
exports.ɵt = FocusService;
|
|
13349
|
-
exports.ɵu =
|
|
13350
|
-
exports.ɵv =
|
|
13351
|
-
exports.ɵw =
|
|
13352
|
-
exports.ɵx =
|
|
13353
|
-
exports.ɵy =
|
|
13354
|
-
exports.ɵz =
|
|
14019
|
+
exports.ɵu = DocumentGridModule;
|
|
14020
|
+
exports.ɵv = DocumentGridComponent;
|
|
14021
|
+
exports.ɵw = DocumentService;
|
|
14022
|
+
exports.ɵx = RegisterDocumentModule;
|
|
14023
|
+
exports.ɵy = RegisterDocumentComponent;
|
|
14024
|
+
exports.ɵz = AgendaService;
|
|
13355
14025
|
|
|
13356
14026
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13357
14027
|
|