{"version":3,"sources":["webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/LparteTrabajoMaterialAfectadoSustitucion.vue?e4eb","webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/LparteTrabajoMaterialAfectadoSustitucionData.js","webpack:///src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/LparteTrabajoMaterialAfectadoSustitucion.vue","webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/LparteTrabajoMaterialAfectadoSustitucion.vue?d6ae","webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/LparteTrabajoMaterialAfectadoSustitucion.vue","webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/components/LparteTrabajoMaterialAfectadoSustitucionForm.vue?ca6f","webpack:///src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/components/LparteTrabajoMaterialAfectadoSustitucionForm.vue","webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/components/LparteTrabajoMaterialAfectadoSustitucionForm.vue?d5db","webpack:///./src/pages/offline/lparteTrabajoMaterialAfectadoSustitucion/components/LparteTrabajoMaterialAfectadoSustitucionForm.vue","webpack:///./src/mixins/basePageMixin.js","webpack:///./src/mixins/formPageMixin.js","webpack:///./src/mixins/common.js","webpack:///./src/mixins/formMixin.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","title","on","$event","stopPropagation","clickSubmit","$refs","form","slot","_v","_s","$vuetify","icons","values","check","parteTrabajoMatsist","articulo","codigo","descripcion","fichaTecnica","staticClass","_l","valorFicha","key","_e","idarticulo","ref","orden_trabajo","cliente","idttarifa","idbanco_precio","idcliente","routeParams","hasViewPerm","permissions","articulos","verTarifas","changeFormData","staticRenderFns","rowArticulo","Vue","tables","$offline","db","select","from","innerJoin","subfamilia","idsubfamilia","eq","where","op","and","exec","rowParteTrabajoMatsist","idparteTrabajoMatsist","parte_trabajo_matsist","parte_trabajo","idparte_trabajo","idorden_trabajo","sistema","idsistema","orden_trabajo_matsist","idorden_trabajo_matsist","material_sistema","idmaterial_sistema","subsis","idsubsis","tsubsis","idtsubsis","idparte_trabajo_matsist","insert","formData","idaccionEjec","idtecnico","idparteTrabajo","accion_ejec","maccion","idmaccion","idaccion_ejec","accionEjec","marcarAccionEjecRealizadaSync","facturable","tinclusion","lparteTrabajo","components","LparteTrabajoMaterialAfectadoSustitucionForm","mixins","data","computed","usuarioIdtecnico","created","methods","loadPage","Data","submitForm","name","params","idlparte_trabajo","component","VAlert","VBtn","VForm","VIcon","formRules","model","value","callback","$$v","$set","expression","props","type","default","idbancoPrecio","hasPermVerTarifas","showTinclusion","id","loadFormData","mostrarOcultarTipoInclusion","preguntar","basePageMixin","routeQuery","loadingData","rememberState","rememberScroll","showingDialogs","pageLoaded","bottomNavBarButtons","dbReady","_","cloneDeep","$route","query","extra","decodeBase64","routeFromBrowserHistory","meta","fromBrowserHistory","userPermissions","get","initDB","$loading","showManual","connect","initSchema","init","hide","closeDB","close","copyRouteParamsToPageStore","pageStoreName","routeParam","storeHasProperty","setStoreProperty","initStore","property","$store","set","getStoreProperty","dispatchStore","actionName","payload","dispatch","perm","hasInsertPerm","hasEditPerm","hasDeletePerm","hasPerm","beforeRouteLeaveBase","to","next","beforeRouteLeaveCommon","initNavigationBottom","addNavigationBottomButton","icon","visible","badge","badgeColor","index","push","order","length","formPageMixin","submitMessage","scrollPosition","gotoScrollPosition","validate","formInvalid","saveFormData","Object","keys","fieldname","currentScrollPosition","that","showingDialog","dialog","Number","String","required","isInsert","isEdit","watch","newValue","setFormRule","rule","createMaxOracleNumberFormRules","precision","createMaxFormRules","size","createRequiredFormRules","emitChangeValues","$emit","loadForm","$watch","deep","addFormRulesAPI","columns","column","API_RESULT_DATATYPES","string","v","addFormRulesVeeValidateAPI","max"],"mappings":"0IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAA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O1H,QAAQ,EAAKzF,OAC/DmN,EAAO1H,QAAQ,EAAKQ,UAGxB,EAAKK,KAAK,EAAKL,UAAUkH,EAAO1H,MAAO,MAAQ0H,EAAOT,MAFtD,EAAKpG,KAAK,EAAKL,UAAWkH,EAAO1H,KAAM,CAAE+H,IAAKL,EAAOT,QANlB","file":"js/chunk-d7852c0e.9447fb1c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b10-base',[_c('b10-toolbar',{attrs:{\"title\":_vm.title}},[_c('v-btn',{attrs:{\"slot\":\"right\",\"icon\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.clickSubmit(_vm.$refs.form)}},slot:\"right\"},[_c('v-icon',[_vm._v(_vm._s(_vm.$vuetify.icons.values.check))])],1)],1),_c('b10-page-content',{attrs:{\"padding\":3}},[(_vm.parteTrabajoMatsist.articulo && _vm.articulo.articulo)?_c('v-alert',{attrs:{\"type\":\"info\",\"value\":true}},[_vm._v(\" Sustituir \"),_c('strong',[_vm._v(_vm._s(_vm.parteTrabajoMatsist.articulo.codigo)+\" - \"+_vm._s(_vm.parteTrabajoMatsist.articulo.descripcion))]),_vm._v(\" con ficha técnica: \"),(_vm.fichaTecnica.length)?_c('ul',{staticClass:\"my-4\"},_vm._l((_vm.fichaTecnica),function(valorFicha,key){return _c('li',{key:key},[_vm._v(\" \"+_vm._s(valorFicha)+\" \")])}),0):_vm._e(),(\n _vm.parteTrabajoMatsist.articulo.idarticulo !==\n _vm.articulo.articulo.idarticulo\n )?_c('span',[_vm._v(\" por artículo \"),_c('strong',[_vm._v(_vm._s(_vm.articulo.articulo.codigo)+\" - \"+_vm._s(_vm.articulo.articulo.descripcion))])]):_vm._e()]):_vm._e(),_c('v-form',{ref:\"form\",attrs:{\"lazy-validation\":\"\"}},[(_vm.parteTrabajoMatsist && _vm.parteTrabajoMatsist.orden_trabajo && _vm.parteTrabajoMatsist.cliente)?_c('lparte-trabajo-material-afectado-sustitucion-form',{attrs:{\"id\":null,\"idttarifa\":_vm.parteTrabajoMatsist.orden_trabajo.idttarifa,\"idbanco-precio\":_vm.parteTrabajoMatsist.orden_trabajo.idbanco_precio,\"idcliente\":_vm.parteTrabajoMatsist.cliente.idcliente,\"idarticulo\":_vm.routeParams.idarticulo,\"has-perm-ver-tarifas\":_vm.hasViewPerm(_vm.permissions.articulos.verTarifas)},on:{\"change-values\":_vm.changeFormData}}):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\r\n async rowArticulo (Vue, idarticulo) {\r\n const tables = Vue.$offline.db.tables\r\n return (await Vue.$offline.db\r\n .select()\r\n .from(tables.articulo)\r\n .innerJoin(\r\n tables.subfamilia,\r\n tables.articulo.idsubfamilia.eq(tables.subfamilia.idsubfamilia)\r\n )\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.articulo.idarticulo.eq(idarticulo)\r\n )\r\n )\r\n .exec()\r\n )[0]\r\n },\r\n async rowParteTrabajoMatsist (Vue, idparteTrabajoMatsist) {\r\n const tables = Vue.$offline.db.tables\r\n const parteTrabajoMatsist = await Vue.$offline.db\r\n .select()\r\n .from(tables.parte_trabajo_matsist)\r\n .innerJoin(\r\n tables.parte_trabajo,\r\n tables.parte_trabajo_matsist.idparte_trabajo.eq(tables.parte_trabajo.idparte_trabajo)\r\n )\r\n .innerJoin(\r\n tables.orden_trabajo,\r\n tables.parte_trabajo.idorden_trabajo.eq(tables.orden_trabajo.idorden_trabajo)\r\n )\r\n .innerJoin(\r\n tables.sistema,\r\n tables.orden_trabajo.idsistema.eq(tables.sistema.idsistema)\r\n )\r\n .innerJoin(\r\n tables.cliente,\r\n tables.sistema.idcliente.eq(tables.cliente.idcliente)\r\n )\r\n .innerJoin(\r\n tables.orden_trabajo_matsist,\r\n tables.parte_trabajo_matsist.idorden_trabajo_matsist.eq(tables.orden_trabajo_matsist.idorden_trabajo_matsist)\r\n )\r\n .innerJoin(\r\n tables.material_sistema,\r\n tables.orden_trabajo_matsist.idmaterial_sistema.eq(tables.material_sistema.idmaterial_sistema)\r\n )\r\n .innerJoin(\r\n tables.subsis,\r\n tables.material_sistema.idsubsis.eq(tables.subsis.idsubsis)\r\n )\r\n .innerJoin(\r\n tables.tsubsis,\r\n tables.subsis.idtsubsis.eq(tables.tsubsis.idtsubsis)\r\n )\r\n .innerJoin(\r\n tables.articulo,\r\n tables.material_sistema.idarticulo.eq(tables.articulo.idarticulo)\r\n )\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.parte_trabajo_matsist.idparte_trabajo_matsist.eq(idparteTrabajoMatsist)\r\n )\r\n )\r\n .exec()\r\n return parteTrabajoMatsist[0]\r\n },\r\n async insert (Vue, formData, idparteTrabajoMatsist, idaccionEjec, idtecnico, idparteTrabajo, idarticulo) {\r\n const tables = Vue.$offline.db.tables\r\n const accionEjec = (await Vue.$offline.db\r\n .select()\r\n .from(tables.accion_ejec)\r\n .innerJoin(\r\n tables.maccion,\r\n tables.accion_ejec.idmaccion.eq(tables.maccion.idmaccion)\r\n )\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.accion_ejec.idaccion_ejec.eq(idaccionEjec)\r\n )\r\n )\r\n .exec()\r\n )[0]\r\n // en una sustitución siempre se agrega LPARTE_TRABAJO\r\n // facturable y no facturable\r\n const lparteTrabajo = await Vue.$offline.accionEjec.marcarAccionEjecRealizadaSync(\r\n idaccionEjec,\r\n null,\r\n accionEjec.accion_ejec.facturable,\r\n null,\r\n formData.tinclusion,\r\n idtecnico,\r\n idparteTrabajo,\r\n idarticulo\r\n )\r\n return lparteTrabajo\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!./LparteTrabajoMaterialAfectadoSustitucion.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!./LparteTrabajoMaterialAfectadoSustitucion.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LparteTrabajoMaterialAfectadoSustitucion.vue?vue&type=template&id=56ada3d2&\"\nimport script from \"./LparteTrabajoMaterialAfectadoSustitucion.vue?vue&type=script&lang=js&\"\nexport * from \"./LparteTrabajoMaterialAfectadoSustitucion.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 { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VAlert,VBtn,VForm,VIcon})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b10-base',[(_vm.showTinclusion)?_c('b10-autocomplete',{attrs:{\"items\":_vm.tinclusion,\"item-value\":\"id\",\"item-text\":\"descripcion\",\"label\":\"Tipo de inclusión\",\"clearable\":\"\",\"rules\":_vm.formRules.tinclusion},model:{value:(_vm.form.tinclusion),callback:function ($$v) {_vm.$set(_vm.form, \"tinclusion\", $$v)},expression:\"form.tinclusion\"}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./LparteTrabajoMaterialAfectadoSustitucionForm.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!./LparteTrabajoMaterialAfectadoSustitucionForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LparteTrabajoMaterialAfectadoSustitucionForm.vue?vue&type=template&id=9fb96c8a&\"\nimport script from \"./LparteTrabajoMaterialAfectadoSustitucionForm.vue?vue&type=script&lang=js&\"\nexport * from \"./LparteTrabajoMaterialAfectadoSustitucionForm.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","import { decodeBase64 } from '@/utils/router'\r\nimport { get } from 'vuex-pathify'\r\nimport _ from '@/utils/lodash'\r\nimport { beforeRouteLeaveCommon } from './common'\r\nimport { hasViewPerm, hasInsertPerm, hasEditPerm, hasDeletePerm, hasPerm, permissions } from '@/utils/permissions'\r\nimport { initSchema, connect } from '@/offline/database'\r\n\r\nexport const basePageMixin = {\r\n data () {\r\n return {\r\n title: '',\r\n routeParams: null,\r\n routeQuery: null,\r\n loadingData: false,\r\n rememberState: false,\r\n rememberScroll: false,\r\n showingDialogs: {},\r\n pageLoaded: false,\r\n bottomNavBarButtons: [],\r\n dbReady: false,\r\n }\r\n },\r\n created () {\r\n this.routeParams = _.cloneDeep(this.$route.params)\r\n this.routeQuery = _.cloneDeep(this.$route.query)\r\n if (this.routeQuery.extra) {\r\n this.routeQuery.extra = decodeBase64(this.routeQuery.extra)\r\n }\r\n },\r\n computed: {\r\n routeFromBrowserHistory () {\r\n // no mostrar alerts en el \"back\" del navegador\r\n return this.$route.meta.fromBrowserHistory\r\n },\r\n userPermissions: get('usuario/permisos'),\r\n permissions () {\r\n return permissions\r\n },\r\n },\r\n methods: {\r\n async initDB () {\r\n if (!this.$offline.db) {\r\n this.$loading.showManual('Inicializando base de datos...')\r\n try {\r\n await this.$offline.init(await connect(initSchema()))\r\n } finally {\r\n this.dbReady = true\r\n this.$loading.hide()\r\n }\r\n } else {\r\n this.dbReady = true\r\n }\r\n },\r\n async closeDB () {\r\n if (this.$offline.db) {\r\n await this.$offline.db.close()\r\n this.$offline.db = null\r\n this.dbReady = false\r\n }\r\n },\r\n async copyRouteParamsToPageStore () {\r\n if (this.pageStoreName) {\r\n for (const routeParam in this.routeParams) {\r\n if (this.storeHasProperty(routeParam)) {\r\n await this.setStoreProperty(routeParam, this.routeParams[routeParam])\r\n }\r\n }\r\n }\r\n },\r\n async initStore () {\r\n // routeParams -> ¿existe en el store de la página? -> copiar valor\r\n // usado para: nextRoute, readonly\r\n await this.copyRouteParamsToPageStore()\r\n },\r\n storeHasProperty (property) {\r\n return property in this.$store.get(`${this.pageStoreName}`)\r\n },\r\n async setStoreProperty (property, value) {\r\n await this.$store.set(`${this.pageStoreName}/${property}`, value)\r\n },\r\n async getStoreProperty (property) {\r\n return await this.$store.get(`${this.pageStoreName}/${property}`)\r\n },\r\n async dispatchStore (actionName, payload) {\r\n return await this.$store.dispatch(`${this.pageStoreName}/${actionName}`, payload)\r\n },\r\n hasViewPerm (perm) {\r\n return hasViewPerm(this.userPermissions, perm)\r\n },\r\n hasInsertPerm (perm) {\r\n return hasInsertPerm(this.userPermissions, perm)\r\n },\r\n hasEditPerm (perm) {\r\n return hasEditPerm(this.userPermissions, perm)\r\n },\r\n hasDeletePerm (perm) {\r\n return hasDeletePerm(this.userPermissions, perm)\r\n },\r\n hasPerm (perm) {\r\n return hasPerm(this.userPermissions, perm)\r\n },\r\n beforeRouteLeaveBase (to, from, next) {\r\n if (!beforeRouteLeaveCommon(this, to, from, next)) {\r\n next()\r\n }\r\n },\r\n initNavigationBottom () {\r\n this.bottomNavBarButtons = []\r\n },\r\n addNavigationBottomButton (title, name, icon, visible = true, badge = null, badgeColor = 'green') {\r\n const index = this.bottomNavBarButtons.push({\r\n title,\r\n name,\r\n icon,\r\n order: this.bottomNavBarButtons.length + 1,\r\n visible,\r\n badge,\r\n badgeColor,\r\n })\r\n return this.bottomNavBarButtons[index - 1]\r\n },\r\n }\r\n}\r\n","import { basePageMixin } from '@/mixins/basePageMixin'\r\nimport { beforeRouteLeaveCommon } from './common'\r\nimport { currentScrollPosition } from '@/utils/ui'\r\nimport { gotoScrollPosition } from '@/utils/ui'\r\n\r\nexport const formPageMixin = {\r\n mixins: [basePageMixin],\r\n data () {\r\n return {\r\n formData: {},\r\n submitMessage: 'Guardando cambios...',\r\n }\r\n },\r\n methods: {\r\n async initStore () {\r\n await this.copyRouteParamsToPageStore()\r\n if (this.scrollPosition > 0) {\r\n gotoScrollPosition(this.scrollPosition)\r\n }\r\n },\r\n async clickSubmit (form) {\r\n if (await form.validate()) {\r\n this.$loading.showManual(this.submitMessage)\r\n try {\r\n // submit de la página donde se aplica el mixin\r\n await this.submitForm()\r\n } finally {\r\n this.$loading.hide()\r\n }\r\n } else {\r\n await this.formInvalid()\r\n }\r\n },\r\n async formInvalid () {\r\n // sobreescribir donde se aplica el mixin\r\n },\r\n async saveFormData (formData) {\r\n for (const fieldname of Object.keys(formData)) {\r\n await this.setStoreProperty(`formData@${fieldname}`, formData[fieldname])\r\n }\r\n },\r\n async beforeRouteLeaveBase (to, from, next) {\r\n if (!beforeRouteLeaveCommon(this, to, from, next)) {\r\n if (this.pageStoreName) {\r\n if (this.rememberScroll) {\r\n await this.setStoreProperty('scrollPosition', currentScrollPosition())\r\n } else {\r\n await this.dispatchStore('resetScroll')\r\n }\r\n if (!this.rememberState) {\r\n await this.dispatchStore('resetStore')\r\n }\r\n }\r\n next()\r\n }\r\n },\r\n }\r\n}\r\n","export const beforeRouteLeaveCommon = (that, to, from, next) => {\r\n if (that.loadingData) {\r\n next(false)\r\n return true\r\n } else {\r\n let showingDialog = false\r\n for (const dialog in that.showingDialogs) {\r\n if (that.showingDialogs[dialog]) {\r\n that.$set(that.showingDialogs, dialog, false)\r\n showingDialog = true\r\n next(false)\r\n break\r\n }\r\n }\r\n return showingDialog\r\n }\r\n}\r\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":""}