visorus-erp-core 12.0.1 → 13.0.1
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/esm2020/lib/components/acreedor/select/select-acreedor.component.mjs +205 -0
- package/esm2020/lib/components/caja/session-create/session-create.component.mjs +177 -0
- package/esm2020/lib/components/cliente/select/select-cliente.component.mjs +215 -0
- package/esm2020/lib/components/error404/error404.component.mjs +21 -0
- package/esm2020/lib/components/loading/loading.component.mjs +48 -0
- package/{esm2015/lib/components/loading-screen/loading-screen.component.js → esm2020/lib/components/loading-screen/loading-screen.component.mjs} +5 -19
- package/esm2020/lib/components/login-modal/login-modal.component.mjs +152 -0
- package/{esm2015/lib/components/pdfModal/pdf-modal.component.js → esm2020/lib/components/pdfModal/pdf-modal.component.mjs} +2 -6
- package/esm2020/lib/components/proveedor/select/select-proveedor.component.mjs +138 -0
- package/esm2020/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.mjs +143 -0
- package/esm2020/lib/components/selecciona-articulo/selecciona-articulo.component.mjs +493 -0
- package/esm2020/lib/contabilidad/componentes/cclista/cclista.component.mjs +262 -0
- package/{esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js → esm2020/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.mjs} +4 -11
- package/{esm2015/lib/services/auth.service.js → esm2020/lib/services/auth.service.mjs} +1 -1
- package/fesm2015/visorus-erp-core.mjs +4087 -0
- package/fesm2015/visorus-erp-core.mjs.map +1 -0
- package/{fesm2015/visorus-erp-core.js → fesm2020/visorus-erp-core.mjs} +115 -303
- package/fesm2020/visorus-erp-core.mjs.map +1 -0
- package/package.json +25 -12
- package/bundles/visorus-erp-core.umd.js +0 -5098
- package/bundles/visorus-erp-core.umd.js.map +0 -1
- package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +0 -217
- package/esm2015/lib/components/caja/session-create/session-create.component.js +0 -194
- package/esm2015/lib/components/cliente/select/select-cliente.component.js +0 -227
- package/esm2015/lib/components/error404/error404.component.js +0 -35
- package/esm2015/lib/components/loading/loading.component.js +0 -66
- package/esm2015/lib/components/login-modal/login-modal.component.js +0 -180
- package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +0 -148
- package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +0 -154
- package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +0 -522
- package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +0 -274
- package/fesm2015/visorus-erp-core.js.map +0 -1
- /package/{esm2015/lib/app.module.js → esm2020/lib/app.module.mjs} +0 -0
- /package/{esm2015/lib/components/acreedor/services/acreedor.service.js → esm2020/lib/components/acreedor/services/acreedor.service.mjs} +0 -0
- /package/{esm2015/lib/components/acreedor/services/acreedorCuentaContable.js → esm2020/lib/components/acreedor/services/acreedorCuentaContable.mjs} +0 -0
- /package/{esm2015/lib/components/agente/models/Agente.js → esm2020/lib/components/agente/models/Agente.mjs} +0 -0
- /package/{esm2015/lib/components/agente/services/agente.service.js → esm2020/lib/components/agente/services/agente.service.mjs} +0 -0
- /package/{esm2015/lib/components/almacen/models/Almacen.js → esm2020/lib/components/almacen/models/Almacen.mjs} +0 -0
- /package/{esm2015/lib/components/almacen/services/almacen.service.js → esm2020/lib/components/almacen/services/almacen.service.mjs} +0 -0
- /package/{esm2015/lib/components/banco/models/Banco.js → esm2020/lib/components/banco/models/Banco.mjs} +0 -0
- /package/{esm2015/lib/components/banco/services/banco.service.js → esm2020/lib/components/banco/services/banco.service.mjs} +0 -0
- /package/{esm2015/lib/components/caja/sessionCaja.service.js → esm2020/lib/components/caja/sessionCaja.service.mjs} +0 -0
- /package/{esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js → esm2020/lib/components/catalogoTipo/models/CatalogoTipo.mjs} +0 -0
- /package/{esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js → esm2020/lib/components/catalogoTipo/services/catalogoTipo.service.mjs} +0 -0
- /package/{esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js → esm2020/lib/components/clasificadorTipo/models/ClasificadorTipo.mjs} +0 -0
- /package/{esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js → esm2020/lib/components/clasificadorTipo/services/clasificadorTipo.service.mjs} +0 -0
- /package/{esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js → esm2020/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.mjs} +0 -0
- /package/{esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js → esm2020/lib/components/claveMovimiento/models/ClaveMovimiento.mjs} +0 -0
- /package/{esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js → esm2020/lib/components/claveMovimiento/services/claveMovimiento.service.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/models/Cliente.js → esm2020/lib/components/cliente/models/Cliente.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/models/ClienteCuentaBanco.js → esm2020/lib/components/cliente/models/ClienteCuentaBanco.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/models/ClienteFlete.js → esm2020/lib/components/cliente/models/ClienteFlete.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/services/cliente.service.js → esm2020/lib/components/cliente/services/cliente.service.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js → esm2020/lib/components/cliente/services/clienteCuentaBanco.service.mjs} +0 -0
- /package/{esm2015/lib/components/cliente/services/clienteFlete.service.js → esm2020/lib/components/cliente/services/clienteFlete.service.mjs} +0 -0
- /package/{esm2015/lib/components/contacto/models/DatoContacto.js → esm2020/lib/components/contacto/models/DatoContacto.mjs} +0 -0
- /package/{esm2015/lib/components/contacto/services/datoContacto.service.js → esm2020/lib/components/contacto/services/datoContacto.service.mjs} +0 -0
- /package/{esm2015/lib/components/dato-direccion/models/DatoDireccion.js → esm2020/lib/components/dato-direccion/models/DatoDireccion.mjs} +0 -0
- /package/{esm2015/lib/components/dato-direccion/services/datoDireccion.service.js → esm2020/lib/components/dato-direccion/services/datoDireccion.service.mjs} +0 -0
- /package/{esm2015/lib/components/departamento/models/Departamento.js → esm2020/lib/components/departamento/models/Departamento.mjs} +0 -0
- /package/{esm2015/lib/components/departamento/services/departamento.service.js → esm2020/lib/components/departamento/services/departamento.service.mjs} +0 -0
- /package/{esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js → esm2020/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.mjs} +0 -0
- /package/{esm2015/lib/components/empresa/models/Empresa.js → esm2020/lib/components/empresa/models/Empresa.mjs} +0 -0
- /package/{esm2015/lib/components/empresa/services/empresa.service.js → esm2020/lib/components/empresa/services/empresa.service.mjs} +0 -0
- /package/{esm2015/lib/components/flete/models/Flete.js → esm2020/lib/components/flete/models/Flete.mjs} +0 -0
- /package/{esm2015/lib/components/flete/services/flete.service.js → esm2020/lib/components/flete/services/flete.service.mjs} +0 -0
- /package/{esm2015/lib/components/formaPago/models/FormaPago.js → esm2020/lib/components/formaPago/models/FormaPago.mjs} +0 -0
- /package/{esm2015/lib/components/formaPago/services/FormaPago.service.js → esm2020/lib/components/formaPago/services/FormaPago.service.mjs} +0 -0
- /package/{esm2015/lib/components/loading/loading.service.js → esm2020/lib/components/loading/loading.service.mjs} +0 -0
- /package/{esm2015/lib/components/loading-screen/loading-screen.service.js → esm2020/lib/components/loading-screen/loading-screen.service.mjs} +0 -0
- /package/{esm2015/lib/components/login-modal/login-modal.service.js → esm2020/lib/components/login-modal/login-modal.service.mjs} +0 -0
- /package/{esm2015/lib/components/moneda/models/Moneda.js → esm2020/lib/components/moneda/models/Moneda.mjs} +0 -0
- /package/{esm2015/lib/components/moneda/services/moneda.service.js → esm2020/lib/components/moneda/services/moneda.service.mjs} +0 -0
- /package/{esm2015/lib/components/pdfModal/pdf-modal.service.js → esm2020/lib/components/pdfModal/pdf-modal.service.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/EstadoCivil.js → esm2020/lib/components/persona-fisica/models/EstadoCivil.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/Genero.js → esm2020/lib/components/persona-fisica/models/Genero.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/Persona.js → esm2020/lib/components/persona-fisica/models/Persona.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/models/PersonaFisica.js → esm2020/lib/components/persona-fisica/models/PersonaFisica.mjs} +0 -0
- /package/{esm2015/lib/components/persona-fisica/services/personaFisica.service.js → esm2020/lib/components/persona-fisica/services/personaFisica.service.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/models/Proveedor.js → esm2020/lib/components/proveedor/models/Proveedor.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js → esm2020/lib/components/proveedor/models/ProveedorCuentaBanco.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/models/ProveedorFlete.js → esm2020/lib/components/proveedor/models/ProveedorFlete.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/services/proveedor.service.js → esm2020/lib/components/proveedor/services/proveedor.service.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js → esm2020/lib/components/proveedor/services/proveedorCuentaBanco.service.mjs} +0 -0
- /package/{esm2015/lib/components/proveedor/services/proveedorFlete.service.js → esm2020/lib/components/proveedor/services/proveedorFlete.service.mjs} +0 -0
- /package/{esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js → esm2020/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.mjs} +0 -0
- /package/{esm2015/lib/components/selecciona-articulo/stock.service.js → esm2020/lib/components/selecciona-articulo/stock.service.mjs} +0 -0
- /package/{esm2015/lib/components/serieDocumento/models/SerieDocumento.js → esm2020/lib/components/serieDocumento/models/SerieDocumento.mjs} +0 -0
- /package/{esm2015/lib/components/serieDocumento/services/serieDocumento.service.js → esm2020/lib/components/serieDocumento/services/serieDocumento.service.mjs} +0 -0
- /package/{esm2015/lib/components/tipo-contacto/models/TipoContacto.js → esm2020/lib/components/tipo-contacto/models/TipoContacto.mjs} +0 -0
- /package/{esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js → esm2020/lib/components/tipo-contacto/services/tipoContacto.service.mjs} +0 -0
- /package/{esm2015/lib/components/ubicacion/models/Ubicacion.js → esm2020/lib/components/ubicacion/models/Ubicacion.mjs} +0 -0
- /package/{esm2015/lib/components/ubicacion/services/ubicacion.service.js → esm2020/lib/components/ubicacion/services/ubicacion.service.mjs} +0 -0
- /package/{esm2015/lib/contabilidad/modelos/cuentaContable.model.js → esm2020/lib/contabilidad/modelos/cuentaContable.model.mjs} +0 -0
- /package/{esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js → esm2020/lib/contabilidad/modelos/normaInfoFinanciera.model.mjs} +0 -0
- /package/{esm2015/lib/contabilidad/servicios/cuentacontable.service.js → esm2020/lib/contabilidad/servicios/cuentacontable.service.mjs} +0 -0
- /package/{esm2015/lib/globalPrimeNg.js → esm2020/lib/globalPrimeNg.mjs} +0 -0
- /package/{esm2015/lib/httpInterceptor/httpInterceptor.js → esm2020/lib/httpInterceptor/httpInterceptor.mjs} +0 -0
- /package/{esm2015/lib/importComponents.js → esm2020/lib/importComponents.mjs} +0 -0
- /package/{esm2015/lib/importComponetsConta.js → esm2020/lib/importComponetsConta.mjs} +0 -0
- /package/{esm2015/lib/models/PersonaMoral.js → esm2020/lib/models/PersonaMoral.mjs} +0 -0
- /package/{esm2015/lib/models/Usuario.js → esm2020/lib/models/Usuario.mjs} +0 -0
- /package/{esm2015/lib/models/auth.js → esm2020/lib/models/auth.mjs} +0 -0
- /package/{esm2015/lib/services/authenticated.service.js → esm2020/lib/services/authenticated.service.mjs} +0 -0
- /package/{esm2015/lib/services/canActivateGuard.service.ts.js → esm2020/lib/services/canActivateGuard.service.ts.mjs} +0 -0
- /package/{esm2015/lib/services/catalogo-adicional.service.js → esm2020/lib/services/catalogo-adicional.service.mjs} +0 -0
- /package/{esm2015/lib/services/controlAcceso.service.js → esm2020/lib/services/controlAcceso.service.mjs} +0 -0
- /package/{esm2015/lib/services/crud.service.js → esm2020/lib/services/crud.service.mjs} +0 -0
- /package/{esm2015/lib/services/file.service.js → esm2020/lib/services/file.service.mjs} +0 -0
- /package/{esm2015/lib/services/global.service.js → esm2020/lib/services/global.service.mjs} +0 -0
- /package/{esm2015/lib/services/init.service.js → esm2020/lib/services/init.service.mjs} +0 -0
- /package/{esm2015/lib/services/message.service.js → esm2020/lib/services/message.service.mjs} +0 -0
- /package/{esm2015/lib/services/paginate.service.js → esm2020/lib/services/paginate.service.mjs} +0 -0
- /package/{esm2015/lib/services/personaMoral.service.js → esm2020/lib/services/personaMoral.service.mjs} +0 -0
- /package/{esm2015/lib/services/versionCheck.service.js → esm2020/lib/services/versionCheck.service.mjs} +0 -0
- /package/{esm2015/lib/utils/tipo_catalogo.ts.js → esm2020/lib/utils/tipo_catalogo.ts.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- /package/{esm2015/visorus-erp-core.js → esm2020/visorus-erp-core.mjs} +0 -0
|
@@ -24,7 +24,6 @@ import * as i3 from '@ngx-translate/core';
|
|
|
24
24
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
25
25
|
import { debounceTime } from 'rxjs/operators';
|
|
26
26
|
import * as i3$1 from '@angular/platform-browser';
|
|
27
|
-
import { __awaiter } from 'tslib';
|
|
28
27
|
import * as i8$1 from 'primeng/table';
|
|
29
28
|
import { TableModule } from 'primeng/table';
|
|
30
29
|
import * as i10 from 'primeng/paginator';
|
|
@@ -197,8 +196,7 @@ class CuentaContableService extends CrudService {
|
|
|
197
196
|
}], function () { return [{ type: i1.HttpClient }]; }, null); })();
|
|
198
197
|
|
|
199
198
|
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
-
i0.ɵɵelementStart(0, "tr");
|
|
201
|
-
i0.ɵɵelementStart(1, "th", 5);
|
|
199
|
+
i0.ɵɵelementStart(0, "tr")(1, "th", 5);
|
|
202
200
|
i0.ɵɵtext(2, "Cuenta contable");
|
|
203
201
|
i0.ɵɵelementEnd();
|
|
204
202
|
i0.ɵɵelementStart(3, "th", 5);
|
|
@@ -212,8 +210,7 @@ function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
212
210
|
i0.ɵɵelementEnd();
|
|
213
211
|
i0.ɵɵelementStart(9, "th", 8);
|
|
214
212
|
i0.ɵɵtext(10, "Acciones");
|
|
215
|
-
i0.ɵɵelementEnd();
|
|
216
|
-
i0.ɵɵelementEnd();
|
|
213
|
+
i0.ɵɵelementEnd()();
|
|
217
214
|
} }
|
|
218
215
|
function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
219
216
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -228,8 +225,7 @@ function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) { if (rf & 1
|
|
|
228
225
|
i0.ɵɵelementEnd();
|
|
229
226
|
} }
|
|
230
227
|
function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
231
|
-
i0.ɵɵelementStart(0, "tr");
|
|
232
|
-
i0.ɵɵelementStart(1, "td", 9);
|
|
228
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 9);
|
|
233
229
|
i0.ɵɵelement(2, "p-treeTableToggler", 10);
|
|
234
230
|
i0.ɵɵtext(3);
|
|
235
231
|
i0.ɵɵelementEnd();
|
|
@@ -242,13 +238,10 @@ function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
242
238
|
i0.ɵɵelementStart(8, "td", 12);
|
|
243
239
|
i0.ɵɵtext(9);
|
|
244
240
|
i0.ɵɵelementEnd();
|
|
245
|
-
i0.ɵɵelementStart(10, "td", 13);
|
|
246
|
-
i0.ɵɵelementStart(11, "div", 14);
|
|
241
|
+
i0.ɵɵelementStart(10, "td", 13)(11, "div", 14);
|
|
247
242
|
i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15);
|
|
248
243
|
i0.ɵɵtemplate(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
|
|
249
|
-
i0.ɵɵelementEnd();
|
|
250
|
-
i0.ɵɵelementEnd();
|
|
251
|
-
i0.ɵɵelementEnd();
|
|
244
|
+
i0.ɵɵelementEnd()()();
|
|
252
245
|
} if (rf & 2) {
|
|
253
246
|
const rowNode_r2 = ctx.$implicit;
|
|
254
247
|
const rowData_r3 = ctx.rowData;
|
|
@@ -433,12 +426,10 @@ class CclistaComponent {
|
|
|
433
426
|
i0.ɵɵelementStart(0, "input", 0);
|
|
434
427
|
i0.ɵɵlistener("ngModelChange", function CclistaComponent_Template_input_ngModelChange_0_listener($event) { return ctx.query = $event; })("keyup", function CclistaComponent_Template_input_keyup_0_listener($event) { return ctx.filterAccounts($event); });
|
|
435
428
|
i0.ɵɵelementEnd();
|
|
436
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
437
|
-
i0.ɵɵelementStart(2, "p-treeTable", 2);
|
|
429
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "p-treeTable", 2);
|
|
438
430
|
i0.ɵɵtemplate(3, CclistaComponent_ng_template_3_Template, 11, 0, "ng-template", 3);
|
|
439
431
|
i0.ɵɵtemplate(4, CclistaComponent_ng_template_4_Template, 14, 7, "ng-template", 4);
|
|
440
|
-
i0.ɵɵelementEnd();
|
|
441
|
-
i0.ɵɵelementEnd();
|
|
432
|
+
i0.ɵɵelementEnd()();
|
|
442
433
|
} if (rf & 2) {
|
|
443
434
|
i0.ɵɵproperty("ngModel", ctx.query);
|
|
444
435
|
i0.ɵɵadvance(2);
|
|
@@ -447,11 +438,7 @@ class CclistaComponent {
|
|
|
447
438
|
} }, directives: [i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i4.TreeTable, i4$1.PrimeTemplate, i4.TreeTableToggler, i8.NgIf, i7.ButtonDirective], styles: [""] });
|
|
448
439
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
|
|
449
440
|
type: Component,
|
|
450
|
-
args: [{
|
|
451
|
-
selector: 'lib-cclista',
|
|
452
|
-
templateUrl: './cclista.component.html',
|
|
453
|
-
styleUrls: ['./cclista.component.css']
|
|
454
|
-
}]
|
|
441
|
+
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>", styles: [""] }]
|
|
455
442
|
}], function () { return [{ type: CuentaContableService }]; }, { isShared: [{
|
|
456
443
|
type: Input
|
|
457
444
|
}], typeAccount: [{
|
|
@@ -493,12 +480,9 @@ class CcseleccionDialogComponent {
|
|
|
493
480
|
} }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "draggable", "maximizable", "visibleChange", "onHide"], [1, "padding10", 3, "ngStyle"], [3, "isShared", "typeAccount", "evSelectedAccount"]], template: function CcseleccionDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
494
481
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
495
482
|
i0.ɵɵlistener("visibleChange", function CcseleccionDialogComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.displayShowCuentas = $event; })("onHide", function CcseleccionDialogComponent_Template_p_dialog_onHide_0_listener($event) { return ctx.hiddenDialog($event); });
|
|
496
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
497
|
-
i0.ɵɵelementStart(2, "lib-cclista", 2);
|
|
483
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "lib-cclista", 2);
|
|
498
484
|
i0.ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
|
|
499
|
-
i0.ɵɵelementEnd();
|
|
500
|
-
i0.ɵɵelementEnd();
|
|
501
|
-
i0.ɵɵelementEnd();
|
|
485
|
+
i0.ɵɵelementEnd()()();
|
|
502
486
|
} if (rf & 2) {
|
|
503
487
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$3, ctx.size + "px"));
|
|
504
488
|
i0.ɵɵproperty("visible", ctx.displayShowCuentas)("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
|
|
@@ -509,11 +493,7 @@ class CcseleccionDialogComponent {
|
|
|
509
493
|
} }, directives: [i4$2.Dialog, i8.NgStyle, CclistaComponent], styles: [""] });
|
|
510
494
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
511
495
|
type: Component,
|
|
512
|
-
args: [{
|
|
513
|
-
selector: 'lib-ccseleccion-dialog',
|
|
514
|
-
templateUrl: './ccseleccion-dialog.component.html',
|
|
515
|
-
styleUrls: ['./ccseleccion-dialog.component.css']
|
|
516
|
-
}]
|
|
496
|
+
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>", styles: [""] }]
|
|
517
497
|
}], function () { return []; }, { dialog: [{
|
|
518
498
|
type: ViewChild,
|
|
519
499
|
args: ["dialog", { static: true }]
|
|
@@ -664,30 +644,16 @@ class Error404Component {
|
|
|
664
644
|
}
|
|
665
645
|
/** @nocollapse */ Error404Component.ɵfac = function Error404Component_Factory(t) { return new (t || Error404Component)(); };
|
|
666
646
|
/** @nocollapse */ Error404Component.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: Error404Component, selectors: [["app-error404"]], decls: 9, vars: 0, consts: [[1, "col-md-12", "sec_sof"], [1, "row"], [1, "col", "col-center"], [1, "center"], [1, "error"], [1, "col-12"]], template: function Error404Component_Template(rf, ctx) { if (rf & 1) {
|
|
667
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
668
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
669
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
670
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
671
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
647
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
672
648
|
i0.ɵɵtext(5, " Error 404 ");
|
|
673
649
|
i0.ɵɵelementEnd();
|
|
674
|
-
i0.ɵɵelementStart(6, "div", 5);
|
|
675
|
-
i0.ɵɵelementStart(7, "p");
|
|
650
|
+
i0.ɵɵelementStart(6, "div", 5)(7, "p");
|
|
676
651
|
i0.ɵɵtext(8, "La pagina solicitada no fue encontrada");
|
|
677
|
-
i0.ɵɵelementEnd();
|
|
678
|
-
i0.ɵɵelementEnd();
|
|
679
|
-
i0.ɵɵelementEnd();
|
|
680
|
-
i0.ɵɵelementEnd();
|
|
681
|
-
i0.ɵɵelementEnd();
|
|
682
|
-
i0.ɵɵelementEnd();
|
|
652
|
+
i0.ɵɵelementEnd()()()()()();
|
|
683
653
|
} }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] });
|
|
684
654
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Error404Component, [{
|
|
685
655
|
type: Component,
|
|
686
|
-
args: [{
|
|
687
|
-
selector: 'app-error404',
|
|
688
|
-
templateUrl: './error404.component.html',
|
|
689
|
-
styleUrls: ['./error404.component.css']
|
|
690
|
-
}]
|
|
656
|
+
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"] }]
|
|
691
657
|
}], function () { return []; }, null); })();
|
|
692
658
|
|
|
693
659
|
class LoadingService {
|
|
@@ -739,42 +705,24 @@ class LoadingComponent {
|
|
|
739
705
|
}
|
|
740
706
|
/** @nocollapse */ LoadingComponent.ɵfac = function LoadingComponent_Factory(t) { return new (t || LoadingComponent)(i0.ɵɵdirectiveInject(LoadingService)); };
|
|
741
707
|
/** @nocollapse */ LoadingComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoadingComponent, selectors: [["loading"]], inputs: { logo_loading: "logo_loading" }, decls: 14, vars: 4, consts: [["id", "modal_loading", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalScrollableTitle", "data-backdrop", "static", "data-keyboard", "false", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-scrollable"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], [1, "col-lg-4", "col-md-4", "col-sm-10"], [1, "loader"], [1, "box"], [1, "code"], ["width", "200px", 3, "src"], [1, "txt"]], template: function LoadingComponent_Template(rf, ctx) { if (rf & 1) {
|
|
742
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
743
|
-
i0.ɵɵ
|
|
744
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
745
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
746
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
747
|
-
i0.ɵɵelementStart(5, "div", 5);
|
|
748
|
-
i0.ɵɵelementStart(6, "div", 6);
|
|
749
|
-
i0.ɵɵelement(7, "span", 7);
|
|
750
|
-
i0.ɵɵelement(8, "span", 7);
|
|
708
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6);
|
|
709
|
+
i0.ɵɵelement(7, "span", 7)(8, "span", 7);
|
|
751
710
|
i0.ɵɵelementStart(9, "div", 8);
|
|
752
711
|
i0.ɵɵelement(10, "img", 9);
|
|
753
712
|
i0.ɵɵelementEnd();
|
|
754
713
|
i0.ɵɵelementStart(11, "span", 10);
|
|
755
714
|
i0.ɵɵtext(12);
|
|
756
715
|
i0.ɵɵpipe(13, "translate");
|
|
757
|
-
i0.ɵɵelementEnd();
|
|
758
|
-
i0.ɵɵelementEnd();
|
|
759
|
-
i0.ɵɵelementEnd();
|
|
760
|
-
i0.ɵɵelementEnd();
|
|
761
|
-
i0.ɵɵelementEnd();
|
|
762
|
-
i0.ɵɵelementEnd();
|
|
763
|
-
i0.ɵɵelementEnd();
|
|
764
|
-
i0.ɵɵelementEnd();
|
|
716
|
+
i0.ɵɵelementEnd()()()()()()()();
|
|
765
717
|
} if (rf & 2) {
|
|
766
718
|
i0.ɵɵadvance(10);
|
|
767
719
|
i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
|
|
768
720
|
i0.ɵɵadvance(2);
|
|
769
721
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
770
|
-
} }, pipes: [i3.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
|
|
722
|
+
} }, pipes: [i3.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: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:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]: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}}.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}"] });
|
|
771
723
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
|
|
772
724
|
type: Component,
|
|
773
|
-
args: [{
|
|
774
|
-
selector: 'loading',
|
|
775
|
-
templateUrl: './loading.component.html',
|
|
776
|
-
styleUrls: ['./loading.component.css']
|
|
777
|
-
}]
|
|
725
|
+
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}}.modal{z-index:2050!important}.modal-content{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}\n"] }]
|
|
778
726
|
}], function () { return [{ type: LoadingService }]; }, { logo_loading: [{
|
|
779
727
|
type: Input
|
|
780
728
|
}] }); })();
|
|
@@ -805,27 +753,13 @@ class LoadingScreenComponent {
|
|
|
805
753
|
}
|
|
806
754
|
/** @nocollapse */ LoadingScreenComponent.ɵfac = function LoadingScreenComponent_Factory(t) { return new (t || LoadingScreenComponent)(i0.ɵɵdirectiveInject(LoadingScreenService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
807
755
|
/** @nocollapse */ LoadingScreenComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoadingScreenComponent, selectors: [["app-loading-screen"]], inputs: { logo_loading: "logo_loading" }, decls: 10, vars: 0, consts: [[1, "loading-screen-wrapper"], [1, "loading-screen-icon"], [1, "blobs"], [1, "blob-center"], [1, "blob"]], template: function LoadingScreenComponent_Template(rf, ctx) { if (rf & 1) {
|
|
808
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
809
|
-
i0.ɵɵ
|
|
810
|
-
i0.ɵɵ
|
|
811
|
-
i0.ɵɵelement(3, "div", 3);
|
|
812
|
-
i0.ɵɵelement(4, "div", 4);
|
|
813
|
-
i0.ɵɵelement(5, "div", 4);
|
|
814
|
-
i0.ɵɵelement(6, "div", 4);
|
|
815
|
-
i0.ɵɵelement(7, "div", 4);
|
|
816
|
-
i0.ɵɵelement(8, "div", 4);
|
|
817
|
-
i0.ɵɵelement(9, "div", 4);
|
|
818
|
-
i0.ɵɵelementEnd();
|
|
819
|
-
i0.ɵɵelementEnd();
|
|
820
|
-
i0.ɵɵelementEnd();
|
|
756
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
757
|
+
i0.ɵɵelement(3, "div", 3)(4, "div", 4)(5, "div", 4)(6, "div", 4)(7, "div", 4)(8, "div", 4)(9, "div", 4);
|
|
758
|
+
i0.ɵɵelementEnd()()();
|
|
821
759
|
} }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]:nth-child(1){animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]: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%)}}"] });
|
|
822
760
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingScreenComponent, [{
|
|
823
761
|
type: Component,
|
|
824
|
-
args: [{
|
|
825
|
-
selector: 'app-loading-screen',
|
|
826
|
-
templateUrl: './loading-screen.component.html',
|
|
827
|
-
styleUrls: ['./loading-screen.component.scss']
|
|
828
|
-
}]
|
|
762
|
+
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"] }]
|
|
829
763
|
}], function () { return [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }]; }, { logo_loading: [{
|
|
830
764
|
type: Input
|
|
831
765
|
}] }); })();
|
|
@@ -1008,11 +942,7 @@ class PdfModalComponent {
|
|
|
1008
942
|
} }, directives: [i4$2.Dialog, i8.NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
|
|
1009
943
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
|
|
1010
944
|
type: Component,
|
|
1011
|
-
args: [{
|
|
1012
|
-
selector: 'pdf-modal',
|
|
1013
|
-
templateUrl: './pdf-modal.component.html',
|
|
1014
|
-
styleUrls: ['./pdf-modal.component.css']
|
|
1015
|
-
}]
|
|
945
|
+
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"] }]
|
|
1016
946
|
}], function () { return [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }]; }, null); })();
|
|
1017
947
|
|
|
1018
948
|
class Usuario {
|
|
@@ -1250,37 +1180,28 @@ function LoginModalComponent_div_6_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
1250
1180
|
} }
|
|
1251
1181
|
function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1252
1182
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
1253
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
1254
|
-
i0.ɵɵelementStart(1, "div", 8);
|
|
1255
|
-
i0.ɵɵelementStart(2, "form", 9, 10);
|
|
1183
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "form", 9, 10);
|
|
1256
1184
|
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(3); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.entrar(_r2); });
|
|
1257
1185
|
i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 11);
|
|
1258
|
-
i0.ɵɵelementStart(5, "div", 12);
|
|
1259
|
-
i0.ɵɵelementStart(6, "label", 13);
|
|
1186
|
+
i0.ɵɵelementStart(5, "div", 12)(6, "label", 13);
|
|
1260
1187
|
i0.ɵɵtext(7);
|
|
1261
1188
|
i0.ɵɵpipe(8, "translate");
|
|
1262
1189
|
i0.ɵɵelementEnd();
|
|
1263
1190
|
i0.ɵɵelementStart(9, "input", 14, 15);
|
|
1264
1191
|
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.user.username = $event; });
|
|
1265
1192
|
i0.ɵɵpipe(11, "translate");
|
|
1266
|
-
i0.ɵɵelementEnd();
|
|
1267
|
-
i0.ɵɵ
|
|
1268
|
-
i0.ɵɵelementStart(12, "div", 12);
|
|
1269
|
-
i0.ɵɵelementStart(13, "label", 16);
|
|
1193
|
+
i0.ɵɵelementEnd()();
|
|
1194
|
+
i0.ɵɵelementStart(12, "div", 12)(13, "label", 16);
|
|
1270
1195
|
i0.ɵɵtext(14);
|
|
1271
1196
|
i0.ɵɵpipe(15, "translate");
|
|
1272
1197
|
i0.ɵɵelementEnd();
|
|
1273
1198
|
i0.ɵɵelementStart(16, "input", 17);
|
|
1274
1199
|
i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.user.password = $event; });
|
|
1275
1200
|
i0.ɵɵpipe(17, "translate");
|
|
1276
|
-
i0.ɵɵelementEnd();
|
|
1277
|
-
i0.ɵɵelementEnd();
|
|
1201
|
+
i0.ɵɵelementEnd()();
|
|
1278
1202
|
i0.ɵɵelementStart(18, "button", 18);
|
|
1279
1203
|
i0.ɵɵtext(19, "entrar");
|
|
1280
|
-
i0.ɵɵelementEnd();
|
|
1281
|
-
i0.ɵɵelementEnd();
|
|
1282
|
-
i0.ɵɵelementEnd();
|
|
1283
|
-
i0.ɵɵelementEnd();
|
|
1204
|
+
i0.ɵɵelementEnd()()()();
|
|
1284
1205
|
} if (rf & 2) {
|
|
1285
1206
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1286
1207
|
i0.ɵɵadvance(4);
|
|
@@ -1297,24 +1218,16 @@ function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
1297
1218
|
i0.ɵɵproperty("ngModel", ctx_r0.user.password);
|
|
1298
1219
|
} }
|
|
1299
1220
|
function LoginModalComponent_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1300
|
-
i0.ɵɵelementStart(0, "div", 22);
|
|
1301
|
-
i0.ɵɵelementStart(1, "div", 23);
|
|
1302
|
-
i0.ɵɵelementStart(2, "div", 24);
|
|
1303
|
-
i0.ɵɵelementStart(3, "h5");
|
|
1221
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "h5");
|
|
1304
1222
|
i0.ɵɵtext(4);
|
|
1305
|
-
i0.ɵɵelementEnd();
|
|
1306
|
-
i0.ɵɵelementEnd();
|
|
1307
|
-
i0.ɵɵelementEnd();
|
|
1308
|
-
i0.ɵɵelementEnd();
|
|
1223
|
+
i0.ɵɵelementEnd()()()();
|
|
1309
1224
|
} if (rf & 2) {
|
|
1310
1225
|
const empresa_r10 = ctx.$implicit;
|
|
1311
1226
|
i0.ɵɵadvance(4);
|
|
1312
1227
|
i0.ɵɵtextInterpolate1(" ", empresa_r10.nombre, " ");
|
|
1313
1228
|
} }
|
|
1314
1229
|
function LoginModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
1315
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
1316
|
-
i0.ɵɵelementStart(1, "div", 20);
|
|
1317
|
-
i0.ɵɵelementStart(2, "h4");
|
|
1230
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div", 20)(2, "h4");
|
|
1318
1231
|
i0.ɵɵtext(3, "Selecciona la empresa");
|
|
1319
1232
|
i0.ɵɵelementEnd();
|
|
1320
1233
|
i0.ɵɵelement(4, "hr");
|
|
@@ -1382,19 +1295,12 @@ class LoginModalComponent {
|
|
|
1382
1295
|
}
|
|
1383
1296
|
/** @nocollapse */ LoginModalComponent.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(i0.ɵɵdirectiveInject(LoginModalService), i0.ɵɵdirectiveInject(AuthService)); };
|
|
1384
1297
|
/** @nocollapse */ LoginModalComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 8, vars: 2, consts: [["id", "modalLogin", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalCenterTitle", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["datoForm", "ngForm"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "name", "username", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["username", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "name", "password", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["type", "submit", "translate", "", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1385
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1386
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
1387
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
1388
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
1389
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
1298
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
1390
1299
|
i0.ɵɵelement(5, "img", 5);
|
|
1391
1300
|
i0.ɵɵelementEnd();
|
|
1392
1301
|
i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 6);
|
|
1393
1302
|
i0.ɵɵtemplate(7, LoginModalComponent_div_7_Template, 6, 1, "div", 6);
|
|
1394
|
-
i0.ɵɵelementEnd();
|
|
1395
|
-
i0.ɵɵelementEnd();
|
|
1396
|
-
i0.ɵɵelementEnd();
|
|
1397
|
-
i0.ɵɵelementEnd();
|
|
1303
|
+
i0.ɵɵelementEnd()()()();
|
|
1398
1304
|
} if (rf & 2) {
|
|
1399
1305
|
i0.ɵɵadvance(6);
|
|
1400
1306
|
i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
@@ -1403,11 +1309,7 @@ class LoginModalComponent {
|
|
|
1403
1309
|
} }, directives: [i8.NgIf, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm, i5.DefaultValueAccessor, i5.RequiredValidator, i5.NgControlStatus, i5.NgModel, i3.TranslateDirective, i8.NgForOf], pipes: [i3.TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{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}"] });
|
|
1404
1310
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1405
1311
|
type: Component,
|
|
1406
|
-
args: [{
|
|
1407
|
-
selector: 'app-login-modal',
|
|
1408
|
-
templateUrl: './login-modal.component.html',
|
|
1409
|
-
styleUrls: ['./login-modal.component.css']
|
|
1410
|
-
}]
|
|
1312
|
+
args: [{ selector: 'app-login-modal', 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"] }]
|
|
1411
1313
|
}], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
|
|
1412
1314
|
|
|
1413
1315
|
class SessionCajaService extends CrudService {
|
|
@@ -1436,32 +1338,24 @@ function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1436
1338
|
} }
|
|
1437
1339
|
function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1438
1340
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
1439
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
1440
|
-
i0.ɵɵelementStart(1, "div", 6);
|
|
1441
|
-
i0.ɵɵelementStart(2, "label", 7);
|
|
1341
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "label", 7);
|
|
1442
1342
|
i0.ɵɵtext(3, "Nombre de caja: ");
|
|
1443
1343
|
i0.ɵɵelementEnd();
|
|
1444
1344
|
i0.ɵɵelementStart(4, "input", 8);
|
|
1445
1345
|
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.caja.nombre = $event; });
|
|
1446
|
-
i0.ɵɵelementEnd();
|
|
1447
|
-
i0.ɵɵ
|
|
1448
|
-
i0.ɵɵelementStart(5, "div", 9);
|
|
1449
|
-
i0.ɵɵelementStart(6, "label", 10);
|
|
1346
|
+
i0.ɵɵelementEnd()();
|
|
1347
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "label", 10);
|
|
1450
1348
|
i0.ɵɵtext(7, "Saldo: ");
|
|
1451
1349
|
i0.ɵɵelementEnd();
|
|
1452
1350
|
i0.ɵɵelementStart(8, "input", 11);
|
|
1453
1351
|
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.session.monto = $event; });
|
|
1454
|
-
i0.ɵɵelementEnd();
|
|
1455
|
-
i0.ɵɵ
|
|
1456
|
-
i0.ɵɵelementStart(9, "div", 9);
|
|
1457
|
-
i0.ɵɵelementStart(10, "label", 12);
|
|
1352
|
+
i0.ɵɵelementEnd()();
|
|
1353
|
+
i0.ɵɵelementStart(9, "div", 9)(10, "label", 12);
|
|
1458
1354
|
i0.ɵɵtext(11, "Numero Z:");
|
|
1459
1355
|
i0.ɵɵelementEnd();
|
|
1460
1356
|
i0.ɵɵelementStart(12, "input", 13);
|
|
1461
1357
|
i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.session.z = $event; });
|
|
1462
|
-
i0.ɵɵelementEnd();
|
|
1463
|
-
i0.ɵɵelementEnd();
|
|
1464
|
-
i0.ɵɵelementEnd();
|
|
1358
|
+
i0.ɵɵelementEnd()()();
|
|
1465
1359
|
} if (rf & 2) {
|
|
1466
1360
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
1467
1361
|
i0.ɵɵadvance(4);
|
|
@@ -1544,30 +1438,26 @@ class SessionCreateComponent {
|
|
|
1544
1438
|
this.editMode = false;
|
|
1545
1439
|
this.status.emit({ status: false });
|
|
1546
1440
|
}
|
|
1547
|
-
save() {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1441
|
+
async save() {
|
|
1442
|
+
this.resp = await this.sessionCajaService.save(this.session).toPromise() || null;
|
|
1443
|
+
if (this.resp) {
|
|
1444
|
+
this.session = {};
|
|
1445
|
+
this.editMode = false;
|
|
1446
|
+
this.status.emit({ status: false, save: this.resp.data });
|
|
1447
|
+
this.success.emit(true);
|
|
1448
|
+
}
|
|
1449
|
+
else {
|
|
1450
|
+
this.success.emit(false);
|
|
1451
|
+
}
|
|
1560
1452
|
}
|
|
1561
|
-
edit() {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
}
|
|
1570
|
-
});
|
|
1453
|
+
async edit() {
|
|
1454
|
+
console.log("EDIT", this.session);
|
|
1455
|
+
this.resp = await this.sessionCajaService.update(this.session).toPromise() || null;
|
|
1456
|
+
if (this.resp) {
|
|
1457
|
+
this.session = {};
|
|
1458
|
+
this.editMode = false;
|
|
1459
|
+
this.status.emit({ status: false, update: this.resp.data });
|
|
1460
|
+
}
|
|
1571
1461
|
}
|
|
1572
1462
|
}
|
|
1573
1463
|
/** @nocollapse */ SessionCreateComponent.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(i0.ɵɵdirectiveInject(SessionCajaService)); };
|
|
@@ -1589,11 +1479,7 @@ class SessionCreateComponent {
|
|
|
1589
1479
|
} }, directives: [i4$2.Dialog, i4$1.PrimeTemplate, i8.NgIf, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NumberValueAccessor, i7.ButtonDirective], styles: [""] });
|
|
1590
1480
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
|
|
1591
1481
|
type: Component,
|
|
1592
|
-
args: [{
|
|
1593
|
-
selector: 'session-create',
|
|
1594
|
-
templateUrl: './session-create.component.html',
|
|
1595
|
-
styleUrls: ['./session-create.component.css']
|
|
1596
|
-
}]
|
|
1482
|
+
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>", styles: [""] }]
|
|
1597
1483
|
}], function () { return [{ type: SessionCajaService }]; }, { showCreateSession: [{
|
|
1598
1484
|
type: Input
|
|
1599
1485
|
}], caja: [{
|
|
@@ -1719,8 +1605,7 @@ class PaginateService {
|
|
|
1719
1605
|
}], function () { return [{ type: i3.TranslateService }]; }, null); })();
|
|
1720
1606
|
|
|
1721
1607
|
function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1722
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1723
|
-
i0.ɵɵelementStart(1, "th");
|
|
1608
|
+
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
1724
1609
|
i0.ɵɵtext(2);
|
|
1725
1610
|
i0.ɵɵpipe(3, "translate");
|
|
1726
1611
|
i0.ɵɵelementEnd();
|
|
@@ -1743,8 +1628,7 @@ function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1743
1628
|
i0.ɵɵelementStart(16, "th");
|
|
1744
1629
|
i0.ɵɵtext(17);
|
|
1745
1630
|
i0.ɵɵpipe(18, "translate");
|
|
1746
|
-
i0.ɵɵelementEnd();
|
|
1747
|
-
i0.ɵɵelementEnd();
|
|
1631
|
+
i0.ɵɵelementEnd()();
|
|
1748
1632
|
} if (rf & 2) {
|
|
1749
1633
|
i0.ɵɵadvance(2);
|
|
1750
1634
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "clave"));
|
|
@@ -1778,8 +1662,7 @@ function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf
|
|
|
1778
1662
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
|
|
1779
1663
|
} }
|
|
1780
1664
|
function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1781
|
-
i0.ɵɵelementStart(0, "tr", 8);
|
|
1782
|
-
i0.ɵɵelementStart(1, "td");
|
|
1665
|
+
i0.ɵɵelementStart(0, "tr", 8)(1, "td");
|
|
1783
1666
|
i0.ɵɵtext(2);
|
|
1784
1667
|
i0.ɵɵelementEnd();
|
|
1785
1668
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -1797,8 +1680,7 @@ function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1797
1680
|
i0.ɵɵelementEnd();
|
|
1798
1681
|
i0.ɵɵelementStart(12, "td");
|
|
1799
1682
|
i0.ɵɵtext(13);
|
|
1800
|
-
i0.ɵɵelementEnd();
|
|
1801
|
-
i0.ɵɵelementEnd();
|
|
1683
|
+
i0.ɵɵelementEnd()();
|
|
1802
1684
|
} if (rf & 2) {
|
|
1803
1685
|
const cliente_r3 = ctx.$implicit;
|
|
1804
1686
|
i0.ɵɵproperty("pSelectableRow", cliente_r3);
|
|
@@ -1818,12 +1700,10 @@ function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1818
1700
|
i0.ɵɵtextInterpolate(cliente_r3.diasPago);
|
|
1819
1701
|
} }
|
|
1820
1702
|
function SelectClienteComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
1821
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1822
|
-
i0.ɵɵelementStart(1, "td", 10);
|
|
1703
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 10);
|
|
1823
1704
|
i0.ɵɵtext(2);
|
|
1824
1705
|
i0.ɵɵpipe(3, "translate");
|
|
1825
|
-
i0.ɵɵelementEnd();
|
|
1826
|
-
i0.ɵɵelementEnd();
|
|
1706
|
+
i0.ɵɵelementEnd()();
|
|
1827
1707
|
} if (rf & 2) {
|
|
1828
1708
|
i0.ɵɵadvance(2);
|
|
1829
1709
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "general.noRegistros"));
|
|
@@ -1888,22 +1768,19 @@ class SelectClienteComponent {
|
|
|
1888
1768
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
1889
1769
|
i0.ɵɵlistener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
|
|
1890
1770
|
i0.ɵɵpipe(1, "translate");
|
|
1891
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
1892
|
-
i0.ɵɵelementStart(3, "input", 2);
|
|
1771
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
|
|
1893
1772
|
i0.ɵɵlistener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
|
|
1894
1773
|
i0.ɵɵpipe(4, "translate");
|
|
1895
1774
|
i0.ɵɵelementEnd();
|
|
1896
1775
|
i0.ɵɵelementStart(5, "button", 3);
|
|
1897
1776
|
i0.ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
|
|
1898
|
-
i0.ɵɵelementEnd();
|
|
1899
|
-
i0.ɵɵelementEnd();
|
|
1777
|
+
i0.ɵɵelementEnd()();
|
|
1900
1778
|
i0.ɵɵelementStart(6, "p-table", 4);
|
|
1901
1779
|
i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); })("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.clienteSeleccionado = $event; })("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
|
|
1902
1780
|
i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5);
|
|
1903
1781
|
i0.ɵɵtemplate(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6);
|
|
1904
1782
|
i0.ɵɵtemplate(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
|
|
1905
|
-
i0.ɵɵelementEnd();
|
|
1906
|
-
i0.ɵɵelementEnd();
|
|
1783
|
+
i0.ɵɵelementEnd()();
|
|
1907
1784
|
} if (rf & 2) {
|
|
1908
1785
|
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 13, "Seleccionar cliente "));
|
|
1909
1786
|
i0.ɵɵproperty("visible", ctx.visible);
|
|
@@ -1916,10 +1793,7 @@ class SelectClienteComponent {
|
|
|
1916
1793
|
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i8$1.SelectableRow, i8.NgIf], pipes: [i3.TranslatePipe], encapsulation: 2 });
|
|
1917
1794
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
|
|
1918
1795
|
type: Component,
|
|
1919
|
-
args: [{
|
|
1920
|
-
selector: 'select-cliente',
|
|
1921
|
-
templateUrl: './select-cliente.component.html'
|
|
1922
|
-
}]
|
|
1796
|
+
args: [{ selector: 'select-cliente', 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>" }]
|
|
1923
1797
|
}], function () { return [{ type: ClienteService }, { type: PaginateService }]; }, { clienteSeleccionado: [{
|
|
1924
1798
|
type: Input
|
|
1925
1799
|
}], selectMode: [{
|
|
@@ -1959,8 +1833,7 @@ class ProveedorService extends CrudService {
|
|
|
1959
1833
|
}], function () { return [{ type: i1.HttpClient }]; }, null); })();
|
|
1960
1834
|
|
|
1961
1835
|
function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1962
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1963
|
-
i0.ɵɵelementStart(1, "th");
|
|
1836
|
+
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
1964
1837
|
i0.ɵɵtext(2);
|
|
1965
1838
|
i0.ɵɵpipe(3, "translate");
|
|
1966
1839
|
i0.ɵɵelementEnd();
|
|
@@ -1971,8 +1844,7 @@ function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1)
|
|
|
1971
1844
|
i0.ɵɵelementStart(7, "th");
|
|
1972
1845
|
i0.ɵɵtext(8);
|
|
1973
1846
|
i0.ɵɵpipe(9, "translate");
|
|
1974
|
-
i0.ɵɵelementEnd();
|
|
1975
|
-
i0.ɵɵelementEnd();
|
|
1847
|
+
i0.ɵɵelementEnd()();
|
|
1976
1848
|
} if (rf & 2) {
|
|
1977
1849
|
i0.ɵɵadvance(2);
|
|
1978
1850
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "clave"));
|
|
@@ -1982,8 +1854,7 @@ function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1)
|
|
|
1982
1854
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, "rfc"));
|
|
1983
1855
|
} }
|
|
1984
1856
|
function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1985
|
-
i0.ɵɵelementStart(0, "tr");
|
|
1986
|
-
i0.ɵɵelementStart(1, "td");
|
|
1857
|
+
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
1987
1858
|
i0.ɵɵtext(2);
|
|
1988
1859
|
i0.ɵɵelementEnd();
|
|
1989
1860
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -1991,8 +1862,7 @@ function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1)
|
|
|
1991
1862
|
i0.ɵɵelementEnd();
|
|
1992
1863
|
i0.ɵɵelementStart(5, "td");
|
|
1993
1864
|
i0.ɵɵtext(6);
|
|
1994
|
-
i0.ɵɵelementEnd();
|
|
1995
|
-
i0.ɵɵelementEnd();
|
|
1865
|
+
i0.ɵɵelementEnd()();
|
|
1996
1866
|
} if (rf & 2) {
|
|
1997
1867
|
const proveedor_r2 = ctx.rowData;
|
|
1998
1868
|
i0.ɵɵadvance(2);
|
|
@@ -2047,15 +1917,13 @@ class SelectProveedorComponent {
|
|
|
2047
1917
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2048
1918
|
i0.ɵɵlistener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
|
|
2049
1919
|
i0.ɵɵpipe(1, "translate");
|
|
2050
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
2051
|
-
i0.ɵɵelementStart(3, "input", 2);
|
|
1920
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
|
|
2052
1921
|
i0.ɵɵlistener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
|
|
2053
1922
|
i0.ɵɵpipe(4, "translate");
|
|
2054
1923
|
i0.ɵɵelementEnd();
|
|
2055
1924
|
i0.ɵɵelementStart(5, "button", 3);
|
|
2056
1925
|
i0.ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
|
|
2057
|
-
i0.ɵɵelementEnd();
|
|
2058
|
-
i0.ɵɵelementEnd();
|
|
1926
|
+
i0.ɵɵelementEnd()();
|
|
2059
1927
|
i0.ɵɵelementStart(6, "p-table", 4);
|
|
2060
1928
|
i0.ɵɵlistener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { return ctx.proveedores = $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.proveedorSeleccionado = $event; })("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
|
|
2061
1929
|
i0.ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5);
|
|
@@ -2063,8 +1931,7 @@ class SelectProveedorComponent {
|
|
|
2063
1931
|
i0.ɵɵelementEnd();
|
|
2064
1932
|
i0.ɵɵelementStart(9, "p-paginator", 7);
|
|
2065
1933
|
i0.ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
2066
|
-
i0.ɵɵelementEnd();
|
|
2067
|
-
i0.ɵɵelementEnd();
|
|
1934
|
+
i0.ɵɵelementEnd()();
|
|
2068
1935
|
} if (rf & 2) {
|
|
2069
1936
|
i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 11, "ArticuloProveedor.proveedores"));
|
|
2070
1937
|
i0.ɵɵproperty("visible", ctx.visible);
|
|
@@ -2078,10 +1945,7 @@ class SelectProveedorComponent {
|
|
|
2078
1945
|
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i10.Paginator], pipes: [i3.TranslatePipe], encapsulation: 2 });
|
|
2079
1946
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
|
|
2080
1947
|
type: Component,
|
|
2081
|
-
args: [{
|
|
2082
|
-
templateUrl: 'select-proveedor.component.html',
|
|
2083
|
-
selector: 'select-proveedor'
|
|
2084
|
-
}]
|
|
1948
|
+
args: [{ 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>" }]
|
|
2085
1949
|
}], function () { return [{ type: ProveedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
2086
1950
|
type: Input
|
|
2087
1951
|
}], proveedorSeleccionado: [{
|
|
@@ -2188,8 +2052,7 @@ function SeleccionArticuloInformacionComponent_ng_template_3_Template(rf, ctx) {
|
|
|
2188
2052
|
i0.ɵɵproperty("ngForOf", columns_r6);
|
|
2189
2053
|
} }
|
|
2190
2054
|
function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
2191
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2192
|
-
i0.ɵɵelementStart(1, "td");
|
|
2055
|
+
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
2193
2056
|
i0.ɵɵtext(2);
|
|
2194
2057
|
i0.ɵɵelementEnd();
|
|
2195
2058
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -2203,8 +2066,7 @@ function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) {
|
|
|
2203
2066
|
i0.ɵɵelementEnd();
|
|
2204
2067
|
i0.ɵɵelementStart(9, "td");
|
|
2205
2068
|
i0.ɵɵtext(10);
|
|
2206
|
-
i0.ɵɵelementEnd();
|
|
2207
|
-
i0.ɵɵelementEnd();
|
|
2069
|
+
i0.ɵɵelementEnd()();
|
|
2208
2070
|
} if (rf & 2) {
|
|
2209
2071
|
const rowData_r9 = ctx.$implicit;
|
|
2210
2072
|
i0.ɵɵadvance(2);
|
|
@@ -2269,28 +2131,19 @@ class SeleccionArticuloInformacionComponent {
|
|
|
2269
2131
|
i0.ɵɵtemplate(3, SeleccionArticuloInformacionComponent_ng_template_3_Template, 2, 1, "ng-template", 3);
|
|
2270
2132
|
i0.ɵɵtemplate(4, SeleccionArticuloInformacionComponent_ng_template_4_Template, 11, 5, "ng-template", 4);
|
|
2271
2133
|
i0.ɵɵelementEnd();
|
|
2272
|
-
i0.ɵɵelementStart(5, "p-footer");
|
|
2273
|
-
i0.ɵɵelementStart(6, "div", 5);
|
|
2274
|
-
i0.ɵɵelementStart(7, "button", 6);
|
|
2134
|
+
i0.ɵɵelementStart(5, "p-footer")(6, "div", 5)(7, "button", 6);
|
|
2275
2135
|
i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_Template_button_click_7_listener() { return ctx.hiddenDialog(); });
|
|
2276
|
-
i0.ɵɵelementEnd();
|
|
2277
|
-
i0.ɵɵelementEnd();
|
|
2278
|
-
i0.ɵɵelementEnd();
|
|
2279
|
-
i0.ɵɵelementEnd();
|
|
2136
|
+
i0.ɵɵelementEnd()()()();
|
|
2280
2137
|
} if (rf & 2) {
|
|
2281
2138
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(17, _c0$2, ctx.size + "px"));
|
|
2282
2139
|
i0.ɵɵproperty("header", ctx.titulo)("visible", ctx.showModal)("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
|
|
2283
2140
|
i0.ɵɵadvance(1);
|
|
2284
2141
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(19, _c1$1));
|
|
2285
2142
|
i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
|
|
2286
|
-
} }, directives: [i4$2.Dialog, i8$1.Table, i4$1.PrimeTemplate, i4$1.Footer, i7.ButtonDirective
|
|
2143
|
+
} }, directives: [i4$2.Dialog, i8$1.Table, i4$1.PrimeTemplate, i8.NgForOf, i8$1.ResizableColumn, i4$1.Footer, i7.ButtonDirective], styles: [""] });
|
|
2287
2144
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
2288
2145
|
type: Component,
|
|
2289
|
-
args: [{
|
|
2290
|
-
selector: 'lib-seleccion-articulo-informacion',
|
|
2291
|
-
templateUrl: './seleccion-articulo-informacion.component.html',
|
|
2292
|
-
styleUrls: ['./seleccion-articulo-informacion.component.css']
|
|
2293
|
-
}]
|
|
2146
|
+
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 [responsive]=\"true\" \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 <p-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 </p-footer>\n</p-dialog>", styles: [""] }]
|
|
2294
2147
|
}], function () { return [{ type: ArticuloInformacionService }]; }, { showModal: [{
|
|
2295
2148
|
type: Input
|
|
2296
2149
|
}], articulo: [{
|
|
@@ -2359,8 +2212,7 @@ function SeleccionaArticuloComponent_ng_template_26_th_22_Template(rf, ctx) { if
|
|
|
2359
2212
|
i0.ɵɵtextInterpolate(item_r15.descripcion);
|
|
2360
2213
|
} }
|
|
2361
2214
|
function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
|
|
2362
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2363
|
-
i0.ɵɵelementStart(1, "th", 23);
|
|
2215
|
+
i0.ɵɵelementStart(0, "tr")(1, "th", 23);
|
|
2364
2216
|
i0.ɵɵtext(2, "C\u00F3digo Ubicacion");
|
|
2365
2217
|
i0.ɵɵelementEnd();
|
|
2366
2218
|
i0.ɵɵelementStart(3, "th", 24);
|
|
@@ -2503,19 +2355,13 @@ function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if
|
|
|
2503
2355
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio));
|
|
2504
2356
|
} }
|
|
2505
2357
|
function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
2506
|
-
i0.ɵɵelementStart(0, "div", 45);
|
|
2507
|
-
i0.ɵɵelementStart(1, "div", 46);
|
|
2508
|
-
i0.ɵɵelementStart(2, "label", 47);
|
|
2358
|
+
i0.ɵɵelementStart(0, "div", 45)(1, "div", 46)(2, "label", 47);
|
|
2509
2359
|
i0.ɵɵtext(3);
|
|
2510
|
-
i0.ɵɵelementEnd();
|
|
2511
|
-
i0.ɵɵ
|
|
2512
|
-
i0.ɵɵelementStart(4, "div", 46);
|
|
2513
|
-
i0.ɵɵelementStart(5, "label", 47);
|
|
2360
|
+
i0.ɵɵelementEnd()();
|
|
2361
|
+
i0.ɵɵelementStart(4, "div", 46)(5, "label", 47);
|
|
2514
2362
|
i0.ɵɵtext(6);
|
|
2515
2363
|
i0.ɵɵpipe(7, "number");
|
|
2516
|
-
i0.ɵɵelementEnd();
|
|
2517
|
-
i0.ɵɵelementEnd();
|
|
2518
|
-
i0.ɵɵelementEnd();
|
|
2364
|
+
i0.ɵɵelementEnd()()();
|
|
2519
2365
|
} if (rf & 2) {
|
|
2520
2366
|
const item_r39 = ctx.$implicit;
|
|
2521
2367
|
i0.ɵɵadvance(3);
|
|
@@ -2551,11 +2397,9 @@ function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf &
|
|
|
2551
2397
|
i0.ɵɵelementStart(11, "td", 40);
|
|
2552
2398
|
i0.ɵɵtext(12);
|
|
2553
2399
|
i0.ɵɵelementEnd();
|
|
2554
|
-
i0.ɵɵelementStart(13, "td", 36);
|
|
2555
|
-
i0.ɵɵelementStart(14, "button", 41);
|
|
2400
|
+
i0.ɵɵelementStart(13, "td", 36)(14, "button", 41);
|
|
2556
2401
|
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const restoredCtx = i0.ɵɵrestoreView(_r42); const rowData_r16 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.onShowInformacion(rowData_r16); });
|
|
2557
|
-
i0.ɵɵelementEnd();
|
|
2558
|
-
i0.ɵɵelementEnd();
|
|
2402
|
+
i0.ɵɵelementEnd()();
|
|
2559
2403
|
i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34);
|
|
2560
2404
|
i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34);
|
|
2561
2405
|
i0.ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34);
|
|
@@ -2711,11 +2555,7 @@ class SeleccionaArticuloComponent {
|
|
|
2711
2555
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2712
2556
|
i0.ɵɵlistener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showArticulos = $event; })("onShow", function SeleccionaArticuloComponent_Template_p_dialog_onShow_0_listener() { return ctx.obtenerExistenciaArticulosShow(); })("onHide", function SeleccionaArticuloComponent_Template_p_dialog_onHide_0_listener() { ctx.busquedaArticulos = { tipoBusqueda: "" }; return ctx.emitirShowArticulos(); });
|
|
2713
2557
|
i0.ɵɵpipe(1, "translate");
|
|
2714
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
2715
|
-
i0.ɵɵelementStart(3, "div", 2);
|
|
2716
|
-
i0.ɵɵelementStart(4, "div", 3);
|
|
2717
|
-
i0.ɵɵelementStart(5, "div", 4);
|
|
2718
|
-
i0.ɵɵelementStart(6, "select", 5);
|
|
2558
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3)(5, "div", 4)(6, "select", 5);
|
|
2719
2559
|
i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_6_listener($event) { return ctx.busquedaArticulos.tipoBusqueda = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_6_listener() { return ctx.obtenerExistenciaArticulosVal(); });
|
|
2720
2560
|
i0.ɵɵelementStart(7, "option", 6);
|
|
2721
2561
|
i0.ɵɵtext(8, "Codigo");
|
|
@@ -2728,31 +2568,20 @@ class SeleccionaArticuloComponent {
|
|
|
2728
2568
|
i0.ɵɵelementEnd();
|
|
2729
2569
|
i0.ɵɵelementStart(13, "option", 9);
|
|
2730
2570
|
i0.ɵɵtext(14, "Igual a");
|
|
2731
|
-
i0.ɵɵelementEnd();
|
|
2732
|
-
i0.ɵɵelementEnd();
|
|
2733
|
-
i0.ɵɵelementEnd();
|
|
2571
|
+
i0.ɵɵelementEnd()()();
|
|
2734
2572
|
i0.ɵɵelementStart(15, "input", 10);
|
|
2735
2573
|
i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_input_ngModelChange_15_listener($event) { return ctx.busquedaArticulos.key = $event; })("keypress", function SeleccionaArticuloComponent_Template_input_keypress_15_listener($event) { return ctx.obtenerExistenciaArticulosKey($event); });
|
|
2736
2574
|
i0.ɵɵelementEnd();
|
|
2737
2575
|
i0.ɵɵelementStart(16, "button", 11);
|
|
2738
2576
|
i0.ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { return ctx.obtenerExistenciaArticulos(); });
|
|
2739
|
-
i0.ɵɵelementEnd();
|
|
2740
|
-
i0.ɵɵ
|
|
2741
|
-
i0.ɵɵelementEnd();
|
|
2742
|
-
i0.ɵɵelementStart(17, "div", 2);
|
|
2743
|
-
i0.ɵɵelementStart(18, "div", 3);
|
|
2744
|
-
i0.ɵɵelementStart(19, "div", 12);
|
|
2745
|
-
i0.ɵɵelementStart(20, "label", 13);
|
|
2577
|
+
i0.ɵɵelementEnd()()();
|
|
2578
|
+
i0.ɵɵelementStart(17, "div", 2)(18, "div", 3)(19, "div", 12)(20, "label", 13);
|
|
2746
2579
|
i0.ɵɵtext(21, "Almacen:");
|
|
2747
|
-
i0.ɵɵelementEnd();
|
|
2748
|
-
i0.ɵɵelementEnd();
|
|
2580
|
+
i0.ɵɵelementEnd()();
|
|
2749
2581
|
i0.ɵɵelementStart(22, "select", 14);
|
|
2750
2582
|
i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_22_listener($event) { return ctx.movimiento.almacen = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_22_listener() { return ctx.obtenerExistenciaArticulosVal(); });
|
|
2751
2583
|
i0.ɵɵtemplate(23, SeleccionaArticuloComponent_option_23_Template, 2, 2, "option", 15);
|
|
2752
|
-
i0.ɵɵelementEnd();
|
|
2753
|
-
i0.ɵɵelementEnd();
|
|
2754
|
-
i0.ɵɵelementEnd();
|
|
2755
|
-
i0.ɵɵelementEnd();
|
|
2584
|
+
i0.ɵɵelementEnd()()()();
|
|
2756
2585
|
i0.ɵɵelementStart(24, "p-table", 16, 17);
|
|
2757
2586
|
i0.ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { return ctx.filaSeleccionada($event); });
|
|
2758
2587
|
i0.ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18);
|
|
@@ -2760,8 +2589,7 @@ class SeleccionaArticuloComponent {
|
|
|
2760
2589
|
i0.ɵɵelementEnd();
|
|
2761
2590
|
i0.ɵɵelementStart(28, "p-paginator", 20);
|
|
2762
2591
|
i0.ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { return ctx.pagina($event); });
|
|
2763
|
-
i0.ɵɵelementEnd();
|
|
2764
|
-
i0.ɵɵelementEnd();
|
|
2592
|
+
i0.ɵɵelementEnd()();
|
|
2765
2593
|
i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
|
|
2766
2594
|
} if (rf & 2) {
|
|
2767
2595
|
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(22, _c0$1, ctx.size + "px"));
|
|
@@ -2781,14 +2609,10 @@ class SeleccionaArticuloComponent {
|
|
|
2781
2609
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(24, _c1));
|
|
2782
2610
|
i0.ɵɵadvance(1);
|
|
2783
2611
|
i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
|
|
2784
|
-
} }, directives: [i4$2.Dialog, i5.SelectControlValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i7.ButtonDirective, i8.NgForOf, i8$1.Table, i4$1.PrimeTemplate,
|
|
2612
|
+
} }, directives: [i4$2.Dialog, i5.SelectControlValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i7.ButtonDirective, i8.NgForOf, i8$1.Table, i4$1.PrimeTemplate, i3.TranslateDirective, i8.NgIf, i8$1.SelectableRow, i10.Paginator, SeleccionArticuloInformacionComponent], pipes: [i3.TranslatePipe, i8.CurrencyPipe, i8.DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
|
|
2785
2613
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
|
|
2786
2614
|
type: Component,
|
|
2787
|
-
args: [{
|
|
2788
|
-
selector: 'app-selecciona-articulo',
|
|
2789
|
-
templateUrl: './selecciona-articulo.component.html',
|
|
2790
|
-
styleUrls: ['./selecciona-articulo.component.css']
|
|
2791
|
-
}]
|
|
2615
|
+
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\" [responsive]=\"true\"\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"] }]
|
|
2792
2616
|
}], function () { return [{ type: StockService }, { type: PaginateService }, { type: AlmacenService }]; }, { configuracion: [{
|
|
2793
2617
|
type: Input
|
|
2794
2618
|
}], showArticulos: [{
|
|
@@ -2819,8 +2643,7 @@ class AcreedorService extends CrudService {
|
|
|
2819
2643
|
}], function () { return [{ type: i1.HttpClient }]; }, null); })();
|
|
2820
2644
|
|
|
2821
2645
|
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
2822
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2823
|
-
i0.ɵɵelementStart(1, "th");
|
|
2646
|
+
i0.ɵɵelementStart(0, "tr")(1, "th");
|
|
2824
2647
|
i0.ɵɵtext(2);
|
|
2825
2648
|
i0.ɵɵpipe(3, "translate");
|
|
2826
2649
|
i0.ɵɵelementEnd();
|
|
@@ -2843,8 +2666,7 @@ function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
2843
2666
|
i0.ɵɵelementStart(16, "th");
|
|
2844
2667
|
i0.ɵɵtext(17);
|
|
2845
2668
|
i0.ɵɵpipe(18, "translate");
|
|
2846
|
-
i0.ɵɵelementEnd();
|
|
2847
|
-
i0.ɵɵelementEnd();
|
|
2669
|
+
i0.ɵɵelementEnd()();
|
|
2848
2670
|
} if (rf & 2) {
|
|
2849
2671
|
i0.ɵɵadvance(2);
|
|
2850
2672
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
|
|
@@ -2878,8 +2700,7 @@ function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf
|
|
|
2878
2700
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
|
|
2879
2701
|
} }
|
|
2880
2702
|
function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
2881
|
-
i0.ɵɵelementStart(0, "tr", 9);
|
|
2882
|
-
i0.ɵɵelementStart(1, "td");
|
|
2703
|
+
i0.ɵɵelementStart(0, "tr", 9)(1, "td");
|
|
2883
2704
|
i0.ɵɵtext(2);
|
|
2884
2705
|
i0.ɵɵelementEnd();
|
|
2885
2706
|
i0.ɵɵelementStart(3, "td");
|
|
@@ -2898,8 +2719,7 @@ function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2898
2719
|
i0.ɵɵelementStart(12, "td");
|
|
2899
2720
|
i0.ɵɵtext(13);
|
|
2900
2721
|
i0.ɵɵpipe(14, "date");
|
|
2901
|
-
i0.ɵɵelementEnd();
|
|
2902
|
-
i0.ɵɵelementEnd();
|
|
2722
|
+
i0.ɵɵelementEnd()();
|
|
2903
2723
|
} if (rf & 2) {
|
|
2904
2724
|
const acreedor_r3 = ctx.$implicit;
|
|
2905
2725
|
i0.ɵɵproperty("pSelectableRow", acreedor_r3);
|
|
@@ -2919,12 +2739,10 @@ function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2919
2739
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r3.fechaUltimaCompra, "dd/MM/yyyy"));
|
|
2920
2740
|
} }
|
|
2921
2741
|
function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
2922
|
-
i0.ɵɵelementStart(0, "tr");
|
|
2923
|
-
i0.ɵɵelementStart(1, "td");
|
|
2742
|
+
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
2924
2743
|
i0.ɵɵtext(2);
|
|
2925
2744
|
i0.ɵɵpipe(3, "translate");
|
|
2926
|
-
i0.ɵɵelementEnd();
|
|
2927
|
-
i0.ɵɵelementEnd();
|
|
2745
|
+
i0.ɵɵelementEnd()();
|
|
2928
2746
|
} if (rf & 2) {
|
|
2929
2747
|
i0.ɵɵadvance(1);
|
|
2930
2748
|
i0.ɵɵattribute("colspan", 6);
|
|
@@ -2975,15 +2793,13 @@ class SelectAcreedorComponent {
|
|
|
2975
2793
|
/** @nocollapse */ SelectAcreedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "responsive", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2976
2794
|
i0.ɵɵelementStart(0, "p-dialog", 0);
|
|
2977
2795
|
i0.ɵɵlistener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2978
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
2979
|
-
i0.ɵɵelementStart(2, "input", 2);
|
|
2796
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "input", 2);
|
|
2980
2797
|
i0.ɵɵlistener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2981
2798
|
i0.ɵɵpipe(3, "translate");
|
|
2982
2799
|
i0.ɵɵelementEnd();
|
|
2983
2800
|
i0.ɵɵelementStart(4, "button", 3);
|
|
2984
2801
|
i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
|
|
2985
|
-
i0.ɵɵelementEnd();
|
|
2986
|
-
i0.ɵɵelementEnd();
|
|
2802
|
+
i0.ɵɵelementEnd()();
|
|
2987
2803
|
i0.ɵɵelementStart(5, "p-table", 4);
|
|
2988
2804
|
i0.ɵɵlistener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { return ctx.acreedorSeleccionado = $event; })("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
|
|
2989
2805
|
i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5);
|
|
@@ -2992,8 +2808,7 @@ class SelectAcreedorComponent {
|
|
|
2992
2808
|
i0.ɵɵelementEnd();
|
|
2993
2809
|
i0.ɵɵelementStart(9, "p-paginator", 8);
|
|
2994
2810
|
i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
|
|
2995
|
-
i0.ɵɵelementEnd();
|
|
2996
|
-
i0.ɵɵelementEnd();
|
|
2811
|
+
i0.ɵɵelementEnd()();
|
|
2997
2812
|
} if (rf & 2) {
|
|
2998
2813
|
i0.ɵɵproperty("visible", ctx.visible);
|
|
2999
2814
|
i0.ɵɵadvance(2);
|
|
@@ -3003,13 +2818,10 @@ class SelectAcreedorComponent {
|
|
|
3003
2818
|
i0.ɵɵproperty("value", ctx.acreedores)("selection", ctx.acreedorSeleccionado)("scrollable", true)("responsive", true);
|
|
3004
2819
|
i0.ɵɵadvance(4);
|
|
3005
2820
|
i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
|
|
3006
|
-
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate,
|
|
2821
|
+
} }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i8$1.SelectableRow, i8.NgIf, i10.Paginator], pipes: [i3.TranslatePipe, i8.DatePipe], encapsulation: 2 });
|
|
3007
2822
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
|
|
3008
2823
|
type: Component,
|
|
3009
|
-
args: [{
|
|
3010
|
-
templateUrl: 'select-acreedor.component.html',
|
|
3011
|
-
selector: 'select-acreedor'
|
|
3012
|
-
}]
|
|
2824
|
+
args: [{ 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 [responsive]=\"true\">\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>" }]
|
|
3013
2825
|
}], function () { return [{ type: AcreedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
|
|
3014
2826
|
type: Input
|
|
3015
2827
|
}], acreedorSeleccionado: [{
|
|
@@ -3953,4 +3765,4 @@ class NormaInformacionFinancieraModel {
|
|
|
3953
3765
|
*/
|
|
3954
3766
|
|
|
3955
3767
|
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 };
|
|
3956
|
-
//# sourceMappingURL=visorus-erp-core.
|
|
3768
|
+
//# sourceMappingURL=visorus-erp-core.mjs.map
|