@seniorsistemas/yms-integration 1.34.0 → 1.35.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 +148 -59
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/seniorsistemas-yms-integration.js +44 -43
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +19 -6
- package/esm2015/src/wms/components/document-grid/document-grid.module.js +3 -1
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +64 -7
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +4 -2
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +3 -2
- package/esm2015/src/wms/components/document-list/document-list.component.js +7 -6
- package/esm2015/src/wms/entities/external-tenant/external-tenant-dto.js +1 -0
- package/esm2015/src/wms/entities/external-tenant/external-tenant.service.js +18 -0
- package/esm2015/src/wms/entities/invoice-condition/invoice-condition.js +2 -1
- package/esm5/seniorsistemas-yms-integration.js +44 -43
- package/esm5/src/wms/components/document-grid/document-grid.component.js +19 -6
- package/esm5/src/wms/components/document-grid/document-grid.module.js +3 -1
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +66 -7
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +4 -2
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +3 -2
- package/esm5/src/wms/components/document-list/document-list.component.js +7 -6
- package/esm5/src/wms/entities/external-tenant/external-tenant-dto.js +1 -0
- package/esm5/src/wms/entities/external-tenant/external-tenant.service.js +21 -0
- package/esm5/src/wms/entities/invoice-condition/invoice-condition.js +2 -1
- package/fesm2015/seniorsistemas-yms-integration.js +100 -17
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +105 -17
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +43 -42
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +6 -1
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +13 -1
- package/src/wms/entities/external-tenant/external-tenant-dto.d.ts +7 -0
- package/src/wms/entities/external-tenant/external-tenant.service.d.ts +9 -0
- package/src/wms/entities/invoice-condition/invoice-condition.d.ts +2 -1
|
@@ -3072,6 +3072,7 @@ var InvoiceCondition;
|
|
|
3072
3072
|
InvoiceCondition["PARTIAL_AUTHORIZED"] = "PARTIAL_AUTHORIZED";
|
|
3073
3073
|
InvoiceCondition["MANUAL_AUTHORIZED"] = "MANUAL_AUTHORIZED";
|
|
3074
3074
|
InvoiceCondition["DEVOLUTION"] = "DEVOLUTION";
|
|
3075
|
+
InvoiceCondition["REJECTED"] = "REJECTED";
|
|
3075
3076
|
})(InvoiceCondition || (InvoiceCondition = {}));
|
|
3076
3077
|
|
|
3077
3078
|
let DocumentGridComponent = class DocumentGridComponent {
|
|
@@ -3087,15 +3088,24 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
3087
3088
|
this.enableButtonIsClienteExterno = true;
|
|
3088
3089
|
this.summary = "yms.int.wms_saved_document_message_title";
|
|
3089
3090
|
this.ngUnsubscribe = new Subject();
|
|
3090
|
-
this.
|
|
3091
|
+
this.invoiceConditions = [
|
|
3091
3092
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
|
|
3092
3093
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
|
|
3093
3094
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
|
|
3094
3095
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
|
|
3095
|
-
{ label: this.translate.instant("yms.int.
|
|
3096
|
+
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolution"), value: InvoiceCondition.DEVOLUTION },
|
|
3097
|
+
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_rejected"), value: InvoiceCondition.REJECTED },
|
|
3096
3098
|
];
|
|
3097
3099
|
this.selection = [];
|
|
3098
3100
|
}
|
|
3101
|
+
getFilteredInvoiceConditions(invoiceConditions) {
|
|
3102
|
+
if (invoiceConditions === InvoiceCondition.AUTHORIZED) {
|
|
3103
|
+
return this.invoiceConditions.filter(cond => cond.value === InvoiceCondition.AUTHORIZED);
|
|
3104
|
+
}
|
|
3105
|
+
else {
|
|
3106
|
+
return this.invoiceConditions.filter(cond => cond.value !== InvoiceCondition.AUTHORIZED);
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3099
3109
|
ngOnInit() {
|
|
3100
3110
|
this.verifyClienteExterno();
|
|
3101
3111
|
this.getProcessTypeByScheduling();
|
|
@@ -3207,7 +3217,6 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
3207
3217
|
this.sucessMessage();
|
|
3208
3218
|
});
|
|
3209
3219
|
this.disabled = true;
|
|
3210
|
-
this.listDocuments(false);
|
|
3211
3220
|
}
|
|
3212
3221
|
else {
|
|
3213
3222
|
this.documentService.update(data.id, data).subscribe(() => {
|
|
@@ -3216,6 +3225,7 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
3216
3225
|
});
|
|
3217
3226
|
}
|
|
3218
3227
|
});
|
|
3228
|
+
this.listDocuments(false);
|
|
3219
3229
|
}
|
|
3220
3230
|
}
|
|
3221
3231
|
updateKeyByWms(data) {
|
|
@@ -3254,9 +3264,13 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
3254
3264
|
}
|
|
3255
3265
|
});
|
|
3256
3266
|
}
|
|
3267
|
+
notSavedDocuments() {
|
|
3268
|
+
return this.gridData.some(document => !document.id);
|
|
3269
|
+
}
|
|
3257
3270
|
listDocuments(isDelete) {
|
|
3258
3271
|
this.documentService.list({
|
|
3259
|
-
filterQuery: `schedulingId eq '${this.agenda.id}'
|
|
3272
|
+
filterQuery: `schedulingId eq '${this.agenda.id}'`,
|
|
3273
|
+
size: 100
|
|
3260
3274
|
})
|
|
3261
3275
|
.subscribe((contents) => {
|
|
3262
3276
|
this.gridData = isDelete ? this.gridData.filter(item => !item.id) : [];
|
|
@@ -3398,7 +3412,7 @@ __decorate([
|
|
|
3398
3412
|
DocumentGridComponent = __decorate([
|
|
3399
3413
|
Component({
|
|
3400
3414
|
selector: 'document-grid',
|
|
3401
|
-
template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!enableButtonIsClienteExterno\">\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 || !enableButtonIsClienteExterno\"\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(false)\"\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=\"key\" [
|
|
3415
|
+
template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!enableButtonIsClienteExterno\">\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 || !enableButtonIsClienteExterno\"\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(false)\"\n [disabled]=\"notSavedDocuments()\"\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=\"key\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n [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\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\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 *ngIf=\"isWmsSeniorConnect()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"key\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceKey\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceNumber\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceSerialNumber\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSeniorConnect() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"partnerName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSeniorConnect() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"partnerDocument\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"logistcUnitName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"logistcUnitDocument\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"ownerName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"ownerDocument\"]}}</span>\n </td>\n <td *ngIf=\"!isClienteExterno\" (click)=\"selection = [rowData]\">\n <p-dropdown\n inputId=\"invoiceCondition\"\n name=\"invoiceCondition\"\n [autoWidth]=\"false\"\n [options]=\"getFilteredInvoiceConditions(rowData?.invoiceCondition)\"\n appendTo=\"body\"\n [(ngModel)]=\"rowData.invoiceCondition\"\n (onChange)=\"disabled = false\">\n </p-dropdown>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'yms.main.total_records'\" \n [translateParams]=\"{ value: documentTotalRecords }\">\n </span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\"\n [isClienteExterno]=\"isClienteExterno\">\n </register-document> \n <insert-key\n [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleInvoiceKey\">\n </insert-key>\n </p-panel>\n</div>\n <div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\"\n [disabled]=\"disabled || !this.gridData || !enableButtonIsClienteExterno\"\n (click)=\"save()\">\n </s-button>\n </div>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling' | translate\">\n </s-empty-state>\n </div>\n</ng-template>",
|
|
3402
3416
|
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}.invoice-condition .p-dropdown{position:relative;z-index:1000}"]
|
|
3403
3417
|
}),
|
|
3404
3418
|
__metadata("design:paramtypes", [TranslateService,
|
|
@@ -3461,7 +3475,8 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3461
3475
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
|
|
3462
3476
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
|
|
3463
3477
|
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
|
|
3464
|
-
{ label: this.translate.instant("yms.int.
|
|
3478
|
+
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolution"), value: InvoiceCondition.DEVOLUTION },
|
|
3479
|
+
{ label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_rejected"), value: InvoiceCondition.REJECTED },
|
|
3465
3480
|
];
|
|
3466
3481
|
}
|
|
3467
3482
|
ngOnInit() {
|
|
@@ -3600,15 +3615,32 @@ RegisterDocumentModule = __decorate([
|
|
|
3600
3615
|
})
|
|
3601
3616
|
], RegisterDocumentModule);
|
|
3602
3617
|
|
|
3618
|
+
let ExternalTenantService = class ExternalTenantService extends EntityService {
|
|
3619
|
+
constructor(http, messageService) {
|
|
3620
|
+
super(http, messageService, 'yms/agenda/entities/externalTenant', '');
|
|
3621
|
+
this.http = http;
|
|
3622
|
+
this.messageService = messageService;
|
|
3623
|
+
}
|
|
3624
|
+
};
|
|
3625
|
+
ExternalTenantService = __decorate([
|
|
3626
|
+
Injectable(),
|
|
3627
|
+
__metadata("design:paramtypes", [HttpClient, MessageService])
|
|
3628
|
+
], ExternalTenantService);
|
|
3629
|
+
|
|
3603
3630
|
let InsertKeyComponent = class InsertKeyComponent {
|
|
3604
|
-
constructor(formBuilder, documentService, utils) {
|
|
3631
|
+
constructor(formBuilder, documentService, utils, confirmationService, translate, externalTenantService) {
|
|
3605
3632
|
this.formBuilder = formBuilder;
|
|
3606
3633
|
this.documentService = documentService;
|
|
3607
3634
|
this.utils = utils;
|
|
3635
|
+
this.confirmationService = confirmationService;
|
|
3636
|
+
this.translate = translate;
|
|
3637
|
+
this.externalTenantService = externalTenantService;
|
|
3608
3638
|
this.document = new EventEmitter();
|
|
3609
3639
|
this.visible = new EventEmitter();
|
|
3610
3640
|
this.visibleChange = new EventEmitter();
|
|
3611
3641
|
this.isLoading = false;
|
|
3642
|
+
this.isPartnerloading = false;
|
|
3643
|
+
this.ngUnsubscribe = new Subject();
|
|
3612
3644
|
}
|
|
3613
3645
|
ngOnInit() {
|
|
3614
3646
|
this.formGroup = this.formBuilder.group({
|
|
@@ -3652,6 +3684,7 @@ let InsertKeyComponent = class InsertKeyComponent {
|
|
|
3652
3684
|
else {
|
|
3653
3685
|
this.utils.translateMessage("error", "yms.int.wms_error_search_document_message_header", "yms.int.wms_error_unknown_search_document_message_content" + err.error.message);
|
|
3654
3686
|
}
|
|
3687
|
+
this.confirmInvoiceDialog();
|
|
3655
3688
|
return throwError(err);
|
|
3656
3689
|
}), finalize(() => {
|
|
3657
3690
|
this.isLoading = false;
|
|
@@ -3661,10 +3694,54 @@ let InsertKeyComponent = class InsertKeyComponent {
|
|
|
3661
3694
|
this.utils.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
|
|
3662
3695
|
return;
|
|
3663
3696
|
}
|
|
3664
|
-
|
|
3697
|
+
const document = content.contents[0];
|
|
3698
|
+
document.invoiceKey = this.formGroup.get('key').value;
|
|
3699
|
+
document.invoiceCondition = InvoiceCondition.AUTHORIZED;
|
|
3700
|
+
this.document.emit(document);
|
|
3701
|
+
this.formGroup.reset();
|
|
3702
|
+
});
|
|
3703
|
+
}
|
|
3704
|
+
confirmInvoiceDialog() {
|
|
3705
|
+
this.confirmationService.confirm({
|
|
3706
|
+
message: this.translate.instant("yms.int.wms_message_confirm_invoice_dialog"),
|
|
3707
|
+
acceptLabel: this.translate.instant("yms.int.wms_accept_confirm_invoice_dialog"),
|
|
3708
|
+
rejectLabel: this.translate.instant("yms.int.wms_reject_confirm_invoice_dialog"),
|
|
3709
|
+
header: this.translate.instant("yms.int.wms_header_content_confirm_invoice_dialog"),
|
|
3710
|
+
accept: () => this.buildInvoice()
|
|
3711
|
+
});
|
|
3712
|
+
}
|
|
3713
|
+
buildInvoice() {
|
|
3714
|
+
this.isPartnerloading = true;
|
|
3715
|
+
const partnerDocument = this.formGroup.get('partnerDocument').value;
|
|
3716
|
+
this.externalTenantService.list({
|
|
3717
|
+
filterQuery: `cnpj eq '${partnerDocument}'`
|
|
3718
|
+
})
|
|
3719
|
+
.pipe(takeUntil(this.ngUnsubscribe), finalize(() => {
|
|
3720
|
+
this.isPartnerloading = false;
|
|
3721
|
+
}))
|
|
3722
|
+
.subscribe((contents) => {
|
|
3723
|
+
const documentInvoice = this.createDocumentInvoice(contents);
|
|
3724
|
+
this.document.emit(documentInvoice);
|
|
3665
3725
|
this.formGroup.reset();
|
|
3666
3726
|
});
|
|
3667
3727
|
}
|
|
3728
|
+
createDocumentInvoice(partners) {
|
|
3729
|
+
const documentInvoice = {
|
|
3730
|
+
invoiceKey: this.formGroup.get('key').value,
|
|
3731
|
+
invoiceNumber: this.formGroup.get('invoiceNumber').value,
|
|
3732
|
+
invoiceSerialNumber: this.formGroup.get('invoiceSerie').value,
|
|
3733
|
+
partnerDocument: this.formGroup.get('partnerDocument').value,
|
|
3734
|
+
partnerName: null,
|
|
3735
|
+
type: null,
|
|
3736
|
+
key: null,
|
|
3737
|
+
schedulingId: null
|
|
3738
|
+
};
|
|
3739
|
+
if (partners.totalElements > 0) {
|
|
3740
|
+
const partner = partners.contents[0];
|
|
3741
|
+
documentInvoice.partnerName = partner.descricao;
|
|
3742
|
+
}
|
|
3743
|
+
return documentInvoice;
|
|
3744
|
+
}
|
|
3668
3745
|
validateKeyDetails(nf) {
|
|
3669
3746
|
if (!nf) {
|
|
3670
3747
|
this.keyErrorMessage = null;
|
|
@@ -3723,12 +3800,15 @@ __decorate([
|
|
|
3723
3800
|
InsertKeyComponent = __decorate([
|
|
3724
3801
|
Component({
|
|
3725
3802
|
selector: "insert-key",
|
|
3726
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" \n [draggable]=\"false\" (visibleChange)=\"cancel()\" (onShow)=\"onDialogShow()\">\n <p-header>{{'yms.int.wms_search_document' | translate}} {{ wmsSystem }}</p-header>\n <s-loading-state [loading]=\"isLoading\">\n <div class=\"flex py-2 justify-content-center spacing-bottom\"\n *ngIf=\"!isWmsSeniorConnect()\">\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 <span class=\"error-message\">{{keyErrorMessage | translate}}</span>\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"purchaseOrder\">{{'yms.int.wms_purchaseOrder' | translate}} </label>\n <input id=\"purchaseOrder\" class=\"size-input\" pInputText type=\"text\" formControlName=\"purchaseOrder\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceSerie\">{{'yms.int.wms_invoice_serie' | translate}}</label>\n <input id=\"invoiceSerie\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceSerie\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"partnerDocument\">{{'yms.int.wms_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" class=\"size-input\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'yms.int.wms_search' | 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 </s-loading-state>\n </p-dialog>\n\n</form>\n",
|
|
3803
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" \n [draggable]=\"false\" (visibleChange)=\"cancel()\" (onShow)=\"onDialogShow()\">\n <p-header>{{'yms.int.wms_search_document' | translate}} {{ wmsSystem }}</p-header>\n <s-loading-state [loading]=\"isLoading || isPartnerloading\">\n <div class=\"flex py-2 justify-content-center spacing-bottom\"\n *ngIf=\"!isWmsSeniorConnect()\">\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 <span class=\"error-message\">{{keyErrorMessage | translate}}</span>\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"purchaseOrder\">{{'yms.int.wms_purchaseOrder' | translate}} </label>\n <input id=\"purchaseOrder\" class=\"size-input\" pInputText type=\"text\" formControlName=\"purchaseOrder\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceSerie\">{{'yms.int.wms_invoice_serie' | translate}}</label>\n <input id=\"invoiceSerie\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceSerie\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"partnerDocument\">{{'yms.int.wms_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" class=\"size-input\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'yms.int.wms_search' | 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 </s-loading-state>\n </p-dialog>\n\n</form>\n",
|
|
3727
3804
|
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:480px}.error-message{color:#c13018;display:flex}"]
|
|
3728
3805
|
}),
|
|
3729
3806
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3730
3807
|
DocumentService,
|
|
3731
|
-
UtilsMessageService
|
|
3808
|
+
UtilsMessageService,
|
|
3809
|
+
ConfirmationService,
|
|
3810
|
+
TranslateService,
|
|
3811
|
+
ExternalTenantService])
|
|
3732
3812
|
], InsertKeyComponent);
|
|
3733
3813
|
|
|
3734
3814
|
let InsertKeyModule = class InsertKeyModule {
|
|
@@ -3745,7 +3825,8 @@ InsertKeyModule = __decorate([
|
|
|
3745
3825
|
LoadingStateModule
|
|
3746
3826
|
],
|
|
3747
3827
|
exports: [InsertKeyComponent],
|
|
3748
|
-
declarations: [InsertKeyComponent]
|
|
3828
|
+
declarations: [InsertKeyComponent],
|
|
3829
|
+
providers: [ExternalTenantService]
|
|
3749
3830
|
})
|
|
3750
3831
|
], InsertKeyModule);
|
|
3751
3832
|
|
|
@@ -3756,6 +3837,7 @@ DocumentGridModule = __decorate([
|
|
|
3756
3837
|
declarations: [DocumentGridComponent],
|
|
3757
3838
|
entryComponents: [DocumentGridComponent],
|
|
3758
3839
|
exports: [DocumentGridComponent],
|
|
3840
|
+
providers: [ExternalTenantService],
|
|
3759
3841
|
imports: [
|
|
3760
3842
|
CommonModule,
|
|
3761
3843
|
TranslateModule,
|
|
@@ -3848,8 +3930,9 @@ let DocumentListComponent = class DocumentListComponent extends DocumentListDesc
|
|
|
3848
3930
|
if (this.isWmsWIS()) {
|
|
3849
3931
|
return [
|
|
3850
3932
|
...this.getLabelsInvoice(),
|
|
3851
|
-
{ field: "
|
|
3852
|
-
{ field: "
|
|
3933
|
+
{ field: "invoiceKey", label: 'yms.int.wms_register_document_invoice_invoice_key' },
|
|
3934
|
+
{ field: "partnerName", label: 'yms.int.wms_register_document_invoice_partner_name' },
|
|
3935
|
+
{ field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partner_document' },
|
|
3853
3936
|
{ field: "code", label: 'yms.int.wms_register_document_invoice_code' },
|
|
3854
3937
|
{ field: "invoiceCondition", label: 'yms.int.wms_register_document_invoice_condition' },
|
|
3855
3938
|
{ field: "notes", label: 'yms.int.wms_register_document_invoice_notes' },
|
|
@@ -3858,8 +3941,8 @@ let DocumentListComponent = class DocumentListComponent extends DocumentListDesc
|
|
|
3858
3941
|
if (this.isWmsSeniorConnect()) {
|
|
3859
3942
|
return [
|
|
3860
3943
|
{ field: "key", label: 'yms.int.wms_purchaseOrder' },
|
|
3861
|
-
{ field: "partnerName", label: 'yms.int.
|
|
3862
|
-
{ field: "partnerDocument", label: 'yms.int.
|
|
3944
|
+
{ field: "partnerName", label: 'yms.int.wms_register_document_invoice_partner_name' },
|
|
3945
|
+
{ field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partner_document' },
|
|
3863
3946
|
];
|
|
3864
3947
|
}
|
|
3865
3948
|
return [
|
|
@@ -3918,7 +4001,7 @@ __decorate([
|
|
|
3918
4001
|
], DocumentListComponent.prototype, "wmsSystem", void 0);
|
|
3919
4002
|
DocumentListComponent = __decorate([
|
|
3920
4003
|
Component({
|
|
3921
|
-
template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n selectionMode=\"single\"\n [(selection)]=\"selected\"\n [value]=\"documents\"\n [columns]=\"getColumns\"\n dataKey=\"id\"\n rows=\"10\"\n [paginator]=\"true\"\n [totalRecords]=\"gridTotalRecords\"\n [lazy]=\"true\"\n [resizableColumns]=\"true\"\n (onLazyLoad)=\"updateGridData($event)\"\n *sLoadingState=\"gridLoading\"\n sortMode=\"multiple\"\n styleClass=\"sds-table-scrollable\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100, 200]\"\n paginatorDropdownScrollHeight=\"250px\"\n [scrollable]=\"true\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" class=\"table-col-width\">\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn [pSortableColumn]=\"col.field\" scope=\"col\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label | translate }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr *ngIf=\"isWmsWIS()\">\n <td>{{ rowData?.invoiceNumber || 'N/A' }}</td>\n <td>{{ rowData?.invoiceSerialNumber || 'N/A' }}</td>\n <td>{{ rowData?.partnerName || 'N/A' }}</td>\n <td>{{ rowData?.partnerDocument || 'N/A' }}</td>\n <td>{{ rowData?.code || 'N/A' }}</td>\n <td>\n {{ getInvoiceConditionTranslation(rowData?.invoiceCondition) | translate }}\n </td>\n <td>{{ rowData?.notes || 'N/A' }}</td>\n </tr>\n <tr *ngIf=\"isWmsSeniorConnect()\">\n <td>{{rowData?.key}}</td>\n <td>{{rowData?.partnerName}}</td>\n <td>{{rowData?.partnerDocument}}</td>\n </tr>\n <tr *ngIf=\"!isWmsWIS() && !isWmsSeniorConnect()\">\n <td>{{rowData?.invoiceKey}}</td>\n <td>{{rowData?.invoiceNumber}}</td>\n <td>{{rowData?.invoiceSerialNumber}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>\n {{ gridTotalRecords + \" \" + \n ('yms.int.wms_register_document_total_elements' | translate:{value: gridTotalRecords}) }}\n </span>\n </ng-template>\n </p-table>\n </div>\n</div>",
|
|
4004
|
+
template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n selectionMode=\"single\"\n [(selection)]=\"selected\"\n [value]=\"documents\"\n [columns]=\"getColumns\"\n dataKey=\"id\"\n rows=\"10\"\n [paginator]=\"true\"\n [totalRecords]=\"gridTotalRecords\"\n [lazy]=\"true\"\n [resizableColumns]=\"true\"\n (onLazyLoad)=\"updateGridData($event)\"\n *sLoadingState=\"gridLoading\"\n sortMode=\"multiple\"\n styleClass=\"sds-table-scrollable\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100, 200]\"\n paginatorDropdownScrollHeight=\"250px\"\n [scrollable]=\"true\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" class=\"table-col-width\">\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn [pSortableColumn]=\"col.field\" scope=\"col\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label | translate }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr *ngIf=\"isWmsWIS()\">\n <td>{{ rowData?.invoiceNumber || 'N/A' }}</td>\n <td>{{ rowData?.invoiceSerialNumber || 'N/A' }}</td>\n <td>{{ rowData?.invoiceKey || 'N/A' }}</td>\n <td>{{ rowData?.partnerName || 'N/A' }}</td>\n <td>{{ rowData?.partnerDocument || 'N/A' }}</td>\n <td>{{ rowData?.code || 'N/A' }}</td>\n <td>\n {{ getInvoiceConditionTranslation(rowData?.invoiceCondition) | translate }}\n </td>\n <td>{{ rowData?.notes || 'N/A' }}</td>\n </tr>\n <tr *ngIf=\"isWmsSeniorConnect()\">\n <td>{{rowData?.key}}</td>\n <td>{{rowData?.partnerName}}</td>\n <td>{{rowData?.partnerDocument}}</td>\n </tr>\n <tr *ngIf=\"!isWmsWIS() && !isWmsSeniorConnect()\">\n <td>{{rowData?.invoiceKey}}</td>\n <td>{{rowData?.invoiceNumber}}</td>\n <td>{{rowData?.invoiceSerialNumber}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>\n {{ gridTotalRecords + \" \" + \n ('yms.int.wms_register_document_total_elements' | translate:{value: gridTotalRecords}) }}\n </span>\n </ng-template>\n </p-table>\n </div>\n</div>",
|
|
3922
4005
|
styles: [".table-col-width{width:250px}"]
|
|
3923
4006
|
}),
|
|
3924
4007
|
__metadata("design:paramtypes", [DocumentService])
|
|
@@ -13568,5 +13651,5 @@ DockModule = __decorate([
|
|
|
13568
13651
|
})
|
|
13569
13652
|
], DockModule);
|
|
13570
13653
|
|
|
13571
|
-
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, UtilsMessageService as ɵbc,
|
|
13654
|
+
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, UtilsMessageService as ɵbc, ExternalTenantService as ɵbd, RegisterDocumentModule as ɵbe, RegisterDocumentComponent as ɵbf, InsertKeyModule as ɵbg, InsertKeyComponent as ɵbh, IntegrationService$1 as ɵbi, RecebimentoFormComponent as ɵbj, DerivacaoService as ɵbk, NotaValidatorService as ɵbl, TransgeniaService as ɵbm, VerificaNotafiscal as ɵbn, BuildFormField as ɵbo, ExpedicaoFormComponent as ɵbp, ExpedicaoInfoComponent as ɵbq, RecebimentoInfoComponent as ɵbr, DevolucaoFormComponent as ɵbs, DevolucaoService as ɵbt, DevolucaoChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraFormComponent as ɵbv, OrdemCompraService as ɵbw, RecebimentoOrdemCompraService as ɵbx, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵby, RecebimentoOrdemCompraInfoComponent as ɵbz, ViewImageComponent as ɵc, DevolucaoInfoComponent as ɵca, ContratoFormComponent as ɵcb, OrdemCompraFormComponent as ɵcc, ProcessoAvulsoFormComponent as ɵcd, ProcessoAvulsoService as ɵce, ProcessoAvulsoChegadaVeiculoOverride as ɵcf, ProcessoAvulsoInfoComponent as ɵcg, LogIntegracaoDescritor as ɵch, LogIntegracaoComponent as ɵci, LogIntegracaoService as ɵcj, DerivacaoModule as ɵck, DevolucaoModule as ɵcl, OrdemCompraModule as ɵcm, RecebimentoOrdemCompraModule as ɵcn, TransgeniaModule as ɵco, ProcessoAvulsoModule as ɵcp, LogIntegracaoModule as ɵcq, NotaFormModule as ɵcr, DirectivesModule as ɵcs, TrimDirective as ɵct, NotaFormComponent as ɵcu, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, AgendaService as ɵz };
|
|
13572
13655
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|