{"version":3,"sources":["webpack:///./src/entity/MaterialBase.ts","webpack:///./src/components/MaterialsListPrintTool.vue?f3df","webpack:///./src/components/MaterialsListPrintTool.vue?2442","webpack:///./src/components/MaterialsListPrintTool.vue?1dfd","webpack:///./src/components/MaterialDetail.vue","webpack:///./src/components/MaterialsListPrintTool.vue?610f","webpack:///./src/components/MaterialDetail.vue?0909","webpack:///./src/components/MaterialsListPrintTool.vue?7bf5","webpack:///./src/components/MaterialDetail.vue?ff38","webpack:///./src/components/MaterialDetail.vue?6f17","webpack:///./src/components/MaterialDetail.vue?dfe2","webpack:///./src/components/MaterialsListPrintTool.vue?8fdd"],"names":["MaterialProductDetailBase","_createClass","t","_classCallCheck","Object","assign","this","exports","MaterialPrintElementBase","render","_vm","_h","$createElement","_c","_self","attrs","loading","canUserManualProcessProduct","staticClass","materialTemp","on","$event","openMaterialDetail","_v","_s","$t","_e","userCanPrint","editProductMode","showProductsInfo","_l","fromProductDetail","materialList","material","index","key","materialCanBePrinted","openMaterialDo","directives","name","rawName","modifiers","idMaterial","materialCode","packageTypeDescr","product","techSpecs","viscosity","approvals","performanceLevel","code","originalDescription","packageCode","staticStyle","deleteMaterial","materialSelected","Description","resetMaterialSelected","model","value","callback","$$v","$set","expression","openMaterial","materialDetailModalTitle","materialToProcess","IdProduct","idProduct","Code","afterMaterialDetail","staticRenderFns","vue_property_decorator_1","require","axios_1","tslib_1","__importDefault","General_1","ClaimEnum_1","file_saver_1","MaterialDetail_vue_1","MaterialsListPrintTool","_vue_property_decorat","_this","isSaveClicked","processMaterialButton","editModeMaterialDetail","general","selectedPackageFormat","optionsPackageFormats","Array","defaultPackageFormat","templateNormal","IdMaterial","SerialNumber","BatchNumber","MaterialCode","PageNumber","_inherits","General","text","_context","next","getPackageFormats","stop","_callee","undefined","app","callSaving","__awaiter","_this2","_regeneratorRuntime","mark","_callee2","wrap","_context2","prev","deleteMaterialFromListDo","confirm","_callee3","_context3","deleteMaterialDo","_context4","_callee4","_context5","default","method","url","GetApiUrl","withCredentials","sent","$emit","closeMaterialDetailModal","showAlertSuccess","t0","HandleError","finish","_callee5","filter","m","_context6","_callee6","isValidProductCode","$bvModal","show","showAlertDanger","hide","materialCodeTemp","findIndex","Vue","set","push","length","description","_context7","data","responseType","response","saveAs","Blob","_callee7","CanManualProcessProduct","importedFromSAP","apiUrl","_context8","convertPackageToSelect","_callee8","addEmpty","outputData","forEach","item","id","get","CheckAuthorization","ClaimEnum","CanPrintPackageLabel","packageSize","item4","__decorate","Prop","type","required","Boolean","Component","components","MaterialDetail","component","returnState","processMaterialManual","MaterialBase_1","materialToProcessProp","condition","clickButton","includes","addMaterialManualDo","editMaterialManualDo","materialListNewProduct","x","returnMaterialToListDo","GetMaterialInfoByCodeAndDescription","materialInfo","post","isDead","isPhaseOut","barCode","abrupt"],"mappings":"mNAEaA,EAAyBC,GAKlC,SAAAD,EAAYE,GAAMC,EAAA,KAAAH,GACVE,GACAE,OAAOC,OAAOC,KAAKJ,MAP/BK,EAAAP,4BAWC,IAEYQ,EAAwBP,GAWjC,SAAAO,EAAYN,GAAMC,EAAA,KAAAK,GACVN,GACAE,OAAOC,OAAOC,KAAKJ,MAb/BK,EAAAC,4B,kCCfA,IAAIC,EAAS,WAAa,IAAIC,EAAIJ,KAASK,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,KAAOL,EAAIM,QAAQ,QAAU,OAAO,CAAEN,EAAIO,8BAA+BJ,EAAG,WAAW,CAACK,YAAY,OAAOH,MAAM,CAAC,QAAU,UAAU,aAAeL,EAAIS,cAAcC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,mBAAmB,SAAS,CAACT,EAAG,IAAI,CAACK,YAAY,eAAeR,EAAIa,GAAG,IAAIb,EAAIc,GAAGd,EAAIe,GAAG,4BAA4Bf,EAAIgB,KAAKb,EAAG,QAAQ,CAACK,YAAY,2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DetailDto } from \"@/interfaces/IMaterialDto\";\r\n\r\nexport class MaterialProductDetailBase implements IMaterialProductDetailDto {\r\n techSpecs: string;\r\n viscosity: string;\r\n approvals: string;\r\n performanceLevel: string;\r\n constructor(t?:any){\r\n if (t){\r\n Object.assign(this,t);\r\n }\r\n }\r\n \r\n}\r\n\r\nexport class MaterialPrintElementBase implements IMaterialDto{\r\n materialCode: string;\r\n description: string;\r\n originalDescription: string;\r\n packageCode: string;\r\n isDead: boolean;\r\n isPhaseOut: boolean;\r\n idMaterial?: string;\r\n idProduct?: string;\r\n product?: MaterialProductDetailBase;\r\n barCode?:string;\r\n constructor(t?:any){\r\n if (t){\r\n Object.assign(this,t);\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\"}},[(_vm.canUserManualProcessProduct())?_c('b-button',{staticClass:\"mb-4\",attrs:{\"variant\":\"primary\",\"materialList\":_vm.materialTemp},on:{\"click\":function($event){return _vm.openMaterialDetail(null)}}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.ADD_MATERIAL')))]):_vm._e(),_c('table',{staticClass:\"table b-table table-striped table-hover\"},[_c('thead',{staticClass:\"table-dark\"},[_c('tr',[(_vm.userCanPrint == true && _vm.editProductMode)?_c('th'):_vm._e(),_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.MATERIAL_CODE')))]),(_vm.showProductsInfo == true)?_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.PRODUCT_CODE')))]):_vm._e(),_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.DESCRIPTION')))]),_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.PACKAGE_CODE')))]),_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.STATUS')))]),(_vm.canUserManualProcessProduct())?_c('th'):_vm._e(),(_vm.canUserManualProcessProduct())?_c('th'):_vm._e()])]),_c('tbody',_vm._l(((_vm.fromProductDetail ? _vm.materialTemp : _vm.materialList)),function(material,index){return _c('tr',{key:index},[(_vm.userCanPrint == true && _vm.materialCanBePrinted(material) && _vm.editProductMode)?_c('td',[_c('div',{staticClass:\"fa fa-print clickable icon-standard\",attrs:{\"id\":'printMaterial'+index},on:{\"click\":function($event){return _vm.openMaterialDo(material)}}})]):_vm._e(),(_vm.userCanPrint == true && _vm.materialCanBePrinted(material) == false && _vm.editProductMode)?_c('td',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],attrs:{\"title\":_vm.$t('PRODUCT.ALLOW_PACKAGE_LABEL')}},[_c('div',{staticClass:\"fa fa-exclamation-circle clickable icon-standard\"})]):_vm._e(),_c('td',{attrs:{\"id\":material.idMaterial}},[_vm._v(\" \"+_vm._s(material.materialCode)+\" \"),_c('b-tooltip',{attrs:{\"target\":material.idMaterial,\"triggers\":\"hover\",\"custom-class\":\"material-info\",\"variant\":\"light\",\"placement\":\"right\"}},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.TYPE'))+\": \"+_vm._s(material.packageTypeDescr)),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.SPECIFICATION'))+\": \"+_vm._s(material.product.techSpecs)),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.PERFORMANCE'))+\": \"+_vm._s(material.product.viscosity)),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.APPROVALS'))+\": \"+_vm._s(material.product.approvals)),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.PERFORMANCE_LEVEL'))+\": \"+_vm._s(material.product.performanceLevel)+\" \")])],1),(_vm.showProductsInfo == true)?_c('td',[_vm._v(_vm._s(material.product.code))]):_vm._e(),_c('td',[_vm._v(_vm._s(material.originalDescription))]),_c('td',[_vm._v(_vm._s(material.packageCode))]),_c('th',[(material.isDead)?_c('b-badge',{attrs:{\"variant\":\"danger\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.DEAD')))]):_vm._e(),(material.isPhaseOut)?_c('b-badge',{attrs:{\"variant\":\"warning\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.PHASE_OUT')))]):_vm._e()],1),(_vm.canUserManualProcessProduct())?_c('td',[_c('div',{staticClass:\"fa fa-pencil-square-o clickable icon-standard\",attrs:{\"id\":'openMaterialDetail'+index},on:{\"click\":function($event){return _vm.openMaterialDetail(material)}}})]):_vm._e(),(_vm.canUserManualProcessProduct())?_c('td',[_c('div',{staticClass:\"fa fa-trash clickable icon-standard\",staticStyle:{\"color\":\"red\"},attrs:{\"id\":'deleteMaterial'+index},on:{\"click\":function($event){return _vm.deleteMaterial(material)}}})]):_vm._e()])}),0)]),_c('b-modal',{attrs:{\"title\":_vm.materialSelected.Description,\"id\":'detail-labelMaterialRequest',\"size\":\"lg\",\"hide-footer\":\"\"},on:{\"hide\":_vm.resetMaterialSelected}},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.SERIAL_NUMBER'))+\" \")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-input',{attrs:{\"min\":\"0\",\"type\":'number'},model:{value:(_vm.materialSelected.SerialNumber),callback:function ($$v) {_vm.$set(_vm.materialSelected, \"SerialNumber\", $$v)},expression:\"materialSelected.SerialNumber\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.BATCH_NUMBER'))+\" \")]),_c('div',{staticClass:\"col-sm-4\"},[_c('b-input',{model:{value:(_vm.materialSelected.BatchNumber),callback:function ($$v) {_vm.$set(_vm.materialSelected, \"BatchNumber\", $$v)},expression:\"materialSelected.BatchNumber\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.PAGE_NUMBER'))+\" \")]),_c('div',{staticClass:\"col-sm-2\"},[_c('b-input',{attrs:{\"type\":'number',\"min\":\"1\"},model:{value:(_vm.materialSelected.PageNumber),callback:function ($$v) {_vm.$set(_vm.materialSelected, \"PageNumber\", $$v)},expression:\"materialSelected.PageNumber\"}})],1)]),_c('footer',{staticClass:\"modal-footer d-flex flex-row\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.openMaterial(_vm.materialSelected)}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.DOWNLOAD_LABEL')))])],1)]),_c('b-modal',{attrs:{\"id\":\"material-detail-modal\",\"title\":_vm.materialDetailModalTitle,\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\"}},[_c('material-detail',{attrs:{\"show-close\":true,\"editProductMode\":_vm.editProductMode,\"materialToProcessProp\":_vm.materialToProcess,\"product\":{IdProduct: _vm.product.idProduct, Code: _vm.product.code},\"materialListNewProduct\":_vm.materialTemp},on:{\"afterMaterialDetail\":_vm.afterMaterialDetail}})],1)],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!./MaterialsListPrintTool.vue?vue&type=template&id=22ef00c1\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n import { Component, Vue, Prop } from 'vue-property-decorator';\n import axios from 'axios';\n import { General } from '@/services/General';\n import { ClaimEnum } from '@/services/ClaimEnum';\n import { saveAs } from 'file-saver';\n import { MaterialPrintElementBase } from '@/entity/MaterialBase';\n import { IMaterialDto } from '@/interfaces/IMaterialDto';\n import MaterialDetail from './MaterialDetail.vue';\n\n @Component({\n components: {\n MaterialDetail\n }\n })\n export default class MaterialsListPrintTool extends Vue {\n\n @Prop({\n type: Array,\n required: true\n })\n materialList: any[];\n materialTemp: MaterialPrintElementBase[] = [];\n isSaveClicked: boolean = false;\n\n materialToProcess = {} as IMaterialDto;\n materialDetailModalTitle: string = '';\n processMaterialButton: string = '';\n editModeMaterialDetail: boolean = false;\n\n @Prop({\n type: Boolean,\n required: false\n })\n showProductsInfo: boolean;\n\n @Prop({\n required: false\n })\n product: any;\n\n @Prop({\n type: Boolean,\n required: false,\n default: true\n })\n editProductMode: boolean;\n\n @Prop({\n type: Boolean,\n required: false,\n default: false\n })\n fromProductDetail: boolean;\n\n @Prop({\n type: Boolean,\n required:false,\n default:true\n })\n isValidProductCode: boolean;\n \n general: any = {}; \n selectedPackageFormat: any = null;\n loading: boolean = false;\n optionsPackageFormats: any = new Array();\n defaultPackageFormat = { };\n templateNormal: boolean = false;\n materialSelected: any ={\n IdMaterial:null,\n Description:null,\n SerialNumber:null,\n BatchNumber:null,\n MaterialCode:null,\n PageNumber:1\n }\n\n resetMaterialSelected(){\n this.materialSelected.IdMaterial = null;\n this.materialSelected.Description = null;\n this.materialSelected.BatchNumber = null;\n this.materialSelected.SerialNumber = null;\n this.materialSelected.MaterialCode = null;\n this.materialSelected.PageNumber = 1;\n }\n\n async mounted() {\n this.general = General;\n this.defaultPackageFormat = {value: null, text: this.$t('PRODUCT.SELECTION_PACKAGE') as string}\n await this.getPackageFormats();\n this.materialTemp = this.materialList;\n }\n\n async deleteMaterial(material: MaterialPrintElementBase) {\n if(material.idMaterial === undefined || material.idMaterial === ''){\n let app = this;\n let callSaving = async () => {\n await app.deleteMaterialFromListDo(material);\n }\n General.confirm(this.$t('PRODUCT.DELETE_MATERIAL') as string, app, callSaving);\n } else {\n let app = this;\n let callSaving = async () => {\n await app.deleteMaterialDo(material);\n }\n General.confirm(this.$t('PRODUCT.DELETE_MATERIAL') as string, app, callSaving);\n }\n }\n \n async deleteMaterialDo(material: MaterialPrintElementBase) {\n this.loading = true;\n try {\n let response = await axios({\n method: \"delete\",\n url: General.GetApiUrl(\"/api/Material/DeleteMaterial?idMaterial=\" + material.idMaterial),\n withCredentials: true\n });\n this.$emit('afterMaterialDetailEditProduct');\n this.closeMaterialDetailModal();\n General.showAlertSuccess(this.$t('PRODUCT.MATERIAL_DELETED') as string, this);\n } catch(error) {\n General.HandleError(error, this, true);\n } finally {\n this.loading = false;\n }\n }\n\n async deleteMaterialFromListDo(material: MaterialPrintElementBase) {\n if(material.idMaterial || material.idMaterial == \"\") {\n this.materialTemp = this.materialTemp.filter((m) => {return m.materialCode != material.materialCode});\n }\n this.$emit('afterMaterialDetailAddProduct', this.materialTemp);\n }\n\n\t\topenMaterialDetail(material: any) { \n if(this.isValidProductCode) {\n if(material) {\n this.materialToProcess = {} as IMaterialDto;\n this.materialToProcess.idMaterial = material.idMaterial;\n this.materialToProcess.materialCode = material.materialCode;\n this.materialToProcess.originalDescription = material.originalDescription;\n this.materialDetailModalTitle = this.$t('PRODUCT.EDIT_MATERIAL') as string;\n this.processMaterialButton = this.$t('PRODUCT.SAVE_MATERIAL') as string;\n this.editModeMaterialDetail = true;\n } else {\n this.editModeMaterialDetail = false;\n this.materialToProcess = {} as IMaterialDto;\n this.materialDetailModalTitle = this.processMaterialButton = this.$t('PRODUCT.ADD_MATERIAL') as string;\n }\n this.$bvModal.show('material-detail-modal');\n } else {\n General.showAlertDanger(this.$t('PRODUCT.INSERT_PRODUCT') as string, this);\n }\n }\n\n closeMaterialDetailModal() {\n this.$bvModal.hide('material-detail-modal');\n }\n\n afterMaterialDetail(material: MaterialPrintElementBase, materialCodeTemp: string) {\n if(!this.editProductMode) {\n if(this.editModeMaterialDetail) {\n let index = this.materialTemp.findIndex((m) => m.materialCode === materialCodeTemp);\n this.materialTemp[index] = material;\n Vue.set(this.materialTemp[index], 'material', material); \n } else {\n this.materialTemp.push(material);\n Vue.set(this.materialTemp[this.materialTemp.length - 1], 'material', material);\n }\n this.$emit('afterMaterialDetailAddProduct', this.materialTemp);\n } else {\n this.$emit('afterMaterialDetailEditProduct');\n this.closeMaterialDetailModal();\n }\n this.closeMaterialDetailModal();\n this.editModeMaterialDetail = false;\n this.materialToProcess = {} as IMaterialDto;\n }\n \n openMaterialDo(material:any){ \n this.materialSelected.IdMaterial = material.idMaterial;\n this.materialSelected.Description = material.description;\n this.materialSelected.MaterialCode = material.materialCode;\n this.$bvModal.show('detail-labelMaterialRequest');\n }\n\n async openMaterial(materialSelected: any) { \n if(!this.materialSelected.PageNumber)\n General.showAlertDanger(\"Please define page number\",this);\n else{ \n \n this.loading = true; \n try {\n let response = await axios({\n method: 'post',\n url: General.GetApiUrl(\"/api/PackageLabel/DownloadPackageLabel\"), \n data:{\n IdMaterial:materialSelected.IdMaterial,\n SerialNumber:materialSelected.SerialNumber,\n BatchNumber:materialSelected.BatchNumber,\n PageNumber:materialSelected.PageNumber\n },\n withCredentials: true,\n responseType: 'blob'\n }); \n \n saveAs(new Blob([response.data]), materialSelected.MaterialCode + \".pdf\");\n } catch (error) {\n General.showAlertDanger(\"Download error, please retry. If the problem stll present contact your IT\", this); \n \n } finally {\n this.loading = false;\n }\n }\n \n }\n \n /*\n Metodo di verifica autorizzazione al processamento manuale dei prodotti/manuali, basato su 3 condizioni:\n 1: Utente facente parte di una country (Country Father) non gestita da SAP\n 2: Il componente viene renderizzato dai dettagli prodotto (O aggiunta prodotto), quindi non dalla pagina di ricerca materiali\n 3: il prodotto non e' stato importato da SAP\n */\n canUserManualProcessProduct() {\n return General.CanManualProcessProduct() && this.fromProductDetail && (this.product != null ? !this.product.importedFromSAP : true);\n }\n \n async getPackageFormats() {\n \n let apiUrl = General.GetApiUrl('/api/packagelabel/GetPackageLabelFormats');\n try {\n let response = await axios({\n method: 'get',\n url: apiUrl,\n responseType: 'json',\n withCredentials: true\n });\n\n this.optionsPackageFormats = this.convertPackageToSelect(response.data, true);\n } catch (error) {\n General.HandleError(error, this);\n }\n \n }\n\n convertPackageToSelect(data: any, addEmpty: boolean) {\n let outputData = new Array();\n if (addEmpty)\n outputData.push(this.defaultPackageFormat);\n data.forEach(function (item: any) {\n outputData.push({\n value: item.id,\n text: item.name\n });\n });\n return outputData;\n };\n get userCanPrint() {\n return General.CheckAuthorization(ClaimEnum.CanPrintPackageLabel);\n }\n materialCanBePrinted(material) {\n \n if (material.packageSize != undefined && material.packageSize != null) {\n return material.packageSize.item4;\n }\n return false;\n }\n /*\n getPackageLabelUrl(material:any):string {\n \n \n let url = General.getPackageLabelUrl(material.idMaterial, this.selectedPackageFormat, '0', '0', '0', '100', '0', this.templateNormal);\n \n \n return url;\n }\n */\n }\n","import { render, staticRenderFns } from \"./MaterialDetail.vue?vue&type=template&id=05fade76&scoped=true\"\nimport script from \"./MaterialDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./MaterialDetail.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 \"05fade76\",\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!./MaterialsListPrintTool.vue?vue&type=style&index=0&id=22ef00c1&prod&lang=css\"","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!./MaterialDetail.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!./MaterialDetail.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./MaterialsListPrintTool.vue?vue&type=template&id=22ef00c1\"\nimport script from \"./MaterialsListPrintTool.vue?vue&type=script&lang=ts\"\nexport * from \"./MaterialsListPrintTool.vue?vue&type=script&lang=ts\"\nimport style0 from \"./MaterialsListPrintTool.vue?vue&type=style&index=0&id=22ef00c1&prod&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 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('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[(!_vm.loading)?_c('div',[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Material Code *\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-input',{attrs:{\"value\":_vm.materialToProcess.materialCode,\"state\":_vm.returnState(_vm.materialToProcess.materialCode != null && _vm.materialToProcess.materialCode.length < 16,_vm.isSaveClicked)},model:{value:(_vm.materialToProcess.materialCode),callback:function ($$v) {_vm.$set(_vm.materialToProcess, \"materialCode\", $$v)},expression:\"materialToProcess.materialCode\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-2 col-form-label font-weight-bold\",attrs:{\"for\":\"textarea\"}},[_vm._v(\"Description *\")]),_c('div',{staticClass:\"col-sm-10\"},[_c('b-form-textarea',{attrs:{\"id\":\"textarea\",\"value\":_vm.materialToProcess.originalDescription,\"state\":_vm.returnState(_vm.materialToProcess.originalDescription != null,_vm.isSaveClicked),\"rows\":\"3\"},model:{value:(_vm.materialToProcess.originalDescription),callback:function ($$v) {_vm.$set(_vm.materialToProcess, \"originalDescription\", $$v)},expression:\"materialToProcess.originalDescription\"}})],1)])]):_vm._e(),_c('footer',{staticClass:\"modal-footer\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.processMaterialManual()}}},[_vm._v(\"Save Material\")])],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!./MaterialDetail.vue?vue&type=template&id=05fade76&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\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport axios from 'axios';\nimport { General } from '@/services/General';\nimport { IMaterialDto } from '@/interfaces/IMaterialDto';\nimport { ProductBase } from '@/entity/ProductBase';\nimport { MaterialPrintElementBase, MaterialProductDetailBase } from '@/entity/MaterialBase';\n\n@Component\nexport default class MaterialDetail extends Vue {\n\n @Prop({\n type: Boolean,\n required: false,\n default: false\n })\n editProductMode: boolean;\n\n @Prop({\n required: false\n })\n product: ProductBase;\n\n @Prop({\n required: false\n })\n materialToProcessProp: any;\n\n @Prop({\n required: false\n })\n materialListNewProduct: MaterialPrintElementBase[];\n\n materialToProcess = {} as IMaterialDto;\n materialCodeTemp: string = '';\n loading: boolean = false;\n isSaveClicked: boolean = false;\n materialDetailModalTitle: string = '';\n\n mounted() {\n this.materialToProcess = this.materialToProcessProp;\n this.materialCodeTemp = this.materialToProcessProp.materialCode; \n }\n\n returnState(condition: boolean, clickButton: boolean): boolean {\n if (clickButton) \n return condition;\n else \n return null;\n }\n\n async processMaterialManual(){\n this.isSaveClicked = true;\n if (!this.materialToProcess.materialCode || !this.materialToProcess.originalDescription) {\n General.showAlertDanger(\"Please check Required fields\", this);\n } else if (!this.product.Code) {\n General.showAlertDanger(\"Please, insert Product Code First\", this);\n } else if(!this.materialToProcess.materialCode.includes(this.product.Code)) {\n General.showAlertDanger(\"Invalid Material Code: does not include Product Code\", this);\n } else if(this.materialToProcess.materialCode.length > 15) {\n General.showAlertDanger(\"Invalid Material Code: max 15 characters length\", this);\n } else {\n if(this.editProductMode){\n if(this.materialToProcess.idMaterial === undefined) {\n let app = this;\n let callSaving = async () => {\n await app.addMaterialManualDo();\n }\n General.confirm('Please confirm that you want to add this Material.', app, callSaving);\n } else {\n let app = this;\n let callSaving = async () => {\n await app.editMaterialManualDo();\n }\n General.confirm('Please confirm that you want to edit this Material.', app, callSaving);\n }\n } else {\n if(this.materialListNewProduct.findIndex(x => x.materialCode === this.materialToProcess.materialCode) >= 0\n && this.materialCodeTemp != this.materialToProcess.materialCode) {\n General.showAlertDanger(\"Material code already added\", this);\n } else {\n let app = this;\n let callSaving = async () => {\n await app.returnMaterialToListDo();\n }\n General.confirm('Please confirm that you want to edit Material list.', app, callSaving);\n }\n }\n }\n }\n\n async returnMaterialToListDo() {\n this.loading = true;\n try {\n let material = await this.GetMaterialInfoByCodeAndDescription()\n this.$emit('afterMaterialDetail', material, this.materialCodeTemp);\n General.showAlertSuccess(\"Material list successfully updated.\", this);\n } catch(error) {\n General.HandleError(error, this, true);\n } finally {\n this.loading = false;\n this.isSaveClicked = false;\n }\n }\n\n async GetMaterialInfoByCodeAndDescription() : Promise {\n let materialInfo: MaterialPrintElementBase = null;\n let response = await axios.post(\n General.GetApiUrl(\"/api/Material/GetMaterialInfoByCodeAndDescription\"),\n {\n materialCode: this.materialToProcess.materialCode,\n description: this.materialToProcess.originalDescription\n },\n {\n withCredentials: true\n }\n );\n materialInfo = {materialCode: response.data.materialCode\n , description: response.data.description\n , originalDescription: response.data.originalDescription\n , packageCode: response.data.packageCode\n , isDead: response.data.isDead\n , isPhaseOut: response.data.isPhaseOut\n , idMaterial: (this.materialToProcess.idMaterial ? this.materialToProcess.idMaterial : '')\n , barCode: response.data.barCode\n , product: new MaterialProductDetailBase({techSpecs: '', viscosity: '', approvals: '', performanceLevel: ''})};\n return materialInfo;\n }\n\n async addMaterialManualDo() {\n this.loading = true;\n try {\n let response = await axios({\n method: \"post\",\n url: General.GetApiUrl(\"/api/Material/AddMaterial\"),\n withCredentials: true,\n data: {\n idProduct: this.product.IdProduct,\n materialCode: this.materialToProcess.materialCode,\n description: this.materialToProcess.originalDescription,\n }\n });\n this.$emit('afterMaterialDetail');\n General.showAlertSuccess(\"Material successfully added.\", this);\n } catch(error) {\n General.HandleError(error, this, true);\n } finally {\n this.loading = false;\n this.isSaveClicked = false;\n }\n }\n\n async editMaterialManualDo() {\n this.loading = true;\n try {\n let response = await axios({\n method: \"put\",\n url: General.GetApiUrl(\"/api/Material/UpdateMaterial\"),\n withCredentials: true,\n data: {\n idMaterial: this.materialToProcess.idMaterial,\n idProduct: this.product.IdProduct,\n materialCode: this.materialToProcess.materialCode,\n description: this.materialToProcess.originalDescription\n }\n });\n this.$emit('afterMaterialDetail');\n General.showAlertSuccess(\"Material successfully updated\", this);\n } catch(error) {\n General.HandleError(error, this, true);\n } finally {\n this.loading = false;\n this.isSaveClicked = false;\n }\n }\n}\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!./MaterialsListPrintTool.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!./MaterialsListPrintTool.vue?vue&type=script&lang=ts\""],"sourceRoot":""}