visorus-erp-core 17.3.0 → 18.0.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/esm2022/lib/app.module.mjs +72 -70
- package/esm2022/lib/components/acreedor/select/select-acreedor.component.mjs +69 -0
- package/esm2022/lib/components/acreedor/services/acreedor.service.mjs +9 -9
- package/esm2022/lib/components/acreedor/services/acreedorCuentaContable.mjs +9 -9
- package/esm2022/lib/components/agente/services/agente.service.mjs +9 -9
- package/esm2022/lib/components/almacen/services/almacen.service.mjs +9 -9
- package/esm2022/lib/components/banco/services/banco.service.mjs +9 -9
- package/esm2022/lib/components/caja/session-create/session-create.component.mjs +19 -102
- package/esm2022/lib/components/caja/sessionCaja.service.mjs +9 -9
- package/esm2022/lib/components/catalogoTipo/services/catalogoTipo.service.mjs +9 -9
- package/esm2022/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs +9 -9
- package/esm2022/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs +9 -9
- package/esm2022/lib/components/claveMovimiento/services/claveMovimiento.service.mjs +9 -9
- package/esm2022/lib/components/cliente/select/select-cliente.component.mjs +85 -0
- package/esm2022/lib/components/cliente/services/cliente.service.mjs +9 -9
- package/esm2022/lib/components/cliente/services/clienteCuentaBanco.service.mjs +9 -9
- package/esm2022/lib/components/cliente/services/clienteFlete.service.mjs +9 -9
- package/esm2022/lib/components/contacto/services/datoContacto.service.mjs +9 -9
- package/esm2022/lib/components/dato-direccion/services/datoDireccion.service.mjs +9 -9
- package/esm2022/lib/components/departamento/services/departamento.service.mjs +9 -9
- package/esm2022/lib/components/empresa/services/empresa.service.mjs +9 -9
- package/esm2022/lib/components/error404/error404.component.mjs +7 -15
- package/esm2022/lib/components/flete/services/flete.service.mjs +9 -9
- package/esm2022/lib/components/formaPago/services/FormaPago.service.mjs +9 -9
- package/esm2022/lib/components/loading/loading.component.mjs +9 -25
- package/esm2022/lib/components/loading/loading.service.mjs +11 -11
- package/esm2022/lib/components/loading-screen/loading-screen.component.mjs +9 -14
- package/esm2022/lib/components/loading-screen/loading-screen.service.mjs +9 -9
- package/esm2022/lib/components/login-modal/login-modal.component.mjs +13 -96
- package/esm2022/lib/components/login-modal/login-modal.service.mjs +11 -11
- package/esm2022/lib/components/moneda/services/moneda.service.mjs +9 -9
- package/esm2022/lib/components/pdfModal/pdf-modal.component.mjs +7 -30
- package/esm2022/lib/components/pdfModal/pdf-modal.service.mjs +13 -13
- package/esm2022/lib/components/persona-fisica/services/personaFisica.service.mjs +9 -9
- package/esm2022/lib/components/proveedor/select/select-proveedor.component.mjs +68 -0
- package/esm2022/lib/components/proveedor/services/proveedor.service.mjs +9 -9
- package/esm2022/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs +9 -9
- package/esm2022/lib/components/proveedor/services/proveedorFlete.service.mjs +9 -9
- package/esm2022/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +13 -102
- package/esm2022/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs +9 -9
- package/esm2022/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +19 -377
- package/esm2022/lib/components/selecciona-articulo/stock.service.mjs +9 -9
- package/esm2022/lib/components/serieDocumento/services/serieDocumento.service.mjs +9 -9
- package/esm2022/lib/components/tipo-contacto/services/tipoContacto.service.mjs +9 -9
- package/esm2022/lib/components/ubicacion/services/ubicacion.service.mjs +9 -9
- package/esm2022/lib/contabilidad/componentes/cclista/cclista.component.mjs +13 -93
- package/esm2022/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs +16 -40
- package/esm2022/lib/contabilidad/servicios/cuentacontable.service.mjs +9 -9
- package/esm2022/lib/httpInterceptor/httpInterceptor.mjs +6 -6
- package/esm2022/lib/importComponents.mjs +8 -2
- package/esm2022/lib/services/auth.service.mjs +13 -13
- package/esm2022/lib/services/authenticated.service.mjs +9 -9
- package/esm2022/lib/services/canActivateGuard.service.ts.mjs +9 -9
- package/esm2022/lib/services/catalogo-adicional.service.mjs +9 -9
- package/esm2022/lib/services/controlAcceso.service.mjs +13 -13
- package/esm2022/lib/services/file.service.mjs +9 -9
- package/esm2022/lib/services/init.service.mjs +9 -9
- package/esm2022/lib/services/message.service.mjs +9 -9
- package/esm2022/lib/services/paginate.service.mjs +9 -9
- package/esm2022/lib/services/personaMoral.service.mjs +9 -9
- package/esm2022/lib/services/versionCheck.service.mjs +9 -9
- package/esm2022/public_api.mjs +4 -1
- package/fesm2022/visorus-erp-core.mjs +840 -1433
- package/fesm2022/visorus-erp-core.mjs.map +1 -1
- package/lib/app.module.d.ts +42 -39
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +26 -0
- package/lib/components/cliente/select/select-cliente.component.d.ts +27 -0
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +26 -0
- package/lib/importComponents.d.ts +5 -2
- package/package.json +8 -11
- package/public_api.d.ts +3 -0
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter,
|
|
2
|
+
import { Injectable, EventEmitter, Output, Input, Component, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
5
5
|
import * as i4 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i3 from 'primeng/api';
|
|
8
8
|
import { ConfirmationService } from 'primeng/api';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i19 from 'primeng/treetable';
|
|
10
10
|
import { TreeTableModule } from 'primeng/treetable';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i21 from 'primeng/button';
|
|
12
12
|
import { ButtonModule } from 'primeng/button';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i22 from 'primeng/inputtext';
|
|
14
14
|
import { InputTextModule } from 'primeng/inputtext';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i10 from '@angular/forms';
|
|
16
16
|
import { FormsModule } from '@angular/forms';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i33 from 'primeng/dialog';
|
|
18
18
|
import { DialogModule } from 'primeng/dialog';
|
|
19
19
|
import { Subject, throwError, of } from 'rxjs';
|
|
20
20
|
import { catchError, tap, debounceTime } from 'rxjs/operators';
|
|
21
21
|
import * as i1$1 from 'ngx-toastr';
|
|
22
22
|
import { ToastrModule } from 'ngx-toastr';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i3$1 from '@ngx-translate/core';
|
|
24
24
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
25
|
-
import * as i3$
|
|
26
|
-
import * as
|
|
25
|
+
import * as i3$2 from '@angular/platform-browser';
|
|
26
|
+
import * as i18 from 'primeng/table';
|
|
27
27
|
import { TableModule } from 'primeng/table';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i27 from 'primeng/paginator';
|
|
29
29
|
import { PaginatorModule } from 'primeng/paginator';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i23 from 'primeng/dropdown';
|
|
31
31
|
import { DropdownModule } from 'primeng/dropdown';
|
|
32
|
-
import * as
|
|
32
|
+
import * as i24 from 'primeng/inputmask';
|
|
33
33
|
import { InputMaskModule } from 'primeng/inputmask';
|
|
34
|
-
import * as
|
|
34
|
+
import * as i25 from 'primeng/messages';
|
|
35
35
|
import { MessagesModule } from 'primeng/messages';
|
|
36
|
-
import * as
|
|
36
|
+
import * as i26 from 'primeng/message';
|
|
37
37
|
import { MessageModule } from 'primeng/message';
|
|
38
|
-
import * as
|
|
38
|
+
import * as i28 from 'primeng/confirmdialog';
|
|
39
39
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
40
|
-
import * as
|
|
40
|
+
import * as i29 from 'primeng/progressbar';
|
|
41
41
|
import { ProgressBarModule } from 'primeng/progressbar';
|
|
42
|
-
import * as
|
|
42
|
+
import * as i30 from 'primeng/tristatecheckbox';
|
|
43
43
|
import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
|
|
44
|
-
import * as
|
|
44
|
+
import * as i31 from 'primeng/keyfilter';
|
|
45
45
|
import { KeyFilterModule } from 'primeng/keyfilter';
|
|
46
|
-
import * as
|
|
46
|
+
import * as i32 from 'primeng/inputswitch';
|
|
47
47
|
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
48
|
-
import * as
|
|
48
|
+
import * as i34 from 'primeng/tabview';
|
|
49
49
|
import { TabViewModule } from 'primeng/tabview';
|
|
50
|
-
import * as
|
|
50
|
+
import * as i20 from 'primeng/calendar';
|
|
51
51
|
import { CalendarModule } from 'primeng/calendar';
|
|
52
|
-
import * as
|
|
52
|
+
import * as i35 from 'primeng/panel';
|
|
53
53
|
import { PanelModule } from 'primeng/panel';
|
|
54
|
-
import * as
|
|
54
|
+
import * as i17 from 'primeng/autocomplete';
|
|
55
55
|
import { AutoCompleteModule } from 'primeng/autocomplete';
|
|
56
|
-
import * as
|
|
56
|
+
import * as i38 from 'primeng/fieldset';
|
|
57
57
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
58
|
-
import * as
|
|
58
|
+
import * as i16 from 'primeng/checkbox';
|
|
59
59
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
60
|
-
import * as
|
|
60
|
+
import * as i39 from 'primeng/tree';
|
|
61
61
|
import { TreeModule } from 'primeng/tree';
|
|
62
|
-
import * as
|
|
62
|
+
import * as i15 from 'primeng/radiobutton';
|
|
63
63
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
64
|
-
import * as
|
|
64
|
+
import * as i40 from 'primeng/tabmenu';
|
|
65
65
|
import { TabMenuModule } from 'primeng/tabmenu';
|
|
66
|
-
import * as
|
|
66
|
+
import * as i14 from 'primeng/overlaypanel';
|
|
67
67
|
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
|
68
|
-
import * as
|
|
68
|
+
import * as i13 from 'primeng/tooltip';
|
|
69
69
|
import { TooltipModule } from 'primeng/tooltip';
|
|
70
|
-
import * as
|
|
70
|
+
import * as i12 from 'primeng/card';
|
|
71
71
|
import { CardModule } from 'primeng/card';
|
|
72
|
-
import * as
|
|
72
|
+
import * as i41 from 'primeng/menubar';
|
|
73
73
|
import { MenubarModule } from 'primeng/menubar';
|
|
74
|
-
import * as
|
|
74
|
+
import * as i37 from 'primeng/splitbutton';
|
|
75
75
|
import { SplitButtonModule } from 'primeng/splitbutton';
|
|
76
|
-
import * as
|
|
76
|
+
import * as i36 from 'primeng/toolbar';
|
|
77
77
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
78
78
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
79
|
-
import * as i3$
|
|
79
|
+
import * as i3$3 from '@angular/router';
|
|
80
80
|
|
|
81
81
|
class GlobalService {
|
|
82
82
|
constructor(http) {
|
|
@@ -184,82 +184,16 @@ class CuentaContableService extends CrudService {
|
|
|
184
184
|
obtieneCuentasContablesRecursivo() {
|
|
185
185
|
return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
|
|
186
186
|
}
|
|
187
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
188
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
189
|
-
}
|
|
190
|
-
(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const _c0$6 = () => ({ width: "100%" });
|
|
198
|
-
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
199
|
-
i0.ɵɵelementStart(0, "tr")(1, "th", 5);
|
|
200
|
-
i0.ɵɵtext(2, "Cuenta contable");
|
|
201
|
-
i0.ɵɵelementEnd();
|
|
202
|
-
i0.ɵɵelementStart(3, "th", 5);
|
|
203
|
-
i0.ɵɵtext(4, "Descripci\u00F3n");
|
|
204
|
-
i0.ɵɵelementEnd();
|
|
205
|
-
i0.ɵɵelementStart(5, "th", 6);
|
|
206
|
-
i0.ɵɵtext(6, "Naturaleza");
|
|
207
|
-
i0.ɵɵelementEnd();
|
|
208
|
-
i0.ɵɵelementStart(7, "th", 7);
|
|
209
|
-
i0.ɵɵtext(8, "Tipo");
|
|
210
|
-
i0.ɵɵelementEnd();
|
|
211
|
-
i0.ɵɵelementStart(9, "th", 8);
|
|
212
|
-
i0.ɵɵtext(10, "Acciones");
|
|
213
|
-
i0.ɵɵelementEnd()();
|
|
214
|
-
} }
|
|
215
|
-
function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
216
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
217
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
218
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const rowData_r2 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectCuentaContable(rowData_r2)); });
|
|
219
|
-
i0.ɵɵelementEnd();
|
|
220
|
-
} }
|
|
221
|
-
function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
222
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
223
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
224
|
-
i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const rowData_r2 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectCuentaContable(rowData_r2)); });
|
|
225
|
-
i0.ɵɵelementEnd();
|
|
226
|
-
} }
|
|
227
|
-
function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
228
|
-
i0.ɵɵelementStart(0, "tr")(1, "td", 9);
|
|
229
|
-
i0.ɵɵelement(2, "p-treeTableToggler", 10);
|
|
230
|
-
i0.ɵɵtext(3);
|
|
231
|
-
i0.ɵɵelementEnd();
|
|
232
|
-
i0.ɵɵelementStart(4, "td", 9);
|
|
233
|
-
i0.ɵɵtext(5);
|
|
234
|
-
i0.ɵɵelementEnd();
|
|
235
|
-
i0.ɵɵelementStart(6, "td", 11);
|
|
236
|
-
i0.ɵɵtext(7);
|
|
237
|
-
i0.ɵɵelementEnd();
|
|
238
|
-
i0.ɵɵelementStart(8, "td", 12);
|
|
239
|
-
i0.ɵɵtext(9);
|
|
240
|
-
i0.ɵɵelementEnd();
|
|
241
|
-
i0.ɵɵelementStart(10, "td", 13)(11, "div", 14);
|
|
242
|
-
i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15)(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
|
|
243
|
-
i0.ɵɵelementEnd()()();
|
|
244
|
-
} if (rf & 2) {
|
|
245
|
-
const rowNode_r5 = ctx.$implicit;
|
|
246
|
-
const rowData_r2 = ctx.rowData;
|
|
247
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
248
|
-
i0.ɵɵadvance(2);
|
|
249
|
-
i0.ɵɵproperty("rowNode", rowNode_r5);
|
|
250
|
-
i0.ɵɵadvance();
|
|
251
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.cuentaContable, " ");
|
|
252
|
-
i0.ɵɵadvance(2);
|
|
253
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.descripcion, " ");
|
|
254
|
-
i0.ɵɵadvance(2);
|
|
255
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.naturaleza, " ");
|
|
256
|
-
i0.ɵɵadvance(2);
|
|
257
|
-
i0.ɵɵtextInterpolate1(" ", rowData_r2.tipo, " ");
|
|
258
|
-
i0.ɵɵadvance(3);
|
|
259
|
-
i0.ɵɵproperty("ngIf", ctx_r2.typeAccount == 1 && rowData_r2.cuentaRegistro);
|
|
260
|
-
i0.ɵɵadvance();
|
|
261
|
-
i0.ɵɵproperty("ngIf", ctx_r2.typeAccount == 2 && !rowData_r2.cuentaRegistro);
|
|
262
|
-
} }
|
|
187
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CuentaContableService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
188
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CuentaContableService, providedIn: 'root' }); }
|
|
189
|
+
}
|
|
190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CuentaContableService, decorators: [{
|
|
191
|
+
type: Injectable,
|
|
192
|
+
args: [{
|
|
193
|
+
providedIn: 'root'
|
|
194
|
+
}]
|
|
195
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
196
|
+
|
|
263
197
|
class CclistaComponent {
|
|
264
198
|
constructor(_cuentaContableService) {
|
|
265
199
|
this._cuentaContableService = _cuentaContableService;
|
|
@@ -418,37 +352,20 @@ class CclistaComponent {
|
|
|
418
352
|
return listAccounts;
|
|
419
353
|
}
|
|
420
354
|
}
|
|
421
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
422
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i16.TreeTable, i16.TreeTableToggler, i18.ButtonDirective, i19.InputText, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgModel] }); }
|
|
436
|
-
}
|
|
437
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
|
|
438
|
-
type: Component,
|
|
439
|
-
args: [{ selector: 'lib-cclista', template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>" }]
|
|
440
|
-
}], () => [{ type: CuentaContableService }], { isShared: [{
|
|
441
|
-
type: Input
|
|
442
|
-
}], typeAccount: [{
|
|
443
|
-
type: Input
|
|
444
|
-
}], evSelectedAccount: [{
|
|
445
|
-
type: Output
|
|
446
|
-
}] }); })();
|
|
447
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CclistaComponent, { className: "CclistaComponent" }); })();
|
|
448
|
-
|
|
449
|
-
const _c0$5 = ["dialog"];
|
|
450
|
-
const _c1$4 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
451
|
-
const _c2 = a0 => ({ "height": a0 });
|
|
355
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CclistaComponent, deps: [{ token: CuentaContableService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
356
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CclistaComponent, selector: "lib-cclista", inputs: { isShared: "isShared", typeAccount: "typeAccount" }, outputs: { evSelectedAccount: "evSelectedAccount" }, ngImport: i0, template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i19.TreeTable, selector: "p-treeTable", inputs: ["columns", "style", "styleClass", "tableStyle", "tableStyleClass", "autoLayout", "lazy", "lazyLoadOnInit", "paginator", "rows", "first", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "customSort", "selectionMode", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "compareSelectionBy", "rowHover", "loading", "loadingIcon", "showLoader", "scrollable", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "frozenColumns", "resizableColumns", "columnResizeMode", "reorderableColumns", "contextMenu", "rowTrackBy", "filters", "globalFilterFields", "filterDelay", "filterMode", "filterLocale", "paginatorLocale", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "value", "virtualRowHeight"], outputs: ["selectionChange", "contextMenuSelectionChange", "onFilter", "onNodeExpand", "onNodeCollapse", "onPage", "onSort", "onLazyLoad", "sortFunction", "onColResize", "onColReorder", "onNodeSelect", "onNodeUnselect", "onContextMenuSelect", "onHeaderCheckboxToggle", "onEditInit", "onEditComplete", "onEditCancel"] }, { kind: "component", type: i19.TreeTableToggler, selector: "p-treeTableToggler", inputs: ["rowNode"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]" }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
357
|
+
}
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CclistaComponent, decorators: [{
|
|
359
|
+
type: Component,
|
|
360
|
+
args: [{ selector: 'lib-cclista', standalone: false, template: "<input type=\"text\" style=\"width: 100%;\" pInputText placeholder=\"Cuenta o descripci\u00F3n\" [(ngModel)]=\"query\" (keyup)=\"filterAccounts($event)\">\n\n<div style=\"padding: 10px;\">\n <p-treeTable [value]=\"cuentasContables?cuentasContables:tempAccounts\" [scrollable]=\"true\" [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" [resizableColumns]=\"true\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 150px;\">Cuenta contable</th>\n <th style=\"width: 150px;\">Descripci\u00F3n</th>\n <th style=\"width: 90px;\">Naturaleza</th>\n <th style=\"width: 60px;\">Tipo</th>\n <th style=\"width: 200px;\">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowNode let-rowData=\"rowData\" style=\"width: 100%;\">\n <tr>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n <p-treeTableToggler [rowNode]=\"rowNode\"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 150px;\">\n {{rowData.descripcion}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 90px;\">\n {{rowData.naturaleza}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 60px;\">\n {{rowData.tipo}}\n </td>\n <td class=\"ui-resizable-column\" style=\"width: 200px;\">\n <div class=\"button-row\">\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==1 && rowData.cuentaRegistro\"></button>\n <button pButton type=\"button\" icon=\"pi pi-check\" class=\"ui-button-raised ui-button-success\" (click)=\"selectCuentaContable(rowData)\" *ngIf=\"typeAccount==2 && !rowData.cuentaRegistro\"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>" }]
|
|
361
|
+
}], ctorParameters: () => [{ type: CuentaContableService }], propDecorators: { isShared: [{
|
|
362
|
+
type: Input
|
|
363
|
+
}], typeAccount: [{
|
|
364
|
+
type: Input
|
|
365
|
+
}], evSelectedAccount: [{
|
|
366
|
+
type: Output
|
|
367
|
+
}] } });
|
|
368
|
+
|
|
452
369
|
class CcseleccionDialogComponent {
|
|
453
370
|
constructor() {
|
|
454
371
|
this.cuentasContables = [];
|
|
@@ -469,43 +386,22 @@ class CcseleccionDialogComponent {
|
|
|
469
386
|
hiddenDialog(evt) {
|
|
470
387
|
this.evSelectedAccount.emit(null);
|
|
471
388
|
}
|
|
472
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
473
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
|
|
489
|
-
i0.ɵɵadvance();
|
|
490
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
|
|
491
|
-
i0.ɵɵadvance();
|
|
492
|
-
i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
|
|
493
|
-
} }, dependencies: [i4.NgStyle, i30.Dialog, CclistaComponent] }); }
|
|
494
|
-
}
|
|
495
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
496
|
-
type: Component,
|
|
497
|
-
args: [{ selector: 'lib-ccseleccion-dialog', template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>" }]
|
|
498
|
-
}], () => [], { dialog: [{
|
|
499
|
-
type: ViewChild,
|
|
500
|
-
args: ["dialog", { static: true }]
|
|
501
|
-
}], tipoCuenta: [{
|
|
502
|
-
type: Input
|
|
503
|
-
}], displayShowCuentas: [{
|
|
504
|
-
type: Input
|
|
505
|
-
}], evSelectedAccount: [{
|
|
506
|
-
type: Output
|
|
507
|
-
}] }); })();
|
|
508
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CcseleccionDialogComponent, { className: "CcseleccionDialogComponent" }); })();
|
|
389
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CcseleccionDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
390
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CcseleccionDialogComponent, selector: "lib-ccseleccion-dialog", inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }], ngImport: i0, template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: CclistaComponent, selector: "lib-cclista", inputs: ["isShared", "typeAccount"], outputs: ["evSelectedAccount"] }] }); }
|
|
391
|
+
}
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CcseleccionDialogComponent, decorators: [{
|
|
393
|
+
type: Component,
|
|
394
|
+
args: [{ selector: 'lib-ccseleccion-dialog', standalone: false, template: "<p-dialog header=\"Selecciona cuenta contable\" [(visible)]=\"displayShowCuentas\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog($event)\" [blockScroll]=\"true\" [draggable]=\"false\" [blockScroll]=\"true\"\n [maximizable]=\"true\">\n <div class=\"padding10\" [ngStyle]=\"{'height': maxH+200+'px'}\">\n <lib-cclista [isShared]=\"true\" [typeAccount]=\"tipoCuenta\" (evSelectedAccount)=\"getAccount($event)\"></lib-cclista>\n </div>\n</p-dialog>" }]
|
|
395
|
+
}], ctorParameters: () => [], propDecorators: { dialog: [{
|
|
396
|
+
type: ViewChild,
|
|
397
|
+
args: ["dialog", { static: true }]
|
|
398
|
+
}], tipoCuenta: [{
|
|
399
|
+
type: Input
|
|
400
|
+
}], displayShowCuentas: [{
|
|
401
|
+
type: Input
|
|
402
|
+
}], evSelectedAccount: [{
|
|
403
|
+
type: Output
|
|
404
|
+
}] } });
|
|
509
405
|
|
|
510
406
|
const contaComponents = [
|
|
511
407
|
CclistaComponent,
|
|
@@ -519,17 +415,17 @@ class LoginModalService {
|
|
|
519
415
|
showModal() {
|
|
520
416
|
this.modal.emit(true);
|
|
521
417
|
}
|
|
522
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
523
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
418
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
419
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalService, providedIn: 'root' }); }
|
|
524
420
|
}
|
|
525
|
-
(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalService, decorators: [{
|
|
422
|
+
type: Injectable,
|
|
423
|
+
args: [{
|
|
424
|
+
providedIn: 'root'
|
|
425
|
+
}]
|
|
426
|
+
}], propDecorators: { modal: [{
|
|
427
|
+
type: Output
|
|
428
|
+
}] } });
|
|
533
429
|
|
|
534
430
|
class LoadingScreenService {
|
|
535
431
|
constructor() {
|
|
@@ -549,15 +445,15 @@ class LoadingScreenService {
|
|
|
549
445
|
stopLoading() {
|
|
550
446
|
this.loading = false;
|
|
551
447
|
}
|
|
552
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
553
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
448
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingScreenService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
449
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingScreenService, providedIn: 'root' }); }
|
|
554
450
|
}
|
|
555
|
-
(
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingScreenService, decorators: [{
|
|
452
|
+
type: Injectable,
|
|
453
|
+
args: [{
|
|
454
|
+
providedIn: 'root'
|
|
455
|
+
}]
|
|
456
|
+
}] });
|
|
561
457
|
|
|
562
458
|
class httpInterceptor {
|
|
563
459
|
constructor(loginModalService, toastrService, loadingScreenService) {
|
|
@@ -632,32 +528,24 @@ class httpInterceptor {
|
|
|
632
528
|
}
|
|
633
529
|
}
|
|
634
530
|
}
|
|
635
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
636
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
531
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: httpInterceptor, deps: [{ token: LoginModalService }, { token: i1$1.ToastrService }, { token: LoadingScreenService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
532
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: httpInterceptor }); }
|
|
637
533
|
}
|
|
638
|
-
(
|
|
639
|
-
|
|
640
|
-
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: httpInterceptor, decorators: [{
|
|
535
|
+
type: Injectable
|
|
536
|
+
}], ctorParameters: () => [{ type: LoginModalService }, { type: i1$1.ToastrService }, { type: LoadingScreenService }] });
|
|
641
537
|
|
|
642
538
|
class Error404Component {
|
|
643
539
|
constructor() { }
|
|
644
540
|
ngOnInit() {
|
|
645
541
|
}
|
|
646
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
647
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
i0.ɵɵelementEnd()()()()()();
|
|
654
|
-
} }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] }); }
|
|
655
|
-
}
|
|
656
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Error404Component, [{
|
|
657
|
-
type: Component,
|
|
658
|
-
args: [{ selector: 'app-error404', template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }]
|
|
659
|
-
}], () => [], null); })();
|
|
660
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Error404Component, { className: "Error404Component" }); })();
|
|
542
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Error404Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
543
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: Error404Component, selector: "app-error404", ngImport: i0, template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }); }
|
|
544
|
+
}
|
|
545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Error404Component, decorators: [{
|
|
546
|
+
type: Component,
|
|
547
|
+
args: [{ selector: 'app-error404', standalone: false, template: "<div class=\"col-md-12 sec_sof\">\n <div class=\"row\">\n <div class=\"col col-center\">\n <div class=\"center\">\n <div class=\"error\">\n Error 404\n </div>\n <div class=\"col-12\">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n", styles: [".error{font-size:70px}\n"] }]
|
|
548
|
+
}], ctorParameters: () => [] });
|
|
661
549
|
|
|
662
550
|
class LoadingService {
|
|
663
551
|
constructor() {
|
|
@@ -675,17 +563,17 @@ class LoadingService {
|
|
|
675
563
|
stop() {
|
|
676
564
|
this.loading.emit(false);
|
|
677
565
|
}
|
|
678
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
679
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
566
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
567
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingService, providedIn: 'root' }); }
|
|
680
568
|
}
|
|
681
|
-
(
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingService, decorators: [{
|
|
570
|
+
type: Injectable,
|
|
571
|
+
args: [{
|
|
572
|
+
providedIn: 'root'
|
|
573
|
+
}]
|
|
574
|
+
}], propDecorators: { loading: [{
|
|
575
|
+
type: Output
|
|
576
|
+
}] } });
|
|
689
577
|
|
|
690
578
|
class LoadingComponent {
|
|
691
579
|
constructor(loadingService) {
|
|
@@ -705,31 +593,15 @@ class LoadingComponent {
|
|
|
705
593
|
}
|
|
706
594
|
});
|
|
707
595
|
}
|
|
708
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
709
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
i0.ɵɵpipe(13, "translate");
|
|
718
|
-
i0.ɵɵelementEnd()()()()()()()();
|
|
719
|
-
} if (rf & 2) {
|
|
720
|
-
i0.ɵɵadvance(10);
|
|
721
|
-
i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
|
|
722
|
-
i0.ɵɵadvance(2);
|
|
723
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
724
|
-
} }, dependencies: [i2.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:_ngcontent-%COMP%_spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] }); }
|
|
725
|
-
}
|
|
726
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
|
|
727
|
-
type: Component,
|
|
728
|
-
args: [{ selector: 'loading', template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader .code{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
729
|
-
}], () => [{ type: LoadingService }], { logo_loading: [{
|
|
730
|
-
type: Input
|
|
731
|
-
}] }); })();
|
|
732
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingComponent, { className: "LoadingComponent" }); })();
|
|
596
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingComponent, deps: [{ token: LoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
597
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoadingComponent, selector: "loading", inputs: { logo_loading: "logo_loading" }, ngImport: i0, template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader .code{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"], dependencies: [{ kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
598
|
+
}
|
|
599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
600
|
+
type: Component,
|
|
601
|
+
args: [{ selector: 'loading', standalone: false, template: "<!-- Modal -->\n<div class=\"modal fade\" id=\"modal_loading\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalScrollableTitle\"\n data-backdrop=\"static\" data-keyboard=\"false\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-scrollable\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <div class=\"col-lg-4 col-md-4 col-sm-10\">\n <div class=\"loader\">\n <span class=\"box\"></span>\n <span class=\"box\"></span>\n <div class=\"code\">\n <img src=\"{{logo_loading}}\" width=\"200px\">\n </div>\n <span class=\"txt\">{{'cargando' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".loader{width:130px;height:170px;position:relative}.loader:before,.loader:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader .txt{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader .code{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box:before,.loader .box:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader .box:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader .box:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader .box:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader .box:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit:before,.loader.amit:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
602
|
+
}], ctorParameters: () => [{ type: LoadingService }], propDecorators: { logo_loading: [{
|
|
603
|
+
type: Input
|
|
604
|
+
}] } });
|
|
733
605
|
|
|
734
606
|
class LoadingScreenComponent {
|
|
735
607
|
constructor(loadingScreenService, _elmRef, _changeDetectorRef, loadingService) {
|
|
@@ -754,20 +626,15 @@ class LoadingScreenComponent {
|
|
|
754
626
|
ngOnDestroy() {
|
|
755
627
|
this.loadingSubscription.unsubscribe();
|
|
756
628
|
}
|
|
757
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
758
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
args: [{ selector: 'app-loading-screen', template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }]
|
|
767
|
-
}], () => [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }], { logo_loading: [{
|
|
768
|
-
type: Input
|
|
769
|
-
}] }); })();
|
|
770
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingScreenComponent, { className: "LoadingScreenComponent" }); })();
|
|
629
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingScreenComponent, deps: [{ token: LoadingScreenService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: LoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
630
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoadingScreenComponent, selector: "app-loading-screen", inputs: { logo_loading: "logo_loading" }, ngImport: i0, template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }); }
|
|
631
|
+
}
|
|
632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoadingScreenComponent, decorators: [{
|
|
633
|
+
type: Component,
|
|
634
|
+
args: [{ selector: 'app-loading-screen', standalone: false, template: "<div class=\"loading-screen-wrapper\">\n <div class=\"loading-screen-icon\">\n <div class=\"blobs\">\n <div class=\"blob-center\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n <div class=\"blob\"></div>\n </div> \n </div>\n</div>\n", styles: [".loading-screen-wrapper{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){animation-delay:.2s}.blob:nth-child(2){animation-delay:.4s}.blob:nth-child(3){animation-delay:.6s}.blob:nth-child(4){animation-delay:.8s}.blob:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}\n"] }]
|
|
635
|
+
}], ctorParameters: () => [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }], propDecorators: { logo_loading: [{
|
|
636
|
+
type: Input
|
|
637
|
+
}] } });
|
|
771
638
|
|
|
772
639
|
class PdfModalService {
|
|
773
640
|
constructor() {
|
|
@@ -782,19 +649,19 @@ class PdfModalService {
|
|
|
782
649
|
this.html = html;
|
|
783
650
|
this.print.emit(true);
|
|
784
651
|
}
|
|
785
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
786
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
652
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
653
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalService, providedIn: 'root' }); }
|
|
787
654
|
}
|
|
788
|
-
(
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalService, decorators: [{
|
|
656
|
+
type: Injectable,
|
|
657
|
+
args: [{
|
|
658
|
+
providedIn: 'root'
|
|
659
|
+
}]
|
|
660
|
+
}], propDecorators: { visible: [{
|
|
661
|
+
type: Output
|
|
662
|
+
}], print: [{
|
|
663
|
+
type: Output
|
|
664
|
+
}] } });
|
|
798
665
|
|
|
799
666
|
class FileService {
|
|
800
667
|
constructor(_toastrService, translate) {
|
|
@@ -848,27 +715,16 @@ class FileService {
|
|
|
848
715
|
base64ToFileDowload(base64, type, name) {
|
|
849
716
|
this.blobToDowload(this.base64ToBlob(base64, type), type, name);
|
|
850
717
|
}
|
|
851
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
852
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
853
|
-
}
|
|
854
|
-
(
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
const _c0$4 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
862
|
-
const _c1$3 = () => ({ "overflow": "visible" });
|
|
863
|
-
function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
864
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
865
|
-
i0.ɵɵelement(1, "iframe", 3);
|
|
866
|
-
i0.ɵɵelementEnd();
|
|
867
|
-
} if (rf & 2) {
|
|
868
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
869
|
-
i0.ɵɵadvance();
|
|
870
|
-
i0.ɵɵproperty("src", ctx_r0.domSanitizer.bypassSecurityTrustResourceUrl("data:application/pdf;base64," + ctx_r0.pdfBase64), i0.ɵɵsanitizeResourceUrl);
|
|
871
|
-
} }
|
|
718
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileService, deps: [{ token: i1$1.ToastrService }, { token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
719
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileService, providedIn: 'root' }); }
|
|
720
|
+
}
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileService, decorators: [{
|
|
722
|
+
type: Injectable,
|
|
723
|
+
args: [{
|
|
724
|
+
providedIn: 'root'
|
|
725
|
+
}]
|
|
726
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }] });
|
|
727
|
+
|
|
872
728
|
class PdfModalComponent {
|
|
873
729
|
constructor(_pdfModalService, fileService, domSanitizer) {
|
|
874
730
|
this._pdfModalService = _pdfModalService;
|
|
@@ -932,25 +788,13 @@ class PdfModalComponent {
|
|
|
932
788
|
//iframe.focus();
|
|
933
789
|
// iframe.contentWindow.print();
|
|
934
790
|
}
|
|
935
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
936
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
}
|
|
942
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$4, ctx.size + "px"));
|
|
943
|
-
i0.ɵɵtwoWayProperty("visible", ctx.display);
|
|
944
|
-
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$3));
|
|
945
|
-
i0.ɵɵadvance();
|
|
946
|
-
i0.ɵɵproperty("ngIf", ctx.pdfBase64);
|
|
947
|
-
} }, dependencies: [i4.NgIf, i30.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
|
|
948
|
-
}
|
|
949
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
|
|
950
|
-
type: Component,
|
|
951
|
-
args: [{ selector: 'pdf-modal', template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"] }]
|
|
952
|
-
}], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }], null); })();
|
|
953
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PdfModalComponent, { className: "PdfModalComponent" }); })();
|
|
791
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalComponent, deps: [{ token: PdfModalService }, { token: FileService }, { token: i3$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
792
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PdfModalComponent, selector: "pdf-modal", ngImport: i0, template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [blockScroll]=\"true\" [maximizable]=\"true\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\"\n [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>", styles: [".down{display:block}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
793
|
+
}
|
|
794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PdfModalComponent, decorators: [{
|
|
795
|
+
type: Component,
|
|
796
|
+
args: [{ selector: 'pdf-modal', standalone: false, template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [blockScroll]=\"true\" [maximizable]=\"true\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\"\n [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>", styles: [".down{display:block}\n"] }]
|
|
797
|
+
}], ctorParameters: () => [{ type: PdfModalService }, { type: FileService }, { type: i3$2.DomSanitizer }] });
|
|
954
798
|
|
|
955
799
|
class Usuario {
|
|
956
800
|
}
|
|
@@ -1162,81 +1006,20 @@ class AuthService {
|
|
|
1162
1006
|
this.url_host = config.url;
|
|
1163
1007
|
return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
|
|
1164
1008
|
}
|
|
1165
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1166
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1167
|
-
}
|
|
1168
|
-
(
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
const _c0$3 = () => ({ width: "50vw" });
|
|
1180
|
-
const _c1$2 = () => ({ "960px": "75vw", "640px": "90vw" });
|
|
1181
|
-
function LoginModalComponent_div_3_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
1182
|
-
i0.ɵɵelementStart(0, "label", 16);
|
|
1183
|
-
i0.ɵɵtext(1, "Usuario o contrase\u00F1a incorrectos");
|
|
1184
|
-
i0.ɵɵelementEnd();
|
|
1185
|
-
} }
|
|
1186
|
-
function LoginModalComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1187
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
1188
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "form", 8, 0);
|
|
1189
|
-
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_3_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const datoForm_r2 = i0.ɵɵreference(3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.entrar(datoForm_r2)); });
|
|
1190
|
-
i0.ɵɵtemplate(4, LoginModalComponent_div_3_label_4_Template, 2, 0, "label", 9);
|
|
1191
|
-
i0.ɵɵelementStart(5, "div", 10)(6, "label", 11);
|
|
1192
|
-
i0.ɵɵtext(7, "Usuario");
|
|
1193
|
-
i0.ɵɵelementEnd();
|
|
1194
|
-
i0.ɵɵelementStart(8, "input", 12, 1);
|
|
1195
|
-
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
|
|
1196
|
-
i0.ɵɵelementEnd()();
|
|
1197
|
-
i0.ɵɵelementStart(10, "div", 10)(11, "label", 13);
|
|
1198
|
-
i0.ɵɵtext(12, "Contrase\u00F1a");
|
|
1199
|
-
i0.ɵɵelementEnd();
|
|
1200
|
-
i0.ɵɵelementStart(13, "input", 14);
|
|
1201
|
-
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
|
|
1202
|
-
i0.ɵɵelementEnd()();
|
|
1203
|
-
i0.ɵɵelementStart(14, "button", 15);
|
|
1204
|
-
i0.ɵɵtext(15, "Entrar");
|
|
1205
|
-
i0.ɵɵelementEnd()()()();
|
|
1206
|
-
} if (rf & 2) {
|
|
1207
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
1208
|
-
i0.ɵɵadvance(4);
|
|
1209
|
-
i0.ɵɵproperty("ngIf", ctx_r2.error);
|
|
1210
|
-
i0.ɵɵadvance(4);
|
|
1211
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.username);
|
|
1212
|
-
i0.ɵɵadvance(5);
|
|
1213
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.password);
|
|
1214
|
-
} }
|
|
1215
|
-
function LoginModalComponent_div_4_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1216
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
1217
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
1218
|
-
i0.ɵɵlistener("click", function LoginModalComponent_div_4_div_5_Template_div_click_0_listener() { const empresa_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.entrarEmpresa(empresa_r5)); });
|
|
1219
|
-
i0.ɵɵelementStart(1, "div", 20)(2, "div", 21)(3, "h5");
|
|
1220
|
-
i0.ɵɵtext(4);
|
|
1221
|
-
i0.ɵɵelementEnd()()()();
|
|
1222
|
-
} if (rf & 2) {
|
|
1223
|
-
const empresa_r5 = ctx.$implicit;
|
|
1224
|
-
i0.ɵɵadvance(4);
|
|
1225
|
-
i0.ɵɵtextInterpolate1(" ", empresa_r5.nombre, " ");
|
|
1226
|
-
} }
|
|
1227
|
-
function LoginModalComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1228
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "div", 17)(2, "h4");
|
|
1229
|
-
i0.ɵɵtext(3, "Selecciona la empresa");
|
|
1230
|
-
i0.ɵɵelementEnd();
|
|
1231
|
-
i0.ɵɵelement(4, "hr");
|
|
1232
|
-
i0.ɵɵelementEnd();
|
|
1233
|
-
i0.ɵɵtemplate(5, LoginModalComponent_div_4_div_5_Template, 5, 1, "div", 18);
|
|
1234
|
-
i0.ɵɵelementEnd();
|
|
1235
|
-
} if (rf & 2) {
|
|
1236
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
1237
|
-
i0.ɵɵadvance(5);
|
|
1238
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.empresas);
|
|
1239
|
-
} }
|
|
1009
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1010
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
1011
|
+
}
|
|
1012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, decorators: [{
|
|
1013
|
+
type: Injectable,
|
|
1014
|
+
args: [{
|
|
1015
|
+
providedIn: 'root'
|
|
1016
|
+
}]
|
|
1017
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }], propDecorators: { login: [{
|
|
1018
|
+
type: Output
|
|
1019
|
+
}], seleccionEmpresa: [{
|
|
1020
|
+
type: Output
|
|
1021
|
+
}] } });
|
|
1022
|
+
|
|
1240
1023
|
class LoginModalComponent {
|
|
1241
1024
|
constructor(loginModalService, authService) {
|
|
1242
1025
|
this.loginModalService = loginModalService;
|
|
@@ -1246,14 +1029,9 @@ class LoginModalComponent {
|
|
|
1246
1029
|
this.error = false;
|
|
1247
1030
|
this.empresas = [];
|
|
1248
1031
|
this.loginModalService.modal.subscribe(resp => {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
this.empresas = [];
|
|
1253
|
-
}
|
|
1254
|
-
else {
|
|
1255
|
-
this.modal = false;
|
|
1256
|
-
}
|
|
1032
|
+
$('#modalLogin').modal('show');
|
|
1033
|
+
this.user = { username: undefined, password: undefined };
|
|
1034
|
+
this.empresas = [];
|
|
1257
1035
|
});
|
|
1258
1036
|
}
|
|
1259
1037
|
entrar(form) {
|
|
@@ -1283,7 +1061,7 @@ class LoginModalComponent {
|
|
|
1283
1061
|
auth.usuarioDetalles = resp;
|
|
1284
1062
|
this.authService.startAuth(auth);
|
|
1285
1063
|
this.error = false;
|
|
1286
|
-
|
|
1064
|
+
$('#modalLogin').modal('hide');
|
|
1287
1065
|
});
|
|
1288
1066
|
}, (_error) => {
|
|
1289
1067
|
this.error = true;
|
|
@@ -1292,115 +1070,32 @@ class LoginModalComponent {
|
|
|
1292
1070
|
}
|
|
1293
1071
|
entrarEmpresa(_empresa) {
|
|
1294
1072
|
this.authService.setEmpresa(_empresa).subscribe((resp) => {
|
|
1295
|
-
|
|
1073
|
+
$('#modalLogin').modal('hide');
|
|
1296
1074
|
});
|
|
1297
1075
|
}
|
|
1298
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1299
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
i0.ɵɵtemplate(3, LoginModalComponent_div_3_Template, 16, 3, "div", 5)(4, LoginModalComponent_div_4_Template, 6, 1, "div", 5);
|
|
1306
|
-
i0.ɵɵelementEnd();
|
|
1307
|
-
} if (rf & 2) {
|
|
1308
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$3));
|
|
1309
|
-
i0.ɵɵtwoWayProperty("visible", ctx.modal);
|
|
1310
|
-
i0.ɵɵproperty("modal", true)("closable", false)("breakpoints", i0.ɵɵpureFunction0(9, _c1$2));
|
|
1311
|
-
i0.ɵɵadvance(3);
|
|
1312
|
-
i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
1313
|
-
i0.ɵɵadvance();
|
|
1314
|
-
i0.ɵɵproperty("ngIf", ctx.empresas.length);
|
|
1315
|
-
} }, dependencies: [i4.NgForOf, i4.NgIf, i4$1.ɵNgNoValidate, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgControlStatusGroup, i4$1.RequiredValidator, i4$1.NgModel, i4$1.NgForm, i30.Dialog], styles: ["[_nghost-%COMP%] .p-dialog{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
|
|
1316
|
-
}
|
|
1317
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1318
|
-
type: Component,
|
|
1319
|
-
args: [{ selector: 'app-login-modal', template: "<p-dialog [(visible)]=\"modal\" [modal]=\"true\" [closable]=\"false\" [style]=\"{width: '50vw'}\"\n [breakpoints]=\"{'960px': '75vw', '640px': '90vw'}\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\">\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\">\n <label class=\"error\" *ngIf=\"error\">Usuario o contrase\u00F1a incorrectos</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\">Usuario</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\"\n #username=\"ngModel\" placeholder=\"Usuario\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">Contrase\u00F1a</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"Contrase\u00F1a\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n\n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\">Entrar</button>\n </form>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\"\n (click)=\"entrarEmpresa(empresa)\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div>\n</p-dialog>", styles: [":host ::ng-deep .p-dialog{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
|
|
1320
|
-
}], () => [{ type: LoginModalService }, { type: AuthService }], null); })();
|
|
1321
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoginModalComponent, { className: "LoginModalComponent" }); })();
|
|
1076
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalComponent, deps: [{ token: LoginModalService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1077
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoginModalComponent, selector: "app-login-modal", ngImport: i0, template: "<div class=\"modal fade\" id=\"modalLogin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\" >\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\" > \n <label class=\"error\" *ngIf=\"error\">{{'Usuario.errorLogin' | translate}}</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\" >{{ 'Usuario.username' | translate }}</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #username=\"ngModel\"\n placeholder=\"{{ 'Usuario.username' | translate }}\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">{{ 'Usuario.password' | translate }}</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"{{ 'Usuario.password' | translate }}\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n \n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>", styles: [".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i10.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i10.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i10.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1078
|
+
}
|
|
1079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginModalComponent, decorators: [{
|
|
1080
|
+
type: Component,
|
|
1081
|
+
args: [{ selector: 'app-login-modal', standalone: false, template: "<div class=\"modal fade\" id=\"modalLogin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\" >\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\" > \n <label class=\"error\" *ngIf=\"error\">{{'Usuario.errorLogin' | translate}}</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\" >{{ 'Usuario.username' | translate }}</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #username=\"ngModel\"\n placeholder=\"{{ 'Usuario.username' | translate }}\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">{{ 'Usuario.password' | translate }}</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"{{ 'Usuario.password' | translate }}\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n \n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>", styles: [".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
|
|
1082
|
+
}], ctorParameters: () => [{ type: LoginModalService }, { type: AuthService }] });
|
|
1322
1083
|
|
|
1323
1084
|
class SessionCajaService extends CrudService {
|
|
1324
1085
|
constructor(httpClient) {
|
|
1325
1086
|
super(httpClient, 'sessionCaja');
|
|
1326
1087
|
this.httpClient = httpClient;
|
|
1327
1088
|
}
|
|
1328
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1329
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1330
|
-
}
|
|
1331
|
-
(
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
const _c0$2 = () => ({ width: "750px" });
|
|
1339
|
-
function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
1340
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
1341
|
-
i0.ɵɵtext(1);
|
|
1342
|
-
i0.ɵɵelementEnd();
|
|
1343
|
-
} if (rf & 2) {
|
|
1344
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1345
|
-
i0.ɵɵadvance();
|
|
1346
|
-
i0.ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
|
|
1347
|
-
} }
|
|
1348
|
-
function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1349
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
1350
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "label", 7);
|
|
1351
|
-
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
1352
|
-
i0.ɵɵelementEnd();
|
|
1353
|
-
i0.ɵɵelementStart(4, "input", 8);
|
|
1354
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.caja.nombre, $event) || (ctx_r0.caja.nombre = $event); return i0.ɵɵresetView($event); });
|
|
1355
|
-
i0.ɵɵelementEnd()();
|
|
1356
|
-
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
1357
|
-
i0.ɵɵtext(7, "Saldo: ");
|
|
1358
|
-
i0.ɵɵelementEnd();
|
|
1359
|
-
i0.ɵɵelementStart(8, "input", 11);
|
|
1360
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.session.monto, $event) || (ctx_r0.session.monto = $event); return i0.ɵɵresetView($event); });
|
|
1361
|
-
i0.ɵɵelementEnd()();
|
|
1362
|
-
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
1363
|
-
i0.ɵɵtext(11, "Numero Z:");
|
|
1364
|
-
i0.ɵɵelementEnd();
|
|
1365
|
-
i0.ɵɵelementStart(12, "input", 13);
|
|
1366
|
-
i0.ɵɵtwoWayListener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.session.z, $event) || (ctx_r0.session.z = $event); return i0.ɵɵresetView($event); });
|
|
1367
|
-
i0.ɵɵelementEnd()()();
|
|
1368
|
-
} if (rf & 2) {
|
|
1369
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1370
|
-
i0.ɵɵadvance(4);
|
|
1371
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.caja.nombre);
|
|
1372
|
-
i0.ɵɵproperty("disabled", true);
|
|
1373
|
-
i0.ɵɵadvance(4);
|
|
1374
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.session.monto);
|
|
1375
|
-
i0.ɵɵproperty("disabled", ctx_r0.editMode);
|
|
1376
|
-
i0.ɵɵadvance(4);
|
|
1377
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.session.z);
|
|
1378
|
-
i0.ɵɵproperty("disabled", true);
|
|
1379
|
-
} }
|
|
1380
|
-
function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1381
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
1382
|
-
i0.ɵɵelementStart(0, "button", 17);
|
|
1383
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.save()); });
|
|
1384
|
-
i0.ɵɵelementEnd();
|
|
1385
|
-
} }
|
|
1386
|
-
function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1387
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1388
|
-
i0.ɵɵelementStart(0, "button", 18);
|
|
1389
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.edit()); });
|
|
1390
|
-
i0.ɵɵelementEnd();
|
|
1391
|
-
} }
|
|
1392
|
-
function SessionCreateComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
1393
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
1394
|
-
i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14)(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
|
|
1395
|
-
i0.ɵɵelementStart(2, "button", 16);
|
|
1396
|
-
i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.closeModal()); });
|
|
1397
|
-
i0.ɵɵelementEnd();
|
|
1398
|
-
} if (rf & 2) {
|
|
1399
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1400
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.editMode && ctx_r0.caja);
|
|
1401
|
-
i0.ɵɵadvance();
|
|
1402
|
-
i0.ɵɵproperty("ngIf", ctx_r0.editMode && ctx_r0.caja);
|
|
1403
|
-
} }
|
|
1089
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCajaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1090
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCajaService, providedIn: 'root' }); }
|
|
1091
|
+
}
|
|
1092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCajaService, decorators: [{
|
|
1093
|
+
type: Injectable,
|
|
1094
|
+
args: [{
|
|
1095
|
+
providedIn: 'root'
|
|
1096
|
+
}]
|
|
1097
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1098
|
+
|
|
1404
1099
|
class SessionCreateComponent {
|
|
1405
1100
|
constructor(sessionCajaService) {
|
|
1406
1101
|
this.sessionCajaService = sessionCajaService;
|
|
@@ -1469,42 +1164,81 @@ class SessionCreateComponent {
|
|
|
1469
1164
|
this.status.emit({ status: false, update: this.resp.data });
|
|
1470
1165
|
}
|
|
1471
1166
|
}
|
|
1472
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1473
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1167
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCreateComponent, deps: [{ token: SessionCajaService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1168
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SessionCreateComponent, selector: "session-create", inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, ngImport: i0, template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]" }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
1169
|
+
}
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SessionCreateComponent, decorators: [{
|
|
1171
|
+
type: Component,
|
|
1172
|
+
args: [{ selector: 'session-create', template: "<p-dialog [(visible)]=\"showCreateSession\" [modal]=\"flagModal\" (onHide)=\"closeModal()\" (onShow)=\"setSession()\"\n [closeOnEscape]=\"flagModal\" [closable]=\"flagModal\" [blockScroll]=\"true\" [style]=\"{width: '750px'}\">\n\n <ng-template pTemplate=\"header\">\n <a class=\"text-primary\">{{labels.title}}: </a>\n </ng-template>\n\n <div class=\"grid grid-fluid\" *ngIf=\"caja\">\n <div class=\"p-field col-12\">\n <label for=\"nombreCaja\">Nombre de caja: </label>\n <input pInputText type=\"text\" id=\"nombreCaja\" [(ngModel)]=\"caja.nombre\" [disabled]=\"true\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"saldoCaja\">Saldo: </label>\n <input pInputText type=\"number\" id=\"saldoCaja\" [(ngModel)]=\"session.monto\" [disabled]=\"editMode\">\n </div>\n\n <div class=\"p-field col-12 md:col-6\">\n <label for=\"numeroZ\">Numero Z:</label>\n <input pInputText type=\"number\" id=\"numeroZ\" [(ngModel)]=\"session.z\" [disabled]=\"true\">\n </div>\n </div>\n\n <div>\n Este agente no esta asignado a una caja\n </div>\n\n <ng-template pTemplate=\"footer\">\n <button pButton type=\"button\" label=\"Guardar\" (click)=\"save()\" *ngIf=\"!editMode && caja\" class=\"p-button-sm\"></button>\n <button pButton type=\"button\" label=\"Cerrar session\" (click)=\"edit()\" *ngIf=\"editMode && caja\" class=\"p-button-sm p-button-success\"></button>\n <button pButton type=\"button\" label=\"Cancelar\" (click)=\"closeModal()\" class=\"p-button-sm p-button-danger\"></button>\n </ng-template>\n\n</p-dialog>" }]
|
|
1173
|
+
}], ctorParameters: () => [{ type: SessionCajaService }], propDecorators: { showCreateSession: [{
|
|
1174
|
+
type: Input
|
|
1175
|
+
}], caja: [{
|
|
1176
|
+
type: Input
|
|
1177
|
+
}], monedaDenominacionList: [{
|
|
1178
|
+
type: Input
|
|
1179
|
+
}], sessionEdit: [{
|
|
1180
|
+
type: Input
|
|
1181
|
+
}], status: [{
|
|
1182
|
+
type: Output
|
|
1183
|
+
}], success: [{
|
|
1184
|
+
type: Output
|
|
1185
|
+
}] } });
|
|
1186
|
+
|
|
1187
|
+
class Persona {
|
|
1188
|
+
constructor() {
|
|
1189
|
+
//this.estadoCivil= new EstadoCivil();
|
|
1190
|
+
//this.genero = new Genero();
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
class PersonaFisica {
|
|
1195
|
+
constructor() {
|
|
1196
|
+
this.datoPersona = new Persona();
|
|
1197
|
+
this.contactos = [];
|
|
1198
|
+
this.datoDirecciones = [];
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
class PersonaMoral {
|
|
1203
|
+
constructor() {
|
|
1204
|
+
this.representanteLegal = new PersonaFisica();
|
|
1205
|
+
this.contactos = [];
|
|
1206
|
+
this.datoDirecciones = [];
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
class Agente {
|
|
1211
|
+
constructor() {
|
|
1212
|
+
// this.catalogoTipo= new CatalogoTipo();
|
|
1213
|
+
this.personaFisica = new PersonaFisica();
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
class Cliente {
|
|
1218
|
+
constructor() {
|
|
1219
|
+
this.agenteCobrador = new Agente();
|
|
1220
|
+
this.agenteVendedor = new Agente();
|
|
1221
|
+
this.personaFisica = new PersonaFisica();
|
|
1222
|
+
this.personaMoral = new PersonaMoral();
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
class ClienteService extends CrudService {
|
|
1227
|
+
constructor(httpCliente) {
|
|
1228
|
+
super(httpCliente, '/cliente');
|
|
1229
|
+
}
|
|
1230
|
+
validar_archivos_bss(id) {
|
|
1231
|
+
return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
|
|
1232
|
+
}
|
|
1233
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1234
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteService, providedIn: 'root' }); }
|
|
1235
|
+
}
|
|
1236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteService, decorators: [{
|
|
1237
|
+
type: Injectable,
|
|
1238
|
+
args: [{
|
|
1239
|
+
providedIn: 'root'
|
|
1240
|
+
}]
|
|
1241
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1508
1242
|
|
|
1509
1243
|
class PaginateService {
|
|
1510
1244
|
constructor(translate) {
|
|
@@ -1550,15 +1284,165 @@ class PaginateService {
|
|
|
1550
1284
|
}, erro => { });
|
|
1551
1285
|
return ordenar;
|
|
1552
1286
|
}
|
|
1553
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1554
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1287
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginateService, deps: [{ token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1288
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginateService, providedIn: "root" }); }
|
|
1289
|
+
}
|
|
1290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaginateService, decorators: [{
|
|
1291
|
+
type: Injectable,
|
|
1292
|
+
args: [{
|
|
1293
|
+
providedIn: "root"
|
|
1294
|
+
}]
|
|
1295
|
+
}], ctorParameters: () => [{ type: i3$1.TranslateService }] });
|
|
1296
|
+
|
|
1297
|
+
class SelectClienteComponent {
|
|
1298
|
+
constructor(clienteService, paginate) {
|
|
1299
|
+
this.clienteService = clienteService;
|
|
1300
|
+
this.paginate = paginate;
|
|
1301
|
+
this.selectMode = 'single';
|
|
1302
|
+
this.select = new EventEmitter();
|
|
1303
|
+
this.ordenar = [];
|
|
1304
|
+
this.loading = true;
|
|
1305
|
+
}
|
|
1306
|
+
ngOnInit() {
|
|
1307
|
+
this.page = this.paginate.getPage();
|
|
1308
|
+
this.page.rows = 20;
|
|
1309
|
+
this.clientes = [];
|
|
1310
|
+
this.ordenar = this.paginate.getOrden([
|
|
1311
|
+
{ param: 'razonZocial', label: 'razonZocial' }
|
|
1312
|
+
], 'es');
|
|
1313
|
+
}
|
|
1314
|
+
cargarDatosClientes(event = null) {
|
|
1315
|
+
this.loading = true;
|
|
1316
|
+
if (event) {
|
|
1317
|
+
this.page.rows = event.rows;
|
|
1318
|
+
this.page.offset = event.first;
|
|
1319
|
+
}
|
|
1320
|
+
this.clientes = [];
|
|
1321
|
+
this.params = this.paginate.getParams(this.page);
|
|
1322
|
+
this.params.push({ param: 'estatus', value: true });
|
|
1323
|
+
if (this.page.filtro && this.page.filtro.trim() !== '') {
|
|
1324
|
+
this.params.push({ param: 'filtroGeneral', value: this.page.filtro.trim() });
|
|
1325
|
+
}
|
|
1326
|
+
this.clienteService.getAll(this.params).subscribe((data) => {
|
|
1327
|
+
this.page.total = data.total;
|
|
1328
|
+
this.clientes = data.data;
|
|
1329
|
+
this.loading = false;
|
|
1330
|
+
}, error => {
|
|
1331
|
+
console.error("Error al cargar clientes:", error);
|
|
1332
|
+
this.loading = false;
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
aplicarFiltro() {
|
|
1336
|
+
this.page.offset = 0;
|
|
1337
|
+
this.cargarDatosClientes();
|
|
1338
|
+
}
|
|
1339
|
+
seleccionaCliente(e) {
|
|
1340
|
+
console.log('Fila seleccionada (evento):', e);
|
|
1341
|
+
console.log('Datos de la fila (e.data):', e.data);
|
|
1342
|
+
console.log('Cliente seleccionado ANTES de emitir:', this.clienteSeleccionado); // Verifica si [(selection)] ya lo actualizó
|
|
1343
|
+
this.select.emit(e.data);
|
|
1344
|
+
this.visible = false;
|
|
1345
|
+
console.log('Cliente seleccionado DESPUÉS de emitir (y si se actualizó por [(selection)]):', this.clienteSeleccionado);
|
|
1346
|
+
}
|
|
1347
|
+
cerrar() {
|
|
1348
|
+
this.select.emit(null);
|
|
1349
|
+
this.visible = false;
|
|
1350
|
+
}
|
|
1351
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectClienteComponent, deps: [{ token: ClienteService }, { token: PaginateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1352
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SelectClienteComponent, selector: "select-cliente", inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, ngImport: i0, template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]" }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1353
|
+
}
|
|
1354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectClienteComponent, decorators: [{
|
|
1355
|
+
type: Component,
|
|
1356
|
+
args: [{ selector: 'select-cliente', standalone: false, template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>" }]
|
|
1357
|
+
}], ctorParameters: () => [{ type: ClienteService }, { type: PaginateService }], propDecorators: { clienteSeleccionado: [{
|
|
1358
|
+
type: Input
|
|
1359
|
+
}], selectMode: [{
|
|
1360
|
+
type: Input
|
|
1361
|
+
}], visible: [{
|
|
1362
|
+
type: Input
|
|
1363
|
+
}], select: [{
|
|
1364
|
+
type: Output
|
|
1365
|
+
}] } });
|
|
1366
|
+
|
|
1367
|
+
class ClasificadorTipo {
|
|
1368
|
+
constructor() { }
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
class Proveedor {
|
|
1372
|
+
constructor() {
|
|
1373
|
+
this.personaMoral = new PersonaMoral();
|
|
1374
|
+
this.catalogoTipo = new ClasificadorTipo();
|
|
1375
|
+
this.clasificadorTipo = new ClasificadorTipo();
|
|
1376
|
+
this.personaFisica = new PersonaFisica();
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
class ProveedorService extends CrudService {
|
|
1381
|
+
constructor(httpClient) {
|
|
1382
|
+
super(httpClient, '/proveedor');
|
|
1383
|
+
this.httpClient = httpClient;
|
|
1384
|
+
}
|
|
1385
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1386
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorService, providedIn: 'root' }); }
|
|
1555
1387
|
}
|
|
1556
|
-
(
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorService, decorators: [{
|
|
1389
|
+
type: Injectable,
|
|
1390
|
+
args: [{
|
|
1391
|
+
providedIn: 'root'
|
|
1392
|
+
}]
|
|
1393
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1394
|
+
|
|
1395
|
+
class SelectProveedorComponent {
|
|
1396
|
+
constructor(proveedorService, paginanateService, translate) {
|
|
1397
|
+
this.proveedorService = proveedorService;
|
|
1398
|
+
this.paginanateService = paginanateService;
|
|
1399
|
+
this.translate = translate;
|
|
1400
|
+
this.params = [];
|
|
1401
|
+
this.ordenar = [];
|
|
1402
|
+
this.visible = false;
|
|
1403
|
+
this.proveedorSeleccionado = new Proveedor();
|
|
1404
|
+
this.select = new EventEmitter();
|
|
1405
|
+
this.translate.get('es');
|
|
1406
|
+
}
|
|
1407
|
+
ngOnInit() {
|
|
1408
|
+
this.page = this.paginanateService.getPage();
|
|
1409
|
+
let arg = [];
|
|
1410
|
+
this.ordenar = this.paginanateService.getOrden(arg, 'es');
|
|
1411
|
+
this.proveedores = [];
|
|
1412
|
+
}
|
|
1413
|
+
cargarDatosProveedores() {
|
|
1414
|
+
this.params = this.paginanateService.getParams(this.page);
|
|
1415
|
+
this.params.push({ param: 'estatus', value: true });
|
|
1416
|
+
this.proveedorService.getAll(this.params).subscribe((data) => {
|
|
1417
|
+
this.proveedores = data.data;
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
pagina(e) {
|
|
1421
|
+
this.page.rows = e.rows;
|
|
1422
|
+
this.page.offset = e.first;
|
|
1423
|
+
this.cargarDatosProveedores();
|
|
1424
|
+
}
|
|
1425
|
+
cerrarModal() {
|
|
1426
|
+
this.select.emit(null);
|
|
1427
|
+
this.visible = false;
|
|
1428
|
+
}
|
|
1429
|
+
seleccionarProveedor(e) {
|
|
1430
|
+
this.select.emit(e.data);
|
|
1431
|
+
this.visible = false;
|
|
1432
|
+
}
|
|
1433
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectProveedorComponent, deps: [{ token: ProveedorService }, { token: PaginateService }, { token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1434
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SelectProveedorComponent, selector: "select-proveedor", inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, ngImport: i0, template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>", dependencies: [{ kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]" }, { kind: "component", type: i27.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1435
|
+
}
|
|
1436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectProveedorComponent, decorators: [{
|
|
1437
|
+
type: Component,
|
|
1438
|
+
args: [{ standalone: false, selector: 'select-proveedor', template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
1439
|
+
}], ctorParameters: () => [{ type: ProveedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], propDecorators: { visible: [{
|
|
1440
|
+
type: Input
|
|
1441
|
+
}], proveedorSeleccionado: [{
|
|
1442
|
+
type: Input
|
|
1443
|
+
}], select: [{
|
|
1444
|
+
type: Output
|
|
1445
|
+
}] } });
|
|
1562
1446
|
|
|
1563
1447
|
class AlmacenService extends CrudService {
|
|
1564
1448
|
constructor(httpClient) {
|
|
@@ -1569,15 +1453,15 @@ class AlmacenService extends CrudService {
|
|
|
1569
1453
|
let url = this.geturl() + '/obtenerAlmacenEmpresa';
|
|
1570
1454
|
return this.getHttp().get(url, this.buildAuth());
|
|
1571
1455
|
}
|
|
1572
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1573
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1456
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlmacenService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1457
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlmacenService, providedIn: 'root' }); }
|
|
1574
1458
|
}
|
|
1575
|
-
(
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlmacenService, decorators: [{
|
|
1460
|
+
type: Injectable,
|
|
1461
|
+
args: [{
|
|
1462
|
+
providedIn: 'root'
|
|
1463
|
+
}]
|
|
1464
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1581
1465
|
|
|
1582
1466
|
class StockService extends CrudService {
|
|
1583
1467
|
constructor(httpClient) {
|
|
@@ -1595,15 +1479,15 @@ class StockService extends CrudService {
|
|
|
1595
1479
|
});
|
|
1596
1480
|
return promesa;
|
|
1597
1481
|
}
|
|
1598
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1599
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1482
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1483
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockService, providedIn: 'root' }); }
|
|
1600
1484
|
}
|
|
1601
|
-
(
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockService, decorators: [{
|
|
1486
|
+
type: Injectable,
|
|
1487
|
+
args: [{
|
|
1488
|
+
providedIn: 'root'
|
|
1489
|
+
}]
|
|
1490
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1607
1491
|
|
|
1608
1492
|
class ArticuloInformacionService extends CrudService {
|
|
1609
1493
|
constructor(httpClient) {
|
|
@@ -1614,86 +1498,16 @@ class ArticuloInformacionService extends CrudService {
|
|
|
1614
1498
|
let uRL = "/existenciasArticulo/" + articulo;
|
|
1615
1499
|
return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
|
|
1616
1500
|
}
|
|
1617
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1618
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1619
|
-
}
|
|
1620
|
-
(
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
1628
|
-
const _c1$1 = () => ({ width: "600px" });
|
|
1629
|
-
function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
|
|
1630
|
-
i0.ɵɵelement(0, "col");
|
|
1631
|
-
} if (rf & 2) {
|
|
1632
|
-
const col_r1 = ctx.$implicit;
|
|
1633
|
-
i0.ɵɵstyleProp("width", col_r1.width);
|
|
1634
|
-
} }
|
|
1635
|
-
function SeleccionArticuloInformacionComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
1636
|
-
i0.ɵɵelementStart(0, "colgroup");
|
|
1637
|
-
i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template, 1, 2, "col", 6);
|
|
1638
|
-
i0.ɵɵelementEnd();
|
|
1639
|
-
} if (rf & 2) {
|
|
1640
|
-
const columns_r2 = ctx.$implicit;
|
|
1641
|
-
i0.ɵɵadvance();
|
|
1642
|
-
i0.ɵɵproperty("ngForOf", columns_r2);
|
|
1643
|
-
} }
|
|
1644
|
-
function SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
1645
|
-
i0.ɵɵelementStart(0, "th", 8);
|
|
1646
|
-
i0.ɵɵtext(1);
|
|
1647
|
-
i0.ɵɵelementEnd();
|
|
1648
|
-
} if (rf & 2) {
|
|
1649
|
-
const col_r3 = ctx.$implicit;
|
|
1650
|
-
i0.ɵɵadvance();
|
|
1651
|
-
i0.ɵɵtextInterpolate1(" ", col_r3.header, " ");
|
|
1652
|
-
} }
|
|
1653
|
-
function SeleccionArticuloInformacionComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
1654
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1655
|
-
i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template, 2, 1, "th", 7);
|
|
1656
|
-
i0.ɵɵelementEnd();
|
|
1657
|
-
} if (rf & 2) {
|
|
1658
|
-
const columns_r4 = ctx.$implicit;
|
|
1659
|
-
i0.ɵɵadvance();
|
|
1660
|
-
i0.ɵɵproperty("ngForOf", columns_r4);
|
|
1661
|
-
} }
|
|
1662
|
-
function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
1663
|
-
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
1664
|
-
i0.ɵɵtext(2);
|
|
1665
|
-
i0.ɵɵelementEnd();
|
|
1666
|
-
i0.ɵɵelementStart(3, "td");
|
|
1667
|
-
i0.ɵɵtext(4);
|
|
1668
|
-
i0.ɵɵelementEnd();
|
|
1669
|
-
i0.ɵɵelementStart(5, "td");
|
|
1670
|
-
i0.ɵɵtext(6);
|
|
1671
|
-
i0.ɵɵelementEnd();
|
|
1672
|
-
i0.ɵɵelementStart(7, "td");
|
|
1673
|
-
i0.ɵɵtext(8);
|
|
1674
|
-
i0.ɵɵelementEnd();
|
|
1675
|
-
i0.ɵɵelementStart(9, "td");
|
|
1676
|
-
i0.ɵɵtext(10);
|
|
1677
|
-
i0.ɵɵelementEnd()();
|
|
1678
|
-
} if (rf & 2) {
|
|
1679
|
-
const rowData_r5 = ctx.$implicit;
|
|
1680
|
-
i0.ɵɵadvance(2);
|
|
1681
|
-
i0.ɵɵtextInterpolate(rowData_r5.almacenCodigo);
|
|
1682
|
-
i0.ɵɵadvance(2);
|
|
1683
|
-
i0.ɵɵtextInterpolate(rowData_r5.almacenDescripcion);
|
|
1684
|
-
i0.ɵɵadvance(2);
|
|
1685
|
-
i0.ɵɵtextInterpolate(rowData_r5.ubicacionCodigo);
|
|
1686
|
-
i0.ɵɵadvance(2);
|
|
1687
|
-
i0.ɵɵtextInterpolate(rowData_r5.ubicacionDescripcion);
|
|
1688
|
-
i0.ɵɵadvance(2);
|
|
1689
|
-
i0.ɵɵtextInterpolate(rowData_r5.existencia);
|
|
1690
|
-
} }
|
|
1691
|
-
function SeleccionArticuloInformacionComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
1692
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
1693
|
-
i0.ɵɵelementStart(0, "div", 9)(1, "button", 10);
|
|
1694
|
-
i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_ng_template_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.hiddenDialog()); });
|
|
1695
|
-
i0.ɵɵelementEnd()();
|
|
1696
|
-
} }
|
|
1501
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArticuloInformacionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1502
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArticuloInformacionService, providedIn: 'root' }); }
|
|
1503
|
+
}
|
|
1504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ArticuloInformacionService, decorators: [{
|
|
1505
|
+
type: Injectable,
|
|
1506
|
+
args: [{
|
|
1507
|
+
providedIn: 'root'
|
|
1508
|
+
}]
|
|
1509
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1510
|
+
|
|
1697
1511
|
class SeleccionArticuloInformacionComponent {
|
|
1698
1512
|
constructor(articuloInformacionService) {
|
|
1699
1513
|
this.articuloInformacionService = articuloInformacionService;
|
|
@@ -1733,333 +1547,20 @@ class SeleccionArticuloInformacionComponent {
|
|
|
1733
1547
|
onSelectedUbicacion(ubicacionRow) {
|
|
1734
1548
|
this.eventSelection.emit({ status: false, ubicacion: ubicacionRow });
|
|
1735
1549
|
}
|
|
1736
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
1737
|
-
/** @nocollapse */ static { this.ɵcmp =
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
i0.ɵɵtwoWayProperty("visible", ctx.showModal);
|
|
1751
|
-
i0.ɵɵproperty("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
|
|
1752
|
-
i0.ɵɵadvance();
|
|
1753
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(18, _c1$1));
|
|
1754
|
-
i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true);
|
|
1755
|
-
} }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i15.Table, i15.ResizableColumn, i18.ButtonDirective, i30.Dialog] }); }
|
|
1756
|
-
}
|
|
1757
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
1758
|
-
type: Component,
|
|
1759
|
-
args: [{ selector: 'lib-seleccion-articulo-informacion', template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n responsiveLayout=\"scroll\"\n scrollHeight=\"350px\"\n > \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 *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <ng-template pTemplate=\"footer\">\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </ng-template>\n</p-dialog>" }]
|
|
1760
|
-
}], () => [{ type: ArticuloInformacionService }], { showModal: [{
|
|
1761
|
-
type: Input
|
|
1762
|
-
}], articulo: [{
|
|
1763
|
-
type: Input
|
|
1764
|
-
}], eventSelection: [{
|
|
1765
|
-
type: Output
|
|
1766
|
-
}] }); })();
|
|
1767
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionArticuloInformacionComponent, { className: "SeleccionArticuloInformacionComponent" }); })();
|
|
1768
|
-
|
|
1769
|
-
const _c0 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
1770
|
-
const _c1 = () => [10, 25, 50, 100, 500];
|
|
1771
|
-
function SeleccionaArticuloComponent_option_23_Template(rf, ctx) { if (rf & 1) {
|
|
1772
|
-
i0.ɵɵelementStart(0, "option", 22);
|
|
1773
|
-
i0.ɵɵtext(1);
|
|
1774
|
-
i0.ɵɵelementEnd();
|
|
1775
|
-
} if (rf & 2) {
|
|
1776
|
-
const almacen_r2 = ctx.$implicit;
|
|
1777
|
-
i0.ɵɵpropertyInterpolate("value", almacen_r2.id);
|
|
1778
|
-
i0.ɵɵadvance();
|
|
1779
|
-
i0.ɵɵtextInterpolate(almacen_r2.descripcion);
|
|
1780
|
-
} }
|
|
1781
|
-
function SeleccionaArticuloComponent_ng_template_26_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
1782
|
-
i0.ɵɵelementStart(0, "th", 31);
|
|
1783
|
-
i0.ɵɵtext(1, "existenciaSecundaria");
|
|
1784
|
-
i0.ɵɵelementEnd();
|
|
1785
|
-
} }
|
|
1786
|
-
function SeleccionaArticuloComponent_ng_template_26_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
1787
|
-
i0.ɵɵelementStart(0, "th", 25);
|
|
1788
|
-
i0.ɵɵtext(1, "Unidad");
|
|
1789
|
-
i0.ɵɵelementEnd();
|
|
1790
|
-
} }
|
|
1791
|
-
function SeleccionaArticuloComponent_ng_template_26_th_14_Template(rf, ctx) { if (rf & 1) {
|
|
1792
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1793
|
-
i0.ɵɵtext(1, "Precio");
|
|
1794
|
-
i0.ɵɵelementEnd();
|
|
1795
|
-
} }
|
|
1796
|
-
function SeleccionaArticuloComponent_ng_template_26_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
1797
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1798
|
-
i0.ɵɵtext(1, "Precio 2");
|
|
1799
|
-
i0.ɵɵelementEnd();
|
|
1800
|
-
} }
|
|
1801
|
-
function SeleccionaArticuloComponent_ng_template_26_th_16_Template(rf, ctx) { if (rf & 1) {
|
|
1802
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1803
|
-
i0.ɵɵtext(1, "Precio 3");
|
|
1804
|
-
i0.ɵɵelementEnd();
|
|
1805
|
-
} }
|
|
1806
|
-
function SeleccionaArticuloComponent_ng_template_26_th_17_Template(rf, ctx) { if (rf & 1) {
|
|
1807
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1808
|
-
i0.ɵɵtext(1, "Precio 4");
|
|
1809
|
-
i0.ɵɵelementEnd();
|
|
1810
|
-
} }
|
|
1811
|
-
function SeleccionaArticuloComponent_ng_template_26_th_18_Template(rf, ctx) { if (rf & 1) {
|
|
1812
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1813
|
-
i0.ɵɵtext(1, "Precio 5");
|
|
1814
|
-
i0.ɵɵelementEnd();
|
|
1815
|
-
} }
|
|
1816
|
-
function SeleccionaArticuloComponent_ng_template_26_th_19_Template(rf, ctx) { if (rf & 1) {
|
|
1817
|
-
i0.ɵɵelementStart(0, "th", 25);
|
|
1818
|
-
i0.ɵɵtext(1, "Movimiento.costo");
|
|
1819
|
-
i0.ɵɵelementEnd();
|
|
1820
|
-
} }
|
|
1821
|
-
function SeleccionaArticuloComponent_ng_template_26_th_22_Template(rf, ctx) { if (rf & 1) {
|
|
1822
|
-
i0.ɵɵelementStart(0, "th", 23);
|
|
1823
|
-
i0.ɵɵtext(1);
|
|
1824
|
-
i0.ɵɵelementEnd();
|
|
1825
|
-
} if (rf & 2) {
|
|
1826
|
-
const item_r3 = ctx.$implicit;
|
|
1827
|
-
i0.ɵɵadvance();
|
|
1828
|
-
i0.ɵɵtextInterpolate(item_r3.descripcion);
|
|
1829
|
-
} }
|
|
1830
|
-
function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
|
|
1831
|
-
i0.ɵɵelementStart(0, "tr")(1, "th", 23);
|
|
1832
|
-
i0.ɵɵtext(2, "C\u00F3digo Ubicacion");
|
|
1833
|
-
i0.ɵɵelementEnd();
|
|
1834
|
-
i0.ɵɵelementStart(3, "th", 24);
|
|
1835
|
-
i0.ɵɵtext(4, "Existencia");
|
|
1836
|
-
i0.ɵɵelementEnd();
|
|
1837
|
-
i0.ɵɵelementStart(5, "th", 25);
|
|
1838
|
-
i0.ɵɵtext(6, "Unidad");
|
|
1839
|
-
i0.ɵɵelementEnd();
|
|
1840
|
-
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_26_th_7_Template, 2, 0, "th", 26)(8, SeleccionaArticuloComponent_ng_template_26_th_8_Template, 2, 0, "th", 27);
|
|
1841
|
-
i0.ɵɵelementStart(9, "th", 23);
|
|
1842
|
-
i0.ɵɵtext(10, "C\u00F3digo");
|
|
1843
|
-
i0.ɵɵelementEnd();
|
|
1844
|
-
i0.ɵɵelementStart(11, "th", 28);
|
|
1845
|
-
i0.ɵɵtext(12, "Descripcion");
|
|
1846
|
-
i0.ɵɵelementEnd();
|
|
1847
|
-
i0.ɵɵelement(13, "th", 25);
|
|
1848
|
-
i0.ɵɵtemplate(14, SeleccionaArticuloComponent_ng_template_26_th_14_Template, 2, 0, "th", 29)(15, SeleccionaArticuloComponent_ng_template_26_th_15_Template, 2, 0, "th", 29)(16, SeleccionaArticuloComponent_ng_template_26_th_16_Template, 2, 0, "th", 29)(17, SeleccionaArticuloComponent_ng_template_26_th_17_Template, 2, 0, "th", 29)(18, SeleccionaArticuloComponent_ng_template_26_th_18_Template, 2, 0, "th", 29)(19, SeleccionaArticuloComponent_ng_template_26_th_19_Template, 2, 0, "th", 27);
|
|
1849
|
-
i0.ɵɵelementStart(20, "th", 25);
|
|
1850
|
-
i0.ɵɵtext(21, "Existencia por Unidad");
|
|
1851
|
-
i0.ɵɵelementEnd();
|
|
1852
|
-
i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_26_th_22_Template, 2, 1, "th", 30);
|
|
1853
|
-
i0.ɵɵelementEnd();
|
|
1854
|
-
} if (rf & 2) {
|
|
1855
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
1856
|
-
i0.ɵɵadvance(7);
|
|
1857
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
1858
|
-
i0.ɵɵadvance();
|
|
1859
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
1860
|
-
i0.ɵɵadvance(6);
|
|
1861
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1862
|
-
i0.ɵɵadvance();
|
|
1863
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1864
|
-
i0.ɵɵadvance();
|
|
1865
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1866
|
-
i0.ɵɵadvance();
|
|
1867
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1868
|
-
i0.ɵɵadvance();
|
|
1869
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
1870
|
-
i0.ɵɵadvance();
|
|
1871
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
|
|
1872
|
-
i0.ɵɵadvance(3);
|
|
1873
|
-
i0.ɵɵproperty("ngForOf", ctx_r3.clasificadorList);
|
|
1874
|
-
} }
|
|
1875
|
-
function SeleccionaArticuloComponent_ng_template_27_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
1876
|
-
i0.ɵɵelementStart(0, "td", 23);
|
|
1877
|
-
i0.ɵɵtext(1, "Movimiento.NoAsignado");
|
|
1878
|
-
i0.ɵɵelementEnd();
|
|
1879
|
-
} }
|
|
1880
|
-
function SeleccionaArticuloComponent_ng_template_27_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
1881
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1882
|
-
i0.ɵɵtext(1);
|
|
1883
|
-
i0.ɵɵelementEnd();
|
|
1884
|
-
} if (rf & 2) {
|
|
1885
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1886
|
-
i0.ɵɵadvance();
|
|
1887
|
-
i0.ɵɵtextInterpolate(rowData_r6.ubicacionCodigo);
|
|
1888
|
-
} }
|
|
1889
|
-
function SeleccionaArticuloComponent_ng_template_27_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
1890
|
-
i0.ɵɵelementStart(0, "td", 44);
|
|
1891
|
-
i0.ɵɵtext(1);
|
|
1892
|
-
i0.ɵɵelementEnd();
|
|
1893
|
-
} if (rf & 2) {
|
|
1894
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1895
|
-
i0.ɵɵadvance();
|
|
1896
|
-
i0.ɵɵtextInterpolate(rowData_r6.existenciaSecundaria);
|
|
1897
|
-
} }
|
|
1898
|
-
function SeleccionaArticuloComponent_ng_template_27_td_8_Template(rf, ctx) { if (rf & 1) {
|
|
1899
|
-
i0.ɵɵelementStart(0, "td", 36);
|
|
1900
|
-
i0.ɵɵtext(1);
|
|
1901
|
-
i0.ɵɵelementEnd();
|
|
1902
|
-
} if (rf & 2) {
|
|
1903
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1904
|
-
i0.ɵɵadvance();
|
|
1905
|
-
i0.ɵɵtextInterpolate(rowData_r6.unidadSecundariaCodigo);
|
|
1906
|
-
} }
|
|
1907
|
-
function SeleccionaArticuloComponent_ng_template_27_td_15_Template(rf, ctx) { if (rf & 1) {
|
|
1908
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1909
|
-
i0.ɵɵtext(1);
|
|
1910
|
-
i0.ɵɵpipe(2, "currency");
|
|
1911
|
-
i0.ɵɵelementEnd();
|
|
1912
|
-
} if (rf & 2) {
|
|
1913
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1914
|
-
i0.ɵɵadvance();
|
|
1915
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, rowData_r6.precioConImpuestos), " ");
|
|
1916
|
-
} }
|
|
1917
|
-
function SeleccionaArticuloComponent_ng_template_27_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
1918
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1919
|
-
i0.ɵɵtext(1);
|
|
1920
|
-
i0.ɵɵpipe(2, "currency");
|
|
1921
|
-
i0.ɵɵelementEnd();
|
|
1922
|
-
} if (rf & 2) {
|
|
1923
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1924
|
-
i0.ɵɵadvance();
|
|
1925
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio2ConImpuestos));
|
|
1926
|
-
} }
|
|
1927
|
-
function SeleccionaArticuloComponent_ng_template_27_td_17_Template(rf, ctx) { if (rf & 1) {
|
|
1928
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1929
|
-
i0.ɵɵtext(1);
|
|
1930
|
-
i0.ɵɵpipe(2, "currency");
|
|
1931
|
-
i0.ɵɵelementEnd();
|
|
1932
|
-
} if (rf & 2) {
|
|
1933
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1934
|
-
i0.ɵɵadvance();
|
|
1935
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio3ConImpuestos));
|
|
1936
|
-
} }
|
|
1937
|
-
function SeleccionaArticuloComponent_ng_template_27_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
1938
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1939
|
-
i0.ɵɵtext(1);
|
|
1940
|
-
i0.ɵɵpipe(2, "currency");
|
|
1941
|
-
i0.ɵɵelementEnd();
|
|
1942
|
-
} if (rf & 2) {
|
|
1943
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1944
|
-
i0.ɵɵadvance();
|
|
1945
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio4ConImpuestos));
|
|
1946
|
-
} }
|
|
1947
|
-
function SeleccionaArticuloComponent_ng_template_27_td_19_Template(rf, ctx) { if (rf & 1) {
|
|
1948
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1949
|
-
i0.ɵɵtext(1);
|
|
1950
|
-
i0.ɵɵpipe(2, "currency");
|
|
1951
|
-
i0.ɵɵelementEnd();
|
|
1952
|
-
} if (rf & 2) {
|
|
1953
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1954
|
-
i0.ɵɵadvance();
|
|
1955
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio5ConImpuestos));
|
|
1956
|
-
} }
|
|
1957
|
-
function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if (rf & 1) {
|
|
1958
|
-
i0.ɵɵelementStart(0, "td", 36);
|
|
1959
|
-
i0.ɵɵtext(1);
|
|
1960
|
-
i0.ɵɵpipe(2, "currency");
|
|
1961
|
-
i0.ɵɵelementEnd();
|
|
1962
|
-
} if (rf & 2) {
|
|
1963
|
-
const rowData_r6 = i0.ɵɵnextContext().$implicit;
|
|
1964
|
-
i0.ɵɵadvance();
|
|
1965
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r6.precio));
|
|
1966
|
-
} }
|
|
1967
|
-
function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
1968
|
-
i0.ɵɵelementStart(0, "div", 45)(1, "div", 46)(2, "label", 47);
|
|
1969
|
-
i0.ɵɵtext(3);
|
|
1970
|
-
i0.ɵɵelementEnd()();
|
|
1971
|
-
i0.ɵɵelementStart(4, "div", 46)(5, "label", 47);
|
|
1972
|
-
i0.ɵɵtext(6);
|
|
1973
|
-
i0.ɵɵpipe(7, "number");
|
|
1974
|
-
i0.ɵɵelementEnd()()();
|
|
1975
|
-
} if (rf & 2) {
|
|
1976
|
-
const item_r7 = ctx.$implicit;
|
|
1977
|
-
i0.ɵɵadvance(3);
|
|
1978
|
-
i0.ɵɵtextInterpolate(item_r7.unidad_codigo);
|
|
1979
|
-
i0.ɵɵadvance(3);
|
|
1980
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, item_r7.unidad_existencia, "1.2-2"));
|
|
1981
|
-
} }
|
|
1982
|
-
function SeleccionaArticuloComponent_ng_template_27_td_23_Template(rf, ctx) { if (rf & 1) {
|
|
1983
|
-
i0.ɵɵelementStart(0, "td", 39);
|
|
1984
|
-
i0.ɵɵtext(1);
|
|
1985
|
-
i0.ɵɵelementEnd();
|
|
1986
|
-
} if (rf & 2) {
|
|
1987
|
-
const itemData_r8 = ctx.$implicit;
|
|
1988
|
-
i0.ɵɵadvance();
|
|
1989
|
-
i0.ɵɵtextInterpolate(itemData_r8.valor);
|
|
1990
|
-
} }
|
|
1991
|
-
function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf & 1) {
|
|
1992
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1993
|
-
i0.ɵɵelementStart(0, "tr", 32);
|
|
1994
|
-
i0.ɵɵtemplate(1, SeleccionaArticuloComponent_ng_template_27_td_1_Template, 2, 0, "td", 33)(2, SeleccionaArticuloComponent_ng_template_27_td_2_Template, 2, 1, "td", 34);
|
|
1995
|
-
i0.ɵɵelementStart(3, "td", 35);
|
|
1996
|
-
i0.ɵɵtext(4);
|
|
1997
|
-
i0.ɵɵelementEnd();
|
|
1998
|
-
i0.ɵɵelementStart(5, "td", 36);
|
|
1999
|
-
i0.ɵɵtext(6);
|
|
2000
|
-
i0.ɵɵelementEnd();
|
|
2001
|
-
i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_27_td_7_Template, 2, 1, "td", 37)(8, SeleccionaArticuloComponent_ng_template_27_td_8_Template, 2, 1, "td", 38);
|
|
2002
|
-
i0.ɵɵelementStart(9, "td", 39);
|
|
2003
|
-
i0.ɵɵtext(10);
|
|
2004
|
-
i0.ɵɵelementEnd();
|
|
2005
|
-
i0.ɵɵelementStart(11, "td", 40);
|
|
2006
|
-
i0.ɵɵtext(12);
|
|
2007
|
-
i0.ɵɵelementEnd();
|
|
2008
|
-
i0.ɵɵelementStart(13, "td", 36)(14, "button", 41);
|
|
2009
|
-
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const rowData_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onShowInformacion(rowData_r6)); });
|
|
2010
|
-
i0.ɵɵelementEnd()();
|
|
2011
|
-
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34)(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34)(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34)(18, SeleccionaArticuloComponent_ng_template_27_td_18_Template, 3, 3, "td", 34)(19, SeleccionaArticuloComponent_ng_template_27_td_19_Template, 3, 3, "td", 34)(20, SeleccionaArticuloComponent_ng_template_27_td_20_Template, 3, 3, "td", 38);
|
|
2012
|
-
i0.ɵɵelementStart(21, "td", 36);
|
|
2013
|
-
i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_27_div_22_Template, 8, 5, "div", 42);
|
|
2014
|
-
i0.ɵɵelementEnd();
|
|
2015
|
-
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_ng_template_27_td_23_Template, 2, 1, "td", 43);
|
|
2016
|
-
i0.ɵɵelementEnd();
|
|
2017
|
-
} if (rf & 2) {
|
|
2018
|
-
const rowData_r6 = ctx.$implicit;
|
|
2019
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2020
|
-
i0.ɵɵproperty("pSelectableRow", rowData_r6);
|
|
2021
|
-
i0.ɵɵadvance();
|
|
2022
|
-
i0.ɵɵproperty("ngIf", !rowData_r6.ubicacionCodigo);
|
|
2023
|
-
i0.ɵɵadvance();
|
|
2024
|
-
i0.ɵɵproperty("ngIf", rowData_r6.ubicacionCodigo);
|
|
2025
|
-
i0.ɵɵadvance(2);
|
|
2026
|
-
i0.ɵɵtextInterpolate(rowData_r6.existencia);
|
|
2027
|
-
i0.ɵɵadvance(2);
|
|
2028
|
-
i0.ɵɵtextInterpolate(rowData_r6.unidadCodigo);
|
|
2029
|
-
i0.ɵɵadvance();
|
|
2030
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2031
|
-
i0.ɵɵadvance();
|
|
2032
|
-
i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
|
|
2033
|
-
i0.ɵɵadvance(2);
|
|
2034
|
-
i0.ɵɵtextInterpolate(rowData_r6.articulo.codigo);
|
|
2035
|
-
i0.ɵɵadvance(2);
|
|
2036
|
-
i0.ɵɵtextInterpolate(rowData_r6.articulo.descripcion);
|
|
2037
|
-
i0.ɵɵadvance(3);
|
|
2038
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2039
|
-
i0.ɵɵadvance();
|
|
2040
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2041
|
-
i0.ɵɵadvance();
|
|
2042
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2043
|
-
i0.ɵɵadvance();
|
|
2044
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2045
|
-
i0.ɵɵadvance();
|
|
2046
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
|
|
2047
|
-
i0.ɵɵadvance();
|
|
2048
|
-
i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
|
|
2049
|
-
i0.ɵɵadvance(2);
|
|
2050
|
-
i0.ɵɵproperty("ngForOf", rowData_r6.existenciaUnidades);
|
|
2051
|
-
i0.ɵɵadvance();
|
|
2052
|
-
i0.ɵɵproperty("ngForOf", rowData_r6.articuloClasificadorList);
|
|
2053
|
-
} }
|
|
2054
|
-
function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template(rf, ctx) { if (rf & 1) {
|
|
2055
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
2056
|
-
i0.ɵɵelementStart(0, "lib-seleccion-articulo-informacion", 48);
|
|
2057
|
-
i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onEventInformacion($event)); });
|
|
2058
|
-
i0.ɵɵelementEnd();
|
|
2059
|
-
} if (rf & 2) {
|
|
2060
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2061
|
-
i0.ɵɵproperty("showModal", ctx_r3.showModalInformacion)("articulo", ctx_r3.articuloSelected);
|
|
2062
|
-
} }
|
|
1550
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionArticuloInformacionComponent, deps: [{ token: ArticuloInformacionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1551
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SeleccionArticuloInformacionComponent, selector: "lib-seleccion-articulo-informacion", inputs: { showModal: "showModal", articulo: "articulo" }, outputs: { eventSelection: "eventSelection" }, ngImport: i0, template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n responsiveLayout=\"scroll\"\n scrollHeight=\"350px\"\n > \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 *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <ng-template pTemplate=\"footer\">\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </ng-template>\n</p-dialog>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] }); }
|
|
1552
|
+
}
|
|
1553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionArticuloInformacionComponent, decorators: [{
|
|
1554
|
+
type: Component,
|
|
1555
|
+
args: [{ selector: 'lib-seleccion-articulo-informacion', standalone: false, template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\"\n [baseZIndex]=\"10000\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n <p-table [columns]=\"columnsData\" [value]=\"existenciasList\" [scrollable]=\"true\" [style]=\"{width: '600px'}\" \n responsiveLayout=\"scroll\"\n scrollHeight=\"350px\"\n > \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 *ngFor=\"let col of columns\" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-rowIndex=\"rowIndex\">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n\t \n <ng-template pTemplate=\"footer\">\n <div class=\"container-end\">\n <button pButton type=\"button\" icon=\"pi pi-replay\" label=\"Cerrar\" class=\"ui-button-raised ui-button-secondary\" (click)=\"hiddenDialog()\"></button>\n </div>\n </ng-template>\n</p-dialog>" }]
|
|
1556
|
+
}], ctorParameters: () => [{ type: ArticuloInformacionService }], propDecorators: { showModal: [{
|
|
1557
|
+
type: Input
|
|
1558
|
+
}], articulo: [{
|
|
1559
|
+
type: Input
|
|
1560
|
+
}], eventSelection: [{
|
|
1561
|
+
type: Output
|
|
1562
|
+
}] } });
|
|
1563
|
+
|
|
2063
1564
|
class SeleccionaArticuloComponent {
|
|
2064
1565
|
constructor(_stockService, _paginateService, _almacenService) {
|
|
2065
1566
|
this._stockService = _stockService;
|
|
@@ -2150,89 +1651,92 @@ class SeleccionaArticuloComponent {
|
|
|
2150
1651
|
onEventInformacion(event) {
|
|
2151
1652
|
this.showModalInformacion = event.status;
|
|
2152
1653
|
}
|
|
2153
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2154
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionaArticuloComponent, selectors: [["app-selecciona-articulo"]], inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, decls: 30, vars: 24, consts: [["dt", ""], [3, "visibleChange", "onShow", "onHide", "header", "visible", "maximizable", "baseZIndex", "blockScroll", "minY"], [1, "grid", "grid-fluid"], [1, "col-12", "md:col-6", "lg:col-6"], [2, "display", "flex"], [2, "width", "115px"], ["pInputText", "", 3, "ngModelChange", "change", "ngModel"], ["value", "C"], ["value", "D"], ["value", "CD"], ["value", "CI"], ["type", "text", "pInputText", "", "id", "key", 2, "width", "200px", 3, "ngModelChange", "keypress", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], [2, "width", "100px"], ["for", "almacen"], ["pInputText", "", "disabled", "", "id", "almacen", 2, "width", "200px", 3, "ngModelChange", "change", "ngModel"], [3, "value", 4, "ngFor", "ngForOf"], ["scrollHeight", "400px", "responsiveLayout", "scroll", "selectionMode", "single", 3, "onRowSelect", "value", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"], [3, "showModal", "articulo", "eventSelection", 4, "ngIf"], [3, "value"], ["translate", "", 2, "width", "80px"], ["translate", "", 2, "width", "70px"], ["translate", "", 2, "width", "40px"], ["style", "width: 50px", "translate", "", 4, "ngIf"], ["style", "width: 40px", "translate", "", 4, "ngIf"], ["translate", "", 2, "width", "120px"], ["style", "width: 80px", "translate", "", 4, "ngIf"], ["style", "width: 80px", "translate", "", 4, "ngFor", "ngForOf"], ["translate", "", 2, "width", "50px"], [3, "pSelectableRow"], ["style", "width: 80px;", "translate", "", 4, "ngIf"], ["style", "width: 80px;", 4, "ngIf"], [2, "width", "70px"], [2, "width", "40px"], ["style", "width: 50px;", 4, "ngIf"], ["style", "width: 40px;", 4, "ngIf"], [2, "width", "80px"], [2, "width", "120px"], ["pButton", "", "type", "button", "icon", "pi pi-eye", 1, "ui-button-raised", "ui-button-primary", 3, "click"], ["class", "row justify-content-between", 4, "ngFor", "ngForOf"], ["style", "width: 80px;", 4, "ngFor", "ngForOf"], [2, "width", "50px"], [1, "row", "justify-content-between"], [1, "col-lg-4"], ["for", ""], [3, "eventSelection", "showModal", "articulo"]], template: function SeleccionaArticuloComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
i0.ɵɵtwoWayListener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.showArticulos, $event) || (ctx.showArticulos = $event); return i0.ɵɵresetView($event); });
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
(
|
|
2220
|
-
|
|
2221
|
-
args: [{ selector: 'app-selecciona-articulo', template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"] }]
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
type:
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
type:
|
|
2232
|
-
}],
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
1654
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionaArticuloComponent, deps: [{ token: StockService }, { token: PaginateService }, { token: AlmacenService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1655
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SeleccionaArticuloComponent, selector: "app-selecciona-articulo", inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, ngImport: i0, template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]" }, { kind: "component", type: i27.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "directive", type: i10.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i10.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "directive", type: i3$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: SeleccionArticuloInformacionComponent, selector: "lib-seleccion-articulo-informacion", inputs: ["showModal", "articulo"], outputs: ["eventSelection"] }, { kind: "pipe", type: i4.DecimalPipe, name: "number" }, { kind: "pipe", type: i4.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1656
|
+
}
|
|
1657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SeleccionaArticuloComponent, decorators: [{
|
|
1658
|
+
type: Component,
|
|
1659
|
+
args: [{ selector: 'app-selecciona-articulo', standalone: false, template: "<!--inicia seleccion de articulos-->\n<!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n<!--\n <div class=\"col-12 col-center\" >-->\n<p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\" [maximizable]=\"true\"\n (onShow)=\"obtenerExistenciaArticulosShow()\" (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\">\n <div class=\"grid grid-fluid\">\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 115px;\">\n <select pInputText [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option value=\"C\">Codigo</option>\n <option value=\"D\">Descripcion</option>\n <option value=\"CD\">Coincidencia</option>\n <option value=\"CI\">Igual a</option>\n </select>\n </div>\n <input type=\"text\" style=\"width: 200px;\" pInputText [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" id=\"key\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\"\n (click)=\"obtenerExistenciaArticulos( )\"></button>\n </div>\n </div>\n <div class=\"col-12 md:col-6 lg:col-6\">\n <div style=\"display: flex;\">\n <div style=\"width: 100px;\">\n <label for=\"almacen\">Almacen:</label>\n </div>\n <select pInputText style=\"width: 200px;\" [(ngModel)]=\"movimiento.almacen\" disabled id=\"almacen\"\n (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\n\n </div>\n </div>\n\n <!--\n <div id=\"table-wrapper\">\n <div id=\"table-scroll\">-->\n <!-- new table\n <p-table #dt [columns]=\"colsDD\" [value]=\"listDD\" [scrollable]=\"true\" \n [style]=\"{width: '100%'} \" [scrollHeight]=\"maxH + 'px'\" \n [resizableColumns]=\"true\" [(selection)]=\"selectedXML\" (onRowSelect)=\"onRowSelect($event)\" dataKey=\"uuid\">\n\n \n -->\n\n <p-table [value]=\"articulosList\" [scrollable]=\"true\" #dt scrollHeight=\"400px\" responsiveLayout=\"scroll\" \n selectionMode=\"single\" (onRowSelect)=\"filaSeleccionada($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th style=\"width: 80px\" translate>C\u00F3digo Ubicacion</th>\n <th style=\"width: 70px\" translate>Existencia</th>\n <th style=\"width: 40px\" translate>Unidad</th>\n <th style=\"width: 50px\" *ngIf=\"manejaUnidadSecundaria\" translate>existenciaSecundaria</th>\n <th style=\"width: 40px\" *ngIf=\"manejaUnidadSecundaria\" translate>Unidad</th>\n <th style=\"width: 80px\" translate>C\u00F3digo</th>\n <th style=\"width: 120px\" translate>Descripcion</th>\n <th style=\"width: 40px\" translate></th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 2</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 3</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 4</th>\n <th style=\"width: 80px\" *ngIf=\"configuracion.tipoPrecio !== 'costo' \" translate>Precio 5</th>\n <th style=\"width: 40px\" *ngIf=\"configuracion.tipoPrecio === 'costo' \" translate>Movimiento.costo</th>\n <th style=\"width: 40px\" translate>Existencia por Unidad</th>\n <th *ngFor=\"let item of clasificadorList\" style=\"width: 80px\" translate>{{item.descripcion}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\">\n <tr [pSelectableRow]=\"rowData\">\n <td style=\"width: 80px;\" *ngIf=\"!rowData.ubicacionCodigo\" translate>Movimiento.NoAsignado</td>\n <td style=\"width: 80px;\" *ngIf=\"rowData.ubicacionCodigo\">{{rowData.ubicacionCodigo}}</td>\n <td style=\"width: 70px;\">{{rowData.existencia}}</td>\n <td style=\"width: 40px;\">{{rowData.unidadCodigo}}</td>\n\n <td style=\"width: 50px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.existenciaSecundaria}}</td>\n <td style=\"width: 40px;\" *ngIf=\"manejaUnidadSecundaria\">{{rowData.unidadSecundariaCodigo}}</td>\n\n <td style=\"width: 80px;\">{{rowData.articulo.codigo}}</td>\n <td style=\"width: 120px;\">{{rowData.articulo.descripcion}}</td>\n <td style=\"width: 40px;\">\n <button pButton type=\"button\" icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\"\n (click)=\"onShowInformacion(rowData)\">\n </button>\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}\n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency\n }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency\n }}</td>\n <td style=\"width: 40px;\" *ngIf=\"configuracion.tipoPrecio === 'costo' \">{{rowData.precio | currency }}</td>\n <td style=\"width: 40px;\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of rowData.existenciaUnidades\">\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div>\n </div>\n </td>\n <!-- <td style=\"width: 40px;\"></td> -->\n <td *ngFor=\"let itemData of rowData.articuloClasificadorList\" style=\"width: 80px;\">{{itemData.valor}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <!-- /new table-->\n <!-- \n <p-table [(value)]=\"articulosList\" responsive=\"true\" \n selectionMode=\"multiple\" (onRowSelect)=\"filaSeleccionada($event)\" [scrollable]=\"true\" scrollHeight=\"350px\" >\n\n <p-column header=\"{{ 'Codigo ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field=\"ubicacionCodigo\" header=\"{{ 'Descripcion ubicacion'.toString() | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\" *ngIf=\"!dato.ubicacionCodigo\" translate> Movimiento.NoAsignado </label>\n <label for=\"\" *ngIf=\"dato.ubicacionCodigo\" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field=\"existencia\" header=\"{{'Existencia' | translate}}\"></p-column>\n <p-column field=\"unidadCodigo\" header=\"{{'Unidad' | translate}}\"></p-column>\n <p-column field=\"unidadDescripcion\" header=\"{{'Descripcion unidad' | translate}}\"></p-column>\n\n <p-column field=\"existenciaSecundaria\" header=\"{{'existenciaSecundaria' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n <p-column field=\"unidadSecundariaCodigo\" header=\"{{'Unidad' | translate}}\" *ngIf=\"manejaUnidadSecundaria\"></p-column>\n \n\n <p-column *ngIf=\"configuracion.tipoPrecio !== 'costo' \" header=\"{{'Movimiento.movimientoDetalle.precio' | translate}}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf=\"configuracion.tipoPrecio === 'costo' \" header=\"{{'Movimiento.costo' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <label for=\"\">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field=\"articulo.codigo\" header=\"{{'Codigo articulo' | translate}}\"></p-column>\n <p-column field=\"articulo.descripcion\" header=\"{{'Descripcion' | translate}}\"></p-column>\n\n\n\n <p-column header=\"{{'ExistenciaPorUnidad' | translate }}\">\n <ng-template let-dato=\"rowData\" pTemplate=\"body\">\n <div class=\"row justify-content-between\" *ngFor=\"let item of dato.existenciaUnidades\" >\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_codigo}}</label></div>\n <div class=\"col-lg-4\"><label for=\"\">{{item.unidad_existencia | number : '1.2-2'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n -->\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\" (onPageChange)=\"pagina($event)\"\n [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n <!-- \n </div>\n </div>\n -->\n</p-dialog>\n<!--\n </div> \n -->\n<!--termina seleccion de articulos-->\n<!--selecciona ubicacion -->\n<lib-seleccion-articulo-informacion [showModal]=\"showModalInformacion\" [articulo]=\"articuloSelected\"\n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion>", styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}\n"] }]
|
|
1660
|
+
}], ctorParameters: () => [{ type: StockService }, { type: PaginateService }, { type: AlmacenService }], propDecorators: { configuracion: [{
|
|
1661
|
+
type: Input
|
|
1662
|
+
}], showArticulos: [{
|
|
1663
|
+
type: Input
|
|
1664
|
+
}], movimiento: [{
|
|
1665
|
+
type: Input
|
|
1666
|
+
}], manejaUnidadSecundaria: [{
|
|
1667
|
+
type: Input
|
|
1668
|
+
}], emitFilaSeleccionada: [{
|
|
1669
|
+
type: Output
|
|
1670
|
+
}], emitShowArticulos: [{
|
|
1671
|
+
type: Output
|
|
1672
|
+
}] } });
|
|
1673
|
+
|
|
1674
|
+
class AcreedorService extends CrudService {
|
|
1675
|
+
constructor(httpClient) {
|
|
1676
|
+
super(httpClient, 'acreedor');
|
|
1677
|
+
this.httpClient = httpClient;
|
|
1678
|
+
}
|
|
1679
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1680
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorService, providedIn: 'root' }); }
|
|
1681
|
+
}
|
|
1682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorService, decorators: [{
|
|
1683
|
+
type: Injectable,
|
|
1684
|
+
args: [{
|
|
1685
|
+
providedIn: 'root'
|
|
1686
|
+
}]
|
|
1687
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
1688
|
+
|
|
1689
|
+
class SelectAcreedorComponent {
|
|
1690
|
+
constructor(acreedorService, paginanateService, translate) {
|
|
1691
|
+
this.acreedorService = acreedorService;
|
|
1692
|
+
this.paginanateService = paginanateService;
|
|
1693
|
+
this.translate = translate;
|
|
1694
|
+
this.params = [];
|
|
1695
|
+
this.ordenar = [];
|
|
1696
|
+
this.visible = false;
|
|
1697
|
+
this.acreedorSeleccionado = new Proveedor();
|
|
1698
|
+
this.select = new EventEmitter();
|
|
1699
|
+
this.translate.get('es');
|
|
1700
|
+
}
|
|
1701
|
+
ngOnInit() {
|
|
1702
|
+
this.page = this.paginanateService.getPage();
|
|
1703
|
+
let arg = [];
|
|
1704
|
+
this.ordenar = this.paginanateService.getOrden(arg, 'es');
|
|
1705
|
+
this.acreedores = [];
|
|
1706
|
+
}
|
|
1707
|
+
cargarDatosAcreedores() {
|
|
1708
|
+
this.params = this.paginanateService.getParams(this.page);
|
|
1709
|
+
this.params.push({ param: 'estatus', value: true });
|
|
1710
|
+
this.acreedorService.getAll(this.params).subscribe((data) => {
|
|
1711
|
+
this.acreedores = data.data;
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
pagina(e) {
|
|
1715
|
+
this.page.rows = e.rows;
|
|
1716
|
+
this.page.offset = e.first;
|
|
1717
|
+
this.cargarDatosAcreedores;
|
|
1718
|
+
}
|
|
1719
|
+
cerrarModal() {
|
|
1720
|
+
this.select.emit(null);
|
|
1721
|
+
this.visible = false;
|
|
1722
|
+
}
|
|
1723
|
+
seleccionarAcreedor(e) {
|
|
1724
|
+
this.select.emit(e.data);
|
|
1725
|
+
this.visible = false;
|
|
1726
|
+
}
|
|
1727
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectAcreedorComponent, deps: [{ token: AcreedorService }, { token: PaginateService }, { token: i3$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1728
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SelectAcreedorComponent, selector: "select-acreedor", inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, ngImport: i0, template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n responsiveLayout=\"scroll\" \n >\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i18.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i18.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i21.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i22.InputText, selector: "[pInputText]" }, { kind: "component", type: i27.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i33.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
1729
|
+
}
|
|
1730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectAcreedorComponent, decorators: [{
|
|
1731
|
+
type: Component,
|
|
1732
|
+
args: [{ standalone: false, selector: 'select-acreedor', template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n responsiveLayout=\"scroll\" \n >\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
|
|
1733
|
+
}], ctorParameters: () => [{ type: AcreedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], propDecorators: { visible: [{
|
|
1734
|
+
type: Input
|
|
1735
|
+
}], acreedorSeleccionado: [{
|
|
1736
|
+
type: Input
|
|
1737
|
+
}], select: [{
|
|
1738
|
+
type: Output
|
|
1739
|
+
}] } });
|
|
2236
1740
|
|
|
2237
1741
|
const components = [
|
|
2238
1742
|
LoadingComponent,
|
|
@@ -2240,7 +1744,10 @@ const components = [
|
|
|
2240
1744
|
LoginModalComponent,
|
|
2241
1745
|
PdfModalComponent,
|
|
2242
1746
|
SessionCreateComponent,
|
|
2243
|
-
|
|
1747
|
+
SelectClienteComponent,
|
|
1748
|
+
SelectProveedorComponent,
|
|
1749
|
+
SeleccionaArticuloComponent,
|
|
1750
|
+
SelectAcreedorComponent
|
|
2244
1751
|
];
|
|
2245
1752
|
const exportComponents = components;
|
|
2246
1753
|
const exportServices = [];
|
|
@@ -2285,9 +1792,9 @@ function HttpLoaderFactory(http) {
|
|
|
2285
1792
|
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
|
2286
1793
|
}
|
|
2287
1794
|
class CoreLibModule {
|
|
2288
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2289
|
-
/** @nocollapse */ static { this.ɵmod =
|
|
2290
|
-
/** @nocollapse */ static { this.ɵinj =
|
|
1795
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1796
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, FormsModule, i1$1.ToastrModule, i3$1.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); }
|
|
1797
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, providers: [
|
|
2291
1798
|
primeNgServices,
|
|
2292
1799
|
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
2293
1800
|
], imports: [CommonModule,
|
|
@@ -2300,61 +1807,37 @@ class CoreLibModule {
|
|
|
2300
1807
|
useFactory: HttpLoaderFactory,
|
|
2301
1808
|
deps: [HttpClient]
|
|
2302
1809
|
}
|
|
2303
|
-
}),
|
|
2304
|
-
}
|
|
2305
|
-
(
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, FormsModule, i1$1.ToastrModule, i2.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); })();
|
|
2335
|
-
|
|
2336
|
-
class Persona {
|
|
2337
|
-
constructor() {
|
|
2338
|
-
//this.estadoCivil= new EstadoCivil();
|
|
2339
|
-
//this.genero = new Genero();
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
class PersonaFisica {
|
|
2344
|
-
constructor() {
|
|
2345
|
-
this.datoPersona = new Persona();
|
|
2346
|
-
this.contactos = [];
|
|
2347
|
-
this.datoDirecciones = [];
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
class PersonaMoral {
|
|
2352
|
-
constructor() {
|
|
2353
|
-
this.representanteLegal = new PersonaFisica();
|
|
2354
|
-
this.contactos = [];
|
|
2355
|
-
this.datoDirecciones = [];
|
|
2356
|
-
}
|
|
2357
|
-
}
|
|
1810
|
+
}), i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); }
|
|
1811
|
+
}
|
|
1812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreLibModule, decorators: [{
|
|
1813
|
+
type: NgModule,
|
|
1814
|
+
args: [{
|
|
1815
|
+
declarations: [
|
|
1816
|
+
Error404Component,
|
|
1817
|
+
components,
|
|
1818
|
+
contaComponents,
|
|
1819
|
+
SeleccionArticuloInformacionComponent
|
|
1820
|
+
],
|
|
1821
|
+
imports: [
|
|
1822
|
+
CommonModule,
|
|
1823
|
+
primeNg,
|
|
1824
|
+
FormsModule,
|
|
1825
|
+
ToastrModule.forRoot(),
|
|
1826
|
+
TranslateModule.forRoot({
|
|
1827
|
+
loader: {
|
|
1828
|
+
provide: TranslateLoader,
|
|
1829
|
+
useFactory: HttpLoaderFactory,
|
|
1830
|
+
deps: [HttpClient]
|
|
1831
|
+
}
|
|
1832
|
+
})
|
|
1833
|
+
],
|
|
1834
|
+
providers: [
|
|
1835
|
+
primeNgServices,
|
|
1836
|
+
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
1837
|
+
],
|
|
1838
|
+
exports: [components, contaComponents, primeNg, TranslateModule]
|
|
1839
|
+
}]
|
|
1840
|
+
}] });
|
|
2358
1841
|
|
|
2359
1842
|
class ControlAccesoService {
|
|
2360
1843
|
constructor(authService) {
|
|
@@ -2381,19 +1864,19 @@ class ControlAccesoService {
|
|
|
2381
1864
|
}
|
|
2382
1865
|
return permiso;
|
|
2383
1866
|
}
|
|
2384
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2385
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1867
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlAccesoService, deps: [{ token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1868
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlAccesoService, providedIn: 'root' }); }
|
|
2386
1869
|
}
|
|
2387
|
-
(
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
1870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlAccesoService, decorators: [{
|
|
1871
|
+
type: Injectable,
|
|
1872
|
+
args: [{
|
|
1873
|
+
providedIn: 'root'
|
|
1874
|
+
}]
|
|
1875
|
+
}], ctorParameters: () => [{ type: AuthService }], propDecorators: { cambioAcciones: [{
|
|
1876
|
+
type: Output
|
|
1877
|
+
}], changeDetalleUsuario: [{
|
|
1878
|
+
type: Output
|
|
1879
|
+
}] } });
|
|
2397
1880
|
|
|
2398
1881
|
class InitService {
|
|
2399
1882
|
constructor(http, authService) {
|
|
@@ -2430,15 +1913,15 @@ class InitService {
|
|
|
2430
1913
|
});
|
|
2431
1914
|
});
|
|
2432
1915
|
}
|
|
2433
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2434
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1916
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InitService, deps: [{ token: i1.HttpClient }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1917
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InitService, providedIn: 'root' }); }
|
|
2435
1918
|
}
|
|
2436
|
-
(
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
1919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InitService, decorators: [{
|
|
1920
|
+
type: Injectable,
|
|
1921
|
+
args: [{
|
|
1922
|
+
providedIn: 'root'
|
|
1923
|
+
}]
|
|
1924
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: AuthService }] });
|
|
2442
1925
|
|
|
2443
1926
|
class MessageService {
|
|
2444
1927
|
constructor(toastr) {
|
|
@@ -2505,29 +1988,29 @@ class MessageService {
|
|
|
2505
1988
|
}
|
|
2506
1989
|
return msgs;
|
|
2507
1990
|
}
|
|
2508
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2509
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
1991
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MessageService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1992
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MessageService, providedIn: 'root' }); }
|
|
2510
1993
|
}
|
|
2511
|
-
(
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
1994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MessageService, decorators: [{
|
|
1995
|
+
type: Injectable,
|
|
1996
|
+
args: [{
|
|
1997
|
+
providedIn: 'root'
|
|
1998
|
+
}]
|
|
1999
|
+
}], ctorParameters: () => [{ type: i1$1.ToastrService }] });
|
|
2517
2000
|
|
|
2518
2001
|
class PersonaMoralService extends CrudService {
|
|
2519
2002
|
constructor(http) {
|
|
2520
2003
|
super(http, '/personaMoral');
|
|
2521
2004
|
}
|
|
2522
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2523
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2005
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaMoralService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2006
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaMoralService, providedIn: 'root' }); }
|
|
2524
2007
|
}
|
|
2525
|
-
(
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2008
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaMoralService, decorators: [{
|
|
2009
|
+
type: Injectable,
|
|
2010
|
+
args: [{
|
|
2011
|
+
providedIn: 'root'
|
|
2012
|
+
}]
|
|
2013
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2531
2014
|
|
|
2532
2015
|
class CanActivateGuard {
|
|
2533
2016
|
constructor(controlAccesoService) {
|
|
@@ -2541,30 +2024,30 @@ class CanActivateGuard {
|
|
|
2541
2024
|
permisos(rol) {
|
|
2542
2025
|
this.rol = rol;
|
|
2543
2026
|
}
|
|
2544
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2545
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2027
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanActivateGuard, deps: [{ token: ControlAccesoService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2028
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanActivateGuard, providedIn: 'root' }); }
|
|
2546
2029
|
}
|
|
2547
|
-
(
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanActivateGuard, decorators: [{
|
|
2031
|
+
type: Injectable,
|
|
2032
|
+
args: [{
|
|
2033
|
+
providedIn: 'root'
|
|
2034
|
+
}]
|
|
2035
|
+
}], ctorParameters: () => [{ type: ControlAccesoService }] });
|
|
2553
2036
|
|
|
2554
2037
|
class CatalogoAdicionalService extends CrudService {
|
|
2555
2038
|
constructor(httpClient) {
|
|
2556
2039
|
super(httpClient, 'catalogoAdicional');
|
|
2557
2040
|
this.httpClient = httpClient;
|
|
2558
2041
|
}
|
|
2559
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2560
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2042
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoAdicionalService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2043
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoAdicionalService, providedIn: 'root' }); }
|
|
2561
2044
|
}
|
|
2562
|
-
(
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoAdicionalService, decorators: [{
|
|
2046
|
+
type: Injectable,
|
|
2047
|
+
args: [{
|
|
2048
|
+
providedIn: 'root'
|
|
2049
|
+
}]
|
|
2050
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2568
2051
|
|
|
2569
2052
|
class Authenticated {
|
|
2570
2053
|
constructor(authService, controlAccesoService, router) {
|
|
@@ -2625,15 +2108,15 @@ class Authenticated {
|
|
|
2625
2108
|
}
|
|
2626
2109
|
window.location.href = host;
|
|
2627
2110
|
}
|
|
2628
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2629
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2111
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Authenticated, deps: [{ token: AuthService }, { token: ControlAccesoService }, { token: i3$3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2112
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Authenticated, providedIn: 'root' }); }
|
|
2630
2113
|
}
|
|
2631
|
-
(
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Authenticated, decorators: [{
|
|
2115
|
+
type: Injectable,
|
|
2116
|
+
args: [{
|
|
2117
|
+
providedIn: 'root'
|
|
2118
|
+
}]
|
|
2119
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$3.Router }] });
|
|
2637
2120
|
|
|
2638
2121
|
class VersionCheckService {
|
|
2639
2122
|
constructor(http) {
|
|
@@ -2673,22 +2156,15 @@ class VersionCheckService {
|
|
|
2673
2156
|
}
|
|
2674
2157
|
return currentHash === newHash;
|
|
2675
2158
|
}
|
|
2676
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2677
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2678
|
-
}
|
|
2679
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionCheckService, [{
|
|
2680
|
-
type: Injectable,
|
|
2681
|
-
args: [{
|
|
2682
|
-
providedIn: 'root'
|
|
2683
|
-
}]
|
|
2684
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2685
|
-
|
|
2686
|
-
class Agente {
|
|
2687
|
-
constructor() {
|
|
2688
|
-
// this.catalogoTipo= new CatalogoTipo();
|
|
2689
|
-
this.personaFisica = new PersonaFisica();
|
|
2690
|
-
}
|
|
2159
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VersionCheckService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2160
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VersionCheckService, providedIn: 'root' }); }
|
|
2691
2161
|
}
|
|
2162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: VersionCheckService, decorators: [{
|
|
2163
|
+
type: Injectable,
|
|
2164
|
+
args: [{
|
|
2165
|
+
providedIn: 'root'
|
|
2166
|
+
}]
|
|
2167
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2692
2168
|
|
|
2693
2169
|
class AgenteService extends CrudService {
|
|
2694
2170
|
constructor(httpClient) {
|
|
@@ -2707,15 +2183,15 @@ class AgenteService extends CrudService {
|
|
|
2707
2183
|
let url = this.geturl() + '/obtenerAgenteEmpresa';
|
|
2708
2184
|
return this.getHttp().get(url, this.buildAuth());
|
|
2709
2185
|
}
|
|
2710
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2711
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2186
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AgenteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2187
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AgenteService, providedIn: 'root' }); }
|
|
2712
2188
|
}
|
|
2713
|
-
(
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AgenteService, decorators: [{
|
|
2190
|
+
type: Injectable,
|
|
2191
|
+
args: [{
|
|
2192
|
+
providedIn: 'root'
|
|
2193
|
+
}]
|
|
2194
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2719
2195
|
|
|
2720
2196
|
class Almacen {
|
|
2721
2197
|
constructor() { }
|
|
@@ -2736,15 +2212,15 @@ class BancoService extends CrudService {
|
|
|
2736
2212
|
constructor(http) {
|
|
2737
2213
|
super(http, '/banco');
|
|
2738
2214
|
}
|
|
2739
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2740
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2215
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2216
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BancoService, providedIn: 'root' }); }
|
|
2741
2217
|
}
|
|
2742
|
-
(
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BancoService, decorators: [{
|
|
2219
|
+
type: Injectable,
|
|
2220
|
+
args: [{
|
|
2221
|
+
providedIn: 'root'
|
|
2222
|
+
}]
|
|
2223
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2748
2224
|
|
|
2749
2225
|
class CatalogoTipo {
|
|
2750
2226
|
constructor() { }
|
|
@@ -2754,33 +2230,29 @@ class CatalogoTipoService extends CrudService {
|
|
|
2754
2230
|
constructor(htt) {
|
|
2755
2231
|
super(htt, '/catalogoTipo');
|
|
2756
2232
|
}
|
|
2757
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2758
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2759
|
-
}
|
|
2760
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogoTipoService, [{
|
|
2761
|
-
type: Injectable,
|
|
2762
|
-
args: [{
|
|
2763
|
-
providedIn: 'root'
|
|
2764
|
-
}]
|
|
2765
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2766
|
-
|
|
2767
|
-
class ClasificadorTipo {
|
|
2768
|
-
constructor() { }
|
|
2233
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoTipoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2234
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoTipoService, providedIn: 'root' }); }
|
|
2769
2235
|
}
|
|
2236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CatalogoTipoService, decorators: [{
|
|
2237
|
+
type: Injectable,
|
|
2238
|
+
args: [{
|
|
2239
|
+
providedIn: 'root'
|
|
2240
|
+
}]
|
|
2241
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2770
2242
|
|
|
2771
2243
|
class ClasificadorTipoService extends CrudService {
|
|
2772
2244
|
constructor(http) {
|
|
2773
2245
|
super(http, '/clasificadorTipo');
|
|
2774
2246
|
}
|
|
2775
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2776
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2247
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClasificadorTipoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2248
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClasificadorTipoService, providedIn: 'root' }); }
|
|
2777
2249
|
}
|
|
2778
|
-
(
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClasificadorTipoService, decorators: [{
|
|
2251
|
+
type: Injectable,
|
|
2252
|
+
args: [{
|
|
2253
|
+
providedIn: 'root'
|
|
2254
|
+
}]
|
|
2255
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2784
2256
|
|
|
2785
2257
|
class ClaveMovimiento {
|
|
2786
2258
|
constructor() { }
|
|
@@ -2790,24 +2262,15 @@ class ClaveMovimientoService extends CrudService {
|
|
|
2790
2262
|
constructor(http) {
|
|
2791
2263
|
super(http, 'claveMovimiento');
|
|
2792
2264
|
}
|
|
2793
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2794
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2795
|
-
}
|
|
2796
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClaveMovimientoService, [{
|
|
2797
|
-
type: Injectable,
|
|
2798
|
-
args: [{
|
|
2799
|
-
providedIn: 'root'
|
|
2800
|
-
}]
|
|
2801
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2802
|
-
|
|
2803
|
-
class Cliente {
|
|
2804
|
-
constructor() {
|
|
2805
|
-
this.agenteCobrador = new Agente();
|
|
2806
|
-
this.agenteVendedor = new Agente();
|
|
2807
|
-
this.personaFisica = new PersonaFisica();
|
|
2808
|
-
this.personaMoral = new PersonaMoral();
|
|
2809
|
-
}
|
|
2265
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveMovimientoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2266
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveMovimientoService, providedIn: 'root' }); }
|
|
2810
2267
|
}
|
|
2268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveMovimientoService, decorators: [{
|
|
2269
|
+
type: Injectable,
|
|
2270
|
+
args: [{
|
|
2271
|
+
providedIn: 'root'
|
|
2272
|
+
}]
|
|
2273
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2811
2274
|
|
|
2812
2275
|
class ClienteCuentaBanco {
|
|
2813
2276
|
constructor() {
|
|
@@ -2828,23 +2291,6 @@ class ClienteFlete {
|
|
|
2828
2291
|
}
|
|
2829
2292
|
}
|
|
2830
2293
|
|
|
2831
|
-
class ClienteService extends CrudService {
|
|
2832
|
-
constructor(httpCliente) {
|
|
2833
|
-
super(httpCliente, '/cliente');
|
|
2834
|
-
}
|
|
2835
|
-
validar_archivos_bss(id) {
|
|
2836
|
-
return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
|
|
2837
|
-
}
|
|
2838
|
-
/** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
2839
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
|
|
2840
|
-
}
|
|
2841
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
|
|
2842
|
-
type: Injectable,
|
|
2843
|
-
args: [{
|
|
2844
|
-
providedIn: 'root'
|
|
2845
|
-
}]
|
|
2846
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
2847
|
-
|
|
2848
2294
|
class ClienteCuentaBancoService extends CrudService {
|
|
2849
2295
|
constructor(httpClient) {
|
|
2850
2296
|
super(httpClient, '/clienteCuentaBanco');
|
|
@@ -2854,15 +2300,15 @@ class ClienteCuentaBancoService extends CrudService {
|
|
|
2854
2300
|
let p = { 'cuentas': params };
|
|
2855
2301
|
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
2856
2302
|
}
|
|
2857
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2858
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2303
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteCuentaBancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2304
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteCuentaBancoService, providedIn: 'root' }); }
|
|
2859
2305
|
}
|
|
2860
|
-
(
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteCuentaBancoService, decorators: [{
|
|
2307
|
+
type: Injectable,
|
|
2308
|
+
args: [{
|
|
2309
|
+
providedIn: 'root'
|
|
2310
|
+
}]
|
|
2311
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2866
2312
|
|
|
2867
2313
|
class ClienteFleteService extends CrudService {
|
|
2868
2314
|
constructor(httpClient) {
|
|
@@ -2873,15 +2319,15 @@ class ClienteFleteService extends CrudService {
|
|
|
2873
2319
|
let params = { fletes: p };
|
|
2874
2320
|
return this.save(params);
|
|
2875
2321
|
}
|
|
2876
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2877
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2322
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteFleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2323
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteFleteService, providedIn: 'root' }); }
|
|
2878
2324
|
}
|
|
2879
|
-
(
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClienteFleteService, decorators: [{
|
|
2326
|
+
type: Injectable,
|
|
2327
|
+
args: [{
|
|
2328
|
+
providedIn: 'root'
|
|
2329
|
+
}]
|
|
2330
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2885
2331
|
|
|
2886
2332
|
class TipoContacto {
|
|
2887
2333
|
constructor() {
|
|
@@ -2899,29 +2345,29 @@ class DatoContactoService extends CrudService {
|
|
|
2899
2345
|
constructor(http) {
|
|
2900
2346
|
super(http, '/contacto');
|
|
2901
2347
|
}
|
|
2902
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2903
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2348
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoContactoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2349
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoContactoService, providedIn: 'root' }); }
|
|
2904
2350
|
}
|
|
2905
|
-
(
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoContactoService, decorators: [{
|
|
2352
|
+
type: Injectable,
|
|
2353
|
+
args: [{
|
|
2354
|
+
providedIn: 'root'
|
|
2355
|
+
}]
|
|
2356
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2911
2357
|
|
|
2912
2358
|
class DatoDireccionService extends CrudService {
|
|
2913
2359
|
constructor(http) {
|
|
2914
2360
|
super(http, '/datoDireccion');
|
|
2915
2361
|
}
|
|
2916
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2917
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2362
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoDireccionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2363
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoDireccionService, providedIn: 'root' }); }
|
|
2918
2364
|
}
|
|
2919
|
-
(
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DatoDireccionService, decorators: [{
|
|
2366
|
+
type: Injectable,
|
|
2367
|
+
args: [{
|
|
2368
|
+
providedIn: 'root'
|
|
2369
|
+
}]
|
|
2370
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2925
2371
|
|
|
2926
2372
|
class Departamento {
|
|
2927
2373
|
constructor() {
|
|
@@ -2932,15 +2378,15 @@ class DepartamentoService extends CrudService {
|
|
|
2932
2378
|
constructor(http) {
|
|
2933
2379
|
super(http, '/departamento');
|
|
2934
2380
|
}
|
|
2935
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2936
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2381
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DepartamentoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2382
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DepartamentoService, providedIn: 'root' }); }
|
|
2937
2383
|
}
|
|
2938
|
-
(
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DepartamentoService, decorators: [{
|
|
2385
|
+
type: Injectable,
|
|
2386
|
+
args: [{
|
|
2387
|
+
providedIn: 'root'
|
|
2388
|
+
}]
|
|
2389
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2944
2390
|
|
|
2945
2391
|
class FormaPago {
|
|
2946
2392
|
constructor() { }
|
|
@@ -2969,44 +2415,44 @@ class EmpresaService extends CrudService {
|
|
|
2969
2415
|
// return super.get(1);
|
|
2970
2416
|
return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
|
|
2971
2417
|
}
|
|
2972
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2973
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2418
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmpresaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2419
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmpresaService, providedIn: 'root' }); }
|
|
2974
2420
|
}
|
|
2975
|
-
(
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmpresaService, decorators: [{
|
|
2422
|
+
type: Injectable,
|
|
2423
|
+
args: [{
|
|
2424
|
+
providedIn: 'root'
|
|
2425
|
+
}]
|
|
2426
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2981
2427
|
|
|
2982
2428
|
class FleteService extends CrudService {
|
|
2983
2429
|
constructor(httpClient) {
|
|
2984
2430
|
super(httpClient, '/flete');
|
|
2985
2431
|
this.httpClient = httpClient;
|
|
2986
2432
|
}
|
|
2987
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
2988
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2433
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2434
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FleteService, providedIn: 'root' }); }
|
|
2989
2435
|
}
|
|
2990
|
-
(
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FleteService, decorators: [{
|
|
2437
|
+
type: Injectable,
|
|
2438
|
+
args: [{
|
|
2439
|
+
providedIn: 'root'
|
|
2440
|
+
}]
|
|
2441
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
2996
2442
|
|
|
2997
2443
|
class FormaPagoService extends CrudService {
|
|
2998
2444
|
constructor(http) {
|
|
2999
2445
|
super(http, '/FormaDePago');
|
|
3000
2446
|
}
|
|
3001
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3002
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2447
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormaPagoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2448
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormaPagoService, providedIn: "root" }); }
|
|
3003
2449
|
}
|
|
3004
|
-
(
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormaPagoService, decorators: [{
|
|
2451
|
+
type: Injectable,
|
|
2452
|
+
args: [{
|
|
2453
|
+
providedIn: "root"
|
|
2454
|
+
}]
|
|
2455
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3010
2456
|
|
|
3011
2457
|
class Moneda {
|
|
3012
2458
|
constructor() { }
|
|
@@ -3017,15 +2463,15 @@ class MonedaService extends CrudService {
|
|
|
3017
2463
|
super(httpClient, '/moneda');
|
|
3018
2464
|
this.httpClient = httpClient;
|
|
3019
2465
|
}
|
|
3020
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3021
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2466
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MonedaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2467
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MonedaService, providedIn: 'root' }); }
|
|
3022
2468
|
}
|
|
3023
|
-
(
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
2469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MonedaService, decorators: [{
|
|
2470
|
+
type: Injectable,
|
|
2471
|
+
args: [{
|
|
2472
|
+
providedIn: 'root'
|
|
2473
|
+
}]
|
|
2474
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3029
2475
|
|
|
3030
2476
|
class EstadoCivil {
|
|
3031
2477
|
constructor() { }
|
|
@@ -3046,24 +2492,15 @@ class PersonaFisicaService extends CrudService {
|
|
|
3046
2492
|
getEstadoCivil() {
|
|
3047
2493
|
return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
|
|
3048
2494
|
}
|
|
3049
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3050
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
3051
|
-
}
|
|
3052
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PersonaFisicaService, [{
|
|
3053
|
-
type: Injectable,
|
|
3054
|
-
args: [{
|
|
3055
|
-
providedIn: "root"
|
|
3056
|
-
}]
|
|
3057
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3058
|
-
|
|
3059
|
-
class Proveedor {
|
|
3060
|
-
constructor() {
|
|
3061
|
-
this.personaMoral = new PersonaMoral();
|
|
3062
|
-
this.catalogoTipo = new ClasificadorTipo();
|
|
3063
|
-
this.clasificadorTipo = new ClasificadorTipo();
|
|
3064
|
-
this.personaFisica = new PersonaFisica();
|
|
3065
|
-
}
|
|
2495
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaFisicaService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2496
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaFisicaService, providedIn: "root" }); }
|
|
3066
2497
|
}
|
|
2498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PersonaFisicaService, decorators: [{
|
|
2499
|
+
type: Injectable,
|
|
2500
|
+
args: [{
|
|
2501
|
+
providedIn: "root"
|
|
2502
|
+
}]
|
|
2503
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3067
2504
|
|
|
3068
2505
|
class ProveedorCuentaBanco {
|
|
3069
2506
|
constructor() {
|
|
@@ -3080,21 +2517,6 @@ class ProveedorFlete {
|
|
|
3080
2517
|
}
|
|
3081
2518
|
}
|
|
3082
2519
|
|
|
3083
|
-
class ProveedorService extends CrudService {
|
|
3084
|
-
constructor(httpClient) {
|
|
3085
|
-
super(httpClient, '/proveedor');
|
|
3086
|
-
this.httpClient = httpClient;
|
|
3087
|
-
}
|
|
3088
|
-
/** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3089
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
|
|
3090
|
-
}
|
|
3091
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
|
|
3092
|
-
type: Injectable,
|
|
3093
|
-
args: [{
|
|
3094
|
-
providedIn: 'root'
|
|
3095
|
-
}]
|
|
3096
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3097
|
-
|
|
3098
2520
|
class ProveedorCuentaBancoService extends CrudService {
|
|
3099
2521
|
constructor(httpClient) {
|
|
3100
2522
|
super(httpClient, '/proveedorCuentaBanco');
|
|
@@ -3104,15 +2526,15 @@ class ProveedorCuentaBancoService extends CrudService {
|
|
|
3104
2526
|
let p = { 'cuentas': params };
|
|
3105
2527
|
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
3106
2528
|
}
|
|
3107
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3108
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2529
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorCuentaBancoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2530
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorCuentaBancoService, providedIn: 'root' }); }
|
|
3109
2531
|
}
|
|
3110
|
-
(
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
2532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorCuentaBancoService, decorators: [{
|
|
2533
|
+
type: Injectable,
|
|
2534
|
+
args: [{
|
|
2535
|
+
providedIn: 'root'
|
|
2536
|
+
}]
|
|
2537
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3116
2538
|
|
|
3117
2539
|
class ProveedorFleteService extends CrudService {
|
|
3118
2540
|
constructor(httpClient) {
|
|
@@ -3123,29 +2545,29 @@ class ProveedorFleteService extends CrudService {
|
|
|
3123
2545
|
let params = { fletes: p };
|
|
3124
2546
|
return this.save(params);
|
|
3125
2547
|
}
|
|
3126
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3127
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2548
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorFleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2549
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorFleteService, providedIn: 'root' }); }
|
|
3128
2550
|
}
|
|
3129
|
-
(
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
2551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProveedorFleteService, decorators: [{
|
|
2552
|
+
type: Injectable,
|
|
2553
|
+
args: [{
|
|
2554
|
+
providedIn: 'root'
|
|
2555
|
+
}]
|
|
2556
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3135
2557
|
|
|
3136
2558
|
class ClaveAumentoDisminucionService extends CrudService {
|
|
3137
2559
|
constructor(http) {
|
|
3138
2560
|
super(http, 'claveAumentoDisminucion');
|
|
3139
2561
|
}
|
|
3140
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3141
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2562
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveAumentoDisminucionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2563
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveAumentoDisminucionService, providedIn: 'root' }); }
|
|
3142
2564
|
}
|
|
3143
|
-
(
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
2565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ClaveAumentoDisminucionService, decorators: [{
|
|
2566
|
+
type: Injectable,
|
|
2567
|
+
args: [{
|
|
2568
|
+
providedIn: 'root'
|
|
2569
|
+
}]
|
|
2570
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3149
2571
|
|
|
3150
2572
|
class SerieDocumentoService extends CrudService {
|
|
3151
2573
|
constructor(httpClient) {
|
|
@@ -3158,15 +2580,15 @@ class SerieDocumentoService extends CrudService {
|
|
|
3158
2580
|
getReporte(params) {
|
|
3159
2581
|
return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
|
|
3160
2582
|
}
|
|
3161
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3162
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2583
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SerieDocumentoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2584
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SerieDocumentoService, providedIn: 'root' }); }
|
|
3163
2585
|
}
|
|
3164
|
-
(
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
2586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SerieDocumentoService, decorators: [{
|
|
2587
|
+
type: Injectable,
|
|
2588
|
+
args: [{
|
|
2589
|
+
providedIn: 'root'
|
|
2590
|
+
}]
|
|
2591
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3170
2592
|
|
|
3171
2593
|
class SerieDocumento {
|
|
3172
2594
|
constructor() { }
|
|
@@ -3176,15 +2598,15 @@ class TipoContactoService extends CrudService {
|
|
|
3176
2598
|
constructor(http) {
|
|
3177
2599
|
super(http, '/tipoContacto');
|
|
3178
2600
|
}
|
|
3179
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3180
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2601
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TipoContactoService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2602
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TipoContactoService, providedIn: 'root' }); }
|
|
3181
2603
|
}
|
|
3182
|
-
(
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
2604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TipoContactoService, decorators: [{
|
|
2605
|
+
type: Injectable,
|
|
2606
|
+
args: [{
|
|
2607
|
+
providedIn: 'root'
|
|
2608
|
+
}]
|
|
2609
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3188
2610
|
|
|
3189
2611
|
class Ubicacion {
|
|
3190
2612
|
constructor() { }
|
|
@@ -3194,36 +2616,21 @@ class UbicacionService extends CrudService {
|
|
|
3194
2616
|
constructor(http) {
|
|
3195
2617
|
super(http, 'ubicacion');
|
|
3196
2618
|
}
|
|
3197
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3198
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2619
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UbicacionService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2620
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UbicacionService, providedIn: 'root' }); }
|
|
3199
2621
|
}
|
|
3200
|
-
(
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
2622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UbicacionService, decorators: [{
|
|
2623
|
+
type: Injectable,
|
|
2624
|
+
args: [{
|
|
2625
|
+
providedIn: 'root'
|
|
2626
|
+
}]
|
|
2627
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3206
2628
|
|
|
3207
2629
|
class TipoCatalogo {
|
|
3208
2630
|
static { this.ARTICULO = 2; }
|
|
3209
2631
|
static { this.USO_CFDI = 11; }
|
|
3210
2632
|
}
|
|
3211
2633
|
|
|
3212
|
-
class AcreedorService extends CrudService {
|
|
3213
|
-
constructor(httpClient) {
|
|
3214
|
-
super(httpClient, 'acreedor');
|
|
3215
|
-
this.httpClient = httpClient;
|
|
3216
|
-
}
|
|
3217
|
-
/** @nocollapse */ static { this.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
3218
|
-
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' }); }
|
|
3219
|
-
}
|
|
3220
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorService, [{
|
|
3221
|
-
type: Injectable,
|
|
3222
|
-
args: [{
|
|
3223
|
-
providedIn: 'root'
|
|
3224
|
-
}]
|
|
3225
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
3226
|
-
|
|
3227
2634
|
class AcreedorCuentaContableService extends CrudService {
|
|
3228
2635
|
constructor(httpClient) {
|
|
3229
2636
|
super(httpClient, 'acreedorCuentaContable');
|
|
@@ -3233,15 +2640,15 @@ class AcreedorCuentaContableService extends CrudService {
|
|
|
3233
2640
|
let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
|
|
3234
2641
|
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
3235
2642
|
}
|
|
3236
|
-
/** @nocollapse */ static { this.ɵfac =
|
|
3237
|
-
/** @nocollapse */ static { this.ɵprov =
|
|
2643
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorCuentaContableService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2644
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorCuentaContableService, providedIn: 'root' }); }
|
|
3238
2645
|
}
|
|
3239
|
-
(
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
2646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AcreedorCuentaContableService, decorators: [{
|
|
2647
|
+
type: Injectable,
|
|
2648
|
+
args: [{
|
|
2649
|
+
providedIn: 'root'
|
|
2650
|
+
}]
|
|
2651
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
3245
2652
|
|
|
3246
2653
|
class CuentaContableModel {
|
|
3247
2654
|
constructor() {
|
|
@@ -3262,5 +2669,5 @@ class NormaInformacionFinancieraModel {
|
|
|
3262
2669
|
* Generated bundle index. Do not edit.
|
|
3263
2670
|
*/
|
|
3264
2671
|
|
|
3265
|
-
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
|
|
2672
|
+
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
|
|
3266
2673
|
//# sourceMappingURL=visorus-erp-core.mjs.map
|