\r\n \r\n \r\n \r\n Ir a ...\r\n \r\n \r\n \r\n {{ $vuetify.icons.values.parte }}\r\n \r\n Parte de trabajo\r\n \r\n \r\n \r\n {{ $vuetify.icons.values.checklist }}\r\n \r\n Checklist\r\n \r\n \r\n \r\n {{ $vuetify.icons.values.preguntaChecklist }}\r\n \r\n Preguntas\r\n \r\n \r\n \r\n {{ $vuetify.icons.values.materialAfectado }}\r\n \r\n Material\r\n \r\n \r\n \r\n {{ $vuetify.icons.values.subsistema }}\r\n \r\n Lista de materiales\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!./VolverParteChecklistMenuItems.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!./VolverParteChecklistMenuItems.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VolverParteChecklistMenuItems.vue?vue&type=template&id=7bb34c9e&\"\nimport script from \"./VolverParteChecklistMenuItems.vue?vue&type=script&lang=js&\"\nexport * from \"./VolverParteChecklistMenuItems.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 { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAvatar } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VSubheader } from 'vuetify/lib/components/VSubheader';\ninstallComponents(component, {VDivider,VIcon,VListItem,VListItemAvatar,VListItemTitle,VSubheader})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b10-base',[_c('b10-list',{attrs:{\"title\":_vm.title,\"page-store-name\":_vm.pageStoreName,\"items\":_vm.items,\"filter\":_vm.filter,\"search\":_vm.search,\"sorter\":_vm.sorter,\"sorter-desc\":_vm.sorterDesc,\"show-load-more\":_vm.showLoadMore,\"scroll-position\":_vm.scrollPosition,\"empty-message\":\"No se encontraron anomalías\",\"wrapper-component\":\"v-list\",\"wrapper-component-props\":{ 'three-line': true },\"loading\":_vm.loadingData,\"showing-filter\":_vm.showingDialogs.filter,\"showing-sorter\":_vm.showingDialogs.sorter,\"load\":_vm.loadItems,\"reload-dirty-items\":_vm.reloadDirtyItems,\"page-loaded\":_vm.pageLoaded,\"pk-name\":\"tanomalia_checklist_ot.idtanomalia_checklist_ot\"},on:{\"update:showingFilter\":function($event){return _vm.$set(_vm.showingDialogs, \"filter\", $event)},\"update:showing-filter\":function($event){return _vm.$set(_vm.showingDialogs, \"filter\", $event)},\"update:showingSorter\":function($event){return _vm.$set(_vm.showingDialogs, \"sorter\", $event)},\"update:showing-sorter\":function($event){return _vm.$set(_vm.showingDialogs, \"sorter\", $event)},\"click-item\":_vm.clickListItem},scopedSlots:_vm._u([{key:\"listItem\",fn:function(slotProps){return [_c('anomalia-list-item',{attrs:{\"item\":slotProps.item,\"index\":slotProps.index,\"readonly\":!_vm.estadoChecklistPendiente},on:{\"click-delete\":_vm.clickDelete}})]}}])},[_c('volver-parte-checklist-menu-items',{attrs:{\"slot\":\"menuItemsLongPress\",\"idparte-trabajo\":_vm.routeParams.idparte_trabajo,\"idchecklist-ot\":_vm.routeParams.idchecklist_ot,\"idorden-trabajo-matsist\":_vm.idsParaVolerAtras.idorden_trabajo_matsist,\"idparte-trabajo-matsist\":_vm.idsParaVolerAtras.idparte_trabajo_matsist,\"idgrupo-checklist-ot\":_vm.idsParaVolerAtras.idgrupoChecklistOt,\"idsubsis\":_vm.idsParaVolerAtras.idsubsis},slot:\"menuItemsLongPress\"})],1),(_vm.estadoChecklistPendiente && _vm.routeQuery.idgrupo_checklist_ot && _vm.routeQuery.idpregunta_checklist_ot)?_c('b10-fab-button',{on:{\"click\":_vm.clickAdd}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { likeRegExp } from '@/offline/database'\r\n\r\nexport default {\r\n async _addSubqueriesAnomalia (Vue, rows) {\r\n for (let row of rows) {\r\n if (row.material_sistema?.idmaterial_sistema) {\r\n row.fichaTecnica = Vue.$offline.materialSistema.resumenFichaTecnica(row)\r\n }\r\n }\r\n return rows\r\n },\r\n _selectTanomaliaChecklistOtBase (Vue) {\r\n const tables = Vue.$offline.db.tables\r\n return Vue.$offline.db\r\n .select()\r\n .from(tables.tanomalia_checklist_ot)\r\n .innerJoin(\r\n tables.pregunta_checklist_ot,\r\n tables.tanomalia_checklist_ot.idpregunta_checklist_ot.eq(tables.pregunta_checklist_ot.idpregunta_checklist_ot)\r\n )\r\n .innerJoin(\r\n tables.grupo_checklist_ot,\r\n tables.pregunta_checklist_ot.idgrupo_checklist_ot.eq(tables.grupo_checklist_ot.idgrupo_checklist_ot)\r\n )\r\n .innerJoin(\r\n tables.grado_anomalia,\r\n tables.tanomalia_checklist_ot.idgrado_anomalia.eq(tables.grado_anomalia.idgrado_anomalia)\r\n )\r\n .leftOuterJoin(\r\n tables.orden_trabajo_matsist,\r\n tables.pregunta_checklist_ot.idorden_trabajo_matsist.eq(tables.orden_trabajo_matsist.idorden_trabajo_matsist)\r\n )\r\n .leftOuterJoin(\r\n tables.material_sistema,\r\n tables.orden_trabajo_matsist.idmaterial_sistema.eq(tables.material_sistema.idmaterial_sistema)\r\n )\r\n .leftOuterJoin(\r\n tables.subsis,\r\n tables.material_sistema.idsubsis.eq(tables.subsis.idsubsis)\r\n )\r\n .leftOuterJoin(\r\n tables.tsubsis,\r\n tables.subsis.idtsubsis.eq(tables.tsubsis.idtsubsis)\r\n )\r\n },\r\n async selectTanomaliaChecklistOt (\r\n Vue, filter, search, sorter, page, idchecklistOt, idgrupoChecklistOt, idpreguntaChecklistOt, idordenTrabajoMatsist\r\n ) {\r\n const tables = Vue.$offline.db.tables\r\n let where = []\r\n let whereSearch = []\r\n let whereFilter = []\r\n if (search) {\r\n const reQ = likeRegExp(search)\r\n whereSearch.push(\r\n Vue.$offline.db.op.or(\r\n tables.tanomalia_checklist_ot.descripcion.match(reQ),\r\n )\r\n )\r\n }\r\n let whereQueryFilter = []\r\n if (idgrupoChecklistOt) {\r\n whereQueryFilter.push(tables.grupo_checklist_ot.idgrupo_checklist_ot.eq(idgrupoChecklistOt))\r\n }\r\n if (idpreguntaChecklistOt) {\r\n whereQueryFilter.push(tables.pregunta_checklist_ot.idpregunta_checklist_ot.eq(idpreguntaChecklistOt))\r\n }\r\n if (idordenTrabajoMatsist) {\r\n whereQueryFilter.push(tables.pregunta_checklist_ot.idorden_trabajo_matsist.eq(idordenTrabajoMatsist))\r\n }\r\n where.push(\r\n Vue.$offline.db.op.and(\r\n tables.grupo_checklist_ot.idchecklist_ot.eq(idchecklistOt),\r\n tables.tanomalia_checklist_ot.estado.gt(0),\r\n ...whereQueryFilter,\r\n ...whereSearch,\r\n ...whereFilter\r\n )\r\n )\r\n const rows =\r\n await this._selectTanomaliaChecklistOtBase(Vue)\r\n .where(...where)\r\n .limit(Vue.$offline.db.ITEMS_PER_PAGE)\r\n .skip(page * Vue.$offline.db.ITEMS_PER_PAGE)\r\n .orderBy(tables.grado_anomalia.orden)\r\n .orderBy(tables.tanomalia_checklist_ot.idtanomalia_checklist_ot)\r\n .exec()\r\n return [(await this._addSubqueriesAnomalia(Vue, rows))]\r\n },\r\n async selectTanomaliaChecklistOtRows (Vue, pks) {\r\n const tables = Vue.$offline.db.tables\r\n const rows = await this._selectTanomaliaChecklistOtBase(Vue)\r\n .where(tables.tanomalia_checklist_ot.idtanomalia_checklist_ot.in(pks))\r\n .exec()\r\n return (await this._addSubqueriesAnomalia(Vue, rows))\r\n },\r\n}\r\n","