visorus-erp-core 1.0.8
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/README.md +24 -0
- package/bundles/visorus-erp-core.umd.js +6382 -0
- package/bundles/visorus-erp-core.umd.js.map +1 -0
- package/bundles/visorus-erp-core.umd.min.js +16 -0
- package/bundles/visorus-erp-core.umd.min.js.map +1 -0
- package/esm2015/lib/app.module.js +56 -0
- package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +124 -0
- package/esm2015/lib/components/acreedor/services/acreedor.service.js +36 -0
- package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +44 -0
- package/esm2015/lib/components/agente/models/Agente.js +44 -0
- package/esm2015/lib/components/agente/services/agente.service.js +62 -0
- package/esm2015/lib/components/almacen/models/Almacen.js +40 -0
- package/esm2015/lib/components/almacen/services/almacen.service.js +44 -0
- package/esm2015/lib/components/banco/models/Banco.js +31 -0
- package/esm2015/lib/components/banco/services/banco.service.js +28 -0
- package/esm2015/lib/components/caja/session-create/session-create.component.js +147 -0
- package/esm2015/lib/components/caja/sessionCaja.service.js +36 -0
- package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +22 -0
- package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +28 -0
- package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +22 -0
- package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +28 -0
- package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +28 -0
- package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +50 -0
- package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +28 -0
- package/esm2015/lib/components/cliente/models/Cliente.js +90 -0
- package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +28 -0
- package/esm2015/lib/components/cliente/models/ClienteFlete.js +29 -0
- package/esm2015/lib/components/cliente/select/select-cliente.component.js +140 -0
- package/esm2015/lib/components/cliente/services/cliente.service.js +35 -0
- package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +45 -0
- package/esm2015/lib/components/cliente/services/clienteFlete.service.js +45 -0
- package/esm2015/lib/components/contacto/models/DatoContacto.js +23 -0
- package/esm2015/lib/components/contacto/services/datoContacto.service.js +28 -0
- package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +41 -0
- package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +28 -0
- package/esm2015/lib/components/departamento/models/Departamento.js +23 -0
- package/esm2015/lib/components/departamento/services/departamento.service.js +28 -0
- package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +67 -0
- package/esm2015/lib/components/empresa/models/Empresa.js +31 -0
- package/esm2015/lib/components/empresa/services/empresa.service.js +43 -0
- package/esm2015/lib/components/error404/error404.component.js +23 -0
- package/esm2015/lib/components/flete/models/Flete.js +18 -0
- package/esm2015/lib/components/flete/services/flete.service.js +36 -0
- package/esm2015/lib/components/formaPago/models/FormaPago.js +24 -0
- package/esm2015/lib/components/formaPago/services/FormaPago.service.js +28 -0
- package/esm2015/lib/components/loading/loading.component.js +61 -0
- package/esm2015/lib/components/loading/loading.service.js +47 -0
- package/esm2015/lib/components/loading-screen/loading-screen.component.js +100 -0
- package/esm2015/lib/components/loading-screen/loading-screen.service.js +55 -0
- package/esm2015/lib/components/login-modal/login-modal.component.js +129 -0
- package/esm2015/lib/components/login-modal/login-modal.service.js +31 -0
- package/esm2015/lib/components/moneda/models/Moneda.js +30 -0
- package/esm2015/lib/components/moneda/services/moneda.service.js +36 -0
- package/esm2015/lib/components/pdfModal/pdf-modal.component.js +130 -0
- package/esm2015/lib/components/pdfModal/pdf-modal.service.js +49 -0
- package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +20 -0
- package/esm2015/lib/components/persona-fisica/models/Genero.js +18 -0
- package/esm2015/lib/components/persona-fisica/models/Persona.js +35 -0
- package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +25 -0
- package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +48 -0
- package/esm2015/lib/components/proveedor/models/Proveedor.js +50 -0
- package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +28 -0
- package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +29 -0
- package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +124 -0
- package/esm2015/lib/components/proveedor/services/proveedor.service.js +36 -0
- package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +45 -0
- package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +45 -0
- package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +117 -0
- package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +45 -0
- package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +226 -0
- package/esm2015/lib/components/selecciona-articulo/stock.service.js +67 -0
- package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +58 -0
- package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +49 -0
- package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +20 -0
- package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +28 -0
- package/esm2015/lib/components/ubicacion/models/Ubicacion.js +38 -0
- package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +28 -0
- package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +260 -0
- package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +81 -0
- package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +47 -0
- package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +22 -0
- package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +42 -0
- package/esm2015/lib/globalPrimeNg.js +73 -0
- package/esm2015/lib/httpInterceptor/httpInterceptor.js +142 -0
- package/esm2015/lib/importComponents.js +32 -0
- package/esm2015/lib/importComponetsConta.js +12 -0
- package/esm2015/lib/models/PersonaMoral.js +29 -0
- package/esm2015/lib/models/Usuario.js +21 -0
- package/esm2015/lib/models/auth.js +15 -0
- package/esm2015/lib/services/auth.service.js +331 -0
- package/esm2015/lib/services/authenticated.service.js +127 -0
- package/esm2015/lib/services/canActivateGuard.service.ts.js +53 -0
- package/esm2015/lib/services/catalogo-adicional.service.js +36 -0
- package/esm2015/lib/services/controlAcceso.service.js +80 -0
- package/esm2015/lib/services/crud.service.js +114 -0
- package/esm2015/lib/services/file.service.js +135 -0
- package/esm2015/lib/services/global.service.js +116 -0
- package/esm2015/lib/services/init.service.js +103 -0
- package/esm2015/lib/services/message.service.js +111 -0
- package/esm2015/lib/services/paginate.service.js +104 -0
- package/esm2015/lib/services/personaMoral.service.js +28 -0
- package/esm2015/lib/services/versionCheck.service.js +103 -0
- package/esm2015/lib/utils/tipo_catalogo.ts.js +18 -0
- package/esm2015/public_api.js +100 -0
- package/esm2015/visorus-erp-core.js +15 -0
- package/esm5/lib/app.module.js +60 -0
- package/esm5/lib/components/acreedor/select/select-acreedor.component.js +139 -0
- package/esm5/lib/components/acreedor/services/acreedor.service.js +38 -0
- package/esm5/lib/components/acreedor/services/acreedorCuentaContable.js +49 -0
- package/esm5/lib/components/agente/models/Agente.js +46 -0
- package/esm5/lib/components/agente/services/agente.service.js +75 -0
- package/esm5/lib/components/almacen/models/Almacen.js +43 -0
- package/esm5/lib/components/almacen/services/almacen.service.js +49 -0
- package/esm5/lib/components/banco/models/Banco.js +33 -0
- package/esm5/lib/components/banco/services/banco.service.js +29 -0
- package/esm5/lib/components/caja/session-create/session-create.component.js +181 -0
- package/esm5/lib/components/caja/sessionCaja.service.js +38 -0
- package/esm5/lib/components/catalogoTipo/models/CatalogoTipo.js +25 -0
- package/esm5/lib/components/catalogoTipo/services/catalogoTipo.service.js +29 -0
- package/esm5/lib/components/clasificadorTipo/models/ClasificadorTipo.js +25 -0
- package/esm5/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +29 -0
- package/esm5/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +29 -0
- package/esm5/lib/components/claveMovimiento/models/ClaveMovimiento.js +53 -0
- package/esm5/lib/components/claveMovimiento/services/claveMovimiento.service.js +29 -0
- package/esm5/lib/components/cliente/models/Cliente.js +92 -0
- package/esm5/lib/components/cliente/models/ClienteCuentaBanco.js +30 -0
- package/esm5/lib/components/cliente/models/ClienteFlete.js +30 -0
- package/esm5/lib/components/cliente/select/select-cliente.component.js +157 -0
- package/esm5/lib/components/cliente/services/cliente.service.js +40 -0
- package/esm5/lib/components/cliente/services/clienteCuentaBanco.service.js +51 -0
- package/esm5/lib/components/cliente/services/clienteFlete.service.js +51 -0
- package/esm5/lib/components/contacto/models/DatoContacto.js +25 -0
- package/esm5/lib/components/contacto/services/datoContacto.service.js +29 -0
- package/esm5/lib/components/dato-direccion/models/DatoDireccion.js +43 -0
- package/esm5/lib/components/dato-direccion/services/datoDireccion.service.js +29 -0
- package/esm5/lib/components/departamento/models/Departamento.js +25 -0
- package/esm5/lib/components/departamento/services/departamento.service.js +29 -0
- package/esm5/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +69 -0
- package/esm5/lib/components/empresa/models/Empresa.js +33 -0
- package/esm5/lib/components/empresa/services/empresa.service.js +48 -0
- package/esm5/lib/components/error404/error404.component.js +29 -0
- package/esm5/lib/components/flete/models/Flete.js +21 -0
- package/esm5/lib/components/flete/services/flete.service.js +38 -0
- package/esm5/lib/components/formaPago/models/FormaPago.js +27 -0
- package/esm5/lib/components/formaPago/services/FormaPago.service.js +29 -0
- package/esm5/lib/components/loading/loading.component.js +61 -0
- package/esm5/lib/components/loading/loading.service.js +59 -0
- package/esm5/lib/components/loading-screen/loading-screen.component.js +104 -0
- package/esm5/lib/components/loading-screen/loading-screen.service.js +67 -0
- package/esm5/lib/components/login-modal/login-modal.component.js +137 -0
- package/esm5/lib/components/login-modal/login-modal.service.js +36 -0
- package/esm5/lib/components/moneda/models/Moneda.js +33 -0
- package/esm5/lib/components/moneda/services/moneda.service.js +38 -0
- package/esm5/lib/components/pdfModal/pdf-modal.component.js +107 -0
- package/esm5/lib/components/pdfModal/pdf-modal.service.js +59 -0
- package/esm5/lib/components/persona-fisica/models/EstadoCivil.js +23 -0
- package/esm5/lib/components/persona-fisica/models/Genero.js +21 -0
- package/esm5/lib/components/persona-fisica/models/Persona.js +37 -0
- package/esm5/lib/components/persona-fisica/models/PersonaFisica.js +27 -0
- package/esm5/lib/components/persona-fisica/services/personaFisica.service.js +56 -0
- package/esm5/lib/components/proveedor/models/Proveedor.js +52 -0
- package/esm5/lib/components/proveedor/models/ProveedorCuentaBanco.js +30 -0
- package/esm5/lib/components/proveedor/models/ProveedorFlete.js +30 -0
- package/esm5/lib/components/proveedor/select/select-proveedor.component.js +139 -0
- package/esm5/lib/components/proveedor/services/proveedor.service.js +38 -0
- package/esm5/lib/components/proveedor/services/proveedorCuentaBanco.service.js +51 -0
- package/esm5/lib/components/proveedor/services/proveedorFlete.service.js +51 -0
- package/esm5/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +137 -0
- package/esm5/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +51 -0
- package/esm5/lib/components/selecciona-articulo/selecciona-articulo.component.js +264 -0
- package/esm5/lib/components/selecciona-articulo/stock.service.js +75 -0
- package/esm5/lib/components/serieDocumento/models/SerieDocumento.js +61 -0
- package/esm5/lib/components/serieDocumento/services/serieDocumento.service.js +58 -0
- package/esm5/lib/components/tipo-contacto/models/TipoContacto.js +22 -0
- package/esm5/lib/components/tipo-contacto/services/tipoContacto.service.js +29 -0
- package/esm5/lib/components/ubicacion/models/Ubicacion.js +41 -0
- package/esm5/lib/components/ubicacion/services/ubicacion.service.js +29 -0
- package/esm5/lib/contabilidad/componentes/cclista/cclista.component.js +333 -0
- package/esm5/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +94 -0
- package/esm5/lib/contabilidad/modelos/cuentaContable.model.js +49 -0
- package/esm5/lib/contabilidad/modelos/normaInfoFinanciera.model.js +25 -0
- package/esm5/lib/contabilidad/servicios/cuentacontable.service.js +47 -0
- package/esm5/lib/globalPrimeNg.js +73 -0
- package/esm5/lib/httpInterceptor/httpInterceptor.js +154 -0
- package/esm5/lib/importComponents.js +32 -0
- package/esm5/lib/importComponetsConta.js +12 -0
- package/esm5/lib/models/PersonaMoral.js +31 -0
- package/esm5/lib/models/Usuario.js +25 -0
- package/esm5/lib/models/auth.js +19 -0
- package/esm5/lib/services/auth.service.js +378 -0
- package/esm5/lib/services/authenticated.service.js +133 -0
- package/esm5/lib/services/canActivateGuard.service.ts.js +59 -0
- package/esm5/lib/services/catalogo-adicional.service.js +38 -0
- package/esm5/lib/services/controlAcceso.service.js +92 -0
- package/esm5/lib/services/crud.service.js +156 -0
- package/esm5/lib/services/file.service.js +157 -0
- package/esm5/lib/services/global.service.js +155 -0
- package/esm5/lib/services/init.service.js +108 -0
- package/esm5/lib/services/message.service.js +125 -0
- package/esm5/lib/services/paginate.service.js +115 -0
- package/esm5/lib/services/personaMoral.service.js +29 -0
- package/esm5/lib/services/versionCheck.service.js +117 -0
- package/esm5/lib/utils/tipo_catalogo.ts.js +22 -0
- package/esm5/public_api.js +100 -0
- package/esm5/visorus-erp-core.js +15 -0
- package/fesm2015/visorus-erp-core.js +5545 -0
- package/fesm2015/visorus-erp-core.js.map +1 -0
- package/fesm5/visorus-erp-core.js +6108 -0
- package/fesm5/visorus-erp-core.js.map +1 -0
- package/lib/app.module.d.ts +5 -0
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +23 -0
- package/lib/components/acreedor/services/acreedor.service.d.ts +6 -0
- package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +7 -0
- package/lib/components/agente/models/Agente.d.ts +23 -0
- package/lib/components/agente/services/agente.service.d.ts +9 -0
- package/lib/components/almacen/models/Almacen.d.ts +20 -0
- package/lib/components/almacen/services/almacen.service.d.ts +7 -0
- package/lib/components/banco/models/Banco.d.ts +13 -0
- package/lib/components/banco/services/banco.service.d.ts +5 -0
- package/lib/components/caja/session-create/session-create.component.d.ts +22 -0
- package/lib/components/caja/sessionCaja.service.d.ts +6 -0
- package/lib/components/catalogoTipo/models/CatalogoTipo.d.ts +9 -0
- package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +5 -0
- package/lib/components/clasificadorTipo/models/ClasificadorTipo.d.ts +9 -0
- package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +5 -0
- package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +5 -0
- package/lib/components/claveMovimiento/models/ClaveMovimiento.d.ts +23 -0
- package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +5 -0
- package/lib/components/cliente/models/Cliente.d.ts +44 -0
- package/lib/components/cliente/models/ClienteCuentaBanco.d.ts +12 -0
- package/lib/components/cliente/models/ClienteFlete.d.ts +11 -0
- package/lib/components/cliente/select/select-cliente.component.d.ts +24 -0
- package/lib/components/cliente/services/cliente.service.d.ts +6 -0
- package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +7 -0
- package/lib/components/cliente/services/clienteFlete.service.d.ts +7 -0
- package/lib/components/contacto/models/DatoContacto.d.ts +9 -0
- package/lib/components/contacto/services/datoContacto.service.d.ts +5 -0
- package/lib/components/dato-direccion/models/DatoDireccion.d.ts +18 -0
- package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +5 -0
- package/lib/components/departamento/models/Departamento.d.ts +9 -0
- package/lib/components/departamento/services/departamento.service.d.ts +5 -0
- package/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.d.ts +31 -0
- package/lib/components/empresa/models/Empresa.d.ts +13 -0
- package/lib/components/empresa/services/empresa.service.d.ts +7 -0
- package/lib/components/error404/error404.component.d.ts +5 -0
- package/lib/components/flete/models/Flete.d.ts +7 -0
- package/lib/components/flete/services/flete.service.d.ts +6 -0
- package/lib/components/formaPago/models/FormaPago.d.ts +10 -0
- package/lib/components/formaPago/services/FormaPago.service.d.ts +5 -0
- package/lib/components/loading/loading.component.d.ts +7 -0
- package/lib/components/loading/loading.service.d.ts +7 -0
- package/lib/components/loading-screen/loading-screen.component.d.ts +17 -0
- package/lib/components/loading-screen/loading-screen.service.d.ts +8 -0
- package/lib/components/login-modal/login-modal.component.d.ts +13 -0
- package/lib/components/login-modal/login-modal.service.d.ts +5 -0
- package/lib/components/moneda/models/Moneda.d.ts +13 -0
- package/lib/components/moneda/services/moneda.service.d.ts +6 -0
- package/lib/components/pdfModal/pdf-modal.component.d.ts +13 -0
- package/lib/components/pdfModal/pdf-modal.service.d.ts +9 -0
- package/lib/components/persona-fisica/models/EstadoCivil.d.ts +8 -0
- package/lib/components/persona-fisica/models/Genero.d.ts +7 -0
- package/lib/components/persona-fisica/models/Persona.d.ts +16 -0
- package/lib/components/persona-fisica/models/PersonaFisica.d.ts +11 -0
- package/lib/components/persona-fisica/services/personaFisica.service.d.ts +8 -0
- package/lib/components/proveedor/models/Proveedor.d.ts +23 -0
- package/lib/components/proveedor/models/ProveedorCuentaBanco.d.ts +12 -0
- package/lib/components/proveedor/models/ProveedorFlete.d.ts +11 -0
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +23 -0
- package/lib/components/proveedor/services/proveedor.service.d.ts +6 -0
- package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +7 -0
- package/lib/components/proveedor/services/proveedorFlete.service.d.ts +7 -0
- package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +26 -0
- package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +7 -0
- package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +38 -0
- package/lib/components/selecciona-articulo/stock.service.d.ts +7 -0
- package/lib/components/serieDocumento/models/SerieDocumento.d.ts +28 -0
- package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +8 -0
- package/lib/components/tipo-contacto/models/TipoContacto.d.ts +7 -0
- package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +5 -0
- package/lib/components/ubicacion/models/Ubicacion.d.ts +17 -0
- package/lib/components/ubicacion/services/ubicacion.service.d.ts +5 -0
- package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +23 -0
- package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +21 -0
- package/lib/contabilidad/modelos/cuentaContable.model.d.ts +22 -0
- package/lib/contabilidad/modelos/normaInfoFinanciera.model.d.ts +8 -0
- package/lib/contabilidad/servicios/cuentacontable.service.d.ts +7 -0
- package/lib/globalPrimeNg.d.ts +4 -0
- package/lib/httpInterceptor/httpInterceptor.d.ts +14 -0
- package/lib/importComponents.d.ts +13 -0
- package/lib/importComponetsConta.d.ts +3 -0
- package/lib/models/PersonaMoral.d.ts +13 -0
- package/lib/models/Usuario.d.ts +8 -0
- package/lib/models/auth.d.ts +6 -0
- package/lib/services/auth.service.d.ts +29 -0
- package/lib/services/authenticated.service.d.ts +11 -0
- package/lib/services/canActivateGuard.service.ts.d.ts +10 -0
- package/lib/services/catalogo-adicional.service.d.ts +6 -0
- package/lib/services/controlAcceso.service.d.ts +11 -0
- package/lib/services/crud.service.d.ts +20 -0
- package/lib/services/file.service.d.ts +11 -0
- package/lib/services/global.service.d.ts +22 -0
- package/lib/services/init.service.d.ts +9 -0
- package/lib/services/message.service.d.ts +8 -0
- package/lib/services/paginate.service.d.ts +17 -0
- package/lib/services/personaMoral.service.d.ts +5 -0
- package/lib/services/versionCheck.service.d.ts +11 -0
- package/lib/utils/tipo_catalogo.ts.d.ts +4 -0
- package/package.json +24 -0
- package/public_api.d.ts +92 -0
- package/visorus-erp-core.d.ts +10 -0
- package/visorus-erp-core.metadata.json +1 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from "@angular/core";
|
|
7
|
+
import { CrudService } from "../../../services/crud.service";
|
|
8
|
+
import { HttpClient } from "@angular/common/http";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/common/http";
|
|
11
|
+
var ProveedorFleteService = /** @class */ (function (_super) {
|
|
12
|
+
tslib_1.__extends(ProveedorFleteService, _super);
|
|
13
|
+
function ProveedorFleteService(httpClient) {
|
|
14
|
+
var _this = _super.call(this, httpClient, '/proveedorFlete') || this;
|
|
15
|
+
_this.httpClient = httpClient;
|
|
16
|
+
return _this;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @param {?} p
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
ProveedorFleteService.prototype.saveAll = /**
|
|
23
|
+
* @param {?} p
|
|
24
|
+
* @return {?}
|
|
25
|
+
*/
|
|
26
|
+
function (p) {
|
|
27
|
+
/** @type {?} */
|
|
28
|
+
var params = { fletes: p };
|
|
29
|
+
return this.save(params);
|
|
30
|
+
};
|
|
31
|
+
ProveedorFleteService.decorators = [
|
|
32
|
+
{ type: Injectable, args: [{
|
|
33
|
+
providedIn: 'root'
|
|
34
|
+
},] }
|
|
35
|
+
];
|
|
36
|
+
/** @nocollapse */
|
|
37
|
+
ProveedorFleteService.ctorParameters = function () { return [
|
|
38
|
+
{ type: HttpClient }
|
|
39
|
+
]; };
|
|
40
|
+
/** @nocollapse */ ProveedorFleteService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ProveedorFleteService_Factory() { return new ProveedorFleteService(i0.ɵɵinject(i1.HttpClient)); }, token: ProveedorFleteService, providedIn: "root" });
|
|
41
|
+
return ProveedorFleteService;
|
|
42
|
+
}(CrudService));
|
|
43
|
+
export { ProveedorFleteService };
|
|
44
|
+
if (false) {
|
|
45
|
+
/**
|
|
46
|
+
* @type {?}
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
ProveedorFleteService.prototype.httpClient;
|
|
50
|
+
}
|
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nQgeyAgQ3J1ZFNlcnZpY2UgfSBmcm9tIFwiLi4vLi4vLi4vc2VydmljZXMvY3J1ZC5zZXJ2aWNlXCI7XG5pbXBvcnQgeyBIdHRwQ2xpZW50IH0gZnJvbSBcIkBhbmd1bGFyL2NvbW1vbi9odHRwXCI7XG5cbkBJbmplY3RhYmxlKHtcbiAgICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgUHJvdmVlZG9yRmxldGVTZXJ2aWNlIGV4dGVuZHMgQ3J1ZFNlcnZpY2Uge1xuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgaHR0cENsaWVudCA6IEh0dHBDbGllbnQpe1xuICAgICAgICBzdXBlcihodHRwQ2xpZW50ICwnL3Byb3ZlZWRvckZsZXRlJyk7XG4gICAgfVxuXG4gICAgc2F2ZUFsbChwKXtcbiAgICAgICBsZXQgcGFyYW1zID17IGZsZXRlcyA6IHB9O1xuICAgICAgcmV0dXJuICB0aGlzLnNhdmUocGFyYW1zKTtcbiAgICB9XG59Il19
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
6
|
+
import { ArticuloInformacionService } from './services/articulo-informacion.service';
|
|
7
|
+
var SeleccionArticuloInformacionComponent = /** @class */ (function () {
|
|
8
|
+
function SeleccionArticuloInformacionComponent(articuloInformacionService) {
|
|
9
|
+
this.articuloInformacionService = articuloInformacionService;
|
|
10
|
+
this.eventSelection = new EventEmitter();
|
|
11
|
+
this.flagModal = true;
|
|
12
|
+
this.sizewidth = 640;
|
|
13
|
+
this.params = [
|
|
14
|
+
{ param: 'offset', value: 0 },
|
|
15
|
+
{ param: 'max', value: -1 },
|
|
16
|
+
{ param: 'order', value: 'asc' }
|
|
17
|
+
];
|
|
18
|
+
this.columnsData = [
|
|
19
|
+
{ field: 'codigo', header: 'Código Almacén', width: '90px' },
|
|
20
|
+
{ field: 'descripcion', header: 'Descripción Almacen', width: '140px' },
|
|
21
|
+
{ field: 'codigo', header: 'Código Ubicación', width: '90px' },
|
|
22
|
+
{ field: 'descripcion', header: 'Descripción Ubicación', width: '140px' },
|
|
23
|
+
{ field: 'opciones', header: 'Existencia', width: '80px' },
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @return {?}
|
|
28
|
+
*/
|
|
29
|
+
SeleccionArticuloInformacionComponent.prototype.ngOnInit = /**
|
|
30
|
+
* @return {?}
|
|
31
|
+
*/
|
|
32
|
+
function () {
|
|
33
|
+
this.OnLoad();
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @return {?}
|
|
37
|
+
*/
|
|
38
|
+
SeleccionArticuloInformacionComponent.prototype.hiddenDialog = /**
|
|
39
|
+
* @return {?}
|
|
40
|
+
*/
|
|
41
|
+
function () {
|
|
42
|
+
this.eventSelection.emit({ status: false });
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @param {?} event
|
|
46
|
+
* @return {?}
|
|
47
|
+
*/
|
|
48
|
+
SeleccionArticuloInformacionComponent.prototype.OnResize = /**
|
|
49
|
+
* @param {?} event
|
|
50
|
+
* @return {?}
|
|
51
|
+
*/
|
|
52
|
+
function (event) {
|
|
53
|
+
this.isMovil = event.target.innerWidth <= 640;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @return {?}
|
|
57
|
+
*/
|
|
58
|
+
SeleccionArticuloInformacionComponent.prototype.OnLoad = /**
|
|
59
|
+
* @return {?}
|
|
60
|
+
*/
|
|
61
|
+
function () {
|
|
62
|
+
var _this = this;
|
|
63
|
+
this.articuloInformacionService.obtenerExistencias(this.articulo.articulo.id).subscribe((/**
|
|
64
|
+
* @param {?} data
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
function (data) {
|
|
68
|
+
_this.existenciasList = data.data;
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* @return {?}
|
|
73
|
+
*/
|
|
74
|
+
SeleccionArticuloInformacionComponent.prototype.OnShow = /**
|
|
75
|
+
* @return {?}
|
|
76
|
+
*/
|
|
77
|
+
function () {
|
|
78
|
+
this.titulo = 'Existencias en Almacenes';
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @param {?} ubicacionRow
|
|
82
|
+
* @return {?}
|
|
83
|
+
*/
|
|
84
|
+
SeleccionArticuloInformacionComponent.prototype.onSelectedUbicacion = /**
|
|
85
|
+
* @param {?} ubicacionRow
|
|
86
|
+
* @return {?}
|
|
87
|
+
*/
|
|
88
|
+
function (ubicacionRow) {
|
|
89
|
+
this.eventSelection.emit({ status: false, ubicacion: ubicacionRow });
|
|
90
|
+
};
|
|
91
|
+
SeleccionArticuloInformacionComponent.decorators = [
|
|
92
|
+
{ type: Component, args: [{
|
|
93
|
+
selector: 'lib-seleccion-articulo-informacion',
|
|
94
|
+
template: "<p-dialog (onShow)=\"OnShow()\" [header]=\"titulo\" [(visible)]=\"showModal\" [modal]=\"flagModal\" \n [minWidth]=\"200\" [minY]=\"70\"\n [baseZIndex]=\"10000\" [width]=\"!isMovil?sizewidth:300\" (onHide)=\"hiddenDialog()\" [draggable]=\"false\" \n [blockScroll]=\"true\"\n\t\t (window:resize)=\"OnResize($event)\" [maximizable]=\"true\" [breakpoint]=\"640\">\n\t<div class=\"ui-g ui-fluid\"> \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 </div>\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>",
|
|
95
|
+
styles: [""]
|
|
96
|
+
}] }
|
|
97
|
+
];
|
|
98
|
+
/** @nocollapse */
|
|
99
|
+
SeleccionArticuloInformacionComponent.ctorParameters = function () { return [
|
|
100
|
+
{ type: ArticuloInformacionService }
|
|
101
|
+
]; };
|
|
102
|
+
SeleccionArticuloInformacionComponent.propDecorators = {
|
|
103
|
+
showModal: [{ type: Input }],
|
|
104
|
+
articulo: [{ type: Input }],
|
|
105
|
+
eventSelection: [{ type: Output }]
|
|
106
|
+
};
|
|
107
|
+
return SeleccionArticuloInformacionComponent;
|
|
108
|
+
}());
|
|
109
|
+
export { SeleccionArticuloInformacionComponent };
|
|
110
|
+
if (false) {
|
|
111
|
+
/** @type {?} */
|
|
112
|
+
SeleccionArticuloInformacionComponent.prototype.showModal;
|
|
113
|
+
/** @type {?} */
|
|
114
|
+
SeleccionArticuloInformacionComponent.prototype.articulo;
|
|
115
|
+
/** @type {?} */
|
|
116
|
+
SeleccionArticuloInformacionComponent.prototype.eventSelection;
|
|
117
|
+
/** @type {?} */
|
|
118
|
+
SeleccionArticuloInformacionComponent.prototype.isMovil;
|
|
119
|
+
/** @type {?} */
|
|
120
|
+
SeleccionArticuloInformacionComponent.prototype.flagModal;
|
|
121
|
+
/** @type {?} */
|
|
122
|
+
SeleccionArticuloInformacionComponent.prototype.titulo;
|
|
123
|
+
/** @type {?} */
|
|
124
|
+
SeleccionArticuloInformacionComponent.prototype.sizewidth;
|
|
125
|
+
/** @type {?} */
|
|
126
|
+
SeleccionArticuloInformacionComponent.prototype.existenciasList;
|
|
127
|
+
/** @type {?} */
|
|
128
|
+
SeleccionArticuloInformacionComponent.prototype.params;
|
|
129
|
+
/** @type {?} */
|
|
130
|
+
SeleccionArticuloInformacionComponent.prototype.columnsData;
|
|
131
|
+
/**
|
|
132
|
+
* @type {?}
|
|
133
|
+
* @private
|
|
134
|
+
*/
|
|
135
|
+
SeleccionArticuloInformacionComponent.prototype.articuloInformacionService;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWNjaW9uLWFydGljdWxvLWluZm9ybWFjaW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9zZWxlY2Npb24tYXJ0aWN1bG8taW5mb3JtYWNpb24vc2VsZWNjaW9uLWFydGljdWxvLWluZm9ybWFjaW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRSxPQUFPLEVBQUMsMEJBQTBCLEVBQUMsTUFBTSx5Q0FBeUMsQ0FBQztBQUluRjtJQThCRSwrQ0FDYywwQkFBcUQ7UUFBckQsK0JBQTBCLEdBQTFCLDBCQUEwQixDQUEyQjtRQXRCekQsbUJBQWMsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBRzlDLGNBQVMsR0FBRyxJQUFJLENBQUM7UUFFakIsY0FBUyxHQUFHL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mZvcm1hY2lvblNlcnZpY2Uub2J0ZW5lckV4aXN0ZW5jaWFzKHRoaXMuYXJ0aWN1bG8uYXJ0aWN1bG8uaWQpLnN1YnNjcmliZShcbiAgICAgIChkYXRhIDogYW55KT0+eyAgICAgICAgICBcbiAgICAgICAgICB0aGlzLmV4aXN0ZW5jaWFzTGlzdD0gZGF0YS5kYXRhO1xuICAgICAgfVxuICApO1xuICB9XG4gIFxuICBPblNob3coKSB7XG4gICAgdGhpcy50aXR1bG89J0V4aXN0ZW5jaWFzIGVuIEFsbWFjZW5lcyc7ICAgXG4gIH1cblxuICBvblNlbGVjdGVkVWJpY2FjaW9uKHViaWNhY2lvblJvdzogYW55KSB7XG5cdFx0dGhpcy5ldmVudFNlbGVjdGlvbi5lbWl0KHtzdGF0dXM6IGZhbHNlLCB1YmljYWNpb246IHViaWNhY2lvblJvd30pO1xuXG5cdH1cblxufVxuIl19
|
package/esm5/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { CrudService } from '../../../services/crud.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/common/http";
|
|
11
|
+
var ArticuloInformacionService = /** @class */ (function (_super) {
|
|
12
|
+
tslib_1.__extends(ArticuloInformacionService, _super);
|
|
13
|
+
function ArticuloInformacionService(httpClient) {
|
|
14
|
+
var _this = _super.call(this, httpClient, 'articulo') || this;
|
|
15
|
+
_this.httpClient = httpClient;
|
|
16
|
+
return _this;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @param {?} articulo
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
ArticuloInformacionService.prototype.obtenerExistencias = /**
|
|
23
|
+
* @param {?} articulo
|
|
24
|
+
* @return {?}
|
|
25
|
+
*/
|
|
26
|
+
function (articulo) {
|
|
27
|
+
/** @type {?} */
|
|
28
|
+
var uRL = "/existenciasArticulo/" + articulo;
|
|
29
|
+
return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
|
|
30
|
+
};
|
|
31
|
+
ArticuloInformacionService.decorators = [
|
|
32
|
+
{ type: Injectable, args: [{
|
|
33
|
+
providedIn: 'root'
|
|
34
|
+
},] }
|
|
35
|
+
];
|
|
36
|
+
/** @nocollapse */
|
|
37
|
+
ArticuloInformacionService.ctorParameters = function () { return [
|
|
38
|
+
{ type: HttpClient }
|
|
39
|
+
]; };
|
|
40
|
+
/** @nocollapse */ ArticuloInformacionService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ArticuloInformacionService_Factory() { return new ArticuloInformacionService(i0.ɵɵinject(i1.HttpClient)); }, token: ArticuloInformacionService, providedIn: "root" });
|
|
41
|
+
return ArticuloInformacionService;
|
|
42
|
+
}(CrudService));
|
|
43
|
+
export { ArticuloInformacionService };
|
|
44
|
+
if (false) {
|
|
45
|
+
/**
|
|
46
|
+
* @type {?}
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
ArticuloInformacionService.prototype.httpClient;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0aWN1bG8taW5mb3JtYWNpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9zZWxlY2Npb24tYXJ0aWN1bG8taW5mb3JtYWNpb24vc2VydmljZXMvYXJ0aWN1bG8taW5mb3JtYWNpb24uc2VydmljZS50cyJdLCJuYW1l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ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBBcnRpY3Vsb0luZm9ybWFjaW9uU2VydmljZSBleHRlbmRzIENydWRTZXJ2aWNlIHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwQ2xpZW50IDogSHR0cENsaWVudCl7XG4gICAgc3VwZXIoaHR0cENsaWVudCwgJ2FydGljdWxvJyk7XG4gIH1cblxuICBvYnRlbmVyRXhpc3RlbmNpYXMoYXJ0aWN1bG8gOiBudW1iZXIpIHtcbiAgICBsZXQgdVJMID0gXCIvZXhpc3RlbmNpYXNBcnRpY3Vsby9cIithcnRpY3VsbztcbiAgICByZXR1cm4gIHRoaXMuaHR0cENsaWVudC5nZXQodGhpcy5nZXR1cmwoKSArIHVSTCx0aGlzLmJ1aWxkQXV0aCgpKTtcbiAgfVxuICBcbn1cbiJdfQ==
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
+
import { StockService } from './stock.service';
|
|
7
|
+
import { PaginateService } from '../../services/paginate.service';
|
|
8
|
+
import { AlmacenService } from '../almacen/services/almacen.service';
|
|
9
|
+
var SeleccionaArticuloComponent = /** @class */ (function () {
|
|
10
|
+
function SeleccionaArticuloComponent(_stockService, _paginateService, _almacenService) {
|
|
11
|
+
this._stockService = _stockService;
|
|
12
|
+
this._paginateService = _paginateService;
|
|
13
|
+
this._almacenService = _almacenService;
|
|
14
|
+
this.manejaUnidadSecundaria = false;
|
|
15
|
+
this.emitFilaSeleccionada = new EventEmitter();
|
|
16
|
+
this.emitShowArticulos = new EventEmitter();
|
|
17
|
+
this.articulosList = [];
|
|
18
|
+
this.ordenar = [];
|
|
19
|
+
this.busquedaArticulos = {
|
|
20
|
+
tipoBusqueda: ''
|
|
21
|
+
};
|
|
22
|
+
this.showModal = false;
|
|
23
|
+
this.showModalInformacion = false;
|
|
24
|
+
this.showFirstTime = true;
|
|
25
|
+
this.clasificadorList = [];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @return {?}
|
|
29
|
+
*/
|
|
30
|
+
SeleccionaArticuloComponent.prototype.ngOnInit = /**
|
|
31
|
+
* @return {?}
|
|
32
|
+
*/
|
|
33
|
+
function () {
|
|
34
|
+
var _this = this;
|
|
35
|
+
this.page = this._paginateService.getPage();
|
|
36
|
+
this.ordenar = this._paginateService.getOrden([
|
|
37
|
+
{ param: 'nombre', label: 'estatus' }
|
|
38
|
+
], 'es');
|
|
39
|
+
this.showFirstTime = true;
|
|
40
|
+
this._almacenService.getAll(this.configuracion.params).subscribe((/**
|
|
41
|
+
* @param {?} data
|
|
42
|
+
* @return {?}
|
|
43
|
+
*/
|
|
44
|
+
function (data) {
|
|
45
|
+
_this.almacenList = (/** @type {?} */ (data.data));
|
|
46
|
+
}));
|
|
47
|
+
this.busquedaArticulos.tipoBusqueda = 'CD';
|
|
48
|
+
//tempthis.obtenerExistenciaArticulosShow();
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @param {?} e
|
|
52
|
+
* @return {?}
|
|
53
|
+
*/
|
|
54
|
+
SeleccionaArticuloComponent.prototype.pagina = /**
|
|
55
|
+
* @param {?} e
|
|
56
|
+
* @return {?}
|
|
57
|
+
*/
|
|
58
|
+
function (e) {
|
|
59
|
+
this.page.rows = e.rows;
|
|
60
|
+
this.page.offset = e.first;
|
|
61
|
+
this.obtenerExistenciaArticulos();
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @return {?}
|
|
65
|
+
*/
|
|
66
|
+
SeleccionaArticuloComponent.prototype.obtenerExistenciaArticulosShow = /**
|
|
67
|
+
* @return {?}
|
|
68
|
+
*/
|
|
69
|
+
function () {
|
|
70
|
+
this.busquedaArticulos.tipoBusqueda = 'CD';
|
|
71
|
+
if (this.showFirstTime) {
|
|
72
|
+
this.obtenerExistenciaArticulos();
|
|
73
|
+
this.showFirstTime = false;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @return {?}
|
|
78
|
+
*/
|
|
79
|
+
SeleccionaArticuloComponent.prototype.obtenerExistenciaArticulos = /**
|
|
80
|
+
* @return {?}
|
|
81
|
+
*/
|
|
82
|
+
function () {
|
|
83
|
+
var _this = this;
|
|
84
|
+
this.busquedaArticulos.params = this._paginateService.getParams(this.page);
|
|
85
|
+
/** @type {?} */
|
|
86
|
+
var parametros = {
|
|
87
|
+
almacen: (this.configuracion.noOcupaAlamacen ? null : this.movimiento.almacen),
|
|
88
|
+
tipoPrecio: this.configuracion.tipoPrecio,
|
|
89
|
+
busquedaArticulos: this.busquedaArticulos,
|
|
90
|
+
tipoArticulo: this.configuracion.tipoArticulo ? this.configuracion.tipoArticulo : null,
|
|
91
|
+
numeroPrecioDefault: this.configuracion.numeroPrecioDefault
|
|
92
|
+
};
|
|
93
|
+
this._stockService.obtenerExistenciasArticulosDescripcion(parametros, this.busquedaArticulos.params).then((/**
|
|
94
|
+
* @param {?} data
|
|
95
|
+
* @return {?}
|
|
96
|
+
*/
|
|
97
|
+
function (data) {
|
|
98
|
+
_this.articulosList = data.articulosDescripcion;
|
|
99
|
+
_this.page.total = data.total;
|
|
100
|
+
if (data.clasificadores) {
|
|
101
|
+
_this.clasificadorList = data.clasificadores;
|
|
102
|
+
}
|
|
103
|
+
if (!_this.showModal) {
|
|
104
|
+
_this.showModal = true;
|
|
105
|
+
}
|
|
106
|
+
})).catch((/**
|
|
107
|
+
* @param {?} e
|
|
108
|
+
* @return {?}
|
|
109
|
+
*/
|
|
110
|
+
function (e) {
|
|
111
|
+
_this.articulosList = [];
|
|
112
|
+
}));
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* @return {?}
|
|
116
|
+
*/
|
|
117
|
+
SeleccionaArticuloComponent.prototype.obtenerExistenciaArticulosVal = /**
|
|
118
|
+
* @return {?}
|
|
119
|
+
*/
|
|
120
|
+
function () {
|
|
121
|
+
if (this.busquedaArticulos.tipoBusqueda != '' && !this.busquedaArticulos.key)
|
|
122
|
+
return false;
|
|
123
|
+
this.obtenerExistenciaArticulos();
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* @param {?} $event
|
|
127
|
+
* @return {?}
|
|
128
|
+
*/
|
|
129
|
+
SeleccionaArticuloComponent.prototype.obtenerExistenciaArticulosKey = /**
|
|
130
|
+
* @param {?} $event
|
|
131
|
+
* @return {?}
|
|
132
|
+
*/
|
|
133
|
+
function ($event) {
|
|
134
|
+
if ($event.key === 'Enter')
|
|
135
|
+
this.obtenerExistenciaArticulos();
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @param {?} $event
|
|
139
|
+
* @return {?}
|
|
140
|
+
*/
|
|
141
|
+
SeleccionaArticuloComponent.prototype.filaSeleccionada = /**
|
|
142
|
+
* @param {?} $event
|
|
143
|
+
* @return {?}
|
|
144
|
+
*/
|
|
145
|
+
function ($event) {
|
|
146
|
+
this.emitFilaSeleccionada.emit($event);
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* @return {?}
|
|
150
|
+
*/
|
|
151
|
+
SeleccionaArticuloComponent.prototype.emitirShowArticulos = /**
|
|
152
|
+
* @return {?}
|
|
153
|
+
*/
|
|
154
|
+
function () {
|
|
155
|
+
this.emitShowArticulos.emit(0);
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* @param {?} series
|
|
159
|
+
* @return {?}
|
|
160
|
+
*/
|
|
161
|
+
SeleccionaArticuloComponent.prototype.seriesArticulo = /**
|
|
162
|
+
* @param {?} series
|
|
163
|
+
* @return {?}
|
|
164
|
+
*/
|
|
165
|
+
function (series) {
|
|
166
|
+
console.log(series);
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* @param {?} eventArticulo
|
|
170
|
+
* @return {?}
|
|
171
|
+
*/
|
|
172
|
+
SeleccionaArticuloComponent.prototype.onShowInformacion = /**
|
|
173
|
+
* @param {?} eventArticulo
|
|
174
|
+
* @return {?}
|
|
175
|
+
*/
|
|
176
|
+
function (eventArticulo) {
|
|
177
|
+
this.articuloSelected = eventArticulo;
|
|
178
|
+
this.showModalInformacion = true;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* @param {?} event
|
|
182
|
+
* @return {?}
|
|
183
|
+
*/
|
|
184
|
+
SeleccionaArticuloComponent.prototype.onEventInformacion = /**
|
|
185
|
+
* @param {?} event
|
|
186
|
+
* @return {?}
|
|
187
|
+
*/
|
|
188
|
+
function (event) {
|
|
189
|
+
this.showModalInformacion = event.status;
|
|
190
|
+
};
|
|
191
|
+
SeleccionaArticuloComponent.decorators = [
|
|
192
|
+
{ type: Component, args: [{
|
|
193
|
+
selector: 'app-selecciona-articulo',
|
|
194
|
+
template: "\n\n <!--inicia seleccion de articulos-->\n <!-- (onShow)=\"obtenerExistenciaArticulosShow()\" -->\n <!--\n <div class=\"col-12 col-center\" >-->\n <p-dialog header=\"{{ 'Articulos' | translate }}\" [(visible)]=\"showArticulos\"\n [maximizable]=\"true\" \n (onShow)=\"obtenerExistenciaArticulosShow()\"\n (onHide)=\"busquedaArticulos = { tipoBusqueda : ''}; emitirShowArticulos()\"\n [baseZIndex]=\"10000\" [blockScroll]=\"true\"\n [minWidth]=\"200\" [minY]=\"70\" \n > \n <div class=\"col-12 mb-3\">\n <div class=\"row\">\n <div class=\"col-12 col-md-3 col-xl-3\">\n <select [(ngModel)]=\"busquedaArticulos.tipoBusqueda\" class=\"form-control col-md-6\" (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 <div class=\"col-12 col-md-3 col-xl-3\">\n <div class=\"ui-inputgroup\">\n <input type=\"text\" class=\"form-control \" [(ngModel)]=\"busquedaArticulos.key\"\n (keypress)=\"obtenerExistenciaArticulosKey( $event )\" name=\"key\" >\n <button class=\"btn btn-outline-primary\" type=\"button\"\n (click)=\"obtenerExistenciaArticulos( )\">\n <i class=\"fa fa-search\"></i>\n </button>\n </div>\n </div>\n <div class=\"col-12 col-md-2 col-xl-2\">\n <label class=\"form-group\" >{{'Movimiento.movimientoDetalle.almacen' | translate}}</label>\n </div>\n <div class=\"col-12 col-md-4 col-xl-4\">\n <select class=\"form-control\" [(ngModel)]=\"movimiento.almacen\" disabled\n name=\"almacen\" (change)=\"obtenerExistenciaArticulosVal()\">\n <option *ngFor=\"let almacen of almacenList\" value=\"{{ almacen.id }}\">{{almacen.descripcion}}</option>\n </select>\n </div>\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 <div style=\"margin-top: 10px;\"> \n <p-table [value]=\"articulosList\" \n [scrollable]=\"true\" \n #dt \n scrollHeight=\"400px\"\n [responsive]=\"true\" \n selectionMode=\"single\" \n (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>Movimiento.movimientoDetalle.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\"\n icon=\"pi pi-eye\" class=\"ui-button-raised ui-button-primary\" (click)=\"onShowInformacion(rowData)\">\n </button> \n </td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precioConImpuestos | currency }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio2ConImpuestos | currency }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio3ConImpuestos | currency }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio4ConImpuestos | currency }}</td>\n <td style=\"width: 80px;\" *ngIf=\"configuracion.tipoPrecio !== 'costo'\">{{rowData.precio5ConImpuestos | currency }}</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 </div>\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)\" [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\" \n [articulo]=\"articuloSelected\" \n (eventSelection)=\"onEventInformacion($event)\" *ngIf=\"showModalInformacion\">\n</lib-seleccion-articulo-informacion> ",
|
|
195
|
+
styles: ["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}"]
|
|
196
|
+
}] }
|
|
197
|
+
];
|
|
198
|
+
/** @nocollapse */
|
|
199
|
+
SeleccionaArticuloComponent.ctorParameters = function () { return [
|
|
200
|
+
{ type: StockService },
|
|
201
|
+
{ type: PaginateService },
|
|
202
|
+
{ type: AlmacenService }
|
|
203
|
+
]; };
|
|
204
|
+
SeleccionaArticuloComponent.propDecorators = {
|
|
205
|
+
configuracion: [{ type: Input }],
|
|
206
|
+
showArticulos: [{ type: Input }],
|
|
207
|
+
movimiento: [{ type: Input }],
|
|
208
|
+
manejaUnidadSecundaria: [{ type: Input }],
|
|
209
|
+
emitFilaSeleccionada: [{ type: Output }],
|
|
210
|
+
emitShowArticulos: [{ type: Output }]
|
|
211
|
+
};
|
|
212
|
+
return SeleccionaArticuloComponent;
|
|
213
|
+
}());
|
|
214
|
+
export { SeleccionaArticuloComponent };
|
|
215
|
+
if (false) {
|
|
216
|
+
/** @type {?} */
|
|
217
|
+
SeleccionaArticuloComponent.prototype.configuracion;
|
|
218
|
+
/** @type {?} */
|
|
219
|
+
SeleccionaArticuloComponent.prototype.showArticulos;
|
|
220
|
+
/** @type {?} */
|
|
221
|
+
SeleccionaArticuloComponent.prototype.movimiento;
|
|
222
|
+
/** @type {?} */
|
|
223
|
+
SeleccionaArticuloComponent.prototype.manejaUnidadSecundaria;
|
|
224
|
+
/** @type {?} */
|
|
225
|
+
SeleccionaArticuloComponent.prototype.emitFilaSeleccionada;
|
|
226
|
+
/** @type {?} */
|
|
227
|
+
SeleccionaArticuloComponent.prototype.emitShowArticulos;
|
|
228
|
+
/** @type {?} */
|
|
229
|
+
SeleccionaArticuloComponent.prototype.almacenList;
|
|
230
|
+
/** @type {?} */
|
|
231
|
+
SeleccionaArticuloComponent.prototype.articulosList;
|
|
232
|
+
/** @type {?} */
|
|
233
|
+
SeleccionaArticuloComponent.prototype.page;
|
|
234
|
+
/** @type {?} */
|
|
235
|
+
SeleccionaArticuloComponent.prototype.ordenar;
|
|
236
|
+
/** @type {?} */
|
|
237
|
+
SeleccionaArticuloComponent.prototype.busquedaArticulos;
|
|
238
|
+
/** @type {?} */
|
|
239
|
+
SeleccionaArticuloComponent.prototype.showModal;
|
|
240
|
+
/** @type {?} */
|
|
241
|
+
SeleccionaArticuloComponent.prototype.articuloSelected;
|
|
242
|
+
/** @type {?} */
|
|
243
|
+
SeleccionaArticuloComponent.prototype.showModalInformacion;
|
|
244
|
+
/** @type {?} */
|
|
245
|
+
SeleccionaArticuloComponent.prototype.showFirstTime;
|
|
246
|
+
/** @type {?} */
|
|
247
|
+
SeleccionaArticuloComponent.prototype.clasificadorList;
|
|
248
|
+
/**
|
|
249
|
+
* @type {?}
|
|
250
|
+
* @private
|
|
251
|
+
*/
|
|
252
|
+
SeleccionaArticuloComponent.prototype._stockService;
|
|
253
|
+
/**
|
|
254
|
+
* @type {?}
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
SeleccionaArticuloComponent.prototype._paginateService;
|
|
258
|
+
/**
|
|
259
|
+
* @type {?}
|
|
260
|
+
* @private
|
|
261
|
+
*/
|
|
262
|
+
SeleccionaArticuloComponent.prototype._almacenService;
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWNjaW9uYS1hcnRpY3Vsby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6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equire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { CrudService } from '../../services/crud.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/common/http";
|
|
11
|
+
var StockService = /** @class */ (function (_super) {
|
|
12
|
+
tslib_1.__extends(StockService, _super);
|
|
13
|
+
function StockService(httpClient) {
|
|
14
|
+
var _this = _super.call(this, httpClient, 'stock') || this;
|
|
15
|
+
_this.httpClient = httpClient;
|
|
16
|
+
return _this;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @param {?} parametros
|
|
20
|
+
* @param {?} params
|
|
21
|
+
* @return {?}
|
|
22
|
+
*/
|
|
23
|
+
StockService.prototype.obtenerExistenciasArticulosDescripcion = /**
|
|
24
|
+
* @param {?} parametros
|
|
25
|
+
* @param {?} params
|
|
26
|
+
* @return {?}
|
|
27
|
+
*/
|
|
28
|
+
function (parametros, params) {
|
|
29
|
+
var _this = this;
|
|
30
|
+
/** @type {?} */
|
|
31
|
+
var url = this.getBaseUrl() + '/stock/obtenerExistenciasArticulos';
|
|
32
|
+
/** @type {?} */
|
|
33
|
+
var promesa = new Promise((/**
|
|
34
|
+
* @param {?} resolve
|
|
35
|
+
* @param {?} reject
|
|
36
|
+
* @return {?}
|
|
37
|
+
*/
|
|
38
|
+
function (resolve, reject) {
|
|
39
|
+
_this.httpClient.post(url + _this.serializeParams(params), parametros, _this.buildAuth()).subscribe((/**
|
|
40
|
+
* @param {?} data
|
|
41
|
+
* @return {?}
|
|
42
|
+
*/
|
|
43
|
+
function (data) {
|
|
44
|
+
resolve(data);
|
|
45
|
+
}), (/**
|
|
46
|
+
* @param {?} err
|
|
47
|
+
* @return {?}
|
|
48
|
+
*/
|
|
49
|
+
function (err) {
|
|
50
|
+
reject(err);
|
|
51
|
+
}));
|
|
52
|
+
}));
|
|
53
|
+
return promesa;
|
|
54
|
+
};
|
|
55
|
+
StockService.decorators = [
|
|
56
|
+
{ type: Injectable, args: [{
|
|
57
|
+
providedIn: 'root'
|
|
58
|
+
},] }
|
|
59
|
+
];
|
|
60
|
+
/** @nocollapse */
|
|
61
|
+
StockService.ctorParameters = function () { return [
|
|
62
|
+
{ type: HttpClient }
|
|
63
|
+
]; };
|
|
64
|
+
/** @nocollapse */ StockService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0.ɵɵinject(i1.HttpClient)); }, token: StockService, providedIn: "root" });
|
|
65
|
+
return StockService;
|
|
66
|
+
}(CrudService));
|
|
67
|
+
export { StockService };
|
|
68
|
+
if (false) {
|
|
69
|
+
/**
|
|
70
|
+
* @type {?}
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
StockService.prototype.httpClient;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvY2suc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Zpc29ydXMtZXJwLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9zZWxlY2Npb25hLWFydGljdWxvL3N0b2NrLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sNkJBQTZCLENBQUM7OztBQUcxRDtJQUdtQyx3Q0FBVztJQUc1QyxzQkFBcUIsVUFBc0I7UUFBM0MsWUFDRSxrQkFBTSxVQUFVLEVBQUUsT0FBTyxDQUFDLFNBQzNCO1FB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