@seniorsistemas/yms-integration 1.21.0 → 1.23.0-c9dd79ae-4dab-4952-982d-6f13fd198efb
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 +65 -29
- 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/src/wms/components/document-grid/document-grid.component.js +49 -22
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +3 -3
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +14 -9
- package/esm2015/src/wms/entities/document/document-dto.js +1 -1
- package/esm2015/src/wms/entities/document/document.js +2 -2
- package/esm2015/src/wms/form/form-wms.component.js +6 -2
- package/esm5/src/wms/components/document-grid/document-grid.component.js +50 -22
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +3 -3
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +14 -9
- package/esm5/src/wms/entities/document/document-dto.js +1 -1
- package/esm5/src/wms/entities/document/document.js +2 -2
- package/esm5/src/wms/form/form-wms.component.js +6 -2
- package/fesm2015/seniorsistemas-yms-integration.js +66 -31
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +67 -31
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +7 -5
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +1 -1
- package/src/wms/entities/document/document-dto.d.ts +3 -1
- package/src/wms/entities/document/document.d.ts +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER,
|
|
1
|
+
import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER, forkJoin, of } from 'rxjs';
|
|
2
2
|
import { takeUntil, catchError, finalize, map, filter, mergeMap, tap, concatMap, switchMap, debounceTime } from 'rxjs/operators';
|
|
3
3
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
@@ -9,7 +9,7 @@ import { MessageModule } from 'primeng/message';
|
|
|
9
9
|
import { TableModule, Table } from 'primeng/table';
|
|
10
10
|
import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
11
11
|
import { MessageService, DynamicDialogRef, DynamicDialogConfig, DialogService, ConfirmationService } from 'primeng/api';
|
|
12
|
-
import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule,
|
|
12
|
+
import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule, Agendamento, ChegadaVeiculoOverride } from '@seniorsistemas/yms-routines';
|
|
13
13
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
14
14
|
import { PermissionsModule } from '@seniorsistemas/platform-components';
|
|
15
15
|
import { StompConfig, StompService } from '@stomp/ng2-stompjs';
|
|
@@ -2799,6 +2799,10 @@ const INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
|
2799
2799
|
let FormWmsDescritor = class FormWmsDescritor {
|
|
2800
2800
|
};
|
|
2801
2801
|
FormWmsDescritor = __decorate([
|
|
2802
|
+
Agendamento({
|
|
2803
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
2804
|
+
name: 'yms.integracao.wms'
|
|
2805
|
+
}),
|
|
2802
2806
|
ChegadaVeiculo({
|
|
2803
2807
|
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
2804
2808
|
name: 'yms.integracao.wms',
|
|
@@ -2863,13 +2867,15 @@ DocumentService = __decorate([
|
|
|
2863
2867
|
], DocumentService);
|
|
2864
2868
|
|
|
2865
2869
|
let DocumentGridComponent = class DocumentGridComponent {
|
|
2866
|
-
constructor(translate, documentService, messageService) {
|
|
2870
|
+
constructor(translate, documentService, messageService, confirmationService) {
|
|
2867
2871
|
this.translate = translate;
|
|
2868
2872
|
this.documentService = documentService;
|
|
2869
2873
|
this.messageService = messageService;
|
|
2874
|
+
this.confirmationService = confirmationService;
|
|
2870
2875
|
this.viewDocument = new EventEmitter();
|
|
2871
2876
|
this.gridData = [];
|
|
2872
2877
|
this.ngUnsubscribe = new Subject();
|
|
2878
|
+
this.selection = [];
|
|
2873
2879
|
}
|
|
2874
2880
|
ngOnInit() {
|
|
2875
2881
|
this.gridColumns = this.getGridColumns();
|
|
@@ -2884,6 +2890,7 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
2884
2890
|
{
|
|
2885
2891
|
label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
|
|
2886
2892
|
command: () => {
|
|
2893
|
+
this.selection = [];
|
|
2887
2894
|
this.visibleInvoiceKey = true;
|
|
2888
2895
|
},
|
|
2889
2896
|
icon: "fa fa-search"
|
|
@@ -2891,6 +2898,7 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
2891
2898
|
{
|
|
2892
2899
|
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
2893
2900
|
command: () => {
|
|
2901
|
+
this.selection = [];
|
|
2894
2902
|
this.edit = true;
|
|
2895
2903
|
this.visibleDocumentRegister = true;
|
|
2896
2904
|
},
|
|
@@ -2901,8 +2909,8 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
2901
2909
|
getProp(obj, path) {
|
|
2902
2910
|
return path.split(".").reduce((result, prop) => (result[prop] === undefined ? "" : result[prop]), obj);
|
|
2903
2911
|
}
|
|
2904
|
-
view(
|
|
2905
|
-
this.viewDocument.emit(selection);
|
|
2912
|
+
view() {
|
|
2913
|
+
this.viewDocument.emit(this.selection[0]);
|
|
2906
2914
|
this.visibleDocumentRegister = true;
|
|
2907
2915
|
this.edit = false;
|
|
2908
2916
|
}
|
|
@@ -2921,30 +2929,51 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
2921
2929
|
});
|
|
2922
2930
|
}
|
|
2923
2931
|
}
|
|
2924
|
-
onDelete(
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2932
|
+
onDelete() {
|
|
2933
|
+
this.confirmationService.confirm({
|
|
2934
|
+
message: this.translate.instant("delete_confirmation_message"),
|
|
2935
|
+
header: this.translate.instant("delete_confirmation_title"),
|
|
2936
|
+
accept: () => {
|
|
2937
|
+
this.removeDocumentIfIdUndfined();
|
|
2938
|
+
if (this.selection.length < 1) {
|
|
2939
|
+
return empty();
|
|
2940
|
+
}
|
|
2941
|
+
return forkJoin(this.selection.map(document => this.documentService.delete(document.id)))
|
|
2942
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
2943
|
+
.subscribe(() => {
|
|
2944
|
+
this.messageService.add({
|
|
2945
|
+
severity: "success",
|
|
2946
|
+
summary: this.translate.instant("deleted_message_title"),
|
|
2947
|
+
detail: this.translate.instant("deleted_message_content"),
|
|
2948
|
+
});
|
|
2949
|
+
this.gridData = [];
|
|
2950
|
+
this.listDocuments();
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
});
|
|
2954
|
+
}
|
|
2955
|
+
removeDocumentIfIdUndfined() {
|
|
2956
|
+
this.selection.forEach((value, index) => {
|
|
2957
|
+
if (!value.id) {
|
|
2958
|
+
this.gridData.splice(index, 1);
|
|
2959
|
+
this.selection.splice(index, 1);
|
|
2960
|
+
}
|
|
2961
|
+
});
|
|
2934
2962
|
}
|
|
2935
2963
|
listDocuments() {
|
|
2936
2964
|
this.documentService.list({
|
|
2937
2965
|
filterQuery: `schedulingId eq '${this.agenda.id}'`
|
|
2938
2966
|
})
|
|
2939
2967
|
.subscribe((contents) => {
|
|
2968
|
+
this.gridData = [];
|
|
2940
2969
|
if (contents.totalElements > 0) {
|
|
2941
2970
|
this.gridData = contents.contents;
|
|
2942
2971
|
this.documentTotalRecords = contents.totalElements;
|
|
2943
2972
|
}
|
|
2944
2973
|
else {
|
|
2945
|
-
this.disabled = true;
|
|
2946
2974
|
this.documentTotalRecords = this.gridData.length;
|
|
2947
2975
|
}
|
|
2976
|
+
this.disabled = true;
|
|
2948
2977
|
this.loading = false;
|
|
2949
2978
|
});
|
|
2950
2979
|
}
|
|
@@ -2957,7 +2986,7 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
2957
2986
|
{ field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
|
|
2958
2987
|
{ field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
|
|
2959
2988
|
{ field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
|
|
2960
|
-
{ field: "
|
|
2989
|
+
{ field: "code", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
|
|
2961
2990
|
];
|
|
2962
2991
|
}
|
|
2963
2992
|
message(severity, summary, detail) {
|
|
@@ -3011,12 +3040,13 @@ __decorate([
|
|
|
3011
3040
|
DocumentGridComponent = __decorate([
|
|
3012
3041
|
Component({
|
|
3013
3042
|
selector: 'document-grid',
|
|
3014
|
-
template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection
|
|
3015
|
-
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}"]
|
|
3043
|
+
template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"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[\"code\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [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]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
3044
|
+
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px}"]
|
|
3016
3045
|
}),
|
|
3017
3046
|
__metadata("design:paramtypes", [TranslateService,
|
|
3018
3047
|
DocumentService,
|
|
3019
|
-
MessageService
|
|
3048
|
+
MessageService,
|
|
3049
|
+
ConfirmationService])
|
|
3020
3050
|
], DocumentGridComponent);
|
|
3021
3051
|
|
|
3022
3052
|
const moment$4 = _moment;
|
|
@@ -3040,7 +3070,7 @@ class Document {
|
|
|
3040
3070
|
"partnerName",
|
|
3041
3071
|
"partnerDocument",
|
|
3042
3072
|
"notes",
|
|
3043
|
-
"
|
|
3073
|
+
"code",
|
|
3044
3074
|
"createdBy",
|
|
3045
3075
|
"createdDate",
|
|
3046
3076
|
"lastModifiedBy",
|
|
@@ -3184,15 +3214,20 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3184
3214
|
visibilityConfig() {
|
|
3185
3215
|
if (!this.edit && this.visible) {
|
|
3186
3216
|
this.formGroup.disable();
|
|
3187
|
-
this.setValuesFormGroup(this.viewDocument);
|
|
3217
|
+
this.setValuesFormGroup(this.viewDocument[0]);
|
|
3188
3218
|
this.setValueForPartner();
|
|
3189
3219
|
this.hideSaveButton = true;
|
|
3190
3220
|
return this.visible;
|
|
3191
3221
|
}
|
|
3192
|
-
|
|
3222
|
+
if (this.formGroup !== undefined) {
|
|
3223
|
+
this.formGroup.enable();
|
|
3224
|
+
this.setValueForPartner();
|
|
3225
|
+
this.hideSaveButton = false;
|
|
3226
|
+
}
|
|
3193
3227
|
}
|
|
3194
3228
|
close() {
|
|
3195
3229
|
this.visibleChange.emit(false);
|
|
3230
|
+
this.formGroup.reset();
|
|
3196
3231
|
}
|
|
3197
3232
|
setValuesFormGroup(document) {
|
|
3198
3233
|
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
@@ -3201,7 +3236,7 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3201
3236
|
this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
|
|
3202
3237
|
this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
|
|
3203
3238
|
this.formGroup.get('notes').setValue(document.notes);
|
|
3204
|
-
this.formGroup.get('
|
|
3239
|
+
this.formGroup.get('code').setValue(document.code);
|
|
3205
3240
|
this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
|
|
3206
3241
|
this.formGroup.get('ownerName').setValue(document.ownerName);
|
|
3207
3242
|
}
|
|
@@ -3224,7 +3259,7 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3224
3259
|
partnerName: [undefined],
|
|
3225
3260
|
partnerDocument: [undefined],
|
|
3226
3261
|
notes: [undefined],
|
|
3227
|
-
|
|
3262
|
+
code: [undefined],
|
|
3228
3263
|
});
|
|
3229
3264
|
}
|
|
3230
3265
|
save() {
|
|
@@ -3241,14 +3276,14 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3241
3276
|
successMessage() {
|
|
3242
3277
|
this.messageService.add({
|
|
3243
3278
|
severity: "success",
|
|
3244
|
-
summary: this.translateService.instant("saved_message_title"),
|
|
3245
|
-
detail: this.translateService.instant("
|
|
3279
|
+
summary: this.translateService.instant("yms.saved_message_title"),
|
|
3280
|
+
detail: this.translateService.instant("yms.int.wms_success_message_description"),
|
|
3246
3281
|
});
|
|
3247
3282
|
}
|
|
3248
3283
|
};
|
|
3249
3284
|
__decorate([
|
|
3250
3285
|
Input(),
|
|
3251
|
-
__metadata("design:type",
|
|
3286
|
+
__metadata("design:type", Array)
|
|
3252
3287
|
], RegisterDocumentComponent.prototype, "viewDocument", void 0);
|
|
3253
3288
|
__decorate([
|
|
3254
3289
|
Input(),
|
|
@@ -3273,7 +3308,7 @@ __decorate([
|
|
|
3273
3308
|
RegisterDocumentComponent = __decorate([
|
|
3274
3309
|
Component({
|
|
3275
3310
|
selector: "register-document",
|
|
3276
|
-
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"
|
|
3311
|
+
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=\"code\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"code\" pInputText type=\"text\" formControlName=\"code\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\" (click)=\"save()\" [attr.data-hidden]=\"hideSaveButton\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
|
|
3277
3312
|
}),
|
|
3278
3313
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3279
3314
|
MessageService,
|
|
@@ -3339,7 +3374,7 @@ let InsertKeyComponent = class InsertKeyComponent {
|
|
|
3339
3374
|
return;
|
|
3340
3375
|
}
|
|
3341
3376
|
this.document.emit(content.contents[0]);
|
|
3342
|
-
this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.
|
|
3377
|
+
this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_success_message_description");
|
|
3343
3378
|
this.formGroup.reset();
|
|
3344
3379
|
});
|
|
3345
3380
|
}
|
|
@@ -3369,7 +3404,7 @@ __decorate([
|
|
|
3369
3404
|
InsertKeyComponent = __decorate([
|
|
3370
3405
|
Component({
|
|
3371
3406
|
selector: "insert-key",
|
|
3372
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.
|
|
3407
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.wms_insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.int.wms_insert_key_label' | translate}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
|
|
3373
3408
|
styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:550px}"]
|
|
3374
3409
|
}),
|
|
3375
3410
|
__metadata("design:paramtypes", [FormBuilder,
|