{"version":3,"sources":["webpack:///./node_modules/keen-ui/src/UiSwitch.vue","webpack:///node_modules/keen-ui/src/UiSwitch.vue","webpack:///./node_modules/keen-ui/src/UiSwitch.vue?f889","webpack:///./node_modules/keen-ui/src/UiSwitch.vue?c747","webpack:///./node_modules/keen-ui/src/UiSwitch.vue?5ae4","webpack:///./src/views/administracion/contenedores/TiposMovimientoTabPage.vue","webpack:///./src/components/tablas/administracion/ListadoTiposMovimiento.vue","webpack:///./src/components/modals/administracion/contenedores/AgregarTipoDeMovimientoModal.vue","webpack:///src/components/modals/administracion/contenedores/AgregarTipoDeMovimientoModal.vue","webpack:///./src/components/modals/administracion/contenedores/AgregarTipoDeMovimientoModal.vue?0ae3","webpack:///./src/components/modals/administracion/contenedores/AgregarTipoDeMovimientoModal.vue?d054","webpack:///./src/components/modals/administracion/contenedores/ImportarTiposDeMovimientosModal.vue","webpack:///src/components/modals/administracion/contenedores/ImportarTiposDeMovimientosModal.vue","webpack:///./src/components/modals/administracion/contenedores/ImportarTiposDeMovimientosModal.vue?7518","webpack:///./src/components/modals/administracion/contenedores/ImportarTiposDeMovimientosModal.vue?2a93","webpack:///./src/components/modals/administracion/contenedores/ActualizarTipoDeMovimientoModal.vue","webpack:///src/components/modals/administracion/contenedores/ActualizarTipoDeMovimientoModal.vue","webpack:///./src/components/modals/administracion/contenedores/ActualizarTipoDeMovimientoModal.vue?aee1","webpack:///./src/components/modals/administracion/contenedores/ActualizarTipoDeMovimientoModal.vue?c3e2","webpack:///src/components/tablas/administracion/ListadoTiposMovimiento.vue","webpack:///./src/components/tablas/administracion/ListadoTiposMovimiento.vue?9071","webpack:///./src/components/tablas/administracion/ListadoTiposMovimiento.vue?3a9d","webpack:///src/views/administracion/contenedores/TiposMovimientoTabPage.vue","webpack:///./src/views/administracion/contenedores/TiposMovimientoTabPage.vue?32dd","webpack:///./src/views/administracion/contenedores/TiposMovimientoTabPage.vue?4d09"],"names":["render","_vm","this","_c","_self","staticClass","class","classes","ref","attrs","disabled","name","tabindex","domProps","isChecked","submittedValue","on","onBlur","onClick","onFocus","_m","label","$slots","default","_t","_v","_s","_e","staticRenderFns","props","String","Number","value","required","trueValue","falseValue","type","checked","Boolean","color","switchPosition","data","isActive","looseEqual","initialValue","computed","watch","created","$emit","methods","focus","$refs","input","e","isCheckedPrevious","target","component","isLoading","staticStyle","dataDatatable","loadingTable","acciones","length","headers","dataTableAux","obtenerFilaSeleccionada","dataTipoMovimientoActualizar","nativeOn","$event","openModal","model","formulario","nombreModel","callback","$$v","$set","expression","estadoModel","closeModal","validarFormulario","Vue","use","VueToastify","estadomodel","components","UiModal","UiTextbox","UiSwitch","Button","mapActions","open","close","guardar","$vToastify","error","sql","saveTiposMovimiento","map","item","success","dataTiposMovimientoDB","getTiposMovimiento","actionSetDataMovimientos","data_table","titulo","ActionSetVisibleModalEditarContenedoresTiposMovimiento","actualizarTipoMovimiento","Array","Object","id","dataAux","mapState","updateTiposMovimiento","visibleModalEditarContenedoresTiposMovimiento","_new","data_complementaria","title","width","DataTable","AgregarTipoDeMovimientoModal","ImportarTiposDeMovimientosModal","ActualizarTipoDeMovimientoModal","NotFoundTable","me","index","estado_movimiento","push","icon","fila","textoAuxiliar","data_fila","id_movimiento","nombre_movimiento","accion","prompt","then","respuesta","desactivarMovimiento","eliminarTipoMovimiento","console","log","deleteMovimiento","dataMovimientosDB","actualizacionGenerarBotonesAcciones","estado","deshabilitarMovimiento","texto","setTimeout","generarBotonesAcciones","ListadoTiposMovimiento","Loading","actualizarURL","AccionCambiar","$route","path","getDataMovimientos","dataDatatableMovimientosFiltrada"],"mappings":"wIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACE,YAAY,YAAYC,MAAML,EAAIM,SAAS,CAACJ,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAACF,EAAG,QAAQ,CAACK,IAAI,QAAQH,YAAY,mBAAmBI,MAAM,CAAC,KAA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AA5D,KAAAqG,EACA,KAAAxC,yBAAAwC,EAAAvC,YACA,KAAA9C,WAAA,IAGAV,UACA,KAAA4G,qBAEA,KAAAJ,iBAEAzG,MAAA,CACA8G,iCAAA,SAAA1C,GACA,IAAAS,EAAA,KAIAT,IACAS,EAAAhE,cAAAuD,MCpE6X,ICOzX,EAAY,eACd,EACAlH,EACA4B,GACA,EACA,KACA,KACA,MAIa,e","file":"js/tipos_de_movimiento.e3232d34.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('label',{staticClass:\"ui-switch\",class:_vm.classes},[_c('div',{staticClass:\"ui-switch__input-wrapper\"},[_c('input',{ref:\"input\",staticClass:\"ui-switch__input\",attrs:{\"type\":\"checkbox\",\"disabled\":_vm.disabled,\"name\":_vm.name,\"tabindex\":_vm.tabindex},domProps:{\"checked\":_vm.isChecked,\"value\":_vm.submittedValue},on:{\"blur\":_vm.onBlur,\"click\":_vm.onClick,\"focus\":_vm.onFocus}}),_c('div',{staticClass:\"ui-switch__track\"}),_vm._m(0)]),(_vm.label || _vm.$slots.default)?_c('div',{staticClass:\"ui-switch__label-text\"},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.label))]})],2):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"ui-switch__thumb\"},[_c('div',{staticClass:\"ui-switch__focus-ring\"})])\n}]\n\nexport { render, staticRenderFns }","<template>\n <label class=\"ui-switch\" :class=\"classes\">\n <div class=\"ui-switch__input-wrapper\">\n <input\n class=\"ui-switch__input\"\n ref=\"input\"\n type=\"checkbox\"\n\n :checked.prop=\"isChecked\"\n :disabled=\"disabled\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :value=\"submittedValue\"\n\n @blur=\"onBlur\"\n @click=\"onClick\"\n @focus=\"onFocus\"\n >\n\n <div class=\"ui-switch__track\"></div>\n\n <div class=\"ui-switch__thumb\">\n <div class=\"ui-switch__focus-ring\"></div>\n </div>\n </div>\n\n <div class=\"ui-switch__label-text\" v-if=\"label || $slots.default\">\n <slot>{{ label }}</slot>\n </div>\n </label>\n</template>\n\n<script>\nimport { looseEqual } from './helpers/util';\n\nexport default {\n name: 'ui-switch',\n\n props: {\n name: String,\n label: String,\n tabindex: [String, Number],\n value: {\n required: true\n },\n trueValue: {\n default: true\n },\n falseValue: {\n default: false\n },\n submittedValue: {\n type: String,\n default: 'on' // HTML default\n },\n checked: {\n type: Boolean,\n default: false\n },\n color: {\n type: String,\n default: 'primary' // 'primary' or 'accent'\n },\n switchPosition: {\n type: String,\n default: 'left' // 'left' or 'right'\n },\n disabled: {\n type: Boolean,\n default: false\n }\n },\n\n data() {\n return {\n isActive: false,\n isChecked: looseEqual(this.value, this.trueValue) || this.checked,\n initialValue: this.value\n };\n },\n\n computed: {\n classes() {\n return [\n `ui-switch--color-${this.color}`,\n `ui-switch--switch-position-${this.switchPosition}`,\n { 'is-active': this.isActive },\n { 'is-checked': this.isChecked },\n { 'is-disabled': this.disabled }\n ];\n }\n },\n\n watch: {\n value() {\n this.isChecked = looseEqual(this.value, this.trueValue);\n }\n },\n\n created() {\n this.$emit('input', this.isChecked ? this.trueValue : this.falseValue);\n },\n\n methods: {\n focus() {\n this.$refs.input.focus();\n },\n\n onClick(e) {\n const isCheckedPrevious = this.isChecked;\n const isChecked = e.target.checked;\n\n this.$emit('input', isChecked ? this.trueValue : this.falseValue, e);\n\n if (isCheckedPrevious !== isChecked) {\n this.$emit('change', isChecked ? this.trueValue : this.falseValue, e);\n }\n },\n\n onFocus(e) {\n this.isActive = true;\n this.$emit('focus', e);\n },\n\n onBlur(e) {\n this.isActive = false;\n this.$emit('blur', e);\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\n@use 'sass:math';\n@import './styles/imports';\n\n$ui-switch-height : rem(32px) !default;\n\n$ui-switch-thumb-size : rem(20px) !default;\n$ui-switch-thumb-color : $md-grey-50 !default;\n\n$ui-switch-track-width : rem(34px) !default;\n$ui-switch-track-height : rem(14px) !default;\n\n$ui-switch-focus-ring-size : $ui-switch-thumb-size * 2.1 !default;\n\n.ui-switch {\n align-items: center;\n display: flex;\n font-family: $font-stack;\n height: $ui-switch-height;\n position: relative;\n\n &.is-checked {\n .ui-switch__thumb {\n transform: translateX($ui-switch-track-width - $ui-switch-thumb-size);\n }\n }\n\n &.is-disabled {\n .ui-switch__track {\n background-color: rgba(black, 0.12);\n }\n\n .ui-switch__thumb {\n background-color: $md-grey-400;\n box-shadow: none;\n }\n\n .ui-switch__input-wrapper,\n .ui-switch__label-text {\n color: $disabled-text-color;\n cursor: default;\n }\n }\n}\n\n.ui-switch__input-wrapper {\n cursor: pointer;\n height: $ui-switch-thumb-size;\n position: relative;\n width: $ui-switch-track-width;\n}\n\n.ui-switch__input {\n opacity: 0;\n position: absolute;\n\n body[modality=\"keyboard\"] &:focus + .ui-switch__thumb {\n .ui-switch__focus-ring {\n opacity: 1;\n transform: scale(1);\n }\n }\n}\n\n.ui-switch__track {\n background-color: rgba(black, 0.26);\n border-radius: rem(8px);\n height: $ui-switch-track-height;\n position: absolute;\n top: math.div($ui-switch-thumb-size - $ui-switch-track-height, 2);\n transition: background-color 0.1s linear;\n width: $ui-switch-track-width;\n}\n\n.ui-switch__thumb {\n background-color: $ui-switch-thumb-color;\n border-radius: 50%;\n box-shadow: 0 1px 3px rgba(black, 0.4);\n height: $ui-switch-thumb-size;\n position: absolute;\n transition-duration: 0.2s;\n transition-property: background-color, transform;\n transition-timing-function: ease;\n width: $ui-switch-thumb-size;\n}\n\n.ui-switch__focus-ring {\n background-color: rgba(black, 0.1);\n border-radius: 50%;\n height: $ui-switch-focus-ring-size;\n left: -(math.div($ui-switch-focus-ring-size - $ui-switch-thumb-size, 2));\n opacity: 0;\n position: absolute;\n top: -(math.div($ui-switch-focus-ring-size - $ui-switch-thumb-size, 2));\n transform: scale(0);\n transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.15s ease;\n width: $ui-switch-focus-ring-size;\n z-index: -1;\n}\n\n.ui-switch__label-text {\n cursor: pointer;\n font-size: rem(15px);\n margin-left: rem(16px);\n}\n\n// ================================================\n// Switch positions\n// ================================================\n\n.ui-switch--switch-position-right {\n .ui-switch__label-text {\n margin-left: 0;\n margin-right: auto;\n order: -1;\n }\n}\n\n// ================================================\n// Colors\n// ================================================\n\n.ui-switch--color-primary {\n &.is-checked:not(.is-disabled) {\n .ui-switch__track {\n background-color: rgba($brand-primary-color, 0.5);\n }\n\n .ui-switch__thumb {\n background-color: $brand-primary-color;\n }\n\n .ui-switch__focus-ring {\n background-color: rgba($brand-primary-color, 0.2);\n }\n }\n}\n\n.ui-switch--color-accent {\n &.is-checked:not(.is-disabled) {\n .ui-switch__track {\n background-color: rgba($brand-accent-color, 0.5);\n }\n\n .ui-switch__thumb {\n background-color: $brand-accent-color;\n }\n\n .ui-switch__focus-ring {\n background-color: rgba($brand-accent-color, 0.2);\n }\n }\n}\n</style>\n","import mod from \"-!../../cache-loader/dist/cjs.js??ref--13-0!../../thread-loader/dist/cjs.js!../../babel-loader/lib/index.js!../../cache-loader/dist/cjs.js??ref--1-0!../../vue-loader/lib/index.js??vue-loader-options!./UiSwitch.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../cache-loader/dist/cjs.js??ref--13-0!../../thread-loader/dist/cjs.js!../../babel-loader/lib/index.js!../../cache-loader/dist/cjs.js??ref--1-0!../../vue-loader/lib/index.js??vue-loader-options!./UiSwitch.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UiSwitch.vue?vue&type=template&id=66201bea\"\nimport script from \"./UiSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./UiSwitch.vue?vue&type=script&lang=js\"\nimport style0 from \"./UiSwitch.vue?vue&type=style&index=0&id=66201bea&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../vue-loader/lib/loaders/stylePostLoader.js!../../postcss-loader/src/index.js??ref--9-oneOf-1-2!../../sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../cache-loader/dist/cjs.js??ref--1-0!../../vue-loader/lib/index.js??vue-loader-options!./UiSwitch.vue?vue&type=style&index=0&id=66201bea&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.isLoading)?_c('div',{staticClass:\"d-flex justify-content-center w-100\",staticStyle:{\"margin-top\":\"130px\"}},[_c('loading')],1):_c('listado-tipos-movimiento',{attrs:{\"data\":_vm.dataDatatable}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{\"border-top\":\"solid 1px #d8d8d8\"}},[_c('div',{staticClass:\"d-flex flex-column p-3\"},[(_vm.loadingTable)?_c('div',{staticClass:\"d-flex justify-content-center w-100\",staticStyle:{\"margin-top\":\"110px\"}},[_c('loading')],1):_c('div',{staticClass:\"d-flex flex-row flex-wrap justify-content-start mb-2\"},[_c('div',{staticStyle:{\"position\":\"relative\",\"z-index\":\"5\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"position\":\"absolute\"}},[_c('agregar-tipo-de-movimiento-modal'),_c('importar-tipos-de-movimientos-modal')],1)]),(_vm.acciones.length > 0)?_c('data-table',{attrs:{\"customHeaders\":\"\",\"headers\":_vm.headers,\"data\":_vm.dataTableAux,\"acciones\":_vm.acciones,\"max\":10,\"paginacion\":\"\",\"buscar\":\"\",\"exportarExcel\":\"\",\"idtabla\":\"contenedores_tipos_movimiento\",\"seleccionar\":_vm.obtenerFilaSeleccionada}}):_c('not-found-table',{staticClass:\"justify-content-center w-100 pt-5\",attrs:{\"text\":'No se encontraron registros de tipos de movimiento'}})],1)]),_c('actualizar-tipo-de-movimiento-modal',{attrs:{\"data\":_vm.dataTipoMovimientoActualizar}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('Button',{staticClass:\"mt-2 mb-3 mr-2\",attrs:{\"size\":15,\"color\":\"#2da44e\",\"colorText\":\"#ffffff\",\"tooltip\":\"Agregar Tipo de Movimiento\",\"icon\":\"fas fa-plus\",\"round\":\"\",\"width\":30,\"traslate\":\"\"},nativeOn:{\"click\":function($event){return _vm.openModal('modal')}}}),_c('ui-modal',{ref:\"modal\",attrs:{\"title\":\"Agregar Tipo de Movimiento\"}},[_c('div',[_c('div',{staticClass:\"d-flex\"},[_c('ui-textbox',{staticClass:\"w-100 mr-3\",attrs:{\"floating-label\":\"\",\"label\":\"Nombre\"},model:{value:(_vm.formulario.nombreModel),callback:function ($$v) {_vm.$set(_vm.formulario, \"nombreModel\", $$v)},expression:\"formulario.nombreModel\"}}),_c('div',{staticClass:\"w-100\"},[_c('div',{staticStyle:{\"color\":\"grey\"}},[_vm._v(\"Estado\")]),_c('ui-switch',{staticClass:\"mt-1\",attrs:{\"color\":\"primary\"},model:{value:(_vm.formulario.estadoModel),callback:function ($$v) {_vm.$set(_vm.formulario, \"estadoModel\", $$v)},expression:\"formulario.estadoModel\"}},[_vm._v(\"Inactivo/Activo\")])],1)],1)]),_c('div',{staticClass:\"d-flex justify-content-between mt-3\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",on:{\"click\":function($event){return _vm.closeModal('modal')}}},[_vm._v(\" Cerrar \")]),_c('button',{staticClass:\"btn btn-outline-primary\",on:{\"click\":_vm.validarFormulario}},[_vm._v(\" Guardar \")])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <Button\n :size=\"15\"\n color=\"#2da44e\"\n colorText=\"#ffffff\"\n tooltip=\"Agregar Tipo de Movimiento\"\n icon=\"fas fa-plus\"\n round\n :width=\"30\"\n class=\"mt-2 mb-3 mr-2\"\n traslate\n @click.native=\"openModal('modal')\"\n />\n\n <ui-modal ref=\"modal\" title=\"Agregar Tipo de Movimiento\">\n <!-- Cuerpo -->\n <div>\n <!-- Fila 1 -->\n <div class=\"d-flex\">\n <ui-textbox\n class=\"w-100 mr-3\"\n floating-label\n label=\"Nombre\"\n v-model=\"formulario.nombreModel\"\n />\n\n <div class=\"w-100\">\n <div style=\"color: grey\">Estado</div>\n <ui-switch\n class=\"mt-1\"\n v-model=\"formulario.estadoModel\"\n color=\"primary\"\n >Inactivo/Activo</ui-switch\n >\n </div>\n </div>\n </div>\n\n <!-- Footer -->\n <div class=\"d-flex justify-content-between mt-3\">\n <button class=\"btn btn-outline-secondary\" @click=\"closeModal('modal')\">\n Cerrar\n </button>\n <button class=\"btn btn-outline-primary\" @click=\"validarFormulario\">\n Guardar\n </button>\n </div>\n </ui-modal>\n </div>\n</template>\n\n<script>\n// Vue\nimport Vue from \"vue\";\n\n// Vuex\nimport { mapActions } from \"vuex\";\n\n// Toast\nimport VueToastify from \"vue-toastify\";\nVue.use(VueToastify);\n\n// UI Modal\nimport UiModal from \"keen-ui/src/UiModal\";\nimport UiTextbox from \"keen-ui/src/UiTextbox\";\nimport UiSwitch from \"keen-ui/src/UiSwitch\";\n\n// Buttom\nimport Button from \"../../../common/Button\";\n\n// Constantes\nimport {\n saveTiposMovimiento,\n getTiposMovimiento,\n} from \"../../../../constants/administracion\";\n\nexport default {\n data() {\n return {\n // Modelos -> formulario\n formulario: {\n nombreModel: \"\",\n estadomodel: false,\n },\n };\n },\n components: {\n UiModal,\n UiTextbox,\n UiSwitch,\n Button,\n },\n methods: {\n ...mapActions(\"administracion\", [\"actionSetDataMovimientos\"]),\n\n openModal(ref) {\n this.$refs[ref].open();\n },\n closeModal(ref) {\n this.$refs[ref].close();\n },\n\n validarFormulario() {\n if (this.formulario.nombreModel != \"\") {\n this.guardar();\n } else {\n this.$vToastify.error(\"Campos sin completar\", \"¡Error!\");\n }\n },\n\n async guardar() {\n let sql = await saveTiposMovimiento(this.formulario);\n\n if (!sql.error) {\n // Toast proceso exitoso\n this.$vToastify.success(\n \"Tipo de Movimiento creado con éxito\",\n \"¡Realizado!\"\n );\n\n // Limpiar variables\n this.formulario.nombreModel = \"\";\n\n let dataTiposMovimientoDB = await getTiposMovimiento();\n this.data = dataTiposMovimientoDB;\n\n this.actionSetDataMovimientos(dataTiposMovimientoDB.data_table);\n\n // Cerrar Modal\n this.closeModal(\"modal\");\n } else {\n if (sql.data.length > 0) {\n // Errores de validación\n sql.data.map((item) => {\n this.$vToastify.error(`${item}`);\n });\n } else {\n // Proceso erroneo\n this.$vToastify.error(\n \"El Tipo de Movimiento no pudo ser creado\",\n \"¡Error!\"\n );\n }\n }\n },\n },\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AgregarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AgregarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AgregarTipoDeMovimientoModal.vue?vue&type=template&id=dba1aa2c\"\nimport script from \"./AgregarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"\nexport * from \"./AgregarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('Button',{staticClass:\"mt-2 mb-3 mr-2\",attrs:{\"size\":15,\"color\":\"#dc3545\",\"colorText\":\"#ffffff\",\"tooltip\":\"Importar\",\"icon\":\"fas fa-file-import\",\"round\":\"\",\"width\":30,\"traslate\":\"\"},nativeOn:{\"click\":function($event){return _vm.openModal('modal')}}}),_c('ui-modal',{ref:\"modal\",attrs:{\"title\":\"Importar tipos de movimientos\"}},[_vm._v(\" Importar tipos de movimientos \")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <Button\n :size=\"15\"\n color=\"#dc3545\"\n colorText=\"#ffffff\"\n tooltip=\"Importar\"\n icon=\"fas fa-file-import\"\n round\n :width=\"30\"\n class=\"mt-2 mb-3 mr-2\"\n traslate\n @click.native=\"openModal('modal')\"\n />\n\n <ui-modal ref=\"modal\" title=\"Importar tipos de movimientos\">\n Importar tipos de movimientos\n </ui-modal>\n </div>\n</template>\n\n<script>\n// UI Modal\nimport UiModal from \"keen-ui/src/UiModal\";\n\n// Buttom\nimport Button from \"../../../common/Button\";\n\nexport default {\n components: {\n UiModal,\n Button,\n },\n methods: {\n openModal(ref) {\n this.$refs[ref].open();\n },\n closeModal(ref) {\n this.$refs[ref].close();\n },\n },\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImportarTiposDeMovimientosModal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImportarTiposDeMovimientosModal.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ImportarTiposDeMovimientosModal.vue?vue&type=template&id=f337c48c\"\nimport script from \"./ImportarTiposDeMovimientosModal.vue?vue&type=script&lang=js\"\nexport * from \"./ImportarTiposDeMovimientosModal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('ui-modal',{ref:\"modal\",attrs:{\"title\":`Actualizar Tipo de Movimiento - ${_vm.titulo}`},on:{\"close\":function($event){return _vm.ActionSetVisibleModalEditarContenedoresTiposMovimiento(false)}}},[_c('div',[_c('div',{staticClass:\"d-flex\"},[_c('ui-textbox',{staticClass:\"w-100\",attrs:{\"floating-label\":\"\",\"label\":\"Nombre\"},model:{value:(_vm.formulario.nombreModel),callback:function ($$v) {_vm.$set(_vm.formulario, \"nombreModel\", $$v)},expression:\"formulario.nombreModel\"}})],1)]),_c('div',{staticClass:\"d-flex justify-content-between mt-3\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",on:{\"click\":function($event){return _vm.closeModal('modal')}}},[_vm._v(\" Cerrar \")]),_c('button',{staticClass:\"btn btn-outline-primary\",on:{\"click\":_vm.actualizarTipoMovimiento}},[_vm._v(\" Guardar \")])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <ui-modal\n ref=\"modal\"\n @close=\"ActionSetVisibleModalEditarContenedoresTiposMovimiento(false)\"\n :title=\"`Actualizar Tipo de Movimiento - ${titulo}`\"\n >\n <!-- Cuerpo -->\n <div>\n <!-- Fila 1 -->\n <div class=\"d-flex\">\n <ui-textbox\n class=\"w-100\"\n floating-label\n label=\"Nombre\"\n v-model=\"formulario.nombreModel\"\n />\n </div>\n </div>\n\n <!-- Footer -->\n <div class=\"d-flex justify-content-between mt-3\">\n <button class=\"btn btn-outline-secondary\" @click=\"closeModal('modal')\">\n Cerrar\n </button>\n <button\n class=\"btn btn-outline-primary\"\n @click=\"actualizarTipoMovimiento\"\n >\n Guardar\n </button>\n </div>\n </ui-modal>\n </div>\n</template>\n\n<script>\n// Vue\nimport Vue from \"vue\";\n\n// Vuex\nimport { mapState, mapActions } from \"vuex\";\n\n// Toast\nimport VueToastify from \"vue-toastify\";\nVue.use(VueToastify);\n\n// UI Modal\nimport UiModal from \"keen-ui/src/UiModal\";\nimport UiTextbox from \"keen-ui/src/UiTextbox\";\n\n// Constantes\nimport {\n updateTiposMovimiento,\n getTiposMovimiento,\n} from \"../../../../constants/administracion\";\n\nexport default {\n props: {\n data: [Array, Object],\n },\n data() {\n return {\n // Modelos -> formulario\n formulario: {\n id: \"\",\n nombreModel: \"\",\n },\n titulo: \"\",\n dataAux: this.data,\n };\n },\n components: {\n UiModal,\n UiTextbox,\n },\n computed: {\n ...mapState(\"administracion\", [\n \"visibleModalEditarContenedoresTiposMovimiento\",\n ]),\n },\n methods: {\n ...mapActions(\"administracion\", [\n \"actionSetDataMovimientos\",\n \"ActionSetVisibleModalEditarContenedoresTiposMovimiento\",\n ]),\n\n openModal(ref) {\n this.$refs[ref].open();\n },\n closeModal(ref) {\n this.$refs[ref].close();\n },\n\n async actualizarTipoMovimiento() {\n let sql = await updateTiposMovimiento(this.formulario);\n\n if (!sql.error) {\n // Toast proceso exitoso\n this.$vToastify.success(\n \"Tipo de Movimiento actualizado con éxito\",\n \"¡Realizado!\"\n );\n\n // Limpiar variables\n this.formulario.nombreModel = \"\";\n\n let dataTiposMovimientoDB = await getTiposMovimiento();\n this.dataAux = dataTiposMovimientoDB;\n\n this.actionSetDataMovimientos(dataTiposMovimientoDB.data_table);\n\n // Cerrar Modal\n this.closeModal(\"modal\");\n } else {\n if (sql.data.length > 0) {\n // Errores de validación\n sql.data.map((item) => {\n this.$vToastify.error(`${item}`);\n });\n } else {\n // Proceso erroneo\n this.$vToastify.error(\n \"El Tipo de Movimiento no pudo actualizarse\",\n \"¡Error!\"\n );\n }\n }\n },\n },\n watch: {\n visibleModalEditarContenedoresTiposMovimiento: function (_new) {\n _new && this.openModal(\"modal\");\n },\n data: function (_new) {\n // Titulo de modal\n this.titulo = _new.data[0];\n\n // Formulario\n this.formulario.id = _new.data_complementaria[0];\n this.formulario.nombreModel = _new.data[0];\n },\n },\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ActualizarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ActualizarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ActualizarTipoDeMovimientoModal.vue?vue&type=template&id=32965cf4\"\nimport script from \"./ActualizarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"\nexport * from \"./ActualizarTipoDeMovimientoModal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\n <div style=\"border-top: solid 1px #d8d8d8\">\n <div class=\"d-flex flex-column p-3\">\n <!-- Loading tabla -->\n <div\n class=\"d-flex justify-content-center w-100\"\n style=\"margin-top: 110px\"\n v-if=\"loadingTable\"\n >\n <loading />\n </div>\n\n <!-- dataTable y botones -->\n <div class=\"d-flex flex-row flex-wrap justify-content-start mb-2\" v-else>\n <!-- Botones -->\n <div style=\"position: relative; z-index: 5\">\n <div class=\"d-flex\" style=\"position: absolute\">\n <!-- Modal -->\n <agregar-tipo-de-movimiento-modal />\n\n <!-- Modal -->\n <importar-tipos-de-movimientos-modal />\n </div>\n </div>\n <!-- Data Table -->\n <data-table\n customHeaders\n v-if=\"acciones.length > 0\"\n :headers=\"headers\"\n :data=\"dataTableAux\"\n :acciones=\"acciones\"\n :max=\"10\"\n paginacion\n buscar\n exportarExcel\n idtabla=\"contenedores_tipos_movimiento\"\n :seleccionar=\"obtenerFilaSeleccionada\"\n />\n\n <not-found-table\n v-else\n :text=\"'No se encontraron registros de tipos de movimiento'\"\n class=\"justify-content-center w-100 pt-5\"\n />\n </div>\n </div>\n <!-- Modales para acciones para filas -->\n <actualizar-tipo-de-movimiento-modal :data=\"dataTipoMovimientoActualizar\" />\n </div>\n</template>\n\n<script>\nimport Vue from \"vue\";\n\n// Vuex\nimport { mapState, mapActions } from \"vuex\";\n\n// Componentes\nimport DataTable from \"../../../components/common/DataTable\";\nimport AgregarTipoDeMovimientoModal from \"../../modals/administracion/contenedores/AgregarTipoDeMovimientoModal\";\nimport ImportarTiposDeMovimientosModal from \"../../modals/administracion/contenedores/ImportarTiposDeMovimientosModal\";\n\n// Not Found\nimport NotFoundTable from \"../../common/NotFoundTable\";\n\nimport {\n deshabilitarMovimiento,\n deleteMovimiento,\n getTiposMovimiento,\n} from \"../../../constants/administracion\";\nimport ActualizarTipoDeMovimientoModal from \"../../modals/administracion/contenedores/ActualizarTipoDeMovimientoModal\";\n\n// Toast\nimport VueToastify from \"vue-toastify\";\n\nVue.use(VueToastify);\n\nexport default {\n props: {\n data: { type: Array },\n },\n data() {\n return {\n headers: [\n { title: \"Nombre\", width: \"30px\" },\n { title: \"Acciones\", width: \"20px\" },\n ],\n acciones: [],\n dataTipoMovimientoActualizar: [],\n dataTableAux: this.data,\n };\n },\n components: {\n DataTable,\n AgregarTipoDeMovimientoModal,\n ImportarTiposDeMovimientosModal,\n ActualizarTipoDeMovimientoModal,\n NotFoundTable,\n },\n computed: {\n ...mapState([\"loading\", \"loadingTable\", \"token\"]),\n },\n methods: {\n ...mapActions(\"administracion\", [\n \"actionSetvisibleModalInformacionGeneral\",\n \"ActionSetMovimientos\",\n \"actionSetDataMovimientos\",\n \"ActionSetVisibleModalEditarContenedoresTiposMovimiento\",\n ]),\n\n async generarBotonesAcciones() {\n let me = this;\n\n await me.dataTableAux.map((item, index) => {\n let estado_movimiento = item.data_complementaria[1];\n\n me.acciones.push([\n {\n icon: \"fa fa-edit\",\n title: \"Editar\",\n id: index,\n },\n {\n icon:\n estado_movimiento == 1\n ? \"fa fa-eye text-success\"\n : \"fa fa-eye-slash text-danger\",\n title: estado_movimiento == 1 ? \"Desactivar\" : \"Activar\",\n id: index,\n },\n {\n icon: \"fa fa-times text-danger\",\n title: \"Eliminar\",\n id: index,\n },\n ]);\n });\n },\n\n async actualizacionGenerarBotonesAcciones() {\n let me = this;\n\n me.acciones = [];\n\n await me.dataTableAux.map((item, index) => {\n let estado_movimiento = item.data_complementaria[1];\n\n me.acciones.push([\n {\n icon: \"fa fa-edit\",\n title: \"Editar\",\n id: index,\n },\n {\n icon:\n estado_movimiento == 1\n ? \"fa fa-eye text-success\"\n : \"fa fa-eye-slash text-danger\",\n title: estado_movimiento == 1 ? \"Desactivar\" : \"Activar\",\n id: index,\n },\n {\n icon: \"fa fa-times text-danger\",\n title: \"Eliminar\",\n id: index,\n },\n ]);\n });\n },\n\n obtenerFilaSeleccionada(fila) {\n let textoAuxiliar = \"\";\n let data_fila = this.data[fila.id];\n let id_movimiento = this.dataTableAux[fila.id].data_complementaria[0];\n let estado_movimiento = this.dataTableAux[fila.id].data_complementaria[1];\n let nombre_movimiento = this.dataTableAux[fila.id].data[0];\n\n if (fila.accion == \"Editar\") {\n /*\n \n */\n this.dataTipoMovimientoActualizar = data_fila;\n this.ActionSetVisibleModalEditarContenedoresTiposMovimiento(true);\n /*\n \n */\n } else if (fila.accion == \"Activar\" || fila.accion == \"Desactivar\") {\n /*\n \n */\n\n if (estado_movimiento == 1) {\n textoAuxiliar =\n \"¿Desea desactivar el estado del Tipo de Movimiento '\" +\n nombre_movimiento +\n \"'?\";\n } else {\n textoAuxiliar =\n \"¿Desea activar el estado del Tipo de Movimiento '\" +\n nombre_movimiento +\n \"'?\";\n }\n\n //\n this.$vToastify.prompt(textoAuxiliar).then(\n (respuesta) =>\n respuesta &&\n this.desactivarMovimiento(\n id_movimiento,\n fila.accion,\n estado_movimiento\n ) // id, accion, estado de condicion\n );\n /*\n \n */\n } else if (fila.accion == \"Eliminar\") {\n /*\n \n */\n this.$vToastify\n .prompt(\n `¿Desea eliminar el Tipo de Movimiento '${nombre_movimiento}'?`\n )\n .then(\n (respuesta) =>\n respuesta && this.eliminarTipoMovimiento(id_movimiento)\n );\n\n /*\n \n */\n }\n },\n\n async eliminarTipoMovimiento(id) {\n console.log(id);\n let sql = await deleteMovimiento({ id });\n\n if (!sql.error) {\n // Consulta nuevamente a la API para obtener la nueva data\n let dataMovimientosDB = await getTiposMovimiento();\n\n // Actualizar los datos del dataTable\n this.actionSetDataMovimientos(dataMovimientosDB.data_table);\n this.actualizacionGenerarBotonesAcciones(dataMovimientosDB);\n\n this.dataTableAux = dataMovimientosDB.data_table;\n\n this.$vToastify.success(\n \"Tipo de Movimiento eliminado correctamente\",\n \"¡Realizado!\"\n );\n } else {\n console.log(\"Error\");\n }\n },\n\n async desactivarMovimiento(id, accion, estado) {\n //\n let sql = await deshabilitarMovimiento({ id, estado });\n\n let texto = accion == \"Activar\" ? \"activado\" : \"desactivado\";\n\n if (!sql.error) {\n // Consulta nuevamente a la API para obtener la nueva data\n let dataMovimientosDB = await getTiposMovimiento();\n\n this.actualizacionGenerarBotonesAcciones(dataMovimientosDB);\n\n // Actualizar los datos del dataTable\n this.actionSetDataMovimientos(dataMovimientosDB.data_table);\n\n this.$vToastify.success(\n \"Tipo de Movimiento \" + texto + \" correctamente\",\n \"¡Realizado!\"\n );\n } else {\n console.log(\"Error\");\n }\n },\n },\n created() {\n setTimeout(() => {\n this.generarBotonesAcciones();\n }, 400);\n },\n watch: {\n data: function (_new) {\n let me = this;\n\n // Si watch detecta un cambio en la variable dataDatatableFilialesFiltrada la cual es un state de vuex, esta asignada el nuevo\n // valor a la variable data\n if (_new) {\n me.dataTableAux = _new;\n this.actualizacionGenerarBotonesAcciones();\n }\n },\n },\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListadoTiposMovimiento.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ListadoTiposMovimiento.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ListadoTiposMovimiento.vue?vue&type=template&id=38cc602a\"\nimport script from \"./ListadoTiposMovimiento.vue?vue&type=script&lang=js\"\nexport * from \"./ListadoTiposMovimiento.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div\n class=\"d-flex justify-content-center w-100\"\n style=\"margin-top: 130px\"\n v-if=\"isLoading\"\n >\n <loading />\n </div>\n <listado-tipos-movimiento v-else :data=\"dataDatatable\" />\n </div>\n</template>\n\n<script>\nimport { mapState, mapActions } from \"vuex\";\n\nimport ListadoTiposMovimiento from \"../../../components/tablas/administracion/ListadoTiposMovimiento\";\nimport Loading from \"../../../components/common/loading\";\nimport { getTiposMovimiento } from \"../../../constants/administracion\";\n\nexport default {\n components: { \n ListadoTiposMovimiento,\n Loading \n },\n data() {\n return {\n dataDatatable: [],\n isLoading : true,\n };\n },\n // Función computada para acceder a variable de store\n computed: {\n ...mapState([\"loadingTable\",\"cargarTabla\"]),\n ...mapState(\"administracion\", [\"dataDatatableMovimientosFiltrada\"]),\n ...mapState([\"listarzonasconsolidacion\"]),\n },\n methods: {\n // Acciones de Vuex\n ...mapActions([\"AccionCambiar\", \"ActionSetMovimientos\"]),\n ...mapActions(\"administracion\", [\"actionSetDataMovimientos\"]),\n\n // Función para actualizar url en state\n actualizarURL() {\n let me = this;\n me.AccionCambiar(this.$route.path);\n },\n\n // Obteneción de Depositos desde la BD\n async getDataMovimientos() {\n let dataMovimientosDB = await getTiposMovimiento();\n this.data = dataMovimientosDB;\n this.actionSetDataMovimientos(dataMovimientosDB.data_table);\n this.isLoading = false;\n },\n },\n created() {\n this.getDataMovimientos();\n // Ejecución de actualizarURL una vez que se carga el componente\n this.actualizarURL();\n },\n watch: {\n dataDatatableMovimientosFiltrada: function (_new) {\n let me = this;\n\n // Si watch detecta un cambio en la variable dataDatatableFilialesFiltrada la cual es un state de vuex, esta asignada el nuevo\n // valor a la variable data\n if (_new) {\n me.dataDatatable = _new;\n }\n },\n },\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TiposMovimientoTabPage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TiposMovimientoTabPage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TiposMovimientoTabPage.vue?vue&type=template&id=47b97b48\"\nimport script from \"./TiposMovimientoTabPage.vue?vue&type=script&lang=js\"\nexport * from \"./TiposMovimientoTabPage.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}