{"version":3,"sources":["webpack:///./src/views/modules/product/ComponentForm.vue?fc81","webpack:///./src/views/modules/product/TypeComponentDialog.vue?4435","webpack:///src/views/modules/product/TypeComponentDialog.vue","webpack:///./src/views/modules/product/TypeComponentDialog.vue?b222","webpack:///./src/views/modules/product/TypeComponentDialog.vue","webpack:///./src/services/modules/product/TypeComponent.service.js","webpack:///src/views/modules/product/ComponentForm.vue","webpack:///./src/views/modules/product/ComponentForm.vue?97e8","webpack:///./src/views/modules/product/ComponentForm.vue","webpack:///./src/mixins/page/pageDialogFormMixin.js","webpack:///./src/model/types/resource/SettingType.js","webpack:///./src/services/modules/general/TypeMeasure.service.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","noOptionAdd","on","onTypeComponentDialog","currentPage","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","name","pageFormIsLoaded","onSubmit","scopedSlots","_u","key","fn","ref","error","model","value","form","callback","$$v","$set","expression","modeCodeLabel","SettingType","mode","MODE_CODE_LABEL_MANUAL","componentCodeLabel","MODE_CODE_LABEL_AUTOMATIC_DEFAULT","_e","typeComponentOptions","search","$event","addNoOption","_v","openDialogForm","proxy","typeMeasureOptions","userAuth","entityFieldCustomized","instrumentId","pageId","fieldKey","staticClass","directives","rawName","availableAllGroups","_l","family","groupId","_s","groupLabel","selectGroup","options","item","groupProductList","find","a","groupProductId","addGroupSelected","text","staticRenderFns","title","okText","id","showModal","resetModal","components","mixins","pageDialogFormMixin","data","typeComponentId","note","methods","watch","component","path","service","params","http","list","pageDefaultMixin","genKey","enableGeneralFields","componentId","measureId","groupProductOptions","mountedPrepare","checked","el","indexRemove","itemInserted","push","functionsMixins","busy","dialogIsLoaded","primaryKeyColumn","yesOrNotOptions","CurrentPageEntity","UserAuthEntity","setUserAuth","v","console","log","props","type","String","default","primaryKey","Number","Object","foreignKey","required","mounted","mountedContinued","setSubmitDialogDefault","executeSubmitDialog","successInsert","crudGeneral","remove","then","response","catch","responseError","keys","forEach","save","putDialog","setInsertDialog","onClose","$emit","resetFormDefault","getEmbedAddressApi","address","street","neighborhood","provinceAbbreviation","cityId","readModal","changeBusy","isInsert","get","getById","setTimeout","$nextTick","$bvModal","hide","message","general","fields","length","indexOf","obj","substring","objField","replace","alert","warn","request","TYPE_MODEL_CODE_LABEL","TYPE_INSTRUMENT_CODE_LABEL","TYPE_COMPONENT_CODE_LABEL","TYPE_COMPOUND_CODE_LABEL","TYPE_RAW_MATERIAL_CODE_LABEL","TYPE_MATERIAL_CODE_LABEL","TYPE_MACHINE_CODE_LABEL","TYPE_EMPLOYEE_CODE_LABEL","TYPE_PRODUCT_SEARCH_MEASURE_RANGE_DEFAULT","TYPE_ENTERPRISE_CODE_LABEL","TYPE_ENVIRONMENT_CODE_LABEL","TYPE_CHECKLIST_ITEM_CODE_LABEL","TYPE_PATHOLOGY_CODE_LABEL","TYPE_SPOT_FOLDER_CODE_LABEL","TYPE_INSPECTOR_CODE_LABEL","RENDER_TAG_COD_LABEL"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,sBAAsB,CAACE,MAAM,CAAC,gBAAgBN,EAAIO,aAAaC,GAAG,CAAC,SAAWR,EAAIS,yBAAyBL,EAAG,cAAc,CAACE,MAAM,CAAC,cAAcN,EAAIU,YAAYC,cAAc,MAAQX,EAAIY,EAAE,WAAWZ,EAAIU,YAAYG,UAAU,QAAUb,EAAIc,QAAQ,OAASd,EAAIe,OAAO,cAAgBf,EAAIgB,cAAc,qBAAqBhB,EAAIiB,qBAAqB,gBAAgBjB,EAAIY,EAAE,gBAAgB,aAAaZ,EAAIU,YAAYQ,KAAK,MAAQlB,EAAImB,kBAAkBX,GAAG,CAAC,SAAWR,EAAIoB,UAAUC,YAAYrB,EAAIsB,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAC/nB,IAAIV,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,EAAKG,MACd,EAAKA,MAAMH,GAAOyI,EAAOzI,GAEzBgJ,MAAM,2BAA6BhJ,EAAM,MAAQyI,EAAOzI,OAYxEtB,KAAKgB,sBAAuB,OAIK,MAA1BS,EAAM0G,SAASrH,SAEtBwJ,MAAM,2GACNtD,QAAQuD,KAAK9I,EAAM0G,gBAIhB1G,EAAM+I,SAEbF,MAAM,8CACNtD,QAAQuD,KAAK9I,EAAM+I,WAGnBF,MAAM,8CACNtD,QAAQC,IAAIxF,GACZuF,QAAQuD,KAAK,QAAS9I,EAAMoI,c,oCC7R5C,IAAM1C,EAAO,CACTsD,sBAAuB,EACvBC,2BAA4B,EAC5BC,0BAA2B,EAC3BC,yBAA0B,EAC1BC,6BAA8B,EAC9BC,yBAA0B,EAC1BC,wBAAyB,EACzBC,yBAA0B,EAC1BC,0CAA2C,EAC3CC,2BAA4B,GAC5BC,4BAA6B,GAC7BC,+BAAgC,GAChCC,0BAA2B,GAC3BC,4BAA6B,GAC7BC,0BAA2B,IAGzBzL,EAAS,CACX0L,qBAAsB,oBAGpBrJ,EAAO,CACTG,kCAAmC,oBACnCF,uBAAwB,UAGb,QACX+E,OACArH,SACAqC,S,0EC3BEmD,EAAO,uBAEPC,E,gGAEF,SAAWC,GACP,OAAOC,OAAKC,KAAKJ,EAAO,cAAcE,O,KAM/B,WAAID","file":"js/chunk-389866f8.f80a3e01.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('TypeComponentDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeComponentDialog}}),_c('t-page-form',{attrs:{\"submit-text\":_vm.currentPage.singularTitle,\"title\":_vm.t('form-of')+_vm.currentPage.pageTitle,\"command\":_vm.command,\"status\":_vm.status,\"generalErrors\":_vm.generalErrors,\"check-errors-again\":_vm.checkErrorsComponent,\"go-back-title\":_vm.t('go-back-list'),\"go-back-to\":_vm.currentPage.name,\"busy\":!_vm.pageFormIsLoaded},on:{\"onSubmit\":_vm.onSubmit},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-form-card',{attrs:{\"title\":\"Dados Básicos\"}},[_c('b-row',[_c('t-input',{attrs:{\"add-error\":_vm.error.name,\"label\":\"Descrição\",\"cols\":\"9\",\"required\":\"\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}}),(_vm.modeCodeLabel === _vm.SettingType.mode.MODE_CODE_LABEL_MANUAL)?_c('t-input',{attrs:{\"add-error\":_vm.error.componentCodeLabel,\"upper\":\"\",\"cols\":\"3\",\"label\":\"Cód. Componente\",\"code-label\":\"\",\"help\":\"Código inserido manualmente conforme configurado em Produtos > Configurações > Parâmetros\",\"required\":\"\"},model:{value:(_vm.form.componentCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"componentCodeLabel\", $$v)},expression:\"form.componentCodeLabel\"}}):(_vm.modeCodeLabel === _vm.SettingType.mode.MODE_CODE_LABEL_AUTOMATIC_DEFAULT)?_c('t-input',{attrs:{\"add-error\":_vm.error.componentCodeLabel,\"upper\":\"\",\"cols\":\"3\",\"fixed\":\"\",\"label\":\"Cód. Componente\",\"help\":\"Código inserido automaticamente conforme configurado em Produtos > Configurações > Parâmetros\"},model:{value:(_vm.form.componentCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"componentCodeLabel\", $$v)},expression:\"form.componentCodeLabel\"}}):_vm._e()],1),_c('t-input',{attrs:{\"options\":_vm.typeComponentOptions,\"label\":\"Tipo de Componente\",\"select\":\"\",\"required\":\"\"},scopedSlots:_vm._u([{key:\"no-options\",fn:function(ref){\nvar search = ref.search;\nreturn [_c('b-link',{on:{\"click\":function($event){return _vm.addNoOption('modal-type-component',search)}}},[_vm._v(\"Cadastrar Tipo\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar novo tipo\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-component')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeComponentId),callback:function ($$v) {_vm.$set(_vm.form, \"typeComponentId\", $$v)},expression:\"form.typeComponentId\"}}),_c('t-input',{attrs:{\"label\":\"Tipo de Medida\",\"options\":_vm.typeMeasureOptions,\"select\":\"\",\"required\":\"\"},model:{value:(_vm.form.measureId),callback:function ($$v) {_vm.$set(_vm.form, \"measureId\", $$v)},expression:\"form.measureId\"}}),_c('t-page-form-field-customized',{ref:\"fieldsGeneral\",attrs:{\"command\":_vm.command,\"status\":status,\"user-auth\":_vm.userAuth,\"fields-customizable\":_vm.entityFieldCustomized('page'),\"primary-key\":_vm.form.instrumentId,\"foreign-key\":_vm.currentPage.pageId,\"busy\":!_vm.pageFormIsLoaded,\"primary-key-column\":_vm.fieldKey,\"foreign-key-column\":\"pageId\"}}),_c('t-input',{attrs:{\"label\":\"Observações\",\"max-length\":\"500\",\"textarea\":\"\"},model:{value:(_vm.form.note),callback:function ($$v) {_vm.$set(_vm.form, \"note\", $$v)},expression:\"form.note\"}}),_c('t-input-status',{model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}})],1),_c('t-form-card',{attrs:{\"title\":\"Grupos de produtos\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.availableAllGroups),callback:function ($$v) {_vm.$set(_vm.form, \"availableAllGroups\", $$v)},expression:\"form.availableAllGroups\"}},[_vm._v(\" Disponibilizar este componente a todos os grupos de produtos? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais os produtos podem utilizar este componente, basta desmarcar esta opção e selecionar os grupos de produtos desejados.\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.form.availableAllGroups),expression:\"!form.availableAllGroups\"}],staticClass:\"mt-2\"},_vm._l((_vm.groupProductOptions),function(family){return _c('div',{key:family.groupId,staticClass:\"pb-2 mb-2 border-bottom\"},[_c('h6',{staticClass:\"mb-0\"},[_c('b',[_vm._v(_vm._s(family.groupLabel))])]),_c('div',{staticClass:\"mb-2\"},[_c('small',[_c('b-link',{on:{\"click\":function($event){return _vm.selectGroup(true,family.options)}}},[_vm._v(\"Todos\")]),_vm._v(\" | \"),_c('b-link',{on:{\"click\":function($event){return _vm.selectGroup(false,family.options)}}},[_vm._v(\"Nenhum\")])],1)]),_vm._l((family.options),function(item){return _c('b-form-checkbox',{key:item.value,staticClass:\"ml-3\",attrs:{\"checked\":_vm.form.groupProductList.find(function (a) { return a.groupProductId === item.value; }) != null},on:{\"change\":function($event){return _vm.addGroupSelected($event,item.value)}}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])})],2)}),0)],1)]}}])},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.componentId),callback:function ($$v) {_vm.$set(_vm.form, \"componentId\", $$v)},expression:\"form.componentId\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-dialog-form',{ref:\"dialog_form\",attrs:{\"generalErrors\":_vm.generalErrors,\"title\":_vm.title,\"ok-text\":_vm.okText,\"id\":_vm.id,\"command\":_vm.command},on:{\"show\":_vm.showModal,\"hidden\":_vm.resetModal,\"onSubmit\":_vm.onSubmit}},[_c('t-input',{attrs:{\"add-error\":_vm.error.name,\"label\":\"Tipo de Componente\",\"submitted\":\"\",\"focus\":\"\",\"required\":\"\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TypeComponentDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TypeComponentDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TypeComponentDialog.vue?vue&type=template&id=18239ec7&\"\nimport script from \"./TypeComponentDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TypeComponentDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"product/type-component\"\r\n\r\nclass service {\r\n\r\n selectList(params) {\r\n return http.list(path + \"/selectList\",params);\r\n }\r\n\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ComponentForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ComponentForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ComponentForm.vue?vue&type=template&id=4246b69a&\"\nimport script from \"./ComponentForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ComponentForm.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import functionsMixins from \"@/mixins/page/functionsMixins\";\r\nimport {crudGeneral} from \"@/services/resource/GeneralCRUD.service\";\r\nimport CurrentPageEntity from \"@/model/entities/resource/entity/CurrentPageEntity\";\r\nimport UserAuthEntity from \"@/model/entities/resource/entity/UserAuthEntity\";\r\n\r\nexport default {\r\n mixins: [functionsMixins],\r\n data() {\r\n return {\r\n path: \"\",\r\n form: {},\r\n error: {},\r\n status: \"\",\r\n busy: false,\r\n generalErrors: [],\r\n dialogIsLoaded: false,\r\n primaryKeyColumn: \"\",/*Declarado para ser sobreposto*/\r\n genKey: false, //Por padrão os formulários não possuem gerador de chave temporária\r\n enableGeneralFields: false,\r\n yesOrNotOptions: [{value: \"Y\", text: this.t('yes')}, {value: \"N\", text: this.t('no')}],\r\n itemInserted: {\r\n groupId: 0,\r\n value: 0,\r\n text: \"\",\r\n },\r\n currentPage: CurrentPageEntity,\r\n userAuth: UserAuthEntity,\r\n }\r\n },\r\n watch:{\r\n setUserAuth(v){\r\n console.log(v)\r\n this.userAuth = v\r\n }\r\n },\r\n props: {\r\n command: {\r\n type: String,\r\n default: 'insert'\r\n },\r\n noOptionAdd: String,\r\n primaryKey: Number,\r\n setUserAuth: Object,\r\n foreignKey: {\r\n type: Number,\r\n default: 0,\r\n required: false,\r\n },\r\n /*NUNCA PODERÁ DECLARAR AQUI foreignKeyColumn, POIS EXISTE TELAS QUE UTILIZAM EM DATA*/\r\n },\r\n\r\n async mounted() {\r\n\r\n this.userAuth = this.setUserAuth\r\n\r\n await this.mountedContinued()\r\n\r\n\r\n\r\n },\r\n\r\n methods: {\r\n\r\n //Método declarado para ser sobreposto\r\n async mountedContinued() {\r\n\r\n },\r\n\r\n async setSubmitDialogDefault() {\r\n\r\n await this.executeSubmitDialog(this.path, this.command, () => {\r\n this.successInsert()\r\n })\r\n\r\n },\r\n\r\n async executeSubmitDialog(path, command, callback) {\r\n\r\n this.status = \"sending\"\r\n this.checkErrorsComponent = false\r\n\r\n\r\n if (command === 'delete') {\r\n\r\n await crudGeneral.remove(path, this.primaryKey).then(response => {\r\n\r\n callback(response.data)\r\n\r\n }).catch(error => this.responseError(error))\r\n\r\n } else {\r\n\r\n //Limpa campos de erros (caso existam)\r\n Object.keys(this.error).forEach(key => {\r\n this.error[key] = \"\"\r\n });\r\n\r\n\r\n //Crud enviado, por tanto será feito de forma automatica a inclusão e alteração\r\n await crudGeneral.save(path, command, this.form).then(response => {\r\n callback(response.data)\r\n }).catch(error => this.responseError(error))\r\n\r\n\r\n }\r\n\r\n\r\n },\r\n\r\n async putDialog(path, callback) {\r\n\r\n this.status = \"sending\"\r\n this.checkErrorsComponent = false\r\n\r\n await this.executeSubmitDialog(path, 'update', callback)\r\n\r\n },\r\n\r\n\r\n async setInsertDialog(path, callback) {\r\n\r\n this.status = \"sending\"\r\n this.checkErrorsComponent = false\r\n\r\n //console.log(path, callback)\r\n\r\n await this.executeSubmitDialog(path, 'insert', callback)\r\n\r\n },\r\n\r\n onClose() {\r\n\r\n this.resetModal()\r\n\r\n this.$emit(\"onClose\")\r\n\r\n },\r\n\r\n resetModal() {\r\n\r\n this.status = \"\"\r\n\r\n //Limpa os campos primitivos do formulário de forma automatica\r\n this.resetFormDefault(this.form)\r\n\r\n //this.$refs.dialog_form.setReset()\r\n\r\n },\r\n\r\n getEmbedAddressApi(el, address) {\r\n\r\n this.form[el].street = address.street\r\n this.form[el].neighborhood = address.neighborhood\r\n this.form[el].provinceAbbreviation = address.provinceAbbreviation\r\n this.form[el].cityId = address.cityId\r\n\r\n },\r\n\r\n async readModal(changeBusy = false) {\r\n\r\n if (this.genKey && this.isInsert()) {\r\n\r\n await crudGeneral.get(this.path + \"/createId\").then(\r\n response => {\r\n this.form[this.primaryKeyColumn] = response.data.id\r\n this.genKey = false //Indica que a chave já foi criada\r\n }\r\n ).catch(error => this.responseError(error))\r\n\r\n if (changeBusy)\r\n this.busy = false\r\n\r\n\r\n } else if (this.command !== 'insert') {\r\n\r\n if (changeBusy)\r\n this.busy = true\r\n\r\n await crudGeneral.getById(this.path, this.primaryKey).then(\r\n (response) => {\r\n\r\n this.form = response.data\r\n\r\n if (changeBusy)\r\n this.busy = false\r\n\r\n }\r\n ).catch(error => this.responseError(error))\r\n\r\n }\r\n\r\n },\r\n\r\n successInsert() {\r\n\r\n setTimeout(() => {\r\n\r\n //Fecha e devolve os valores desejado para continuidade\r\n this.$nextTick(() => {\r\n\r\n this.$bvModal.hide(this.id)\r\n this.$emit('onSubmit', this.itemInserted)\r\n\r\n });\r\n\r\n }, 50)\r\n\r\n },\r\n\r\n responseError(error) {\r\n\r\n //Retorna o status para o padrão de tentativa de subject enviado\r\n this.status = \"subject\"\r\n\r\n if (error.response) {\r\n\r\n if (error.response.status === 500) {\r\n\r\n\r\n if (error.response.data && error.response.data.message) {\r\n\r\n this.generalErrors = []\r\n this.generalErrors.push(error.response.data.message)\r\n\r\n } else {\r\n\r\n const general = error.response.data.general\r\n const fields = error.response.data.fields\r\n\r\n if (general && general.length > 0) {\r\n this.generalErrors = general\r\n }\r\n\r\n Object.keys(fields).forEach(key => {\r\n\r\n if (key.indexOf(\".\") > 0) {\r\n\r\n const obj = key.substring(0, key.indexOf(\".\"))\r\n const objField = key.replace(obj + \".\", '')\r\n\r\n if ([objField] in this[\"error_\" + obj]) {\r\n this[\"error_\" + obj][objField] = fields[key]\r\n } else {\r\n alert('Falha encontrada campo relacionado: ' + key + ' - ' + fields[key])\r\n }\r\n\r\n //console.log(\"Objeto [\" + obj + \"]\")\r\n //console.log(\"Field [\" + objField + \"]\")\r\n\r\n } else {\r\n\r\n if ([key] in this.error) {\r\n this.error[key] = fields[key]\r\n } else {\r\n alert('Falha encontrada campo: ' + key + ' - ' + fields[key])\r\n }\r\n\r\n }\r\n\r\n\r\n });\r\n\r\n }\r\n\r\n\r\n //Marca para os componentes de formulario realizarem nova verificação interna (usado principalmente em Tabs)\r\n this.checkErrorsComponent = true\r\n //-----------------------------------------------------------------------------------------------------------\r\n\r\n\r\n } else if (error.response.status === 400) {\r\n\r\n alert('Falha ao tentar enviar, por favor tente novamente ou informe nosso suporte técnico o seguinte erro: 400')\r\n console.warn(error.response);\r\n\r\n }\r\n\r\n } else if (error.request) {\r\n // The request was made but no response was received\r\n alert('Falha de conexão, verifique sua internet 2')\r\n console.warn(error.request);\r\n } else {\r\n // Something happened in setting up the request that triggered an Error\r\n alert('Falha de conexão, verifique sua internet 3')\r\n console.log(error)\r\n console.warn('Error', error.message);\r\n }\r\n\r\n },\r\n\r\n\r\n },\r\n\r\n\r\n}\r\n\r\n\r\n","const type = {\r\n TYPE_MODEL_CODE_LABEL: 1,\r\n TYPE_INSTRUMENT_CODE_LABEL: 2,\r\n TYPE_COMPONENT_CODE_LABEL: 3,\r\n TYPE_COMPOUND_CODE_LABEL: 4,\r\n TYPE_RAW_MATERIAL_CODE_LABEL: 5,\r\n TYPE_MATERIAL_CODE_LABEL: 6,\r\n TYPE_MACHINE_CODE_LABEL: 7,\r\n TYPE_EMPLOYEE_CODE_LABEL: 8,\r\n TYPE_PRODUCT_SEARCH_MEASURE_RANGE_DEFAULT: 9,\r\n TYPE_ENTERPRISE_CODE_LABEL: 10,\r\n TYPE_ENVIRONMENT_CODE_LABEL: 11,\r\n TYPE_CHECKLIST_ITEM_CODE_LABEL: 12,\r\n TYPE_PATHOLOGY_CODE_LABEL: 13,\r\n TYPE_SPOT_FOLDER_CODE_LABEL: 14,\r\n TYPE_INSPECTOR_CODE_LABEL: 15,\r\n}\r\n\r\nconst render = {\r\n RENDER_TAG_COD_LABEL: \"settingCodeLabel\",\r\n}\r\n\r\nconst mode = {\r\n MODE_CODE_LABEL_AUTOMATIC_DEFAULT: \"automatic-default\",\r\n MODE_CODE_LABEL_MANUAL: \"manual\",\r\n}\r\n\r\nexport default {\r\n type,\r\n render,\r\n mode\r\n}","import http from '../../config/http-common';\r\n\r\n//Usado somente se for realmente necessário algo fora do padrão GeneralCRUD.service.js\r\nconst path = \"general/type-measure\"\r\n\r\nclass service {\r\n\r\n selectList(params) {\r\n return http.list(path + \"/selectList\",params);\r\n }\r\n\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n"],"sourceRoot":""}