\r\n \r\n \r\n Abierta\r\n \r\n \r\n Cerrada\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!./ExtraSubtitle.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!./ExtraSubtitle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ExtraSubtitle.vue?vue&type=template&id=3656cf06&\"\nimport script from \"./ExtraSubtitle.vue?vue&type=script&lang=js&\"\nexport * from \"./ExtraSubtitle.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","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","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,\"more-info-in-dialog\":true},on:{\"update:showing\":function($event){return _vm.$set(_vm.showingDialogs, \"moreInfo\", $event)}}},[_c('template',{slot:\"extraSubtitle\"},[_c('extra-subtitle',{attrs:{\"abierta\":_vm.formattedItem.abierta}})],1)],2),_c('b10-view-details',{attrs:{\"details\":_vm.details},on:{\"click-detail\":_vm.clickDetail}}),(_vm.hasEditPerm(_vm.$route.meta.permission.idobjeto))?_c('b10-fab-button',{attrs:{\"icon\":_vm.$vuetify.icons.values.edit},on:{\"click\":_vm.clickEdit}}):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { APIFilter } from '@/utils/api'\r\nimport { CITA, TABLA } from '@/utils/consts'\r\n\r\nexport default {\r\n async selectDetails (Vue, idoperacioncrm, esTecnico, esComercial, esVigilante, usuarioIdempleado) {\r\n let apiCalls = []\r\n const apiFilterCita = new APIFilter()\r\n .addExact('identificador', idoperacioncrm)\r\n .addExact('tipo', CITA.tipo.crm)\r\n .addExact('idempleado', usuarioIdempleado)\r\n apiCalls.push({ name: 'selectCitaCount', method: 'cita.select', params: { filter: apiFilterCita, wrapper: 'count' } })\r\n apiCalls.push(Vue.$online.fichero.ApiCallSelectCount(idoperacioncrm, TABLA.operacioncrm.idtabla, esTecnico, esComercial, esVigilante))\r\n const apiFilterGeneral = new APIFilter()\r\n .addExact('idoperacioncrm', idoperacioncrm)\r\n .addGT('estado', 0)\r\n apiCalls.push({ name: 'selectContactosCount', method: 'contactoCliente.select', params: { filter: apiFilterGeneral, wrapper: 'count' } })\r\n apiCalls.push({ name: 'selectLoperacioncrm', method: 'loperacioncrm.select', params: { filter: apiFilterGeneral } })\r\n // Datos\r\n apiCalls.push(await Vue.$online.dato.batchCallSelect(idoperacioncrm, TABLA.operacioncrm.idtabla))\r\n return await Vue.$api.batchCall(apiCalls)\r\n },\r\n async selectOperacionCRM (Vue, idoperacioncrm) {\r\n const apiFilter = new APIFilter()\r\n .addGT('estado', 0)\r\n apiFilter.addExact('idoperacioncrm', idoperacioncrm)\r\n const resp = await Vue.$api.call('operacioncrm.select', { filter: apiFilter })\r\n return [resp.data.result.dataset[0], resp.data.result.metadata]\r\n },\r\n async selectGeolocalizacionOperacionCRM (Vue, idoperacioncrm) {\r\n const resp = await Vue.$api.call('operacioncrm.geolocalizacion', { idoperacioncrm: idoperacioncrm })\r\n return resp.data.result\r\n },\r\n}\r\n","