{"version":3,"sources":["webpack:///./src/services/modules/setting/User.service.js","webpack:///./src/services/modules/agent/Sector.service.js","webpack:///./src/views/modules/agent/ExecutorForm.vue?759a","webpack:///src/views/modules/agent/ExecutorForm.vue","webpack:///./src/views/modules/agent/ExecutorForm.vue?0aca","webpack:///./src/views/modules/agent/ExecutorForm.vue","webpack:///./src/views/embed/general/e-person.vue?c2af","webpack:///src/views/embed/general/e-person.vue","webpack:///./src/views/embed/general/e-person.vue?42a6","webpack:///./src/views/embed/general/e-person.vue"],"names":["path","userService","state","user","password","save_login","request","username","platform","http","customAxios","post","then","response","login","data","account","domain","name","accountName","accountPrefix","authorization","token","tempPassword","module","custom","helpDocUrl","enableAllCompanies","enableAllEnterprises","companies","localStorage","setItem","JSON","stringify","removeItem","template","$store","commit","recoveryToken","recoveryPin","params","list","service","URLSearchParams","set","render","_vm","this","_h","$createElement","_c","_self","attrs","currentPage","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","pageFormIsLoaded","on","onSubmit","model","value","form","callback","$$v","$set","expression","yesOrNotOptions","yesOrNotLinkUser","directives","rawName","usersOptions","error","userId","onYesLinkUser","_v","warningSendByEmail","scopedSlots","_u","key","fn","proxy","person","error_person","getEmbedCNPJApi","address","getEmbedAddressApi","staticClass","staticRenderFns","mixins","pageDefaultMixin","components","genKey","fieldKey","executorId","executorNumber","title","enableAllSectors","warningSendByWhatsApp","warningEmail","warningWhatsApp","sectors","typePerson","shortName","companyName","federalTaxpayer","otherPersonalDocument","provinceTaxpayer","provinceTaxpayerExempted","cityTaxpayer","country","zipcode","street","number","complement","neighborhood","provinceAbbreviation","cityId","note","sectorsIds","sectorsList","viewFieldsPageSector","methods","mountedPrepare","computed","component","onlyCompany","_e","typePersonOptions","_t","notRequired","setPersonAndAddress","isCompany","nameRequired","props","type","String","required","Boolean","default","addressRelationName","Object","$emit","cnpjAPI"],"mappings":"4LAGMA,EAAO,aAEPC,E,oJAEF,WAAYC,EAAOC,EAAMC,EAAUC,GAAn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C,OAAOoB,aAGtCoB,QAAS,CAEPS,oBAFJ,SAEA,GAEMxF,KAAKmG,MAAM,SAAUnG,KAAK7B,KAAM6B,KAAKiG,oBAAqBG,KAK9D,QAvDF,WAuDA,wJAGA,iCACA,uBAJA,gDClIgX,I,YCO5WlB,EAAY,eACd,EACApF,EACA+C,GACA,EACA,KACA,KACA,MAIa,OAAAqC,E","file":"js/chunk-6f4adcac.bf2ea962.js","sourcesContent":["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 = \"admin/user\"\r\n\r\nclass userService {\r\n\r\n async login(state, user, password, save_login) {\r\n\r\n const request = {username: user, password: password, platform: 'web'};\r\n return await http.customAxios.post(\"login\", request).then((response) => {\r\n\r\n const login = response.data\r\n\r\n let account = {\r\n domain: login.domain,\r\n name: login.name,\r\n accountName: login.accountName,\r\n accountPrefix: login.accountPrefix,\r\n login: user,\r\n authorization: login.authorization,\r\n token: login.token,\r\n tempPassword: login.tempPassword,\r\n module: login.module,\r\n custom: login.custom,\r\n helpDocUrl: login.helpDocUrl,\r\n enableAllCompanies: login.enableAllCompanies,\r\n enableAllEnterprises: login.enableAllEnterprises,\r\n companies: login.companies\r\n }\r\n\r\n if (save_login) {\r\n localStorage.setItem('username', JSON.stringify(user))\r\n } else {\r\n localStorage.removeItem('username')\r\n }\r\n\r\n localStorage.setItem('account', JSON.stringify(account))\r\n localStorage.setItem('template', JSON.stringify(response.data.template))\r\n state.$store.commit(\"setAccount\", account)\r\n\r\n })\r\n\r\n }\r\n\r\n async recoveryRequest(username) {\r\n\r\n const request = {username: username, platform: 'web'};\r\n return await http.customAxios.post(\"recovery/request\", request).then((response) => response.data)\r\n\r\n }\r\n\r\n async recoverySubmit(username, recoveryToken, recoveryPin, password) {\r\n\r\n const request = {\r\n username: username,\r\n recoveryToken: recoveryToken,\r\n recoveryPin: recoveryPin,\r\n password: password\r\n };\r\n return await http.customAxios.post(\"recovery/submit\", request).then((response) => response.data)\r\n\r\n }\r\n\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 userService();\r\n\r\n\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 = \"agent/type-sector\"\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 getAllSectors() {\r\n let params = new URLSearchParams()\r\n params.set(\"status\", \"1\")\r\n return http.list(path + \"/selectAll\",params);\r\n }\r\n\r\n\r\n}\r\n\r\nexport default new service();\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-form',{attrs:{\"multi-cards\":\"\",\"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}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.executorId),callback:function ($$v) {_vm.$set(_vm.form, \"executorId\", $$v)},expression:\"form.executorId\"}}),_c('t-form-card',{attrs:{\"title\":\"Dados Básicos\",\"icon-info-square\":\"\"}},[_c('t-input',{attrs:{\"label\":\"Responsável vinculado a um usuário da plataforma?\",\"help\":\"Deixe como Não somente se desejar cadastrar um executor que não possua acesso, entretando você poderá inserir Responsáveis de forma rápida através do cadastro de usuários, onde é possÃvel inclusive habilitar acesso somente via código.\",\"options\":_vm.yesOrNotOptions,\"radio\":\"\"},model:{value:(_vm.yesOrNotLinkUser),callback:function ($$v) {_vm.yesOrNotLinkUser=$$v},expression:\"yesOrNotLinkUser\"}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.onYesLinkUser),expression:\"onYesLinkUser\"}]},[_c('t-input',{attrs:{\"options\":_vm.usersOptions,\"add-error\":_vm.error.userId,\"label\":\"Usuário da plataforma\",\"disable-unique-select\":\"\",\"required\":_vm.onYesLinkUser,\"select\":\"\"},model:{value:(_vm.form.userId),callback:function ($$v) {_vm.$set(_vm.form, \"userId\", $$v)},expression:\"form.userId\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.onYesLinkUser),expression:\"!onYesLinkUser\"}]},[_c('t-input',{attrs:{\"label\":\"Denominação\",\"required\":!_vm.onYesLinkUser},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1)],1),_c('t-form-card',{attrs:{\"title\":\"Avisos\",\"icon-chat-right-text\":\"\"}},[_c('h6',[_vm._v(\"Enviar avisos de apontamentos por:\")]),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('t-input',{attrs:{\"checked\":\"\",\"label\":\"E-mail\"},model:{value:(_vm.form.warningSendByEmail),callback:function ($$v) {_vm.$set(_vm.form, \"warningSendByEmail\", $$v)},expression:\"form.warningSendByEmail\"}}),_c('t-input',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.form.warningSendByEmail),expression:\"form.warningSendByEmail\"}],attrs:{\"class-icon-group\":\"icon-mail-colored\",\"email-multiple\":\"\",\"required\":_vm.form.warningSendByEmail,\"label\":\"E-mail para envio\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-envelope')]},proxy:true}]),model:{value:(_vm.form.warningEmail),callback:function ($$v) {_vm.$set(_vm.form, \"warningEmail\", $$v)},expression:\"form.warningEmail\"}})],1)],1)],1),_c('t-form-card',{attrs:{\"title\":\"Dados Adicionais\",\"icon-folder\":\"\"}},[_c('e-person',{attrs:{\"person\":_vm.form.person,\"not-required\":\"\",\"command\":_vm.command,\"error\":_vm.error_person,\"status\":_vm.status},on:{\"getApi\":_vm.getEmbedCNPJApi}}),_c('e-address',{attrs:{\"address\":_vm.form.address,\"not-required\":\"\",\"command\":_vm.command,\"status\":_vm.status},on:{\"getApi\":_vm.getEmbedAddressApi}}),_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',{staticClass:\"ml-1\",attrs:{\"text\":\"Responsável\"},model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n\r\n <t-page>\r\n\r\n <t-page-form multi-cards :submit-text=\"currentPage.singularTitle\"\r\n :title=\"t('form-of')+currentPage.pageTitle\"\r\n :command=\"command\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmit\"\r\n :check-errors-again=\"checkErrorsComponent\"\r\n :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\" :busy=\"!pageFormIsLoaded\">\r\n\r\n\r\n <t-input v-model=\"form.executorId\" hidden/>\r\n\r\n <t-form-card title=\"Dados Básicos\" icon-info-square>\r\n\r\n <t-input label=\"Responsável vinculado a um usuário da plataforma?\"\r\n help=\"Deixe como Não somente se desejar cadastrar um executor que não possua acesso, entretando você poderá inserir Responsáveis de forma rápida através do cadastro de usuários, onde é possÃvel inclusive habilitar acesso somente via código.\"\r\n v-model=\"yesOrNotLinkUser\" :options=\"yesOrNotOptions\"\r\n radio/>\r\n\r\n <div v-show=\"onYesLinkUser\">\r\n\r\n <t-input v-model=\"form.userId\" :options=\"usersOptions\" :add-error=\"error.userId\"\r\n label=\"Usuário da plataforma\" disable-unique-select :required=\"onYesLinkUser\" select/>\r\n\r\n </div>\r\n\r\n <div v-show=\"!onYesLinkUser\">\r\n\r\n <t-input v-model=\"form.title\" label=\"Denominação\" :required=\"!onYesLinkUser\"/>\r\n\r\n </div>\r\n\r\n\r\n </t-form-card>\r\n\r\n <t-form-card title=\"Avisos\" icon-chat-right-text>\r\n\r\n <h6>Enviar avisos de apontamentos por:</h6>\r\n\r\n\r\n <b-row>\r\n\r\n<!-- <b-col cols=\"6\" style=\"max-width: 300px\">\r\n\r\n <t-input v-model=\"form.warningSendByWhatsApp\" checked label=\"WhatsApp\" />\r\n <t-input v-model=\"form.warningWhatsApp\" class-icon-group=\"icon-whatsapp-colored\" v-show=\"form.warningSendByWhatsApp\" tel :required=\"form.warningSendByWhatsApp\" label=\"WhatsApp para envio\">\r\n <template #input-icon>\r\n <b-icon-whatsapp />\r\n </template>\r\n </t-input>\r\n\r\n </b-col>-->\r\n\r\n\r\n <b-col cols=\"12\">\r\n\r\n <t-input v-model=\"form.warningSendByEmail\" checked label=\"E-mail\" />\r\n <t-input v-model=\"form.warningEmail\" class-icon-group=\"icon-mail-colored\" v-show=\"form.warningSendByEmail\" email-multiple :required=\"form.warningSendByEmail\" label=\"E-mail para envio\">\r\n <template #input-icon>\r\n <b-icon-envelope />\r\n </template>\r\n </t-input>\r\n\r\n </b-col>\r\n\r\n\r\n\r\n\r\n </b-row>\r\n\r\n\r\n\r\n </t-form-card>\r\n\r\n <!--\r\n <t-form-card title=\"Setores atuantes\" icon-box>\r\n\r\n <b-form-checkbox class=\"col-sm-12 ml-2 mb-3\" v-model=\"form.enableAllSectors\" switch>\r\n Habilitar todos os setores para este executor?\r\n <t-help\r\n title=\"Você poderá especificar quais os setores desejados, basta desmarcar esta opção e especificar quais os setores abaixo.\"/>\r\n </b-form-checkbox>\r\n\r\n <t-table\r\n v-if=\"!form.enableAllSectors\"\r\n enable-checked\r\n v-model=\"sectorsIds\"\r\n :items=\"sectorsList\"\r\n :fields=\"viewFieldsPageSector\"\r\n title-items=\"setor\"\r\n link-primary-column=\"name\"\r\n table-bordered\r\n disable-actions-column\r\n primary-key-column=\"sectorId\">\r\n\r\n <template #first-column=\"{item}\">\r\n {{ item.name }}\r\n </template>\r\n\r\n </t-table>\r\n\r\n </t-form-card>\r\n -->\r\n\r\n <t-form-card title=\"Dados Adicionais\" icon-folder>\r\n\r\n <e-person :person=\"form.person\" not-required :command=\"command\" :error=\"error_person\"\r\n @getApi=\"getEmbedCNPJApi\"\r\n :status=\"status\"/>\r\n\r\n <e-address :address=\"form.address\" not-required :command=\"command\" :status=\"status\"\r\n @getApi=\"getEmbedAddressApi\"/>\r\n\r\n\r\n <t-input v-model=\"form.note\" label=\"Observações\" max-length=\"500\" textarea/>\r\n\r\n <t-input-status text=\"Responsável\" class=\"ml-1\" v-model=\"form.status\"/>\r\n\r\n </t-form-card>\r\n\r\n </t-page-form>\r\n\r\n </t-page>\r\n\r\n</template>\r\n<script>\r\n\r\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\r\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\r\nimport userService from \"@/services/modules/setting/User.service\";\r\nimport ePerson from \"@/views/embed/general/e-person\";\r\nimport eAddress from \"@/views/embed/general/e-address\";\r\nimport SectorService from \"@/services/modules/agent/Sector.service\";\r\nimport ui from \"@/assets/scripts/ui\";\r\nimport pageViewService from \"@/services/modules/setting/PageView.service\";\r\n\r\n\r\nexport default {\r\n mixins: [pageDefaultMixin, pageFormMixin],\r\n name: 'InspectorForm',\r\n components: {ePerson, eAddress},\r\n data() {\r\n return {\r\n path: \"\", //Utilizar somente quando fora do padrão\r\n genKey: true, //Utilizar quando desejar gerar chave temporária\r\n fieldKey: \"executorId\",\r\n form: {\r\n executorId: 0,\r\n executorNumber: 0,\r\n userId: 0,\r\n title: \"\",\r\n enableAllSectors:true,\r\n warningSendByEmail:true,\r\n warningSendByWhatsApp:false,\r\n warningEmail:\"\",\r\n warningWhatsApp: \"\",\r\n sectors: [],\r\n person: {\r\n /*Embed Person version: 1.0*/\r\n typePerson: 2,\r\n name: \"\",\r\n shortName: \"\",\r\n companyName: \"\",\r\n federalTaxpayer: \"\",\r\n otherPersonalDocument: \"\",\r\n provinceTaxpayer: \"\",\r\n provinceTaxpayerExempted: true,\r\n cityTaxpayer: \"\",\r\n /*-------------------------*/\r\n },\r\n address: {\r\n /*Embed Address version: 1.0*/\r\n country: \"BR\",\r\n zipcode: \"\",\r\n street: \"\",\r\n number: \"\",\r\n complement: \"\",\r\n neighborhood: \"\",\r\n provinceAbbreviation: \"\",\r\n cityId: 0\r\n /*-------------------------*/\r\n },\r\n note: \"\",\r\n status: 1,\r\n },\r\n error: {//Campos que podem receber retorno de erro do backend\r\n userId: \"\",\r\n name: \"\",\r\n },\r\n /*Embed Person Errors version: 1.0*/\r\n error_person: {\r\n name: \"\",\r\n federalTaxpayer: \"\",\r\n },\r\n //--------------------------------------------------------------------------------------\r\n //InÃcio de campos personalizados desta tela\r\n sectorsIds: [],\r\n sectorsList: [],\r\n viewFieldsPageSector: [],\r\n yesOrNotLinkUser: \"N\", //Valor padrão não possui vinculo com usuário\r\n usersOptions: [],\r\n //--------------------------------------------------------------------------------------\r\n }\r\n },\r\n methods: {\r\n\r\n async onSubmit() {\r\n\r\n this.form.sectors = this.convertArrayIdsToObject(this.sectorsIds, \"sectorId\")\r\n\r\n if (!this.form.enableAllSectors && this.form.sectors.length === 0) {\r\n ui.msgError(this, \"Selecione pelo menos 1 setor no qual este executor atua.\")\r\n } else {\r\n await this.setSendingDefault()\r\n }\r\n\r\n },\r\n mountedPrepare() {\r\n\r\n\r\n },\r\n async mountedContinued() {\r\n\r\n await pageViewService.getViewFieldsByPage(193, true, [\"\"]).then((response) => {\r\n this.viewFieldsPageSector = response\r\n }).catch(error => this.responseError(error))\r\n\r\n await userService.selectList(\"\").then((list) => {\r\n this.usersOptions = list\r\n }).catch(error => this.responseError(error))\r\n\r\n await SectorService.getAllSectors().then((list) => {\r\n this.sectorsList = list\r\n this.sectorsIds = this.convertObjectToArrayIds(this.form.sectors, \"sectorId\")\r\n }).catch(error => this.responseError(error))\r\n\r\n\r\n this.pageFormIsLoaded = true\r\n\r\n if (this.form.userId > 0) {\r\n this.yesOrNotLinkUser = \"Y\"\r\n }\r\n\r\n },\r\n //--------------------------------------------------------------------------------------\r\n //InÃcio de métodos personalizados desta tela\r\n\r\n\r\n //--------------------------------------------------------------------------------------\r\n\r\n },\r\n async mounted() {\r\n\r\n this.mountedPrepare()\r\n\r\n await this.mountedForm(true, false)\r\n\r\n await this.mountedContinued()\r\n\r\n },\r\n computed: {\r\n onYesLinkUser() {\r\n return this.yesOrNotLinkUser === 'Y'\r\n }\r\n }\r\n\r\n}\r\n</script>\r\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!./ExecutorForm.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!./ExecutorForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ExecutorForm.vue?vue&type=template&id=04229a8d&\"\nimport script from \"./ExecutorForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ExecutorForm.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.person !== null)?_c('t-form-wrapped',{attrs:{\"command\":_vm.command,\"status\":_vm.status}},[(!_vm.onlyCompany)?_c('div',{staticClass:\"form-card-header\"},[_c('t-input',{attrs:{\"label\":\"Tipo Pessoa\",\"options\":_vm.typePersonOptions,\"radio\":\"\"},model:{value:(_vm.person.typePerson),callback:function ($$v) {_vm.$set(_vm.person, \"typePerson\", $$v)},expression:\"person.typePerson\"}})],1):_vm._e(),_vm._t(\"default\"),(_vm.isCompany)?_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"add-error\":_vm.error.federalTaxpayer,\"label\":\"CNPJ\",\"required\":!_vm.notRequired,\"cnpj\":\"\",\"api\":\"\"},on:{\"get\":_vm.setPersonAndAddress},model:{value:(_vm.person.federalTaxpayer),callback:function ($$v) {_vm.$set(_vm.person, \"federalTaxpayer\", $$v)},expression:\"person.federalTaxpayer\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"disabled\":!_vm.isCompany || _vm.person.provinceTaxpayerExempted,\"upper\":\"\",\"label\":\"Inscrição Estadual\",\"required\":_vm.isCompany && !_vm.person.provinceTaxpayerExempted && (!_vm.notRequired && _vm.person.federalTaxpayer !== '')},scopedSlots:_vm._u([{key:\"input-group-append\",fn:function(){return [_c('div',{staticClass:\"input-group-text bg-light\"},[_c('b-form-checkbox',{attrs:{\"disabled\":!_vm.isCompany},model:{value:(_vm.person.provinceTaxpayerExempted),callback:function ($$v) {_vm.$set(_vm.person, \"provinceTaxpayerExempted\", $$v)},expression:\"person.provinceTaxpayerExempted\"}},[_c('small',[_vm._v(\"Isento\")])])],1)]},proxy:true}],null,false,1872527334),model:{value:(_vm.person.provinceTaxpayer),callback:function ($$v) {_vm.$set(_vm.person, \"provinceTaxpayer\", $$v)},expression:\"person.provinceTaxpayer\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"disabled\":!_vm.isCompany,\"label\":\"Inscrição Municipal\"},model:{value:(_vm.person.cityTaxpayer),callback:function ($$v) {_vm.$set(_vm.person, \"cityTaxpayer\", $$v)},expression:\"person.cityTaxpayer\"}})],1):_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"add-error\":_vm.error.federalTaxpayer,\"label\":\"CPF\",\"cpf\":\"\",\"required\":(!_vm.notRequired && _vm.person.federalTaxpayer !== '')},model:{value:(_vm.person.federalTaxpayer),callback:function ($$v) {_vm.$set(_vm.person, \"federalTaxpayer\", $$v)},expression:\"person.federalTaxpayer\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"upper\":\"\",\"label\":\"RG\"},model:{value:(_vm.person.otherPersonalDocument),callback:function ($$v) {_vm.$set(_vm.person, \"otherPersonalDocument\", $$v)},expression:\"person.otherPersonalDocument\"}})],1),(_vm.isCompany)?_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('t-input',{attrs:{\"label\":\"Razão Social\",\"required\":(!_vm.notRequired && _vm.person.federalTaxpayer !== '')},model:{value:(_vm.person.companyName),callback:function ($$v) {_vm.$set(_vm.person, \"companyName\", $$v)},expression:\"person.companyName\"}})],1),_c('t-input',{attrs:{\"cols\":\"8\",\"add-error\":_vm.error.name,\"label\":\"Nome Fantasia\",\"required\":(!_vm.notRequired || _vm.person.federalTaxpayer !== '' || _vm.nameRequired)},model:{value:(_vm.person.name),callback:function ($$v) {_vm.$set(_vm.person, \"name\", $$v)},expression:\"person.name\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"label\":\"Nome Curto\",\"max-length\":\"15\",\"help\":\"Nome curto de até 15 caracteres com cadastro opcional, porém poderá ser utilizado em locais onde é mais adequado um nome curto do cliente\"},model:{value:(_vm.person.shortName),callback:function ($$v) {_vm.$set(_vm.person, \"shortName\", $$v)},expression:\"person.shortName\"}})],1):_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('t-input',{attrs:{\"add-error\":_vm.error.name,\"label\":\"Nome\",\"required\":(!_vm.notRequired || _vm.person.federalTaxpayer !== '') && !_vm.nameRequired},model:{value:(_vm.person.name),callback:function ($$v) {_vm.$set(_vm.person, \"name\", $$v)},expression:\"person.name\"}})],1)],1)],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n\r\n <t-form-wrapped v-if=\"person !== null\" :command=\"command\" :status=\"status\">\r\n\r\n <div class=\"form-card-header\" v-if=\"!onlyCompany\">\r\n <t-input v-model=\"person.typePerson\" label=\"Tipo Pessoa\"\r\n :options=\"typePersonOptions\" radio/>\r\n </div>\r\n\r\n\r\n <slot></slot>\r\n\r\n\r\n <b-row v-if=\"isCompany\">\r\n\r\n <t-input cols=\"4\" v-model=\"person.federalTaxpayer\" :add-error=\"error.federalTaxpayer\" label=\"CNPJ\"\r\n :required=\"!notRequired\" cnpj\r\n api @get=\"setPersonAndAddress\">\r\n\r\n <!-- <template #input-group-append>\r\n <t-button icon-list title=\"Consultar informações junto a Receita\"\r\n @click=\"alert('Verificar se há CNPJ e fazer consulta completa junto a Receita')\"/>\r\n </template>-->\r\n\r\n </t-input>\r\n\r\n <t-input cols=\"4\" v-model=\"person.provinceTaxpayer\" :disabled=\"!isCompany || person.provinceTaxpayerExempted\"\r\n upper label=\"Inscrição Estadual\"\r\n :required=\"isCompany && !person.provinceTaxpayerExempted && (!notRequired && person.federalTaxpayer !== '')\">\r\n <template #input-group-append>\r\n <div class=\"input-group-text bg-light\">\r\n <b-form-checkbox v-model=\"person.provinceTaxpayerExempted\" :disabled=\"!isCompany\">\r\n <small>Isento</small>\r\n </b-form-checkbox>\r\n </div>\r\n </template>\r\n </t-input>\r\n\r\n <t-input cols=\"4\" v-model=\"person.cityTaxpayer\" :disabled=\"!isCompany\"\r\n label=\"Inscrição Municipal\"\r\n />\r\n\r\n </b-row>\r\n\r\n <b-row v-else>\r\n <t-input cols=\"6\" v-model=\"person.federalTaxpayer\" :add-error=\"error.federalTaxpayer\" label=\"CPF\" cpf\r\n :required=\"(!notRequired && person.federalTaxpayer !== '')\"/>\r\n <t-input cols=\"6\" v-model=\"person.otherPersonalDocument\" upper label=\"RG\"/>\r\n </b-row>\r\n\r\n <b-row v-if=\"isCompany\">\r\n\r\n <b-col cols=\"12\">\r\n <t-input v-model=\"person.companyName\" label=\"Razão Social\"\r\n :required=\"(!notRequired && person.federalTaxpayer !== '')\"/>\r\n </b-col>\r\n\r\n <t-input cols=\"8\" v-model=\"person.name\" :add-error=\"error.name\" label=\"Nome Fantasia\"\r\n :required=\"(!notRequired || person.federalTaxpayer !== '' || nameRequired)\"/>\r\n <t-input cols=\"4\" v-model=\"person.shortName\" label=\"Nome Curto\" max-length=\"15\"\r\n help=\"Nome curto de até 15 caracteres com cadastro opcional, porém poderá ser utilizado em locais onde é mais adequado um nome curto do cliente\"/>\r\n\r\n </b-row>\r\n <b-row v-else>\r\n <b-col cols=\"12\">\r\n <t-input v-model=\"person.name\" :add-error=\"error.name\" label=\"Nome\"\r\n :required=\"(!notRequired || person.federalTaxpayer !== '') && !nameRequired\"/>\r\n </b-col>\r\n </b-row>\r\n\r\n </t-form-wrapped>\r\n\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: 'e-person',\r\n data() {\r\n return {\r\n typePersonOptions: [{value: 2, text: \"JurÃdica\"}, {value: 1, text: \"FÃsica\"}],\r\n }\r\n },\r\n props: {\r\n status: {\r\n type: String,\r\n required: true,\r\n },\r\n notRequired: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n nameRequired: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n command: {\r\n type: String,\r\n required: true,\r\n },\r\n name: {\r\n type: String,\r\n default: \"person\", //Nome do objeto\r\n },\r\n addressRelationName: {\r\n type: String,\r\n default: \"address\", //Nome do objeto relacionado ao endereço para retorno da API\r\n },\r\n person: {\r\n type: Object,\r\n default: null\r\n },\r\n error: {\r\n type: Object,\r\n },\r\n onlyCompany: Boolean,\r\n },\r\n computed: {\r\n isCompany() {\r\n return this.person && this.person.typePerson !== 1\r\n }\r\n },\r\n methods: {\r\n\r\n setPersonAndAddress(cnpjAPI) {\r\n\r\n this.$emit(\"getApi\", this.name, this.addressRelationName, cnpjAPI)\r\n\r\n },\r\n\r\n },\r\n async mounted() {\r\n\r\n\r\n if (this.onlyCompany && this.person !== null) {\r\n this.person.typePerson = 2;\r\n }\r\n\r\n },\r\n\r\n}\r\n</script>\r\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!./e-person.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!./e-person.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./e-person.vue?vue&type=template&id=5d9766a4&\"\nimport script from \"./e-person.vue?vue&type=script&lang=js&\"\nexport * from \"./e-person.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"],"sourceRoot":""}