{"version":3,"sources":["webpack:///./src/components/VehiclesDetails.vue?0a49","webpack:///./src/components/VehiclesDetails.vue","webpack:///./src/components/Pages/VehiclesSearchPage.vue?4b25","webpack:///./src/components/Pages/VehiclesSearchPage.vue?104a","webpack:///./src/components/Pages/VehiclesSearchPage.vue?4b81","webpack:///./src/components/VehiclesDetails.vue?a4ed","webpack:///./src/components/VehiclesDetails.vue?271b","webpack:///./src/services/Vehicle.ts","webpack:///./src/components/VehiclesDetails.vue?2250","webpack:///./src/components/Pages/VehiclesSearchPage.vue?9eb4","webpack:///./src/components/Pages/VehiclesSearchPage.vue?cdd8","webpack:///./src/components/Pages/VehiclesSearchPage.vue?3ec6","webpack:///./src/services/DropDownItem.ts","webpack:///./src/services/LubricationTable.ts"],"names":["vue_property_decorator_1","require","axios_1","tslib_1","__importDefault","General_1","DropDownItem_1","Vehicle_1","LubricationTable_1","Group_1","ProductDetail_vue_1","VehiclesDetails","_vue_property_decorat","_this","_classCallCheck","loading","optionsDropDown","optionBuilders","Array","optionBrands","optionGearboxTypes","optionTractions","optionProductions","vehicle","Vehicle","vehicleTypeList","productSelected","idProduct","code","isSaveClicked","newDropDownItem","DropDownItem","isBuilderAdd","isSaveDropDownClicked","_inherits","_createClass","key","value","this","$bvModal","show","itemText","_context","next","idDropDownFather","builder","idDropDownItem","codDropDownSource","addDropDownItem","getDropDownItemChild","idVehicleType","getVehicleTypeChild","hide","General","showAlertDanger","stop","_callee","dropDownItem","_context2","prev","default","method","url","GetApiUrl","data","ItemText","CodDropDownSource","IdDropDownFather","withCredentials","responseType","showAlertSuccess","t0","HandleError","finish","t1","_callee2","condiction","clickButton","lubTable","product","idVehicle","brand","splice","result","description","lubricationTables","_context3","get","response","sent","mapGroupsIntoLubTables","status","$fire","title","text","type","_callee3","array","arguments","length","undefined","forEach","gr","push","LubricationTable","Group","idGroup","groupCode","newArray","lb","idLubricationTable","group","note","qta","item","some","object","_context4","setOptions","_callee4","_context5","getVehicleTypes","addMode","getVehicleById","getMergedLubricationTables","dropDownItems","filter","optionGearBoxTypes","optionFuels","_callee5","_context6","fuel","traction","gearBoxType","_callee6","_context7","_callee7","el","_context8","_callee8","_context9","post","_callee9","production","model","yearOfRegistration","_context10","arrayLubricationTable","removeUnselectedItem","addVehicleDo","updateVehicleDo","_callee10","arrayLubTables","confirm","vehicleCode","__awaiter","_this2","_regeneratorRuntime","mark","_callee11","wrap","_context11","updateVehicle","closeDetailModal","firstSearch","$emit","_context12","_callee12","_this3","_callee13","_context13","addVehicle","closeAddModal","_context14","_callee14","_context15","idBrand","idBuilder","idFuel","idTraction","idGearboxType","idProduction","gearBoxModel","displacement","staging","motorType","abrupt","_callee15","_this4","_callee16","_context16","deleteVehicleById","$router","_context17","_callee17","_context18","delete","_callee18","_context19","_callee19","_context20","setOptionVehiclesTypes","_callee20","vehicleType","concat","CanManageLubTable","Vue","__decorate","Prop","String","required","Boolean","Component","components","ProductDetail","component","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_m","placeholder","filterSelected","on","searchFilterResertEvent","searchFilterSearchEvent","$event","checkFilterParameter","indexOf","_k","keyCode","searchFilter","freeText","preventDefault","callback","$$v","$set","expression","canManageLubTable","openAddModal","_v","_e","idVehicleSelected","dropDownItemsList","VehicleTitle","_s","resultsItems","total","_l","index","stopPropagation","handleClick","openVehicle","showLoading","resultPage","searchVehicle","staticStyle","ref","leftClickOptionMenuUrl","leftClickOptionMenuUrlArgument","staticRenderFns","VehiclesDetails_vue_1","SearchFilter_vue_1","HelpContent_vue_1","LeftClickOptionMenu_vue_1","VehiclesSearchPage","page","event","$refs","leftClickOptions","resetFilterSearch","CheckIsNullOrEmpty","checkFilters","$route","params","id","start","resetSearch","FreeText","Builder","Brand","Model","Fuel","Traction","CurrentPage","results","listPage","setRouterId","showVehicleModalDetail","getDropDownItemsList","VehicleCode","genericSearch","multiSearch","SearchFilter","HelpContent","LeftClickOptionMenu","_f","dateLastInfoUpdate","returnState","getGroupByVehicleType","resetVehicleTypeChild","showAddDropDownModal","addNewDropDownItem","Number","isFinite","openProductDetail","getResultValue","setProductSelectedToTable","class","deleteVehicleDo","addOrUpdate","exports","identifyCode","deletionDate"],"mappings":"2WA0dAA,EAAAC,EAAA,QACAC,EAAAC,EAAAC,gBAAAH,EAAA,SACAI,EAAAJ,EAAA,QACAK,EAAAL,EAAA,QACAM,EAAAN,EAAA,QACAO,EAAAP,EAAA,QACAQ,EAAAR,EAAA,QAEAS,EAAAP,EAAAC,gBAAAH,EAAA,SAOqBU,EAAe,SAAAC,GAApC,SAAAD,IAAA,IAAAE,EA0ByC,OA1BzCC,EAAA,KAAAH,G,sBASEE,EAAAE,SAAmB,EACnBF,EAAAG,gBAAuB,CACrBC,eAAgB,IAAIC,MACpBC,aAAc,IAAID,MAClBE,mBAAoB,IAAIF,MACxBG,gBAAiB,IAAIH,MACrBI,kBAAmB,IAAIJ,OAEzBL,EAAAU,QAAU,IAAIhB,EAAAiB,QACdX,EAAAY,gBAAkB,IAAIP,MACtBL,EAAAa,gBAAuB,CACrBC,UAAW,GACXC,KAAM,IAERf,EAAAgB,eAAyB,EACzBhB,EAAAiB,gBAAkB,IAAIxB,EAAAyB,aACtBlB,EAAAmB,cAAwB,EACxBnB,EAAAoB,uBAAiC,EAAMpB,EA6fxC,OAAAqB,EAAAvB,EAAAC,GAAAuB,EAAAxB,EAAA,EAAAyB,IAAA,uBAAAC,MA5fC,SAAqBL,GACnBM,KAAKR,gBAAkB,IAAIxB,EAAAyB,aAC3BO,KAAKN,aAAeA,EACpBM,KAAKC,SAASC,KAAK,wBAErB,CAAAJ,IAAA,qBAAAC,MACM,W,+HAC+B,GAAnCC,KAAKL,uBAAwB,GACzBK,KAAKR,gBAAgBW,SAAU,CAAFC,EAAAC,KAAA,YAC1BL,KAAKN,aAAc,CAAFU,EAAAC,KAAA,SAIpB,OAHAL,KAAKR,gBAAgBc,iBACnBN,KAAKf,QAAQsB,QAAQC,eACvBR,KAAKR,gBAAgBiB,kBAAoB,QAAQL,EAAAC,KAA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\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\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 { DropDownItem } from \"@/services/DropDownItem\";\r\nimport { Vehicle } from \"@/services/Vehicle\";\r\nimport { LubricationTable } from \"@/services/LubricationTable\";\r\nimport { Group } from \"@/services/Group\";\r\nimport { VehicleType } from \"@/services/VehicleType\";\r\nimport ProductDetail from \"@/components/ProductDetail.vue\";\r\n\r\n@Component({\r\n components: {\r\n ProductDetail,\r\n },\r\n})\r\nexport default class VehiclesDetails extends Vue {\r\n @Prop({ type: String, required: false })\r\n idVehicle;\r\n @Prop({ type: Array, required: true })\r\n dropDownItems: [];\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 optionsDropDown: any = {\r\n optionBuilders: new Array(),\r\n optionBrands: new Array(),\r\n optionGearboxTypes: new Array(),\r\n optionTractions: new Array(),\r\n optionProductions: new Array(),\r\n };\r\n vehicle = new Vehicle();\r\n vehicleTypeList = new Array();\r\n productSelected: any = {\r\n idProduct: \"\",\r\n code: \"\",\r\n };\r\n isSaveClicked: boolean = false;\r\n newDropDownItem = new DropDownItem();\r\n isBuilderAdd: boolean = false;\r\n isSaveDropDownClicked: boolean = false;\r\n showAddDropDownModal(isBuilderAdd: boolean) {\r\n this.newDropDownItem = new DropDownItem();\r\n this.isBuilderAdd = isBuilderAdd;\r\n this.$bvModal.show(\"add-dropDown-modal\");\r\n }\r\n //\r\n async addNewDropDownItem() {\r\n this.isSaveDropDownClicked = false;\r\n if (this.newDropDownItem.itemText) {\r\n if (!this.isBuilderAdd) {\r\n this.newDropDownItem.idDropDownFather =\r\n this.vehicle.builder.idDropDownItem;\r\n this.newDropDownItem.codDropDownSource = \"BRAND\";\r\n await this.addDropDownItem(this.newDropDownItem, null);\r\n if (this.vehicle.builder)\r\n await this.getDropDownItemChild(this.vehicle.builder.idDropDownItem);\r\n } else {\r\n this.newDropDownItem.codDropDownSource = \"BUILDER\";\r\n await this.addDropDownItem(\r\n this.newDropDownItem,\r\n this.vehicle.idVehicleType\r\n );\r\n if (this.vehicle.idVehicleType)\r\n await this.getVehicleTypeChild(this.vehicle.idVehicleType);\r\n }\r\n\r\n this.$bvModal.hide(\"add-dropDown-modal\");\r\n } else {\r\n this.isSaveDropDownClicked = true;\r\n General.showAlertDanger(\"Please enter text for this new field\", this);\r\n }\r\n }\r\n //Se è un Builder non avrò un idFather\r\n //Se è un Brand avrò l'idFather == vehicle.builder.idDropDownItem\r\n async addDropDownItem(dropDownItem: DropDownItem, idVehicleType?: string) {\r\n if (idVehicleType)\r\n try {\r\n this.loading = true;\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\r\n \"/api/dropDownItem/AddDropDownItem?idVehicleType=\" + idVehicleType\r\n ),\r\n data: {\r\n ItemText: dropDownItem.itemText,\r\n CodDropDownSource: dropDownItem.codDropDownSource,\r\n IdDropDownFather: dropDownItem.idDropDownFather,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n General.showAlertSuccess(\"Value 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 else\r\n try {\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/dropDownItem/AddDropDownItem\"),\r\n data: {\r\n ItemText: dropDownItem.itemText,\r\n CodDropDownSource: dropDownItem.codDropDownSource,\r\n IdDropDownFather: dropDownItem.idDropDownFather,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n General.showAlertSuccess(\"DropDownItem 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 returnState(condiction: boolean, clickButton: boolean): boolean {\r\n if (clickButton) return condiction;\r\n else return null;\r\n\r\n }\r\n\r\n setProductSelectedToTable(value, lubTable) {\r\n lubTable.product = value;\r\n lubTable.idVehicle = this.vehicle.idVehicle;\r\n }\r\n\r\n openProductDetail(product) {\r\n this.productSelected.idProduct = product.idProduct;\r\n this.productSelected.code = product.code;\r\n this.$bvModal.show(\"product-detail-modal\");\r\n }\r\n\r\n resetVehicleTypeChild() {\r\n if (this.vehicle.brand.idDropDownItem) {\r\n this.vehicle.brand.idDropDownItem = null;\r\n this.optionsDropDown.optionBrands.splice(0);\r\n }\r\n if (this.vehicle.builder.idDropDownItem) {\r\n this.vehicle.builder.idDropDownItem = null;\r\n this.optionsDropDown.optionBuilders.splice(0);\r\n }\r\n }\r\n\r\n getResultValue(result) {\r\n if (result.description != \"\" && result.description != null)\r\n return result.description;\r\n return \" - \";\r\n }\r\n\r\n async getGroupByVehicleType(idVehicleType: string) {\r\n this.vehicle.lubricationTables.splice(0);\r\n try {\r\n let response = await axios.get<[Group]>(\r\n General.GetApiUrl(\r\n \"/api/LubricationTable/GetGroupsByIdVehicleType?IdVehicleType=\" +\r\n idVehicleType\r\n ),\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (response.data != null)\r\n this.vehicle.lubricationTables = this.mapGroupsIntoLubTables(\r\n response.data\r\n );\r\n } catch (error) {\r\n if (error.response.status == 404) {\r\n this.$fire({\r\n title: \"Error\",\r\n text: \"No groups associated to vehicleType selected\",\r\n type: \"error\",\r\n });\r\n }\r\n }\r\n }\r\n mapGroupsIntoLubTables(array: Array = []): LubricationTable[] {\r\n let app = this;\r\n let result = new Array();\r\n array.forEach(function (gr) {\r\n result.push(\r\n new LubricationTable(\r\n null,\r\n new Group(gr.idGroup, gr.groupCode, gr.description, null)\r\n )\r\n );\r\n });\r\n return result;\r\n }\r\n\r\n removeUnselectedItem(lubricationTables: LubricationTable[]) {\r\n let newArray = new Array();\r\n lubricationTables.forEach(function (lb) {\r\n if (lb.product != null)\r\n newArray.push({\r\n idLubricationTable: null,\r\n product: {\r\n description: lb.group.description,\r\n idProduct: lb.product.idProduct,\r\n },\r\n idVehicle: lb.idVehicle,\r\n group: {\r\n idGroup: lb.group.idGroup,\r\n description: lb.group.description,\r\n groupCode: lb.group.groupCode,\r\n },\r\n note: lb.note,\r\n qta: lb.qta,\r\n });\r\n });\r\n return newArray;\r\n }\r\n\r\n exists(item, array: any[]): boolean {\r\n return array.some(function (object: LubricationTable) {\r\n object.group.idGroup === item.idGroup;\r\n });\r\n }\r\n\r\n async getDropDownItemChild(idDropDownItem: string) {\r\n this.loading = true;\r\n try {\r\n let response = await axios.get<[DropDownItem]>(\r\n General.GetApiUrl(\r\n \"/api/DropDownItem/GetDropDownChild?idDropDownItem=\" + idDropDownItem\r\n ),\r\n {\r\n responseType: \"json\",\r\n withCredentials: true,\r\n }\r\n );\r\n this.optionsDropDown.optionBrands = this.setOptions(response.data);\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n async mounted() {\r\n this.loading = true;\r\n await this.getVehicleTypes();\r\n if (!this.addMode) {\r\n await this.getVehicleById(this.idVehicle);\r\n await this.getMergedLubricationTables(\r\n this.vehicle.idVehicle,\r\n this.vehicle.idVehicleType\r\n );\r\n await this.getVehicleTypeChild(this.vehicle.idVehicleType);\r\n await this.getDropDownItemChild(this.vehicle.builder.idDropDownItem);\r\n \r\n }\r\n this.loading = false;\r\n this.optionsDropDown.optionTractions = this.setOptions(\r\n this.dropDownItems.filter(\r\n (item: DropDownItem) => item.codDropDownSource == \"TRACTION\"\r\n )\r\n );\r\n this.optionsDropDown.optionGearBoxTypes = this.setOptions(\r\n this.dropDownItems.filter(\r\n (item: DropDownItem) => item.codDropDownSource == \"GEARBOX_TYPE\"\r\n )\r\n );\r\n this.optionsDropDown.optionFuels = this.setOptions(\r\n this.dropDownItems.filter(\r\n (item: DropDownItem) => item.codDropDownSource == \"FUEL\"\r\n )\r\n );\r\n this.optionsDropDown.optionProductions = this.setOptions(\r\n this.dropDownItems.filter(\r\n (item: DropDownItem) => item.codDropDownSource == \"PRODUCTION\"\r\n )\r\n );\r\n }\r\n\r\n async getVehicleById(idVehicle: string) {\r\n try {\r\n let response = await axios.get(\r\n General.GetApiUrl(\r\n \"/api/LubricationTable/GetVehicle?idVehicle=\" + idVehicle\r\n ),\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (!response.data.lubricationTables)\r\n response.data.lubricationTables = new Array();\r\n this.vehicle = response.data;\r\n if (this.vehicle.fuel==null) this.vehicle.fuel = new DropDownItem();\r\n if (this.vehicle.traction==null) this.vehicle.traction = new DropDownItem();\r\n if (this.vehicle.gearBoxType==null) this.vehicle.gearBoxType = new DropDownItem();\r\n // if(response.data.dateLastInfoUpdate)\r\n // this.vehicle.dateLastInfoUpdate = response.data.dateLastInfoUpdate.slice(0,response.data.dateLastInfoUpdate.indexOf(\"T\"))\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n }\r\n }\r\n\r\n async getVehicleTypeChild(idVehicleType: string) {\r\n this.loading = true;\r\n try {\r\n let response = await axios.get(\r\n General.GetApiUrl(\r\n \"/api/DropDownItem/GetVehicleTypesChilds?idVehicleType=\" +\r\n idVehicleType\r\n ),\r\n {\r\n responseType: \"json\",\r\n withCredentials: true,\r\n }\r\n );\r\n this.optionsDropDown.optionBuilders = this.setOptions(response.data);\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 setOptions(dropDownItems: DropDownItem[]) {\r\n let array: Array = [];\r\n \r\n array.push({ value: null, text: \"\" });\r\n\r\n \r\n dropDownItems.forEach(function (el) {\r\n array.push({ value: el.idDropDownItem, text: el.itemText });\r\n });\r\n return array;\r\n }\r\n\r\n async getMergedLubricationTables(idVehicle: string, idVehicleType: string) {\r\n try {\r\n let response = await axios.get(\r\n General.GetApiUrl(\r\n \"/Api/LubricationTable/GetMergedLubricationTables?idVehicle=\" +\r\n idVehicle +\r\n \"&idVehicleType=\" +\r\n idVehicleType\r\n ),\r\n {\r\n withCredentials: true,\r\n }\r\n );\r\n if (response.data) this.vehicle.lubricationTables = response.data;\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n }\r\n }\r\n\r\n async deleteLubricationTableById(idLubricationTable: String) {\r\n try {\r\n this.loading = true;\r\n await axios.post(\r\n General.GetApiUrl(\r\n \"/api/LubricationTable/DeleteLubricationTable?idLubricationTable=\" +\r\n idLubricationTable\r\n ),\r\n {\r\n withCredentials: true,\r\n responseType: \"json\",\r\n }\r\n );\r\n General.showAlertSuccess(\"lubricationTable 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\r\n async addOrUpdate(vehicle: Vehicle) {\r\n this.isSaveClicked = true;\r\n\r\n if (\r\n !vehicle.builder.idDropDownItem ||\r\n !vehicle.brand.idDropDownItem ||\r\n !vehicle.idVehicleType || \r\n !vehicle.production.idDropDownItem ||\r\n !vehicle.model ||\r\n !vehicle.yearOfRegistration\r\n\r\n )\r\n General.showAlertDanger(\"Please check Required fields \", this);\r\n else {\r\n let arrayLubricationTable = new Array();\r\n arrayLubricationTable = this.removeUnselectedItem(\r\n vehicle.lubricationTables\r\n );\r\n if (this.addMode) await this.addVehicleDo(vehicle, arrayLubricationTable);\r\n else await this.updateVehicleDo(vehicle, arrayLubricationTable);\r\n this.isSaveClicked = false;\r\n }\r\n }\r\n\r\n async updateVehicleDo(vehicle: Vehicle, arrayLubTables: any[]) {\r\n General.confirm(\r\n \"Do you want update vehicle with code:\" + vehicle.vehicleCode + \"?\",\r\n this,\r\n async () => {\r\n await this.updateVehicle(vehicle, arrayLubTables);\r\n this.closeDetailModal();\r\n if (this.firstSearch) this.$emit(\"vehicles-Search\");\r\n }\r\n );\r\n }\r\n\r\n async addVehicleDo(vehicle: Vehicle, arrayLubTables: any[]) {\r\n General.confirm(\"Do you want add this vehicle?\", this, async () => {\r\n let result = await this.addVehicle(vehicle, arrayLubTables);\r\n if (result==true){\r\n this.closeAddModal();\r\n if (this.firstSearch) this.$emit(\"vehicles-Search\");\r\n }\r\n });\r\n }\r\n\r\n async addVehicle(vehicle: Vehicle, arrayLubTables: any[]):Promise{\r\n try {\r\n this.loading = true;\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/AddVehicle\"),\r\n data: {\r\n idVehicleType: vehicle.idVehicleType,\r\n idBrand: vehicle.brand.idDropDownItem,\r\n idBuilder: vehicle.builder.idDropDownItem,\r\n idFuel: vehicle.fuel.idDropDownItem,\r\n idTraction: vehicle.traction.idDropDownItem,\r\n idGearboxType: vehicle.gearBoxType.idDropDownItem,\r\n idProduction: vehicle.production.idDropDownItem,\r\n gearBoxModel: vehicle.gearBoxModel,\r\n model: vehicle.model,\r\n yearOfRegistration: vehicle.yearOfRegistration,\r\n displacement: vehicle.displacement,\r\n staging: vehicle.staging,\r\n motorType: vehicle.motorType,\r\n lubricationTables: arrayLubTables,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n General.showAlertSuccess(\"Vehicle successfully added\", this);\r\n return true;\r\n \r\n } catch (error) {\r\n General.HandleError(error, this);\r\n \r\n } finally {\r\n this.loading = false;\r\n }\r\n return false;\r\n }\r\n\r\n async deleteVehicleDo(vehicle: Vehicle) {\r\n General.confirm(\r\n \"Do you want delete the vehicle:\" + vehicle.vehicleCode + \"?\",\r\n this,\r\n async () => {\r\n await this.deleteVehicleById(vehicle.idVehicle);\r\n this.closeDetailModal();\r\n this.$router.push(\"/vehicles\");\r\n this.$emit(\"vehicles-Search\");\r\n }\r\n );\r\n }\r\n async deleteVehicleById(idVehicle: string) {\r\n try {\r\n this.loading = true;\r\n await axios.delete(\r\n General.GetApiUrl(\r\n \"/api/lubricationTable/DeleteVehicle?idVehicle=\" + idVehicle\r\n ),\r\n { withCredentials: true }\r\n );\r\n General.showAlertSuccess(\"vehicle 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 updateVehicle(vehicle: Vehicle, arrayLubTables: any[]) {\r\n try {\r\n this.loading = true;\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/UpdateVehicle\"),\r\n data: {\r\n idVehicle: vehicle.idVehicle,\r\n idVehicleType: vehicle.idVehicleType,\r\n idBrand: vehicle.brand.idDropDownItem,\r\n idBuilder: vehicle.builder.idDropDownItem,\r\n idFuel: vehicle.fuel.idDropDownItem,\r\n idTraction: vehicle.traction.idDropDownItem,\r\n idGearboxType: vehicle.gearBoxType.idDropDownItem,\r\n gearBoxModel: vehicle.gearBoxModel,\r\n model: vehicle.model,\r\n yearOfRegistration: vehicle.yearOfRegistration,\r\n displacement: vehicle.displacement,\r\n staging: vehicle.staging,\r\n motorType: vehicle.motorType,\r\n lubricationTables: arrayLubTables,\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 closeDetailModal() {\r\n this.$bvModal.hide(\"vehicle-detail-modal\");\r\n }\r\n closeAddModal() {\r\n this.$bvModal.hide(\"vehicle-add-modal\");\r\n }\r\n\r\n async getVehicleTypes() {\r\n try {\r\n let response = 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.setOptionVehiclesTypes(response.data);\r\n } catch (ex) {\r\n General.HandleError(ex, this);\r\n }\r\n }\r\n\r\n setOptionVehiclesTypes(vehicleType: VehicleType[]) {\r\n let array: Array = [];\r\n vehicleType.forEach(function (el) {\r\n array.push({ value: el.idVehicleType, text: el.type });\r\n });\r\n this.vehicleTypeList = [...array];\r\n }\r\n\r\n canManageLubTable() {\r\n return General.CanManageLubTable();\r\n }\r\n}\r\n","import { render, staticRenderFns } from \"./VehiclesDetails.vue?vue&type=template&id=05b87a6a\"\nimport script from \"./VehiclesDetails.vue?vue&type=script&lang=ts\"\nexport * from \"./VehiclesDetails.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:\"\\n alert alert-light\\n shadow-sm\\n p-3\\n mb-3\\n bg-white\\n rounded\\n border\\n d-flex\\n align-items-start\\n \",attrs:{\"role\":\"alert\"}},[_vm._m(0),_c('div',{staticClass:\"container-fluid mt-3\"},[_c('search-filter',{attrs:{\"placeholder\":_vm.placeholder,\"filterSelected\":_vm.filterSelected},on:{\"filter-reset\":_vm.searchFilterResertEvent,\"filter-search\":_vm.searchFilterSearchEvent,\"close-filter-search\":function($event){return _vm.checkFilterParameter()}}},[_c('b-form',{staticClass:\"row px-2 row-cols-1 row-cols-xl-3\",on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.searchFilterSearchEvent(_vm.searchFilter.freeText)},\"submit\":function($event){$event.preventDefault();}}},[_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":\"Builder\"}},[_c('b-form-input',{model:{value:(_vm.searchFilter.builder),callback:function ($$v) {_vm.$set(_vm.searchFilter, \"builder\", $$v)},expression:\"searchFilter.builder\"}})],1),_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":\"Model\"}},[_c('b-form-input',{model:{value:(_vm.searchFilter.model),callback:function ($$v) {_vm.$set(_vm.searchFilter, \"model\", $$v)},expression:\"searchFilter.model\"}})],1),_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":\"Brand\"}},[_c('b-form-input',{model:{value:(_vm.searchFilter.brand),callback:function ($$v) {_vm.$set(_vm.searchFilter, \"brand\", $$v)},expression:\"searchFilter.brand\"}})],1)],1)],1)],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 Vehicle\")]):_vm._e(),_c('b-modal',{attrs:{\"id\":\"vehicle-add-modal\",\"title\":\"Add Vehicle\",\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('VehiclesDetails',{attrs:{\"idVehicle\":_vm.idVehicleSelected,\"addMode\":true,\"firstSearch\":_vm.firstSearch,\"dropDownItems\":_vm.dropDownItemsList},on:{\"vehicles-Search\":_vm.searchFilterSearchEvent}})],1),_c('b-modal',{attrs:{\"id\":\"vehicle-detail-modal\",\"title\":_vm.VehicleTitle,\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('VehiclesDetails',{attrs:{\"idVehicle\":_vm.idVehicleSelected,\"addMode\":false,\"firstSearch\":_vm.firstSearch,\"dropDownItems\":_vm.dropDownItemsList},on:{\"vehicles-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(\"Code\")]),_c('th',[_vm._v(\"Builder\")]),_c('th',[_vm._v(\"Brand\")]),_c('th',[_vm._v(\"Type\")]),_c('th',[_vm._v(\"Model\")]),_c('th',[_vm._v(\"Year\")]),_c('th',[_vm._v(\"Fuel\")]),_c('th',[_vm._v(\"Displacement\")]),_c('th',[_vm._v(\"Motor\")]),_c('th',[_vm._v(\"GearBox\")]),_c('th',[_vm._v(\"Traction\")])])]),_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.openVehicle(item)}}})]),_c('td',[_vm._v(_vm._s(item.vehicleCode))]),_c('td',[_vm._v(_vm._s(item.builder.itemText))]),_c('td',[_vm._v(_vm._s(item.brand.itemText))]),_c('td',[_vm._v(_vm._s(item.vehicleType.type))]),_c('td',[_vm._v(_vm._s(item.model))]),_c('td',[_vm._v(_vm._s(item.yearOfRegistration))]),_c('td',[(item.fuel!=null)?[_vm._v(_vm._s(item.fuel.itemText))]:[_vm._v(\"-\")]],2),_c('td',[_vm._v(_vm._s(item.displacement))]),_c('td',[_vm._v(_vm._s(item.motorType))]),_c('td',[(item.gearBoxType!=null)?[_vm._v(_vm._s(item.gearBoxType.itemText))]:[_vm._v(\"-\")]],2),_c('td',[(item.traction!=null)?[_vm._v(_vm._s(item.traction.gearBoxType))]:[_vm._v(\"-\")]],2)])}),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.searchVehicle(_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!./VehiclesSearchPage.vue?vue&type=template&id=25f56d22&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\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 VehiclesDetails from \"@/components/VehiclesDetails.vue\";\r\nimport SearchFilter from \"@/components/Utilities/SearchFilter.vue\";\r\nimport { Vehicle } from \"@/services/Vehicle\";\r\nimport { DropDownItem } from \"@/services/DropDownItem\";\r\nimport HelpContent from \"../HelpContent.vue\";\r\nimport LeftClickOptionMenu from \"@/components/Utilities/LeftClickOptionMenu.vue\";\r\n\r\n@Component({\r\n components: {\r\n VehiclesDetails,\r\n SearchFilter,\r\n HelpContent,\r\n LeftClickOptionMenu\r\n },\r\n})\r\nexport default class VehiclesSearchPage extends Vue {\r\n firstSearch: boolean = false;\r\n showLoading: boolean = false;\r\n loading: boolean = false;\r\n searchFilter: any = {\r\n freeText: null,\r\n groupCode: null,\r\n description: null,\r\n model:null,\r\n builder: null,\r\n brand:null\r\n };\r\n placeholder: string = \"Search by code or name\";\r\n\r\n filterSelected:boolean = false;\r\n\r\n page: number = 1;\r\n resultsItems: any = {\r\n resultPage: new Array(),\r\n total: 0,\r\n };\r\n idVehicleSelected : string = \"\";\r\n vehicleCode: number = 0;\r\n \r\n dropDownItemsList: DropDownItem [] = [];\r\n\r\n //pacchetto per menu tasto destro su dettaglio entita'\r\n leftClickOptionMenuUrl: string = \"/vehicles/\";\r\n leftClickOptionMenuUrlArgument: string = \"vehicleCode\";\r\n handleClick (event, item) {\r\n (this.$refs.leftClickOptions as LeftClickOptionMenu).handleClick(event, item);\r\n }\r\n\r\n searchFilterResertEvent() {\r\n this.resetFilterSearch();\r\n }\r\n CheckIsNullOrEmpty(text: string) {\r\n if (text == null) return true;\r\n if (text == '') return true;\r\n return false;\r\n }\r\n\r\n checkFilters(){\r\n if (!this.CheckIsNullOrEmpty(this.searchFilter.groupCode)) return true\r\n if (!this.CheckIsNullOrEmpty(this.searchFilter.description)) return true\r\n if (!this.CheckIsNullOrEmpty(this.searchFilter.builder)) return true\r\n if (!this.CheckIsNullOrEmpty(this.searchFilter.model)) return true\r\n if (!this.CheckIsNullOrEmpty(this.searchFilter.brand)) return true\r\n return false\r\n }\r\n\r\n checkFilterParameter(){\r\n if (this.checkFilters()){\r\n this.filterSelected = true;\r\n }\r\n else{\r\n this.filterSelected = false;\r\n }\r\n }\r\n\r\n openAddModal() {\r\n if(this.$route.params.id)\r\n this.$router.push(\"/vehicles\");\r\n this.$bvModal.show(\"vehicle-add-modal\");\r\n }\r\n\r\n get VehicleTitle(): string {\r\n return `Vehicle code: ${this.vehicleCode}`;\r\n }\r\n\r\n async searchVehicle(filter: any, start: boolean = true) {\r\n this.showLoading = true;\r\n if (start == true) this.resetSearch();\r\n try {\r\n let results: any = await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/lubricationTable/GetVehiclesWithFilter\"),\r\n data: {\r\n FreeText: filter.freeText,\r\n Builder: filter.builder,\r\n Brand: filter.brand,\r\n Model: filter.model,\r\n Fuel: filter.fuel,\r\n Traction: filter.traction,\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 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 async getDropDownItemsList(){\r\n try{\r\n let response = await axios.get(General.GetApiUrl('/api/DropDownItem/GetDropDownItems'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n });\r\n if(response.data)\r\n this.dropDownItemsList = response.data;\r\n }catch(ex){\r\n General.HandleError(ex, this);\r\n }\r\n }\r\n\r\n openVehicle(vehicle: Vehicle, setRouterId: boolean = true) {\r\n this.idVehicleSelected = vehicle.idVehicle;\r\n this.vehicleCode = vehicle.vehicleCode;\r\n if (setRouterId)\r\n this.$router.push(\"/vehicles/\" + this.vehicleCode);\r\n this.showVehicleModalDetail();\r\n }\r\n\r\n showVehicleModalDetail() {\r\n this.$bvModal.show(\"vehicle-detail-modal\");\r\n }\r\n\r\n closeGroup() {\r\n this.$bvModal.hide(\"vehicle-detail-modal\");\r\n }\r\n async mounted() {\r\n await this.getDropDownItemsList();\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/GetVehiclesWithFilter\"),\r\n data: {\r\n VehicleCode: code,\r\n },\r\n withCredentials: true,\r\n responseType: \"json\",\r\n });\r\n this.openVehicle(results.data.listPage[0], false);\r\n }\r\n }\r\n searchFilterSearchEvent(genericSearch: string) {\r\n if (genericSearch != null)\r\n this.searchFilter.freeText = genericSearch;\r\n \r\n this.searchVehicle(this.searchFilter, true);\r\n }\r\n\r\n resetFilterSearch() {\r\n this.searchFilter.groupCode = null;\r\n this.searchFilter.description = null;\r\n this.searchFilter.model = null;\r\n this.searchFilter.builder = null;\r\n this.searchFilter.brand = null;\r\n this.searchFilter.multiSearch = null;\r\n this.filterSelected = false;\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 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-2\"},[_c('b-input',{attrs:{\"value\":_vm._f(\"empty\")(_vm.vehicle.vehicleCode),\"readonly\":true}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Date Last Info Update\")]),_c('div',{staticClass:\"col-sm-2\"},[_c('b-input',{attrs:{\"value\":_vm._f(\"empty\")(_vm._f(\"dateStandard\")(_vm.vehicle.dateLastInfoUpdate)),\"readonly\":true}})],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-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.vehicleTypeList,\"disabled\":!_vm.canManageLubTable(),\"state\":_vm.returnState(_vm.vehicle.idVehicleType != null, _vm.isSaveClicked)},on:{\"change\":function($event){_vm.getVehicleTypeChild(_vm.vehicle.idVehicleType),\n _vm.getGroupByVehicleType(_vm.vehicle.idVehicleType),\n _vm.resetVehicleTypeChild()}},model:{value:(_vm.vehicle.idVehicleType),callback:function ($$v) {_vm.$set(_vm.vehicle, \"idVehicleType\", $$v)},expression:\"vehicle.idVehicleType\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Builder *\")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsDropDown.optionBuilders,\"state\":_vm.returnState(\n _vm.vehicle.builder.idDropDownItem != null,\n _vm.isSaveClicked\n ),\"disabled\":!_vm.canManageLubTable()},on:{\"change\":function($event){return _vm.getDropDownItemChild(_vm.vehicle.builder.idDropDownItem)}},model:{value:(_vm.vehicle.builder.idDropDownItem),callback:function ($$v) {_vm.$set(_vm.vehicle.builder, \"idDropDownItem\", $$v)},expression:\"vehicle.builder.idDropDownItem\"}})],1),(_vm.vehicle.idVehicleType&&_vm.canManageLubTable())?_c('div',{staticClass:\"col-sm-2\"},[_c('b-icon-plus-circle',{staticClass:\"clickable\",staticStyle:{\"margin-top\":\"10\"},attrs:{\"scale\":\"1.5\"},on:{\"click\":function($event){return _vm.showAddDropDownModal(true)}}})],1):_vm._e()]),_c('b-modal',{attrs:{\"id\":\"add-dropDown-modal\",\"title\":\"Add new value\",\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[(_vm.isBuilderAdd)?_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Builder\")]),_c('div',{staticClass:\"col-sm-6\"},[_c('b-input',{attrs:{\"readonly\":false,\"state\":_vm.returnState(\n _vm.newDropDownItem.itemText != null,\n _vm.isSaveDropDownClicked\n )},model:{value:(_vm.newDropDownItem.itemText),callback:function ($$v) {_vm.$set(_vm.newDropDownItem, \"itemText\", $$v)},expression:\"newDropDownItem.itemText\"}})],1)]):_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Brand\")]),_c('div',{staticClass:\"col-sm-6\"},[_c('b-input',{attrs:{\"readonly\":false,\"state\":_vm.returnState(\n _vm.newDropDownItem.itemText != null,\n _vm.isSaveDropDownClicked\n )},model:{value:(_vm.newDropDownItem.itemText),callback:function ($$v) {_vm.$set(_vm.newDropDownItem, \"itemText\", $$v)},expression:\"newDropDownItem.itemText\"}})],1)]),_c('footer',{staticClass:\"modal-footer d-flex flex-row\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.addNewDropDownItem}},[_vm._v(\"Save changes\")])],1)])],1),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Brand *\")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsDropDown.optionBrands,\"state\":_vm.returnState(\n _vm.vehicle.brand.idDropDownItem != null,\n _vm.isSaveClicked\n ),\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.brand.idDropDownItem),callback:function ($$v) {_vm.$set(_vm.vehicle.brand, \"idDropDownItem\", $$v)},expression:\"vehicle.brand.idDropDownItem\"}})],1),(_vm.vehicle.builder.idDropDownItem&&_vm.canManageLubTable())?_c('div',{staticClass:\"col-sm-2\"},[_c('b-icon-plus-circle',{staticClass:\"clickable\",staticStyle:{\"margin-top\":\"10\"},attrs:{\"scale\":\"1.5\"},on:{\"click\":function($event){return _vm.showAddDropDownModal(false)}}})],1):_vm._e()]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Model *\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-form-input',{staticStyle:{\"width\":\"30%\"},attrs:{\"size\":\"sm\",\"state\":_vm.returnState(\n _vm.vehicle.model != null,\n _vm.isSaveClicked\n ),\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.model),callback:function ($$v) {_vm.$set(_vm.vehicle, \"model\", $$v)},expression:\"vehicle.model\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Registration Year *\")]),_c('div',{staticClass:\"col-sm-2\"},[_c('b-form-input',{attrs:{\"size\":\"sm\",\"state\":_vm.returnState(\n Number.isFinite(_vm.vehicle.yearOfRegistration),\n _vm.isSaveClicked\n ),\"disabled\":!_vm.canManageLubTable(),\"type\":'number'},model:{value:(_vm.vehicle.yearOfRegistration),callback:function ($$v) {_vm.$set(_vm.vehicle, \"yearOfRegistration\", $$v)},expression:\"vehicle.yearOfRegistration\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Production *\")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsDropDown.optionProductions,\"state\":_vm.returnState(\n _vm.vehicle.production.idDropDownItem != null,\n _vm.isSaveClicked\n ),\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.production.idDropDownItem),callback:function ($$v) {_vm.$set(_vm.vehicle.production, \"idDropDownItem\", $$v)},expression:\"vehicle.production.idDropDownItem\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Fuel\")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsDropDown.optionFuels,\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.fuel.idDropDownItem),callback:function ($$v) {_vm.$set(_vm.vehicle.fuel, \"idDropDownItem\", $$v)},expression:\"vehicle.fuel.idDropDownItem\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Displacement\")]),_c('div',{staticClass:\"col-sm-2\"},[_c('b-form-input',{attrs:{\"type\":'number',\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.displacement),callback:function ($$v) {_vm.$set(_vm.vehicle, \"displacement\", $$v)},expression:\"vehicle.displacement\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Staging\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-form-textarea',{attrs:{\"rows\":\"3\",\"readonly\":false,\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.staging),callback:function ($$v) {_vm.$set(_vm.vehicle, \"staging\", $$v)},expression:\"vehicle.staging\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Motor Type\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-form-input',{staticStyle:{\"width\":\"30%\"},attrs:{\"size\":\"sm\",\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.motorType),callback:function ($$v) {_vm.$set(_vm.vehicle, \"motorType\", $$v)},expression:\"vehicle.motorType\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"GearBox Type\")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsDropDown.optionGearBoxTypes,\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.gearBoxType.idDropDownItem),callback:function ($$v) {_vm.$set(_vm.vehicle.gearBoxType, \"idDropDownItem\", $$v)},expression:\"vehicle.gearBoxType.idDropDownItem\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"GearBox Model\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-form-input',{staticStyle:{\"width\":\"30%\"},attrs:{\"size\":\"sm\",\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.gearBoxModel),callback:function ($$v) {_vm.$set(_vm.vehicle, \"gearBoxModel\", $$v)},expression:\"vehicle.gearBoxModel\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Traction\")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-form-select',{attrs:{\"options\":_vm.optionsDropDown.optionTractions,\"disabled\":!_vm.canManageLubTable()},model:{value:(_vm.vehicle.traction.idDropDownItem),callback:function ($$v) {_vm.$set(_vm.vehicle.traction, \"idDropDownItem\", $$v)},expression:\"vehicle.traction.idDropDownItem\"}})],1)])],1),_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":\"LubricationTable\"}},[(\n _vm.vehicle.idVehicleType && _vm.vehicle.lubricationTables.length != 0\n )?_c('table',{staticClass:\"table b-table table-striped table-hover text-center\"},[_c('thead',{staticClass:\"table-light\"},[_c('tr',[_c('th',{staticStyle:{\"width\":\"10%\"}},[_vm._v(\"Group\")]),_c('th',{staticStyle:{\"width\":\"1%\"}}),_c('th',{staticStyle:{\"width\":\"39%\"}},[_vm._v(\"Product\")]),_c('th',{staticStyle:{\"width\":\"30%\"}},[_vm._v(\"Note\")]),_c('th',{staticStyle:{\"width\":\"10%\"}},[_vm._v(\"Qty (L)\")])])]),_c('tbody',_vm._l((_vm.vehicle.lubricationTables),function(item,index){return _c('tr',{key:index},[_c('td',{staticStyle:{\"vertical-align\":\"inherit\"}},[_vm._v(\" \"+_vm._s(_vm._f(\"empty\")(item.group.description))+\" \")]),_c('td',{staticStyle:{\"text-align\":\"right\"}},[(item.product)?_c('b-icon-info-square-fill',{staticClass:\"clickable\",staticStyle:{\"margin-top\":\"1rem\"},attrs:{\"scale\":\"1.3\"},on:{\"click\":function($event){return _vm.openProductDetail(item.product)}}}):_vm._e()],1),_c('td',{staticStyle:{\"text-align\":\"left\"}},[(_vm.canManageLubTable())?[(item.product)?[_c('autocomplete-custom',{staticStyle:{\"with\":\"100%\"},attrs:{\"id\":\"product-autocomplete\",\"url\":\"/api/Product/GetProductsWithFilterAutoComplete\",\"object\":item,\"result\":_vm.getResultValue,\"defaultValue\":item.product.description},on:{\"selected\":_vm.setProductSelectedToTable}})]:[_c('autocomplete-custom',{staticStyle:{\"with\":\"100%\"},attrs:{\"url\":\"/api/Product/GetProductsWithFilterAutoComplete\",\"object\":item,\"result\":_vm.getResultValue},on:{\"selected\":_vm.setProductSelectedToTable}})]]:[(item.product)?[_c('b-form-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"size\":\"sm\",\"readonly\":true,\"value\":_vm.getResultValue(item.product)}})]:[_c('b-form-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"size\":\"sm\",\"readonly\":true}})]]],2),_c('td',[_c('b-form-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"size\":\"sm\",\"disabled\":!item.product||!_vm.canManageLubTable()},model:{value:(item.note),callback:function ($$v) {_vm.$set(item, \"note\", $$v)},expression:\"item.note\"}})],1),_c('td',[_c('b-form-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"size\":\"sm\",\"type\":\"number\",\"min\":\"0\",\"disabled\":!item.product||!_vm.canManageLubTable()},model:{value:(item.qta),callback:function ($$v) {_vm.$set(item, \"qta\", $$v)},expression:\"item.qta\"}})],1)])}),0)]):_vm._e(),_c('b-modal',{attrs:{\"id\":\"product-detail-modal\",\"title\":'Product code: ' + _vm.productSelected.code,\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('product-detail',{attrs:{\"idproduct\":_vm.productSelected.idProduct,\"show-close\":true}})],1),(!_vm.vehicle.idVehicleType)?[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"danger\"}},[_vm._v(\"No VehicleType Selected\")])]:_vm._e(),(\n _vm.vehicle.lubricationTables.length == 0 && _vm.vehicle.idVehicleType\n )?[_c('b-alert',{attrs:{\"show\":\"\",\"variant\":\"danger\"}},[_vm._v(\"No groups associated to vehicleType selected\")])]:_vm._e()],2)],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.deleteVehicleDo(_vm.vehicle)}}},[_vm._v(\" Delete \")]):_vm._e(),(_vm.canManageLubTable())?_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.addOrUpdate(_vm.vehicle)}}},[_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!./VehiclesDetails.vue?vue&type=template&id=05b87a6a\"","import { VehicleType } from \"@/services/VehicleType\";\r\nimport { DropDownItem } from \"@/services/DropDownItem\";\r\nimport { LubricationTable } from \"@/services/LubricationTable\";\r\nexport class Vehicle {\r\n constructor(idVehicle?: string, \r\n gearBoxModel?: string,\r\n vehicleCode?:number,\r\n idVehicleType?:string,\r\n brand?:DropDownItem,\r\n builder?:DropDownItem,\r\n fuel?:DropDownItem,\r\n gearBoxType?:DropDownItem,\r\n traction?:DropDownItem,\r\n dateLastInfoUpdate?: string,\r\n model?:string,\r\n yearOfRegistration?:number,\r\n displacement?:number,\r\n staging?:string,\r\n idProduction?: string,\r\n production?: DropDownItem,\r\n motorType?:string,lubricationTables?:Array) {\r\n (idVehicle) ? this.idVehicle = idVehicle : this.idVehicle = null;\r\n (vehicleCode) ? this.vehicleCode = vehicleCode : this.vehicleCode = null;\r\n this.gearBoxModel = gearBoxModel;\r\n // (vehicleType) ? this.vehicleType = vehicleType : this.vehicleType = new VehicleType();\r\n (idVehicleType) ? this.idVehicleType = idVehicleType : this.idVehicleType = null;\r\n (brand)? this.brand = brand : this.brand = new DropDownItem();\r\n (builder) ? this.builder = builder : this.builder = new DropDownItem();\r\n (fuel) ? this.fuel = fuel : this.fuel = new DropDownItem();\r\n (gearBoxType) ? this.gearBoxType = gearBoxType : this.gearBoxType = new DropDownItem();\r\n (traction) ? this.traction = traction : this.traction = new DropDownItem();\r\n (production) ? this.production = production : this.production = new DropDownItem();\r\n this.dateLastInfoUpdate = dateLastInfoUpdate;\r\n this.model = model;\r\n this.yearOfRegistration = yearOfRegistration;\r\n this.displacement = displacement;\r\n this.staging = staging;\r\n this.motorType = motorType;\r\n (lubricationTables != null || lubricationTables != undefined) ? this.lubricationTables = lubricationTables : this.lubricationTables = new Array();\r\n\r\n };\r\n public idVehicle: string;\r\n public vehicleCode:number;\r\n public gearBoxModel: string;\r\n public idVehicleType:string;\r\n public brand:DropDownItem;\r\n public builder:DropDownItem;\r\n public fuel:DropDownItem;\r\n public gearBoxType:DropDownItem;\r\n public traction:DropDownItem;\r\n public production:DropDownItem;\r\n public dateLastInfoUpdate: string;\r\n public model:string;\r\n public yearOfRegistration:number;\r\n public displacement:number;\r\n public staging:string;\r\n public motorType:string;\r\n public lubricationTables:Array;\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!./VehiclesDetails.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!./VehiclesDetails.vue?vue&type=script&lang=ts\"","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!./VehiclesSearchPage.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!./VehiclesSearchPage.vue?vue&type=script&lang=ts\"","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!./VehiclesSearchPage.vue?vue&type=style&index=0&id=25f56d22&prod&scoped=true&lang=css\"","import { render, staticRenderFns } from \"./VehiclesSearchPage.vue?vue&type=template&id=25f56d22&scoped=true\"\nimport script from \"./VehiclesSearchPage.vue?vue&type=script&lang=ts\"\nexport * from \"./VehiclesSearchPage.vue?vue&type=script&lang=ts\"\nimport style0 from \"./VehiclesSearchPage.vue?vue&type=style&index=0&id=25f56d22&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 \"25f56d22\",\n null\n \n)\n\nexport default component.exports","export class DropDownItem {\r\n constructor(idDropDownItem?:string,itemText?:string,codDropDownSource?:string,idDropDownFather?:string,identifyCode?:string, deletionDate?:Date){\r\n (idDropDownItem) ? this.idDropDownItem = idDropDownItem : this.idDropDownItem = null;\r\n (codDropDownSource) ? this.codDropDownSource = codDropDownSource : this.codDropDownSource = null;\r\n (itemText) ? this.itemText = itemText : this.itemText = null;\r\n (idDropDownFather) ? this.idDropDownFather = idDropDownFather : this.idDropDownFather = null;\r\n (identifyCode) ? this.identifyCode = identifyCode : this.identifyCode = null;\r\n (this.deletionDate) ? this.deletionDate = deletionDate : this.deletionDate = null;\r\n }\r\n public idDropDownItem:string;\r\n public itemText:string;\r\n public codDropDownSource:string;\r\n public idDropDownFather:string;\r\n public identifyCode:string;\r\n public deletionDate:Date;\r\n}\r\n\r\nexport interface SelectDropDownItem {\r\n value: string;\r\n text: string;\r\n identifyCode: string;\r\n deletionDate: Date;\r\n}","import { Group } from \"./Group\";\r\nexport class LubricationTable {\r\n constructor(idLubricationTable?:string,group?:Group,idVehicle?:string,product?:any,qta?:number,note?:string){\r\n (idLubricationTable != undefined) ? this.idLubricationTable = idLubricationTable : this.idLubricationTable = null;\r\n (!group || group == undefined) ? this.group = new Group() : this.group = group;\r\n (!product) ? this.product = null : this.product = product;\r\n (idVehicle != undefined) ? this.idVehicle = idVehicle : this.idVehicle = null;\r\n (qta != undefined) ? this.qta = qta : this.qta = null;\r\n (note != undefined) ? this.note = note : this.note = null;\r\n }\r\n public idLubricationTable:string;\r\n public group: Group;\r\n public product:any;\r\n public idVehicle:string;\r\n public qta:number;\r\n public note:string;\r\n\r\n // public idLubricationTable: string | null = null;\r\n // public group: Group | null = null;\r\n // public vehicle: Vehicle | null = null;\r\n // public product: any;\r\n // public qta: number | null = null;\r\n // public note:string | null = null;\r\n}\r\n\r\n\r\n"],"sourceRoot":""}