{"version":3,"sources":["webpack:///./src/pages/movimientosCaja/components/MovimientoCajaForm.vue?e043","webpack:///./src/pages/movimientosCaja/components/MovimientoCajaFormData.js","webpack:///src/pages/movimientosCaja/components/MovimientoCajaForm.vue","webpack:///./src/pages/movimientosCaja/components/MovimientoCajaForm.vue?1739","webpack:///./src/pages/movimientosCaja/components/MovimientoCajaForm.vue","webpack:///./src/mixins/formMixin.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","formRules","idtmovcaja","scopedSlots","_u","key","fn","ref","errors","tipoMovimiento","on","changeTipoMovimiento","model","value","form","callback","$$v","$set","expression","fmovimiento","importe","_n","formapago","formasPago","$event","formaPagoSelected","idcaja","cajas","concepto_movcaja","conceptoMovcajaFiltradoPorTipo","changeConceptoMovcaja","_e","concepto","isInsert","hasPermAdjuntos","ficheros","stringTypeExtensions","$vuetify","icons","values","camera","capturedImage","filesChange","clickCamera","showingCamera","devicesCameraDeviceId","clickShutter","changeCamera","idtfichero","length","tficheros","staticRenderFns","selectLookups","Vue","idempleado","idsParametros","esTecnico","esComercial","esVigilante","apiCalls","apiFilterEstadoActivo","APIFilter","addGT","apiFilterEmpleadoCaja","addExact","push","name","method","params","filter","apiFilterFormaPago","apiFilterTmovcaja","apiFilterConceptoMovcaja","apiFilterParametros","addIn","apiFilterFicheros","apiFilterVisualizacion","setOperator","API_FILTER_OPERATORS","OR","addNestedFilter","$api","batchCall","selectFormData","id","apiFilter","call","resp","data","result","dataset","mixins","props","usuarioIdempleado","type","default","idproyectoContable","idparteTrabajo","observaciones","tipo","idproyecto_contable","required","tamanioFicheroAdjunto","tipoFicheroValido","required_if","target","cajasEmpleado","conceptoMovcaja","computed","created","extend","message","validate","fileSizeValidation","size","parametrosNecesarios","PARAMETRO","Data","parametroMaxAdjuntoMB","_","idparametro","methods","loadFormData","formData","parseInt","files","imgFile","component","VFileInput","VTextField","Number","String","isEdit","watch","newValue","setFormRule","fieldname","rule","createMaxOracleNumberFormRules","precision","createMaxFormRules","createRequiredFormRules","emitChangeValues","$emit","loadForm","$watch","deep","addFormRulesAPI","columns","column","API_RESULT_DATATYPES","string","v","addFormRulesVeeValidateAPI","max"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAACA,EAAG,qBAAqB,CAACE,MAAM,CAAC,KAAO,SAAS,MAAQN,EAAIO,UAAUC,YAAYC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAChP,IAAIC,EAASD,EAAIC,OACjB,MAAO,CAACV,EAAG,mBAAmB,CAACE,MAAM,CAAC,MAAQN,EAAIe,eAAe,aAAa,aAAa,YAAY,cAAc,MAAQ,qBAAqB,UAAY,GAAG,iBAAiBD,GAAQE,GAAG,CAAC,OAAShB,EAAIiB,sBAAsBC,MAAM,CAACC,MAAOnB,EAAIoB,KAAe,WAAEC,SAAS,SAAUC,GAAMtB,EAAIuB,KAAKvB,EAAIoB,KAAM,aAAcE,IAAME,WAAW,4BAA4BpB,EAAG,qBAAqB,CAACE,MAAM,CAAC,KAAO,cAAc,MAAQN,EAAIO,UAAUkB,aAAahB,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAClf,IAAIC,EAASD,EAAIC,OACjB,MAAO,CAACV,EAAG,kBAAkB,CAACE,MAAM,CAAC,MAAQ,QAAQ,iBAAiBQ,GAAQI,MAAM,CAACC,MAAOnB,EAAIoB,KAAgB,YAAEC,SAAS,SAAUC,GAAMtB,EAAIuB,KAAKvB,EAAIoB,KAAM,cAAeE,IAAME,WAAW,6BAA6BpB,EAAG,qBAAqB,CAACE,MAAM,CAAC,KAAO,UAAU,MAAQN,EAAIO,UAAUmB,SAASjB,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAC1V,IAAIC,EAASD,EAAIC,OACjB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WAoBW,2JACX,EAAK/G,SADM,gCAGR,EAAKyF,aAAa,EAAKtC,IAHf,OAKhB,EAAK0D,mBACL,EAAKG,OAAO,OAAQ,EAAKH,iBAAkB,CAAEI,MAAM,IANnC,8CAQlBC,gBA5BO,SA4BUC,GAAS,8BACHA,GADG,yBACbC,EADa,QAGlBA,EAAOvD,OAASwD,OAAqBC,QAAUF,EAAOnF,QAAQ,EAAKpD,OAC/DuI,EAAOnF,QAAQ,EAAKjE,WACxB,EAAKgB,KAAK,EAAKhB,UAAWoJ,EAAOnF,KAAM,IAEzC,EAAKjE,UAAUoJ,EAAOnF,MAAMD,MAC1B,SAAAuF,GAAC,OAAKA,GAAK,IAAIvG,QAAUoG,EAAOnC,MAA3B,mCAA+DmC,EAAOnC,KAAtE,oBAPX,IAAK,EAAL,qBAA8B,IADN,gCAapBuC,2BAzCC,SAyC2BL,GAAS,mLAEpBA,GAFoB,IAEzC,IAAK,EAAL,qBAAWC,EAAmB,QAExBA,EAAOvD,OAASwD,OAAqBC,QAAUF,EAAOnF,QAAQ,EAAKpD,OAC/DuI,EAAOnF,QAAQ,EAAKjE,UAGxB,EAAKgB,KAAK,EAAKhB,UAAUoJ,EAAOnF,MAAO,MAAQmF,EAAOnC,MAFtD,EAAKjG,KAAK,EAAKhB,UAAWoJ,EAAOnF,KAAM,CAAEwF,IAAKL,EAAOnC,QANlB","file":"js/chunk-0f87be4c.6695ddad.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b10-base',[_c('ValidationProvider',{attrs:{\"name\":\"titulo\",\"rules\":_vm.formRules.idtmovcaja},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b10-autocomplete',{attrs:{\"items\":_vm.tipoMovimiento,\"item-value\":\"idtmovcaja\",\"item-text\":\"descripcion\",\"label\":\"Tipo de movimiento\",\"clearable\":\"\",\"error-messages\":errors},on:{\"change\":_vm.changeTipoMovimiento},model:{value:(_vm.form.idtmovcaja),callback:function ($$v) {_vm.$set(_vm.form, \"idtmovcaja\", $$v)},expression:\"form.idtmovcaja\"}})]}}])}),_c('ValidationProvider',{attrs:{\"name\":\"fmovimiento\",\"rules\":_vm.formRules.fmovimiento},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b10-date-picker',{attrs:{\"title\":\"Fecha\",\"error-messages\":errors},model:{value:(_vm.form.fmovimiento),callback:function ($$v) {_vm.$set(_vm.form, \"fmovimiento\", $$v)},expression:\"form.fmovimiento\"}})]}}])}),_c('ValidationProvider',{attrs:{\"name\":\"importe\",\"rules\":_vm.formRules.importe},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-text-field',{attrs:{\"label\":\"Importe\",\"clearable\":\"\",\"type\":\"number\",\"error-messages\":errors,\"suffix\":\"€\"},model:{value:(_vm.form.importe),callback:function ($$v) {_vm.$set(_vm.form, \"importe\", _vm._n($$v))},expression:\"form.importe\"}})]}}])}),_c('ValidationProvider',{attrs:{\"name\":\"formapago\",\"rules\":_vm.formRules.formapago},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b10-autocomplete',{attrs:{\"items\":_vm.formasPago,\"item-text\":\"descripcion\",\"return-object\":\"\",\"label\":\"Forma de pago\",\"clearable\":\"\",\"error-messages\":errors},on:{\"change\":function($event){return _vm.formaPagoSelected(_vm.form.formapago)}},model:{value:(_vm.form.formapago),callback:function ($$v) {_vm.$set(_vm.form, \"formapago\", $$v)},expression:\"form.formapago\"}})]}}])}),_c('ValidationProvider',{attrs:{\"name\":\"idcaja\",\"rules\":_vm.formRules.idcaja},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b10-autocomplete',{attrs:{\"items\":_vm.cajas,\"item-value\":\"idcaja\",\"item-text\":\"descripcion\",\"label\":\"Caja\",\"clearable\":\"\",\"error-messages\":errors,\"disabled\":!_vm.form.formapago},model:{value:(_vm.form.idcaja),callback:function ($$v) {_vm.$set(_vm.form, \"idcaja\", $$v)},expression:\"form.idcaja\"}})]}}])}),(_vm.isInsert)?_c('div',[_c('ValidationProvider',{attrs:{\"name\":\"concepto_movcaja\",\"rules\":_vm.formRules.concepto_movcaja},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b10-autocomplete',{attrs:{\"items\":_vm.conceptoMovcajaFiltradoPorTipo,\"item-text\":\"descripcion\",\"return-object\":\"\",\"label\":\"Tipo de concepto\",\"clearable\":\"\",\"error-messages\":errors},on:{\"change\":_vm.changeConceptoMovcaja},model:{value:(_vm.form.concepto_movcaja),callback:function ($$v) {_vm.$set(_vm.form, \"concepto_movcaja\", $$v)},expression:\"form.concepto_movcaja\"}})]}}],null,false,1734596041)})],1):_vm._e(),_c('ValidationProvider',{attrs:{\"name\":\"concepto\",\"rules\":_vm.formRules.concepto},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-text-field',{attrs:{\"error-messages\":errors,\"label\":\"Concepto\"},model:{value:(_vm.form.concepto),callback:function ($$v) {_vm.$set(_vm.form, \"concepto\", $$v)},expression:\"form.concepto\"}})]}}])}),_c('b10-textarea',{attrs:{\"label\":\"Observaciones\"},model:{value:(_vm.form.observaciones),callback:function ($$v) {_vm.$set(_vm.form, \"observaciones\", $$v)},expression:\"form.observaciones\"}}),(_vm.isInsert && _vm.hasPermAdjuntos)?_c('div',[(_vm.isInsert)?_c('ValidationProvider',{attrs:{\"name\":\"ficheros\",\"rules\":_vm.formRules.ficheros},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('v-file-input',{attrs:{\"label\":\"Ficheros\",\"show-size\":\"\",\"prepend-icon\":\"attach_file\",\"chips\":\"\",\"multiple\":\"\",\"accept\":_vm.stringTypeExtensions,\"error-messages\":errors,\"append-outer-icon\":_vm.$vuetify.icons.values.camera,\"disabled\":_vm.capturedImage},on:{\"change\":_vm.filesChange,\"click:append-outer\":_vm.clickCamera},model:{value:(_vm.form.ficheros),callback:function ($$v) {_vm.$set(_vm.form, \"ficheros\", $$v)},expression:\"form.ficheros\"}})]}}],null,false,3119216628)}):_vm._e(),_c('b10-camera',{attrs:{\"showing\":_vm.showingCamera,\"device-id\":_vm.devicesCameraDeviceId},on:{\"update:showing\":function($event){_vm.showingCamera=$event},\"click-shutter\":_vm.clickShutter,\"change-deviceid\":_vm.changeCamera}}),_c('ValidationProvider',{attrs:{\"name\":\"idtfichero\",\"rules\":_vm.formRules.idtfichero},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b10-autocomplete',{attrs:{\"disabled\":_vm.form.ficheros.length === 0,\"items\":_vm.tficheros,\"item-value\":\"idtfichero\",\"item-text\":\"descripcion\",\"label\":\"Tipo de fichero\",\"clearable\":\"\",\"error-messages\":errors},model:{value:(_vm.form.idtfichero),callback:function ($$v) {_vm.$set(_vm.form, \"idtfichero\", $$v)},expression:\"form.idtfichero\"}})]}}],null,false,3287172168)})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { APIFilter, API_FILTER_OPERATORS } from '@/utils/api'\r\n\r\nexport default {\r\n async selectLookups (Vue, idempleado, idsParametros, esTecnico, esComercial, esVigilante) {\r\n let apiCalls = []\r\n const apiFilterEstadoActivo = new APIFilter()\r\n apiFilterEstadoActivo.addGT('estado', 0)\r\n const apiFilterEmpleadoCaja = new APIFilter()\r\n apiFilterEmpleadoCaja\r\n .addGT('estado', 0)\r\n .addExact('idempleado', idempleado)\r\n apiCalls.push({ name: 'empleadoCajaSelect', method: 'empleadoCaja.select', params: { filter: apiFilterEmpleadoCaja } })\r\n const apiFilterFormaPago = new APIFilter()\r\n apiFilterFormaPago\r\n .addGT('estado', 0)\r\n .addExact('movilidad', 1)\r\n apiCalls.push({ name: 'formaPagoSelect', method: 'formaPago.select', params: { filter: apiFilterFormaPago } })\r\n const apiFilterTmovcaja = new APIFilter()\r\n apiFilterTmovcaja\r\n .addGT('estado', 0)\r\n .addExact('parausuario', 1)\r\n apiCalls.push({ name: 'tmovcajaSelect', method: 'tmovcaja.select', params: { filter: apiFilterTmovcaja } })\r\n const apiFilterConceptoMovcaja = new APIFilter()\r\n apiFilterConceptoMovcaja\r\n .addGT('estado', 0)\r\n .addExact('visible_movilidad', 1)\r\n apiCalls.push({ name: 'conceptoMovcajaSelect', method: 'conceptoMovcaja.select', params: { filter: apiFilterConceptoMovcaja } })\r\n const apiFilterParametros = new APIFilter()\r\n apiFilterParametros.addIn('idparametro', idsParametros)\r\n apiCalls.push({ name: 'selectParametro', method: 'parametro.select', params: { filter: apiFilterParametros } })\r\n // Ficheros\r\n const apiFilterFicheros = new APIFilter()\r\n apiFilterFicheros.addGT('estado', 0)\r\n const apiFilterVisualizacion = new APIFilter()\r\n apiFilterVisualizacion.setOperator(API_FILTER_OPERATORS.OR)\r\n if (esTecnico) {\r\n apiFilterVisualizacion.addExact('visible_movilidad_sat', esTecnico)\r\n }\r\n if (esComercial) {\r\n apiFilterVisualizacion.addExact('visible_movilidad_vigilancia', esComercial)\r\n }\r\n if (esVigilante) {\r\n apiFilterVisualizacion.addExact('visible_movilidad_sat', esVigilante)\r\n }\r\n apiFilterFicheros.addNestedFilter(apiFilterVisualizacion)\r\n apiCalls.push({ name: 'selectTfichero', method: 'tfichero.select', params: { filter: apiFilterFicheros } })\r\n return await Vue.$api.batchCall(apiCalls)\r\n },\r\n async selectFormData (Vue, id) {\r\n const apiFilter = new APIFilter()\r\n apiFilter\r\n .addExact('idmovcaja', id)\r\n const resp = await Vue.$api.call('movcaja.selectView', { filter: apiFilter })\r\n return resp.data.result.dataset[0]\r\n },\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\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!./MovimientoCajaForm.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!./MovimientoCajaForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MovimientoCajaForm.vue?vue&type=template&id=236ae0e6&\"\nimport script from \"./MovimientoCajaForm.vue?vue&type=script&lang=js&\"\nexport * from \"./MovimientoCajaForm.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VFileInput } from 'vuetify/lib/components/VFileInput';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VFileInput,VTextField})\n","import { API_RESULT_DATATYPES } from '@/utils/api'\r\n\r\nexport default {\r\n props: {\r\n id: {\r\n type: [Number, String],\r\n required: false\r\n },\r\n },\r\n computed: {\r\n isInsert () {\r\n if (this.id) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n },\r\n isEdit () {\r\n if (this.id) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n },\r\n watch: {\r\n async id (newValue) {\r\n // loadFormData del form donde se aplica el mixin\r\n // cambia el ID del objeto que se esta editando\r\n await this.loadFormData(newValue)\r\n }\r\n },\r\n methods: {\r\n setFormRule(fieldname, rule, value) {\r\n if (!(fieldname in this.formRules)) {\r\n this.$set(this.formRules, fieldname, { [rule]: value });\r\n } else {\r\n this.$set(this.formRules[fieldname], rule, value);\r\n }\r\n },\r\n createMaxOracleNumberFormRules(fieldname, precision) {\r\n this.setFormRule(fieldname, 'oracleNumber', precision)\r\n },\r\n createMaxFormRules(fieldname, size) {\r\n this.setFormRule(fieldname, 'max', size);\r\n },\r\n createRequiredFormRules(fieldname) {\r\n this.setFormRule(fieldname, 'required', true)\r\n },\r\n emitChangeValues () {\r\n this.$emit('change-values', this.form)\r\n },\r\n async loadForm () {\r\n if (!this.isInsert) {\r\n // loadFormData del form donde se aplica el mixin\r\n await this.loadFormData(this.id)\r\n }\r\n this.emitChangeValues()\r\n this.$watch('form', this.emitChangeValues, { deep: true })\r\n },\r\n addFormRulesAPI (columns) {\r\n for (const column of columns) {\r\n // controlar longitud máxima para campos string\r\n if (column.type === API_RESULT_DATATYPES.string && column.name in this.form) {\r\n if (!(column.name in this.formRules)) {\r\n this.$set(this.formRules, column.name, [])\r\n }\r\n this.formRules[column.name].push(\r\n v => (v || '').length <= column.size || `La longitud máxima es de ${column.size} caracteres`,\r\n )\r\n }\r\n }\r\n },\r\n async addFormRulesVeeValidateAPI (columns) {\r\n // La variable columns es lo que devuelve la api como metadatos result.metadata.columns\r\n for (const column of columns) {\r\n // controlar longitud máxima para campos string\r\n if (column.type === API_RESULT_DATATYPES.string && column.name in this.form) {\r\n if (!(column.name in this.formRules)) {\r\n this.$set(this.formRules, column.name, { max: column.size})\r\n } else {\r\n this.$set(this.formRules[column.name], \"max\" , column.size)\r\n }\r\n }\r\n }\r\n },\r\n },\r\n}\r\n"],"sourceRoot":""}