{"version":3,"sources":["webpack:///./src/mixins/viewPageMixin.js","webpack:///./src/mixins/basePageMixin.js","webpack:///./src/pages/components/SistemaExtraSubtitle.vue?9578","webpack:///src/pages/components/SistemaExtraSubtitle.vue","webpack:///./src/pages/components/SistemaExtraSubtitle.vue?b549","webpack:///./src/pages/components/SistemaExtraSubtitle.vue","webpack:///./src/mixins/common.js","webpack:///./src/pages/offline/sistemaView/SistemaView.vue?34d5","webpack:///./src/pages/offline/sistemaView/SistemaViewData.js","webpack:///src/pages/offline/sistemaView/SistemaView.vue","webpack:///./src/pages/offline/sistemaView/SistemaView.vue?3767","webpack:///./node_modules/vuetify/lib/components/VBanner/VBanner.js","webpack:///./src/pages/offline/sistemaView/SistemaView.vue"],"names":["viewPageMixin","mixins","basePageMixin","data","item","dataset","metadata","moreInfoRows","details","methods","initStore","copyRouteParamsToPageStore","beforeRouteLeaveBase","to","from","next","beforeRouteLeaveCommon","pageStorePath","dispatchStore","buildMoreInfo","getRowLabelFromMetadata","rowName","label","getColumn","metadataRow","$options","filters","capitalize","defaultProperties","visible","clickable","password","icon","this","$vuetify","icons","values","Array","isArray","moreInfoArray","row","formattedRow","name","push","moreInfoObj","group","title","rows","initDetails","addDetail","subtitle","disabled","index","type","order","length","badge","badgeColor","totals","addDetailHeader","setMoreInfoRowValue","prop","value","_","find","itemNotFound","message","ItemNotFoundError","routeParams","routeQuery","loadingData","rememberState","rememberScroll","showingDialogs","pageLoaded","bottomNavBarButtons","dbReady","created","cloneDeep","$route","params","query","extra","decodeBase64","computed","routeFromBrowserHistory","meta","fromBrowserHistory","userPermissions","get","permissions","initDB","$offline","db","$loading","showManual","connect","initSchema","init","hide","closeDB","close","pageStoreName","routeParam","storeHasProperty","setStoreProperty","property","$store","set","getStoreProperty","actionName","payload","dispatch","hasViewPerm","perm","hasInsertPerm","hasEditPerm","hasDeletePerm","hasPerm","initNavigationBottom","addNavigationBottomButton","render","_vm","_h","$createElement","_c","_self","estadoCliente","CLIENTE","estados","activo","staticClass","attrs","colores","idestados","_v","_s","lowercase","descripcionEstado","_e","estadoSistema","SISTEMA","staticRenderFns","props","default","component","VChip","that","showingDialog","dialog","$set","toolbarOptions","on","clickToolbarOption","formattedItem","moreInfo","$event","slot","networkOnline","warning","clickDetail","_addSubqueriesSistema","Vue","clienteDireccion","formatearDireccion","cliente_direccion","direccion","selectSistema","idsistema","tables","select","sistema","innerJoin","cliente","idcliente","eq","tsistema","idtsistema","forma_pago","idforma_pago","leftOuterJoin","idcliente_direccion_sist","idcliente_direccion","zona","idzona_tecnico","idzona","where","exec","selectSistemaTelefonoCount","sistemaTelefono","selectContactosDelSistema","selectSistemaTviacomunicacion","selectRevisionesCount","tactuacion","descripcion","periodo_revision","fn","count","sistema_mant","idsistema_mant","as","idtactuacion","idperiodo_revision","groupBy","op","and","estado","gt","activar","selectMaterialSistemaCount","sum","material_sistema","unidades","subsis","idsubsis","fdesinstalacion","isNull","selectSubsisCount","selectFicherosCount","fichero","idfichero","idtabla","TABLA","id","geolocalizar","idclienteDireccion","latitud","longitud","updateSync","selectSistemaCuotaCount","conceptoCuotaTservicio","idConceptoCuotaDeMantenimiento","sistema_cuota","idsistema_cuota","concepto_cuota","idconcepto_cuota","in","selectDatoSistemaCount","dato_sistema","iddato_sistema","components","ExtraSubtitle","beforeRouteLeave","map","irCliente","avisos","viewDetails","ordenesTrabajo","planos","viasComunicacion","revisiones","personasContacto","serviciosContratados","ficheros","datoSistema","subsistemas","clienteVisible","usuarioIdtecnico","usuarioIdcomercial","options","persistent","actions","text","flat","handler","watch","newValue","loadPage","filter","loadItem","Data","loadDetailTotals","detailMaterialSistema","datasetMaterialSistema","canClickListItem","_filter","tipoFicheroClasificacion","fixed","option","window","captureGeolocation","geolocation","res","VSheet","extend","inheritAttrs","app","Boolean","String","iconColor","singleLine","sticky","classes","call","hasIcon","isMobile","isSticky","$slots","styles","top","application","bar","position","zIndex","isActive","e","$emit","content","VIcon","color","size","VAvatar","click","iconClick","children","dismiss","genIcon","genText","genContent","genActions","h","attrs$","class","style","directives","outlined","setBackgroundColor","genWrapper","VBanner"],"mappings":"0UAKaA,EAAgB,CAC3BC,OAAQ,CAACC,QACTC,KAF2B,WAGzB,MAAO,CAWLC,KAAM,CACJC,QAAS,GACTC,SAAU,IAEZC,aAAc,GACdC,QAAS,KAGbC,QAAS,CACDC,UADC,WACY,wKACX,EAAKC,6BADM,8CAGbC,qBAJC,SAIqBC,EAAIC,EAAMC,GAAM,2JACrCC,eAAuB,EAAMH,EAAIC,EAAMC,GADF,oBAEpC,EAAKE,cAF+B,gCAGhC,EAAKC,cAAc,cAHa,OAKxCH,IALwC,8CAQ5CI,cAZO,SAYQb,GAAU,WACjBc,EAA0B,SAACC,EAASf,GACxC,IAAIgB,EAAQ,GACZ,GAAIhB,GAA0C,oBAAvBA,EAASiB,UAA0B,CACxD,IAAMC,EAAclB,EAASiB,UAAUF,GACnCG,IACFF,EAAQE,EAAYF,OAGxB,OAAOA,GAAS,EAAKG,SAASC,QAAQC,WAAWN,IAE7CO,EAAoB,CACxBC,SAAS,EACTC,WAAW,EACXC,UAAU,EACVC,KAAMC,KAAKC,SAASC,MAAMC,OAAOrB,MAEnC,GAAIsB,MAAMC,QAAQL,KAAK1B,cAAe,CACpC,IADoC,EAC9BgC,EAAgB,GADc,iBAElBN,KAAK1B,cAFa,IAEpC,IAAK,EAAL,qBAAqC,KAA1BiC,EAA0B,QAC/BC,EAAe,GACC,kBAATD,EACTC,EAAe,CAAEC,KAAMF,EAAKlB,MAAOF,EAAwBoB,EAAKlC,KAEhEmC,EAAeD,EACVC,EAAanB,QAChBmB,EAAanB,MAAQF,EAAwBqB,EAAaC,KAAMpC,KAGpEiC,EAAcI,KAAd,iCAAwBf,GAAsBa,KAZZ,8BAcpC,OAAOF,EAEP,IAAMK,EAAc,GACpB,IAAK,IAAMC,KAASZ,KAAK1B,aAAc,CACrCqC,EAAYC,GAAS,GACrBD,EAAYC,GAAOC,MAAQb,KAAK1B,aAAasC,GAAOC,MACpDF,E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+Q,UAAW,IAEjC,GAAKU,EACL,OAAOzR,KAAK2F,eAAe,MAAO,CAChCO,YAAa,qBACZuL,IAGL,aACE,OAAOzR,KAAK2F,eAAe,MAAO,CAChCO,YAAa,qBACZ,CAAClG,KAAK2R,UAAW3R,KAAK4R,aAG3B,aACE,OAAO5R,KAAK2F,eAAe,MAAO,CAChCO,YAAa,qBACZ,CAAClG,KAAK6R,aAAc7R,KAAK8R,iBAKhC,OAAOC,GACL,MAAM7T,EAAO,CACXgI,YAAa,WACbC,MAAOnG,KAAKgS,OACZC,MAAOjS,KAAKmQ,QACZ+B,MAAOlS,KAAKyQ,OACZ0B,WAAY,CAAC,CACX1R,KAAM,OACNoB,MAAO7B,KAAK+Q,YAGhB,OAAOgB,EAAE,OAAmB,CAACA,EAAE,MAAO/R,KAAKoS,SAAWlU,EAAO8B,KAAKqS,mBAAmBrS,KAAKoR,MAAOlT,GAAO,CAAC8B,KAAKsS,oBCtI9GtL,EAAY,eACd,EACAxB,EACAqB,GACA,EACA,KACA,KACA,MAIa,aAAAG,EAAiB,QAKhC,IAAkBA,EAAW,CAACuL,QAAA","file":"js/chunk-513aca32.8d754293.js","sourcesContent":["import { basePageMixin } from '@/mixins/basePageMixin'\r\nimport { beforeRouteLeaveCommon } from './common'\r\nimport { ItemNotFoundError } from '@/utils/consts'\r\nimport _ from '@/utils/lodash'\r\n\r\nexport const viewPageMixin = {\r\n mixins: [basePageMixin],\r\n data () {\r\n return {\r\n // moreInfoRows puede ser:\r\n // 1º un array strings con nombres de campos\r\n // ['idcliente', 'nombre']\r\n // 2º un array de objetos (campos)\r\n // [{ name: 'idcliente' }, { name: 'nombre' }]\r\n // 3º un objeto con grupos y cada grupo con un título y un array de strings u objetos (campos)\r\n // {\r\n // cliente: { title: 'Cliente', rows: ['idcliente', 'nombre'] },\r\n // sistema: { title: 'Sistema', rows: [ { name: 'idsistema' }, 'descripcion'] },\r\n // },\r\n item: {\r\n dataset: [],\r\n metadata: {},\r\n },\r\n moreInfoRows: [],\r\n details: [],\r\n }\r\n },\r\n methods: {\r\n async initStore () {\r\n await this.copyRouteParamsToPageStore()\r\n },\r\n async beforeRouteLeaveBase (to, from, next) {\r\n if (!beforeRouteLeaveCommon(this, to, from, next)) {\r\n if (this.pageStorePath) {\r\n await this.dispatchStore('resetStore')\r\n }\r\n next()\r\n }\r\n },\r\n buildMoreInfo (metadata) {\r\n const getRowLabelFromMetadata = (rowName, metadata) => {\r\n let label = ''\r\n if (metadata && typeof metadata.getColumn === 'function') {\r\n const metadataRow = metadata.getColumn(rowName)\r\n if (metadataRow) {\r\n label = metadataRow.label\r\n }\r\n }\r\n return label || this.$options.filters.capitalize(rowName)\r\n }\r\n const defaultProperties = {\r\n visible: true,\r\n clickable: false,\r\n password: false,\r\n icon: this.$vuetify.icons.values.next\r\n }\r\n if (Array.isArray(this.moreInfoRows)) {\r\n const moreInfoArray = []\r\n for (const row of this.moreInfoRows) {\r\n let formattedRow = {}\r\n if (typeof(row) === 'string') {\r\n formattedRow = { name: row, label: getRowLabelFromMetadata(row, metadata) }\r\n } else {\r\n formattedRow = row\r\n if (!formattedRow.label) {\r\n formattedRow.label = getRowLabelFromMetadata(formattedRow.name, metadata)\r\n }\r\n }\r\n moreInfoArray.push({ ...defaultProperties, ...formattedRow })\r\n }\r\n return moreInfoArray\r\n } else {\r\n const moreInfoObj = {}\r\n for (const group in this.moreInfoRows) {\r\n moreInfoObj[group] = {}\r\n moreInfoObj[group].title = this.moreInfoRows[group].title\r\n moreInfoObj[group].rows = []\r\n for (const row of this.moreInfoRows[group].rows) {\r\n let formattedRow = {}\r\n if (typeof(row) === 'string') {\r\n formattedRow = { name: row, label: getRowLabelFromMetadata(row, metadata) }\r\n } else {\r\n formattedRow = row\r\n if (!formattedRow.label) {\r\n formattedRow.label = getRowLabelFromMetadata(formattedRow.name, metadata)\r\n }\r\n }\r\n moreInfoObj[group].rows.push({ ...defaultProperties, ...formattedRow })\r\n }\r\n }\r\n return moreInfoObj\r\n }\r\n },\r\n initDetails () {\r\n this.details = []\r\n },\r\n addDetail (name, title, subtitle, icon, disabled = false, data = {}) {\r\n const index = this.details.push({\r\n type: 'detail',\r\n name,\r\n title,\r\n subtitle,\r\n icon,\r\n order: this.details.length + 1,\r\n badge: '',\r\n badgeColor: '',\r\n totals: '',\r\n data,\r\n disabled,\r\n })\r\n return this.details[index - 1]\r\n },\r\n addDetailHeader (title) {\r\n const index = this.details.push({\r\n type: 'header',\r\n title,\r\n order: this.details.length + 1,\r\n })\r\n return this.details[index - 1]\r\n },\r\n setMoreInfoRowValue (name, prop, value, group = '') {\r\n // ¿esta agrupado?\r\n if (group) {\r\n _.find(this.moreInfoRows[group].rows, { name })[prop] = value\r\n } else {\r\n _.find(this.moreInfoRows, { name })[prop] = value\r\n }\r\n },\r\n itemNotFound (message) {\r\n throw new ItemNotFoundError(message)\r\n },\r\n }\r\n}\r\n","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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.estadoCliente != _vm.CLIENTE.estados.activo)?_c('v-chip',{staticClass:\"ml-1 mt-1\",attrs:{\"dark\":\"\",\"label\":\"\",\"small\":\"\",\"color\":_vm.CLIENTE.colores[_vm.CLIENTE.idestados[_vm.estadoCliente]],\"text-color\":\"white\"}},[_vm._v(\" Cliente \"+_vm._s(_vm.$options.filters.lowercase(_vm.CLIENTE.descripcionEstado[_vm.CLIENTE.idestados[_vm.estadoCliente]]))+\" \")]):_vm._e(),(_vm.estadoSistema != _vm.SISTEMA.estados.activo)?_c('v-chip',{staticClass:\"ml-1 mt-1\",attrs:{\"dark\":\"\",\"label\":\"\",\"small\":\"\",\"color\":_vm.SISTEMA.colores[_vm.SISTEMA.idestados[_vm.estadoSistema]],\"text-color\":\"white\"}},[_vm._v(\" Sistema \"+_vm._s(_vm.SISTEMA.descripcionEstado[_vm.SISTEMA.idestados[_vm.estadoSistema]])+\" \")]):_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!./SistemaExtraSubtitle.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!./SistemaExtraSubtitle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SistemaExtraSubtitle.vue?vue&type=template&id=5875a917&\"\nimport script from \"./SistemaExtraSubtitle.vue?vue&type=script&lang=js&\"\nexport * from \"./SistemaExtraSubtitle.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 { VChip } from 'vuetify/lib/components/VChip';\ninstallComponents(component, {VChip})\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","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,\"options\":_vm.toolbarOptions},on:{\"click-option\":_vm.clickToolbarOption}}),_c('b10-page-content',[_c('b10-view-summary',{attrs:{\"item\":_vm.formattedItem,\"showing\":_vm.showingDialogs.moreInfo,\"loading-data\":_vm.loadingData,\"show-alerts\":!_vm.routeFromBrowserHistory},on:{\"update:showing\":function($event){return _vm.$set(_vm.showingDialogs, \"moreInfo\", $event)}}},[_c('template',{slot:\"extraSubtitle\"},[_c('extra-subtitle',{attrs:{\"estado-cliente\":_vm.formattedItem.estadoCliente,\"estado-sistema\":_vm.formattedItem.estadoSistema}})],1)],2),(!_vm.networkOnline)?_c('v-banner',{attrs:{\"color\":\"warning\",\"icon\":_vm.$vuetify.icons.values.warning}},[_vm._v(\" No tienes conexión a internet, algunas opciones están desabilitadas. \")]):_vm._e(),_c('b10-view-details',{attrs:{\"details\":_vm.details},on:{\"click-detail\":_vm.clickDetail}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { TABLA } from '@/utils/consts'\r\n\r\nexport default {\r\n async _addSubqueriesSistema (Vue, rows) {\r\n for (let row of rows) {\r\n row.direccion = await Vue.$offline.clienteDireccion.formatearDireccion(row.cliente_direccion)\r\n }\r\n return rows\r\n },\r\n async selectSistema (Vue, idsistema) {\r\n const tables = Vue.$offline.db.tables\r\n const rows = await Vue.$offline.db\r\n .select()\r\n .from(tables.sistema)\r\n .innerJoin(\r\n tables.cliente,\r\n tables.sistema.idcliente.eq(tables.cliente.idcliente)\r\n )\r\n .innerJoin(\r\n tables.tsistema,\r\n tables.sistema.idtsistema.eq(tables.tsistema.idtsistema)\r\n )\r\n .innerJoin(\r\n tables.forma_pago,\r\n tables.sistema.idforma_pago.eq(tables.forma_pago.idforma_pago)\r\n )\r\n .leftOuterJoin(\r\n tables.cliente_direccion,\r\n tables.sistema.idcliente_direccion_sist.eq(tables.cliente_direccion.idcliente_direccion)\r\n )\r\n .leftOuterJoin(\r\n tables.zona,\r\n tables.cliente_direccion.idzona_tecnico.eq(tables.zona.idzona)\r\n )\r\n .where(tables.sistema.idsistema.eq(idsistema))\r\n .exec()\r\n return (await this._addSubqueriesSistema(Vue, rows))[0]\r\n },\r\n async selectSistemaTelefonoCount (Vue, idsistema) {\r\n return await Vue.$offline.sistemaTelefono.selectContactosDelSistema(idsistema)\r\n },\r\n async selectSistemaTviacomunicacion (Vue, idsistema) {\r\n return await Vue.$offline.sistemaTelefono.selectContactosDelSistema(idsistema)\r\n },\r\n async selectRevisionesCount (Vue, idsistema) {\r\n const tables = Vue.$offline.db.tables\r\n return await Vue.$offline.db\r\n .select(\r\n tables.tactuacion.descripcion,\r\n tables.periodo_revision.descripcion,\r\n Vue.$offline.db.fn.count(tables.sistema_mant.idsistema_mant).as('count'),\r\n )\r\n .from(tables.sistema_mant)\r\n .innerJoin(\r\n tables.tactuacion,\r\n tables.sistema_mant.idtactuacion.eq(tables.tactuacion.idtactuacion)\r\n )\r\n .innerJoin(\r\n tables.periodo_revision,\r\n tables.sistema_mant.idperiodo_revision.eq(tables.periodo_revision.idperiodo_revision)\r\n )\r\n .groupBy(\r\n tables.tactuacion.descripcion,\r\n tables.periodo_revision.descripcion,\r\n )\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.sistema_mant.idsistema.eq(idsistema),\r\n tables.sistema_mant.estado.gt(0),\r\n tables.sistema_mant.activar.eq(true),\r\n )\r\n )\r\n .exec()\r\n },\r\n async selectMaterialSistemaCount(Vue, idsistema){\r\n const tables = Vue.$offline.db.tables\r\n return (await Vue.$offline.db\r\n .select(\r\n Vue.$offline.db.fn.sum(\r\n tables.material_sistema.unidades\r\n ).as('count')\r\n )\r\n .from(tables.material_sistema)\r\n .innerJoin(\r\n tables.subsis,\r\n tables.material_sistema.idsubsis.eq(tables.subsis.idsubsis)\r\n )\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.material_sistema.estado.gt(0),\r\n tables.material_sistema.fdesinstalacion.isNull(),\r\n tables.subsis.idsistema.eq(idsistema),\r\n tables.subsis.estado.gt(0),\r\n )\r\n )\r\n .exec())[0]\r\n },\r\n async selectSubsisCount (Vue, idsistema) {\r\n const tables = Vue.$offline.db.tables\r\n return (await Vue.$offline.db\r\n .select(Vue.$offline.db.fn.count(tables.subsis.idsubsis).as('count'))\r\n .from(tables.subsis)\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.subsis.idsistema.eq(idsistema),\r\n tables.subsis.estado.gt(0),\r\n )\r\n )\r\n .exec())[0]\r\n },\r\n async selectFicherosCount (Vue, idsistema) {\r\n const tables = Vue.$offline.db.tables\r\n return (await Vue.$offline.db\r\n .select(Vue.$offline.db.fn.count(tables.fichero.idfichero).as('count'))\r\n .from(tables.fichero)\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.fichero.idtabla.eq(TABLA.sistema.idtabla),\r\n tables.fichero.id.eq(idsistema),\r\n )\r\n )\r\n .exec())[0]\r\n },\r\n async geolocalizar (Vue, idclienteDireccion, latitud, longitud) {\r\n await Vue.$offline.clienteDireccion.updateSync({\r\n idcliente_direccion: idclienteDireccion,\r\n latitud,\r\n longitud,\r\n })\r\n },\r\n async selectSistemaCuotaCount (Vue, idsistema) {\r\n const tables = Vue.$offline.db.tables\r\n // esto lo hace parteTrabajo también\r\n const idConceptoCuotaDeMantenimiento = await Vue.$offline.conceptoCuotaTservicio.idConceptoCuotaDeMantenimiento()\r\n return (await Vue.$offline.db\r\n .select(Vue.$offline.db.fn.count(tables.sistema_cuota.idsistema_cuota).as('count'))\r\n .from(tables.sistema_cuota)\r\n .innerJoin(\r\n tables.concepto_cuota,\r\n tables.sistema_cuota.idconcepto_cuota.eq(tables.concepto_cuota.idconcepto_cuota)\r\n )\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.sistema_cuota.estado.gt(0),\r\n tables.sistema_cuota.idconcepto_cuota.in(idConceptoCuotaDeMantenimiento),\r\n tables.sistema_cuota.idsistema.eq(idsistema)\r\n )\r\n )\r\n .exec())[0]\r\n },\r\n async selectDatoSistemaCount (Vue, idsistema) {\r\n const tables = Vue.$offline.db.tables\r\n return (await Vue.$offline.db\r\n .select(Vue.$offline.db.fn.count(tables.dato_sistema.iddato_sistema).as('count'))\r\n .from(tables.dato_sistema)\r\n .where(\r\n Vue.$offline.db.op.and(\r\n tables.dato_sistema.idsistema.eq(idsistema),\r\n tables.dato_sistema.estado.gt(0),\r\n )\r\n )\r\n .exec())[0]\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!./SistemaView.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!./SistemaView.vue?vue&type=script&lang=js&\"","// Styles\nimport \"../../../src/components/VBanner/VBanner.sass\"; // Extensions\n\nimport VSheet from '../VSheet'; // Components\n\nimport VAvatar from '../VAvatar';\nimport VIcon from '../VIcon';\nimport { VExpandTransition } from '../transitions'; // Mixins\n\nimport Mobile from '../../mixins/mobile';\nimport Toggleable from '../../mixins/toggleable'; // Utilities\n\nimport mixins from '../../util/mixins';\nimport { convertToUnit, getSlot } from '../../util/helpers';\n/* @vue/component */\n\nexport default mixins(VSheet, Mobile, Toggleable).extend({\n name: 'v-banner',\n inheritAttrs: false,\n props: {\n app: Boolean,\n icon: String,\n iconColor: String,\n singleLine: Boolean,\n sticky: Boolean,\n value: {\n type: Boolean,\n default: true\n }\n },\n computed: {\n classes() {\n return { ...VSheet.options.computed.classes.call(this),\n 'v-banner--has-icon': this.hasIcon,\n 'v-banner--is-mobile': this.isMobile,\n 'v-banner--single-line': this.singleLine,\n 'v-banner--sticky': this.isSticky\n };\n },\n\n hasIcon() {\n return Boolean(this.icon || this.$slots.icon);\n },\n\n isSticky() {\n return this.sticky || this.app;\n },\n\n styles() {\n const styles = { ...VSheet.options.computed.styles.call(this)\n };\n\n if (this.isSticky) {\n const top = !this.app ? 0 : this.$vuetify.application.bar + this.$vuetify.application.top;\n styles.top = convertToUnit(top);\n styles.position = 'sticky';\n styles.zIndex = 1;\n }\n\n return styles;\n }\n\n },\n methods: {\n /** @public */\n toggle() {\n this.isActive = !this.isActive;\n },\n\n iconClick(e) {\n this.$emit('click:icon', e);\n },\n\n genIcon() {\n if (!this.hasIcon) return undefined;\n let content;\n\n if (this.icon) {\n content = this.$createElement(VIcon, {\n props: {\n color: this.iconColor,\n size: 28\n }\n }, [this.icon]);\n } else {\n content = this.$slots.icon;\n }\n\n return this.$createElement(VAvatar, {\n staticClass: 'v-banner__icon',\n props: {\n color: this.color,\n size: 40\n },\n on: {\n click: this.iconClick\n }\n }, [content]);\n },\n\n genText() {\n return this.$createElement('div', {\n staticClass: 'v-banner__text'\n }, this.$slots.default);\n },\n\n genActions() {\n const children = getSlot(this, 'actions', {\n dismiss: () => this.isActive = false\n });\n if (!children) return undefined;\n return this.$createElement('div', {\n staticClass: 'v-banner__actions'\n }, children);\n },\n\n genContent() {\n return this.$createElement('div', {\n staticClass: 'v-banner__content'\n }, [this.genIcon(), this.genText()]);\n },\n\n genWrapper() {\n return this.$createElement('div', {\n staticClass: 'v-banner__wrapper'\n }, [this.genContent(), this.genActions()]);\n }\n\n },\n\n render(h) {\n const data = {\n staticClass: 'v-banner',\n attrs: this.attrs$,\n class: this.classes,\n style: this.styles,\n directives: [{\n name: 'show',\n value: this.isActive\n }]\n };\n return h(VExpandTransition, [h('div', this.outlined ? data : this.setBackgroundColor(this.color, data), [this.genWrapper()])]);\n }\n\n});\n//# sourceMappingURL=VBanner.js.map","import { render, staticRenderFns } from \"./SistemaView.vue?vue&type=template&id=1b5303a1&\"\nimport script from \"./SistemaView.vue?vue&type=script&lang=js&\"\nexport * from \"./SistemaView.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 { VBanner } from 'vuetify/lib/components/VBanner';\ninstallComponents(component, {VBanner})\n"],"sourceRoot":""}