{"version":3,"sources":["webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./src/components/Pages/GroupsSearchPage.vue?0ccb","webpack:///./src/components/Pages/GroupsSearchPage.vue?33c0","webpack:///./src/components/Pages/GroupsSearchPage.vue?3257","webpack:///./src/components/GroupsDetails.vue","webpack:///./src/components/Pages/GroupsSearchPage.vue?dda9","webpack:///./src/components/Pages/GroupsSearchPage.vue?5620","webpack:///./src/components/Pages/GroupsSearchPage.vue?61c5","webpack:///./src/components/GroupsDetails.vue?3040","webpack:///./src/components/GroupsDetails.vue?4492","webpack:///./src/components/GroupsDetails.vue?b368","webpack:///./src/components/GroupsDetails.vue?eb24"],"names":["_nonIterableSpread","TypeError","module","exports","__esModule","_iterableToArray","r","Symbol","iterator","Array","from","arrayLikeToArray","require","_arrayWithoutHoles","isArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","_toConsumableArray","component","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_m","placeholder","on","searchFilterSearchEvent","canManageLubTable","$event","openAddModal","_v","_e","vehiclesTypesList","firstSearch","GroupTitle","groupSelected","idGroup","_s","resultsItems","total","loading","_l","item","index","key","preventDefault","stopPropagation","handleClick","openGroup","groupCode","description","showLoading","resultPage","length","searchGroup","searchFilter","staticStyle","ref","leftClickOptionMenuUrl","leftClickOptionMenuUrlArgument","staticRenderFns","vue_property_decorator_1","axios_1","tslib_1","__importDefault","General_1","GroupsDetails_vue_1","SearchFilter_vue_1","Group_1","HelpContent_vue_1","LeftClickOptionMenu_vue_1","GroupsSearchPage","_vue_property_decorat","_this","_classCallCheck","Group","freeText","page","newGroup","modal_helpGroupSearch","_inherits","_createClass","value","event","$refs","leftClickOptions","$route","params","id","$router","push","$bvModal","show","get","concat","filter","start","arguments","undefined","resetSearch","_context","prev","next","default","method","url","General","GetApiUrl","data","FreeText","GroupCode","Description","CurrentPage","withCredentials","responseType","results","sent","listPage","t0","HandleError","finish","stop","_callee","group","setRouterId","setGroupSelected","showGroupModalDetail","hide","getVehicleTypes","_context2","code","_callee2","genericSearch","splice","vehiclesTypes","_context3","_callee3","CanManageLubTable","Vue","__decorate","Component","components","GroupsDetails","SearchFilter","HelpContent","LeftClickOptionMenu","itemSelected","isSaveClicked","showAlertDanger","setItemList","addMode","addGroupDo","updateGroupDo","confirm","__awaiter","_this2","_regeneratorRuntime","mark","wrap","updateGroup","closeDetailModal","$emit","_this3","_callee4","_context4","addGroup","closeAddModal","_context5","_callee5","_context6","vehicleTypes","showAlertSuccess","_callee6","_this4","_callee7","_context7","deleteGroup","_context8","_callee8","condiction","clickButton","idGroupToDelete","_context9","delete","_callee9","_context10","_callee10","stringa","forEach","el","indexOf","type","_context11","getGroup","setItemSelected","_callee11","_context12","_callee12","Prop","String","required","Boolean","returnState","model","callback","$$v","$set","expression","getTypes","class","deleteGroupDo","addOrUpdate"],"mappings":"qGAAA,SAASA,IACP,MAAM,IAAIC,UAAU,wI,UAEtBC,EAAOC,QAAUH,EAAoBE,EAAOC,QAAQC,YAAa,EAAMF,EAAOC,QAAQ,WAAaD,EAAOC,S,uBCH1G,SAASE,EAAiBC,GACxB,GAAI,oBAAsBC,QAAU,MAAQD,EAAEC,OAAOC,WAAa,MAAQF,EAAE,cAAe,OAAOG,MAAMC,KAAKJ,G,sEAE/GJ,EAAOC,QAAUE,EAAkBH,EAAOC,QAAQC,YAAa,EAAMF,EAAOC,QAAQ,WAAaD,EAAOC,S,qBCHxG,IAAIQ,EAAmBC,EAAQ,QAC/B,SAASC,EAAmBP,GAC1B,GAAIG,MAAMK,QAAQR,GAAI,OAAOK,EAAiBL,GAEhDJ,EAAOC,QAAUU,EAAoBX,EAAOC,QAAQC,YAAa,EAAMF,EAAOC,QAAQ,WAAaD,EAAOC,S,uBCJ1G,IAAIY,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KAAK,CAACJ,EAAIe,GAAG,UAAUX,EAAG,UAAUA,EAAG,QAAQJ,EAAI0B,GAAI1B,EAAY,UAAE,SAAS2B,EAAKC,GAAO,OAAOxB,EAAG,KAAK,CAACyB,IAAID,GAAO,CAACxB,EAAG,KAAK,CAACJ,EAAIe,GAAGf,EAAIsB,GAAGK,EAAKqJ,SAAS5K,EAAG,KAAK,CAACA,EAAG,kBAAkB,CAACyB,IAAID,EAAMrB,MAAM,CAAC,MAAQoB,EAAK,UAAY3B,EAAIY,qBAAqBgL,MAAM,CAACzH,MAAOnE,EAAgB,aAAE6L,SAAS,SAAUC,GAAM9L,EAAImI,aAAa2D,GAAKE,WAAW,mBAAmB,QAAO,UAAU,GAAIhM,EAAIY,oBAAqBR,EAAG,SAAS,CAACE,YAAY,+BAA+B4L,MAAM,CAAC,2BAA2BlM,EAAIuI,UAAU,EAAGvI,EAAIuI,SAASvI,EAAIY,oBAAqBR,EAAG,WAAW,CAACG,MAAM,CAAC,QAAU,UAAUG,GAAG,CAAC,MAAQ,SAASG,GAAQ,OAAOb,EAAImM,cAAcnM,EAAI4G,UAAU,CAAC5G,EAAIe,GAAG,YAAYf,EAAIgB,KAAMhB,EAAIY,oBAAqBR,EAAG,WAAW,CAACG,MAAM,CAAC,QAAU,WAAWG,GAAG,CAAC,MAAQ,SAASG,GAAQ,OAAOb,EAAIoM,YAAYpM,EAAI4G,UAAU,CAAC5G,EAAIe,GAAG,kBAAkBf,EAAIgB,MAAM,GAAGhB,EAAIgB,MAAM,IAAI,IACl8E6B,EAAkB,GCDtB","file":"js/chunk-04bf96e4.1df3467b.js","sourcesContent":["function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsSearchPage.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsSearchPage.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./GroupsSearchPage.vue?vue&type=template&id=2b525d22&scoped=true\"\nimport script from \"./GroupsSearchPage.vue?vue&type=script&lang=ts\"\nexport * from \"./GroupsSearchPage.vue?vue&type=script&lang=ts\"\nimport style0 from \"./GroupsSearchPage.vue?vue&type=style&index=0&id=2b525d22&prod&scoped=true&lang=css\"\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 \"2b525d22\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsSearchPage.vue?vue&type=style&index=0&id=2b525d22&prod&scoped=true&lang=css\"","import { render, staticRenderFns } from \"./GroupsDetails.vue?vue&type=template&id=3ca4c014\"\nimport script from \"./GroupsDetails.vue?vue&type=script&lang=ts\"\nexport * from \"./GroupsDetails.vue?vue&type=script&lang=ts\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"page pt-4\"},[_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"\\r\\n alert alert-light\\r\\n shadow-sm\\r\\n p-3\\r\\n mb-3\\r\\n bg-white\\r\\n rounded\\r\\n border\\r\\n d-flex\\r\\n align-items-start\\r\\n \",attrs:{\"role\":\"alert\"}},[_vm._m(0),_c('div',{staticClass:\"container-fluid mt-3\"},[_c('search-filter',{attrs:{\"placeholder\":_vm.placeholder,\"isFilterActive\":false},on:{\"filter-search\":_vm.searchFilterSearchEvent}})],1)])])]),_c('div',{staticClass:\"heading-container\"},[(_vm.canManageLubTable())?_c('b-button',{staticClass:\"mb-4\",attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.openAddModal()}}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\" Create Group\")]):_vm._e(),_c('b-modal',{attrs:{\"id\":\"group-add-modal\",\"title\":\"Add Group\",\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('GroupsDetails',{attrs:{\"addMode\":true,\"itemList\":_vm.vehiclesTypesList,\"firstSearch\":_vm.firstSearch},on:{\"groups-Search\":_vm.searchFilterSearchEvent}})],1),_c('b-modal',{attrs:{\"id\":\"group-detail-modal\",\"title\":_vm.GroupTitle,\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('GroupsDetails',{attrs:{\"idGroup\":_vm.groupSelected.idGroup,\"itemList\":_vm.vehiclesTypesList,\"addMode\":false,\"firstSearch\":_vm.firstSearch},on:{\"groups-Search\":_vm.searchFilterSearchEvent}})],1),(_vm.firstSearch)?_c('div',[_c('button',{staticClass:\"btn btn-secondary font-weight-normal\",attrs:{\"type\":\"button\"}},[_vm._v(\" Elements Found \"),_c('span',{staticClass:\"badge badge-light\"},[_vm._v(_vm._s(_vm.resultsItems.total))]),_c('span',{staticClass:\"sr-only\"},[_vm._v(\"unread messages\")])])]):_vm._e(),(_vm.resultsItems.total > 0)?_c('div',{staticClass:\"results\"},[_c('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[_c('table',{staticClass:\"table b-table table-striped table-hover\"},[_c('thead',{staticClass:\"table-dark\"},[_c('tr',[_c('th'),_c('th',[_vm._v(\"GroupCode\")]),_c('th',[_vm._v(\"Description\")])])]),_c('tbody',_vm._l((_vm.resultsItems.resultPage),function(item,index){return _c('tr',{key:index},[_c('td',[_c('div',{staticClass:\"fa fa-search clickable icon-standard\",on:{\"contextmenu\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.handleClick($event, item)},\"click\":function($event){return _vm.openGroup(item)}}})]),_c('td',[_vm._v(_vm._s(item.groupCode))]),_c('td',[_vm._v(_vm._s(item.description))])])}),0)])]),(_vm.showLoading == false)?_c('div',{staticClass:\"text-center\"},[(_vm.resultsItems.resultPage.length < _vm.resultsItems.total)?_c('b-button',{staticClass:\"btn btn-secondary rounded-pill\",attrs:{\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.searchGroup(_vm.searchFilter, false)}}},[_vm._v(\" Load more elements (there are \"+_vm._s(_vm.resultsItems.total - _vm.resultsItems.resultPage.length)+\" elements) \")]):_vm._e()],1):_vm._e()],1):_vm._e()],1),(_vm.showLoading == true)?_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}})],1):_vm._e()])]),_c('left-click-option-menu',{ref:\"leftClickOptions\",attrs:{\"url\":_vm.leftClickOptionMenuUrl,\"urlArgument\":_vm.leftClickOptionMenuUrlArgument}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"alert-icon showonly-desktop mt-2\"},[_c('i',{staticClass:\"fa fa-3x fa-search text-primary\",attrs:{\"aria-hidden\":\"true\"}})])}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsSearchPage.vue?vue&type=template&id=2b525d22&scoped=true\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { General } from \"@/services/General\";\r\nimport GroupsDetails from \"@/components/GroupsDetails.vue\";\r\nimport SearchFilter from \"@/components/Utilities/SearchFilter.vue\";\r\nimport { Group } from \"@/services/Group\";\r\nimport { VehicleType } from \"@/services/VehicleType\";\r\nimport HelpContent from \"../HelpContent.vue\";\r\nimport LeftClickOptionMenu from \"@/components/Utilities/LeftClickOptionMenu.vue\";\r\n\r\n@Component({\r\n components: {\r\n GroupsDetails,\r\n SearchFilter,\r\n HelpContent,\r\n LeftClickOptionMenu\r\n },\r\n})\r\nexport default class GroupsSearchPage extends Vue {\r\n firstSearch: boolean = false;\r\n showLoading: boolean = false;\r\n groupSelected: Group = new Group(\"\", null, \"\", null);\r\n loading: boolean = false;\r\n searchFilter: any = {\r\n freeText: null,\r\n groupCode: null,\r\n description: null,\r\n };\r\n vehiclesTypesList: VehicleType[] = [];\r\n placeholder: string = \"Search by code or description\";\r\n page: number = 1;\r\n resultsItems: any = {\r\n resultPage: new Array(),\r\n total: 0,\r\n };\r\n newGroup: Group = new Group(null, null, null, null);\r\n modal_helpGroupSearch: string = \"modal-helpGroupSearch\"\r\n\r\n //pacchetto per menu tasto destro su dettaglio entita'\r\n leftClickOptionMenuUrl: string = \"/groups/\";\r\n leftClickOptionMenuUrlArgument: string = \"groupCode\";\r\n handleClick (event, item) {\r\n (this.$refs.leftClickOptions as LeftClickOptionMenu).handleClick(event, item);\r\n }\r\n\r\n openAddModal() {\r\n if(this.$route.params.id)\r\n this.$router.push(\"/groups\");\r\n this.$bvModal.show(\"group-add-modal\");\r\n }\r\n\r\n get GroupTitle(): string {\r\n return `Group code: ${this.groupSelected.groupCode}`;\r\n }\r\n\r\n async searchGroup(filter: any, start: boolean = true) {\r\n this.showLoading = true;\r\n if (start == true) this.resetSearch();\r\n\r\n try {\r\n let results: any = await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/GetGroupsWithFilter\"),\r\n data: {\r\n FreeText: filter.freeText,\r\n GroupCode: filter.groupCode,\r\n Description: filter.description,\r\n CurrentPage: this.page,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n this.resultsItems.resultPage = this.resultsItems.resultPage.concat(\r\n results.data.listPage\r\n );\r\n this.resultsItems.total = results.data.total;\r\n this.firstSearch = true;\r\n\r\n if (this.resultsItems.resultPage.length >= this.resultsItems.total)\r\n this.page = 1;\r\n else this.page += 1;\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n } finally {\r\n this.showLoading = false;\r\n }\r\n }\r\n\r\n openGroup(group: Group, setRouterId: boolean = true) {\r\n this.setGroupSelected(group);\r\n if (setRouterId)\r\n this.$router.push(\"/groups/\" + this.groupSelected.groupCode);\r\n this.showGroupModalDetail();\r\n }\r\n\r\n showGroupModalDetail() {\r\n this.$bvModal.show(\"group-detail-modal\");\r\n }\r\n\r\n setGroupSelected(group: Group) {\r\n this.groupSelected.idGroup = group.idGroup;\r\n this.groupSelected.groupCode = group.groupCode;\r\n this.groupSelected.description = group.description;\r\n }\r\n\r\n closeGroup() {\r\n this.$bvModal.hide(\"group-detail-modal\");\r\n }\r\n async mounted() {\r\n await this.getVehicleTypes();\r\n\r\n if (this.$route.params.id) {\r\n let code = this.$route.params.id;\r\n let results: any = await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/GetGroupsWithFilter\"),\r\n data: {\r\n GroupCode: code,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n this.openGroup(results.data.listPage[0], false);\r\n }\r\n }\r\n searchFilterSearchEvent(genericSearch: string) {\r\n if (genericSearch != undefined) this.searchFilter.freeText = genericSearch;\r\n this.searchGroup(this.searchFilter, true);\r\n }\r\n\r\n resetSearch() {\r\n this.firstSearch = false;\r\n this.resultsItems.resultPage.splice(0);\r\n this.page = 1;\r\n }\r\n\r\n async getVehicleTypes() {\r\n try {\r\n let vehiclesTypes = await axios.get(\r\n General.GetApiUrl(\"/api/lubricationTable/GetVehicleTypes\"),\r\n {\r\n withCredentials: true,\r\n responseType: \"json\",\r\n }\r\n );\r\n this.vehiclesTypesList = vehiclesTypes.data;\r\n } catch (ex) {\r\n General.HandleError(ex, this);\r\n }\r\n }\r\n\r\n canManageLubTable() {\r\n return General.CanManageLubTable();\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/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsDetails.vue?vue&type=script&lang=ts\"; 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/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsDetails.vue?vue&type=script&lang=ts\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { General } from \"@/services/General\";\r\nimport { Group } from \"@/services/Group\";\r\nimport { VehicleType } from \"@/services/VehicleType\";\r\n\r\n@Component\r\nexport default class GroupsDetails extends Vue {\r\n @Prop({ type: String, required: false })\r\n idGroup;\r\n @Prop({ type: Array, required: true })\r\n itemList: [];\r\n @Prop({ type: Boolean, required: true })\r\n addMode;\r\n @Prop({ type: Boolean, required: true })\r\n firstSearch;\r\n loading: boolean = false;\r\n group: Group = new Group(\"\", null, \"\", null);\r\n itemSelected: VehicleType[] = [];\r\n isSaveClicked: boolean = false;\r\n\r\n async addOrUpdate(group: Group) {\r\n this.isSaveClicked = true;\r\n if (group.description.length === 0)\r\n General.showAlertDanger(\"Please Enter a description\", this);\r\n else {\r\n this.setItemList(group, this.itemSelected);\r\n\r\n if (this.addMode) \r\n await this.addGroupDo(group);\r\n else \r\n this.updateGroupDo(group);\r\n\r\n this.isSaveClicked = false;\r\n }\r\n }\r\n\r\n async updateGroupDo(group:Group){\r\n\r\n General.confirm(\r\n \"Do you want update group with code:\" + group.groupCode + \"?\",\r\n this,\r\n async () => {\r\n await this.updateGroup(group);\r\n this.closeDetailModal();\r\n if (this.firstSearch) this.$emit(\"groups-Search\");\r\n }\r\n );\r\n }\r\n\r\n async addGroupDo(group:Group){\r\n General.confirm(\r\n \"Do you want add this group?\",\r\n this,\r\n async () => { \r\n await this.addGroup(group);\r\n this.closeAddModal();\r\n if (this.firstSearch) this.$emit(\"groups-Search\");\r\n }\r\n );\r\n }\r\n\r\n async addGroup(group: Group) {\r\n try {\r\n this.loading = true;\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/AddGroup\"),\r\n data: {\r\n description: group.description,\r\n vehicleTypes: group.vehicleTypes,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n General.showAlertSuccess(\"Group successfully added\", this);\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n } finally{\r\n this.loading = false;\r\n }\r\n }\r\n\r\n async deleteGroupDo(group: Group) {\r\n General.confirm(\r\n \"Do you want delete the group:\" + group.description + \"?\",\r\n this,\r\n async () => {\r\n await this.deleteGroup(group.idGroup);\r\n this.closeDetailModal();\r\n this.$router.push(\"/groups\");\r\n this.$emit(\"groups-Search\");\r\n }\r\n );\r\n }\r\n\r\n returnState(condiction:boolean,clickButton:boolean) : boolean{\r\n if(clickButton)\r\n return condiction \r\n else return null;\r\n }\r\n\r\n async deleteGroup(idGroupToDelete: string) {\r\n this.loading = true;\r\n try {\r\n await axios.delete(\r\n General.GetApiUrl(\r\n \"/api/lubricationTable/DeleteGroup?idGroup=\" + idGroupToDelete\r\n ),\r\n { withCredentials: true }\r\n );\r\n General.showAlertSuccess(\"Group successfully removed\", this);\r\n } catch (ex) {\r\n General.HandleError(ex, this);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n async updateGroup(group: Group) {\r\n try {\r\n this.loading = true;\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/UpdateGroup\"),\r\n data: {\r\n idGroup: group.idGroup,\r\n description: group.description,\r\n groupCode: group.groupCode,\r\n vehicleTypes: group.vehicleTypes,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n } finally{\r\n this.loading = false;\r\n }\r\n }\r\n\r\n getTypes(vehicleTypes: Array): string {\r\n let stringa = \"\";\r\n vehicleTypes.forEach(function (el) {\r\n if (vehicleTypes.indexOf(el) != vehicleTypes.length - 1)\r\n stringa += el.type + \",\";\r\n else stringa += el.type;\r\n });\r\n return stringa;\r\n }\r\n\r\n async mounted() {\r\n if (!this.addMode) {\r\n this.loading = true;\r\n await this.getGroup(this.idGroup);\r\n this.setItemSelected(this.group.vehicleTypes);\r\n }\r\n }\r\n\r\n setItemList(group: Group, vehicleTypes: VehicleType[]) {\r\n group.vehicleTypes = [...vehicleTypes];\r\n }\r\n\r\n setItemSelected(vehicleTypes: VehicleType[]) {\r\n this.itemSelected = [...vehicleTypes];\r\n }\r\n async getGroup(idGroup: string) {\r\n try {\r\n let group = await axios.get(\r\n General.GetApiUrl(\"/api/lubricationTable/GetGroup?idGroup=\" + idGroup),\r\n {\r\n withCredentials: true,\r\n responseType: \"json\",\r\n }\r\n );\r\n this.group = group.data;\r\n } catch (ex) {\r\n General.HandleError(ex, this);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n closeDetailModal() {\r\n this.$bvModal.hide(\"group-detail-modal\");\r\n }\r\n closeAddModal() {\r\n this.$bvModal.hide(\"group-add-modal\");\r\n }\r\n\r\n canManageLubTable() {\r\n return General.CanManageLubTable();\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',[_c('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[_c('b-tabs',[_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":\"Base info\"}},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Code\")]),_c('div',{staticClass:\"col-sm-10\"},[(!_vm.addMode)?[_c('b-input',{attrs:{\"value\":_vm.group.groupCode,\"readonly\":true}})]:[_c('b-input',{attrs:{\"readonly\":true}})]],2)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Description\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-form-textarea',{attrs:{\"id\":\"groupDescription|empty\",\"rows\":\"3\",\"readonly\":!_vm.canManageLubTable(),\"state\":_vm.returnState(_vm.group.description.length != 0,_vm.isSaveClicked)},model:{value:(_vm.group.description),callback:function ($$v) {_vm.$set(_vm.group, \"description\", $$v)},expression:\"group.description\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Vehicle Types\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-input',{attrs:{\"value\":_vm.getTypes(_vm.itemSelected),\"readonly\":true}})],1)])]),_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":\"Vehicles Types\"}},[_c('div',{staticClass:\"d-flex justify-content-center\"},[_c('table',{staticClass:\"table b-table table-striped table-hover col-md-6\"},[_c('thead',{staticClass:\"table-light\"},[_c('tr',[_c('th',[_vm._v(\"Type\")]),_c('th')])]),_c('tbody',_vm._l((_vm.itemList),function(item,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(item.type))]),_c('td',[_c('b-form-checkbox',{key:index,attrs:{\"value\":item,\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.itemSelected),callback:function ($$v) {_vm.itemSelected=$$v},expression:\"itemSelected\"}})],1)])}),0)])])])],1),(_vm.canManageLubTable())?_c('footer',{staticClass:\"modal-footer d-flex flex-row\",class:{'justify-content-between':!_vm.addMode}},[(!_vm.addMode&&_vm.canManageLubTable())?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteGroupDo(_vm.group)}}},[_vm._v(\"Delete\")]):_vm._e(),(_vm.canManageLubTable())?_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.addOrUpdate(_vm.group)}}},[_vm._v(\"Save changes\")]):_vm._e()],1):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupsDetails.vue?vue&type=template&id=3ca4c014\""],"sourceRoot":""}