{"version":3,"sources":["webpack:///./src/mixins/embeddable/resource/defaultEmbeddableMixin.js","webpack:///./src/services/modules/admin/Company.service.js","webpack:///./src/views/modules/customer/CustomerForm.vue?a51e","webpack:///./src/views/modules/customer/embeddable/CustomerFormProductionEmbeddable.vue?445f","webpack:///./src/views/modules/customer/TypeProfileDialog.vue?2d1d","webpack:///src/views/modules/customer/TypeProfileDialog.vue","webpack:///./src/views/modules/customer/TypeProfileDialog.vue?5b67","webpack:///./src/views/modules/customer/TypeProfileDialog.vue","webpack:///./src/views/modules/customer/GroupCostumerDialog.vue?3683","webpack:///src/views/modules/customer/GroupCostumerDialog.vue","webpack:///./src/views/modules/customer/GroupCostumerDialog.vue?6072","webpack:///./src/views/modules/customer/GroupCostumerDialog.vue","webpack:///./src/views/modules/customer/CustomerProductOtherCode.vue?b28e","webpack:///src/views/modules/customer/CustomerProductOtherCode.vue","webpack:///./src/views/modules/customer/CustomerProductOtherCode.vue?5a63","webpack:///./src/views/modules/customer/CustomerProductOtherCode.vue","webpack:///./src/views/modules/customer/TypeOriginDialog.vue?6a93","webpack:///src/views/modules/customer/TypeOriginDialog.vue","webpack:///./src/views/modules/customer/TypeOriginDialog.vue?c11e","webpack:///./src/views/modules/customer/TypeOriginDialog.vue","webpack:///src/views/modules/customer/embeddable/CustomerFormProductionEmbeddable.vue","webpack:///./src/views/modules/customer/embeddable/CustomerFormProductionEmbeddable.vue?c92d","webpack:///./src/views/modules/customer/embeddable/CustomerFormProductionEmbeddable.vue","webpack:///./src/views/modules/customer/embeddable/CustomerFormArchEmbeddable.vue?764f","webpack:///src/views/modules/customer/embeddable/CustomerFormArchEmbeddable.vue","webpack:///./src/views/modules/customer/embeddable/CustomerFormArchEmbeddable.vue?4317","webpack:///./src/views/modules/customer/embeddable/CustomerFormArchEmbeddable.vue","webpack:///./src/views/modules/customer/embeddable/CustomerFormERPEmbeddable.vue?88ac","webpack:///./src/views/modules/business/SellerDialog.vue?a039","webpack:///src/views/modules/business/SellerDialog.vue","webpack:///./src/views/modules/business/SellerDialog.vue?34b7","webpack:///./src/views/modules/business/SellerDialog.vue","webpack:///./src/views/modules/business/PriceListDialog.vue?f2a3","webpack:///src/views/modules/business/PriceListDialog.vue","webpack:///./src/views/modules/business/PriceListDialog.vue?4a4f","webpack:///./src/views/modules/business/PriceListDialog.vue","webpack:///./src/views/modules/business/PaymentPlanDialog.vue?a41a","webpack:///src/views/modules/business/PaymentPlanDialog.vue","webpack:///./src/views/modules/business/PaymentPlanDialog.vue?0e2b","webpack:///./src/views/modules/business/PaymentPlanDialog.vue","webpack:///./src/views/modules/financial/BankAccountDialog.vue?f0c8","webpack:///src/views/modules/financial/BankAccountDialog.vue","webpack:///./src/views/modules/financial/BankAccountDialog.vue?e7c2","webpack:///./src/views/modules/financial/BankAccountDialog.vue","webpack:///src/views/modules/customer/embeddable/CustomerFormERPEmbeddable.vue","webpack:///./src/views/modules/customer/embeddable/CustomerFormERPEmbeddable.vue?1804","webpack:///./src/views/modules/customer/embeddable/CustomerFormERPEmbeddable.vue","webpack:///./src/model/entities/resource/entity/PersonEntity.js","webpack:///./src/model/entities/modules/customer/CustomerEntity.js","webpack:///./src/mixins/embeddable/customer/customerFormEmbeddableMixin.js","webpack:///src/views/modules/customer/CustomerForm.vue","webpack:///./src/views/modules/customer/CustomerForm.vue?725c","webpack:///./src/views/modules/customer/CustomerForm.vue","webpack:///./src/services/modules/setting/User.service.js","webpack:///./src/mixins/page/pageFormEmbeddableMixin.js","webpack:///./src/mixins/embeddable/resource/formEmbeddableMixin.js","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":["mixins","functionsMixins","data","currentPage","CurrentPageEntity","userAuth","UserAuthEntity","pageEmbeddableLoaded","mountAgain","methods","onMountedDefault","this","mountedContinued","reload","setTimeout","getAssemble","path","type","crudGeneral","then","response","catch","error","console","log","companyService","params","http","list","companyId","get","URLSearchParams","set","render","_vm","_h","$createElement","_c","_self","accountModule","ref","attrs","enabledSubmit","on","onMountedForm","onBeforeSubmit","$event","model","value","callback","$$v","form","expression","_e","staticRenderFns","noOptionAdd","onTypeCustomerDialog","onGroupCostumerDialog","onTypeOriginCustomerDialog","singularTitle","t","pageTitle","command","status","generalErrors","checkErrorsComponent","name","pageFormIsLoaded","onSubmit","scopedSlots","_u","key","fn","$set","person","error_person","getEmbedCNPJApi","typeCustomerOptions","typeCustomerId","search","addNoOption","_v","openDialogForm","proxy","customerGroupOptions","customerGroupId","addressDefault","getEmbedAddressApi","addressDelivery","staticClass","typeQualityAppraisalOptions","enableAllCompanies","companiesList","viewFieldsPageCompanies","item","_s","companiesIds","typeOriginCustomerOptions","entityFieldCustomized","productId","pageId","fieldKey","otherCodeLabel","customerId","title","okText","id","showModal","resetModal","components","pageDialogFormMixin","note","watch","component","items","fields","listFormIsLoaded","listIsLoaded","onItemReadDefault","onItemDeleteDefault","focusByRef","code","onButtonSubmitText","cancelUpdatedList","pageDefaultMixin","foreignKeyColumn","foreignKey","productOtherCodeId","typeRelation","computed","onForm","defaultForm","defaultFormList","mountedPrepare","listParams","append","mountedPrepareFormListDefault","mountedList","typeOriginCustomerId","ePerson","eAddress","TypeCustomerDialog","GroupCostumerDialog","CustomerProductCodeConversion","TypeOriginCustomerDialog","genKey","enableGeneralFields","federalTaxpayer","companyOptions","mountedPrepareEmbeddable","itemInserted","push","priceListOptions","onSellerDialog","onPriceListDialog","onPaymentPlanDialog","onBankAccountDialog","onSubmitDefault","typeInvoiceBROptions","typeProfileTaxationOptions","typePerson","invoiceBRCompanyTypeStateRegistrationOptions","invoiceBRCompanyTypeStateRegistration","staticStyle","sellerOptions","sellerId","priceListId","typePaymentOptions","typePaymentId","paymentPlanOptions","paymentPlanId","bankAccountOptions","bankAccountId","yesOrNotOptions","yesOrNotLinkUser","directives","rawName","usersOptions","userId","onYesLinkUser","SellerDialog","PriceListDialog","PaymentPlanDialog","BankAccountDialog","text","shortName","companyName","otherPersonalDocument","provinceTaxpayer","provinceTaxpayerExempted","cityTaxpayer","customerNumber","providerCodeLabel","PersonEntity","country","zipcode","street","number","complement","neighborhood","provinceAbbreviation","cityId","hasAddressDelivery","companies","typeProfileTaxationId","invoiceBRTypeProfile","invoiceBRSuframa","invoiceEmail","typeQualityAppraisalId","qualityEmail","companyBlocked","sellerBlocked","priceListBlocked","typePaymentBlocked","paymentPlanBlocked","bankAccountBlocked","contactName","contactEmail","customerSince","site","linkedin","whatsapp","instagram","phone","CustomerFormProductionEmbeddable","CustomerFormArchEmbeddable","CustomerFormERPEmbeddable","formEmbeddableMixin","CustomerEntity","customerFormEmbeddableMixin","ui","userService","state","user","password","save_login","request","username","platform","customAxios","post","login","account","domain","accountName","accountPrefix","authorization","token","tempPassword","module","custom","helpDocUrl","enableAllEnterprises","localStorage","setItem","JSON","stringify","removeItem","template","$store","commit","recoveryToken","recoveryPin","props","Object","required","sendingFormDefault","$emit","setValue","mountedContinuedEmbeddable","setIsLoadingPage","v","setSending","setRedirect","newValue","oldValue","defaultEmbeddableMixin","setFieldCustomized","responseErrorGeneral","general","length","errors","msgError","alert","warn","getFieldValue","entity","fieldId","$refs","embeddable","undefined","fieldsCustomizable","entityField","find","a","field","setFieldValue","pop","onlyCompany","typePersonOptions","_t","notRequired","setPersonAndAddress","isCompany","nameRequired","String","Boolean","default","addressRelationName","cnpjAPI"],"mappings":"4LAKe,QAEXA,OAAQ,CAACC,QACTC,KAHW,WAIP,MAAO,CACHC,YAAaC,OACbC,SAAUC,OACVC,sBAAqB,EACrBC,YAAY,IAGpBC,QAAQ,CAEJC,iBAFI,SAEaL,GAEbM,KAAKN,SAAWA,EAGhBM,KAAKC,oBAGTC,OAVI,WAUI,WACJF,KAAKH,YAAa,EAElBM,YAAW,WACP,EAAKN,YAAa,IACpB,MAKAO,YApBF,SAoBcC,EAAKC,GAAK,wKAClBC,OAAYH,YAAYC,EAAMC,GAC/BE,MAAK,SAAAC,GAEF,E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4BjH,EAAI8Q,cAAcjQ,MAAM,CAACC,MAAOd,EAAIwC,OAAW,KAAEzB,SAAS,SAAUC,GAAMhB,EAAIuC,KAAKvC,EAAIwC,OAAQ,OAAQxB,IAAME,WAAW,kBAAkB,IAAI,IAAI,GAAGlB,EAAImB,MAC7sHC,EAAkB,G,YC0EtB,G,oBAAA,CACEY,KAAM,WACNhE,KAFF,WAGI,MAAO,CACLyS,kBAAmB,CAAC,CAA1B,oDAGEpC,MAAO,CACLxM,OAAQ,CACN9C,KAAMgS,OACNxC,UAAU,GAEZoC,YAAa,CACX5R,KAAMiS,QACNC,SAAS,GAEXH,aAAc,CACZ/R,KAAMiS,QACNC,SAAS,GAEXrP,QAAS,CACP7C,KAAMgS,OACNxC,UAAU,GAEZvM,KAAM,CACJjD,KAAMgS,OACNE,QAAS,UAEXC,oBAAqB,CACnBnS,KAAMgS,OACNE,QAAS,WAEXzO,OAAQ,CACNzD,KAAMuP,OACN2C,QAAS,MAEX7R,MAAO,CACLL,KAAMuP,QAERkC,YAAaQ,SAEfjL,SAAU,CACR8K,UADJ,WAEM,OAAOpS,KAAK+D,QAAqC,IAA3B/D,KAAK+D,OAAOsF,aAGtCvJ,QAAS,CAEPqS,oBAFJ,SAEA,GAEMnS,KAAKgQ,MAAM,SAAUhQ,KAAKuD,KAAMvD,KAAKyS,oBAAqBC,KAK9D,QAvDF,WAuDA,wJAGA,iCACA,uBAJA,gDClIgX,I,YCO5WpM,EAAY,eACd,EACAhF,EACAqB,GACA,EACA,KACA,KACA,MAIa,OAAA2D,E","file":"js/chunk-969c3b2c.d9a0b0f7.js","sourcesContent":["import functionsMixins from \"@/mixins/page/functionsMixins\";\r\nimport CurrentPageEntity from \"@/model/entities/resource/entity/CurrentPageEntity\";\r\nimport UserAuthEntity from \"@/model/entities/resource/entity/UserAuthEntity\";\r\nimport {crudGeneral} from \"@/services/resource/GeneralCRUD.service\";\r\n\r\nexport default {\r\n\r\n    mixins: [functionsMixins],\r\n    data() {\r\n        return {\r\n            currentPage: CurrentPageEntity,\r\n            userAuth: UserAuthEntity,\r\n            pageEmbeddableLoaded:false,\r\n            mountAgain: false,\r\n        }\r\n    },\r\n    methods:{\r\n\r\n        onMountedDefault(userAuth){\r\n\r\n            this.userAuth = userAuth\r\n\r\n            //Chama o mountedContinued interno\r\n            this.mountedContinued()\r\n        },\r\n\r\n        reload(){\r\n            this.mountAgain = true\r\n\r\n            setTimeout(()=>{\r\n                this.mountAgain = false\r\n            },200)\r\n\r\n        },\r\n\r\n        /*MONTAGEM SIMPLIFICADA Utilizado quando é necessário realizar a montagem para condicionar a exibição do formulário*/\r\n        async getAssemble(path,type){\r\n            await crudGeneral.getAssemble(path, type)\r\n                .then(response => {\r\n\r\n                    this.userAuth = response.data;\r\n                    this.currentPage = this.userAuth.currentPage\r\n\r\n\r\n                })\r\n                .catch(error => {\r\n                    console.log('Erro externo: ' + error)\r\n                });\r\n        }\r\n\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 = \"admin/company\"\r\n\r\nclass companyService {\r\n\r\n    selectList(params) {\r\n        return http.list(path + \"/selectList\",params);\r\n    }\r\n\r\n    getResume(companyId) {\r\n        return http.get(path + '/resume/' + companyId);\r\n    }\r\n\r\n    getAllCompanies() {\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\n\r\nexport default new companyService();\r\n\r\n\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.mountAgain && _vm.pageEmbeddableLoaded && _vm.accountModule === 'arch')?_c('CustomerFormArchEmbeddable',{ref:\"embeddable\",attrs:{\"enabled-submit\":_vm.enabledSubmit},on:{\"mounted\":_vm.onMountedForm,\"beforeSubmit\":_vm.onBeforeSubmit,\"reload\":function($event){return _vm.reload()}},model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}}):(!_vm.mountAgain && _vm.pageEmbeddableLoaded && _vm.accountModule === 'production')?_c('CustomerFormProductionEmbeddable',{ref:\"embeddable\",attrs:{\"enabled-submit\":_vm.enabledSubmit},on:{\"mounted\":_vm.onMountedForm,\"beforeSubmit\":_vm.onBeforeSubmit,\"reload\":function($event){return _vm.reload()}},model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}}):(!_vm.mountAgain && _vm.pageEmbeddableLoaded && _vm.accountModule === 'erp')?_c('CustomerFormERPEmbeddable',{ref:\"embeddable\",attrs:{\"enabled-submit\":_vm.enabledSubmit},on:{\"mounted\":_vm.onMountedForm,\"beforeSubmit\":_vm.onBeforeSubmit,\"reload\":function($event){return _vm.reload()}},model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}}):_vm._e()}\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-page',[_c('TypeCustomerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeCustomerDialog}}),_c('GroupCostumerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onGroupCostumerDialog}}),_c('TypeOriginCustomerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeOriginCustomerDialog}}),_c('t-page-form',{attrs:{\"tabs\":\"\",\"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-tab',{attrs:{\"title\":\"Dados Básicos\",\"active\":\"\"}},[_c('t-form-card',{attrs:{\"title\":\"Cadastro\",\"icon-building\":\"\"}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.customerId),callback:function ($$v) {_vm.$set(_vm.form, \"customerId\", $$v)},expression:\"form.customerId\"}}),_c('e-person',{attrs:{\"person\":_vm.form.person,\"command\":_vm.command,\"not-required\":\"\",\"address-relation-name\":\"addressDefault\",\"error\":_vm.error_person,\"status\":status},on:{\"getApi\":_vm.getEmbedCNPJApi}},[_c('b-row',[_c('t-input',{attrs:{\"label\":\"Cód. Cliente\",\"cols\":\"4\",\"fixed\":\"\"},model:{value:(_vm.form.customerNumber),callback:function ($$v) {_vm.$set(_vm.form, \"customerNumber\", $$v)},expression:\"form.customerNumber\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"required\":\"\",\"options\":_vm.typeCustomerOptions,\"add-error\":_vm.error.typeCustomerId,\"label\":\"Perfil\",\"select\":\"\"},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-customer',search)}}},[_vm._v(\"Cadastrar Perfil de Cliente\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Perfil de Cliente\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeCustomerId\", $$v)},expression:\"form.typeCustomerId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"options\":_vm.customerGroupOptions,\"add-error\":_vm.error.customerGroupId,\"label\":\"Grupo de Clientes\",\"help\":\"Utilize o grupo de clientes para agrupar diferentes filiais em um único local, podendo centralizar preferências pela matriz.\",\"select\":\"\"},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-group-customer',search)}}},[_vm._v(\"Cadastrar Grupo de Cliente\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Grupo de Cliente\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-group-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.customerGroupId),callback:function ($$v) {_vm.$set(_vm.form, \"customerGroupId\", $$v)},expression:\"form.customerGroupId\"}})],1)],1),_c('e-address',{attrs:{\"address\":_vm.form.addressDefault,\"not-required\":\"\",\"command\":_vm.command,\"name\":\"addressDefault\",\"status\":status},on:{\"getApi\":_vm.getEmbedAddressApi}}),_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.hasAddressDelivery),callback:function ($$v) {_vm.$set(_vm.form, \"hasAddressDelivery\", $$v)},expression:\"form.hasAddressDelivery\"}},[_c('small',[_vm._v(\"Endereço de entrega diferente?\")]),_c('t-help',{attrs:{\"title\":\"Marque, caso o haja um endereço de entrega diferente do cadastro.\"}})],1)],1),(_vm.form.hasAddressDelivery)?_c('t-form-card',{attrs:{\"title\":\"Endereço Entrega\",\"icon-truck\":\"\"}},[_c('e-address',{attrs:{\"address\":_vm.form.addressDelivery,\"command\":_vm.command,\"name\":\"addressDelivery\",\"status\":status},on:{\"getApi\":_vm.getEmbedAddressApi}})],1):_vm._e(),_c('t-form-card',{staticClass:\"mt-4\",attrs:{\"title\":\"Informações Qualidade\",\"icon-card-heading\":\"\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"options\":_vm.typeQualityAppraisalOptions,\"select\":\"\",\"label\":\"Tipo de Certificado de Qualidade\"},model:{value:(_vm.form.typeQualityAppraisalId),callback:function ($$v) {_vm.$set(_vm.form, \"typeQualityAppraisalId\", $$v)},expression:\"form.typeQualityAppraisalId\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"E-mail para envio de Certificado de Qualidade\",\"email-multiple\":\"\",\"help\":\"Utilizado somente quando implementado o módulo de emissão de Certificados de Qualidade.\"},model:{value:(_vm.form.qualityEmail),callback:function ($$v) {_vm.$set(_vm.form, \"qualityEmail\", $$v)},expression:\"form.qualityEmail\"}})],1)],1),_c('t-form-card',{attrs:{\"title\":\"Alçada de Acesso\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2 mb-3\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.enableAllCompanies),callback:function ($$v) {_vm.$set(_vm.form, \"enableAllCompanies\", $$v)},expression:\"form.enableAllCompanies\"}},[_vm._v(\" Habilitar todas empresas a este cliente? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais as empresas desejadas, basta desmarcar esta opção e especificar quais as empresas abaixo.\"}})],1),(!_vm.form.enableAllCompanies)?_c('t-table',{attrs:{\"enable-checked\":\"\",\"items\":_vm.companiesList,\"fields\":_vm.viewFieldsPageCompanies,\"title-items\":\"empresa\",\"link-primary-column\":\"name\",\"table-bordered\":\"\",\"disable-actions-column\":\"\",\"primary-key-column\":\"companyId\"},scopedSlots:_vm._u([{key:\"first-column\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.name)+\" \")]}}],null,true),model:{value:(_vm.companiesIds),callback:function ($$v) {_vm.companiesIds=$$v},expression:\"companiesIds\"}}):_vm._e()],1),_c('t-form-card',{attrs:{\"title\":\"Informações Adicionais\",\"icon-info-square\":\"\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"8\",\"options\":_vm.typeOriginCustomerOptions,\"required\":\"\",\"label\":\"Origem do Cliente\",\"select\":\"\"},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-origin-customer',search)}}},[_vm._v(\"Cadastrar Origem\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar nova Origem\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-origin-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeOriginCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeOriginCustomerId\", $$v)},expression:\"form.typeOriginCustomerId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"required\":\"\",\"label\":\"Cliente desde\",\"date-now\":\"\",\"date\":\"\"},model:{value:(_vm.form.customerSince),callback:function ($$v) {_vm.$set(_vm.form, \"customerSince\", $$v)},expression:\"form.customerSince\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"class-icon-group\":\"icon-mail-colored\",\"label\":\"Contato - Nome\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-people')]},proxy:true}],null,true),model:{value:(_vm.form.contactName),callback:function ($$v) {_vm.$set(_vm.form, \"contactName\", $$v)},expression:\"form.contactName\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"class-icon-group\":\"icon-mail-colored\",\"email-multiple\":\"\",\"label\":\"Contato - Email\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-envelope')]},proxy:true}],null,true),model:{value:(_vm.form.contactEmail),callback:function ($$v) {_vm.$set(_vm.form, \"contactEmail\", $$v)},expression:\"form.contactEmail\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"class-icon-group\":\"icon-whatsapp-colored\",\"tel\":\"\",\"label\":\"WhatsApp\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-whatsapp')]},proxy:true}],null,true),model:{value:(_vm.form.whatsapp),callback:function ($$v) {_vm.$set(_vm.form, \"whatsapp\", $$v)},expression:\"form.whatsapp\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"url\":\"\",\"label\":\"Site\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-link')]},proxy:true}],null,true),model:{value:(_vm.form.site),callback:function ($$v) {_vm.$set(_vm.form, \"site\", $$v)},expression:\"form.site\"}}),_c('t-input',{attrs:{\"small\":\"Preencha no padrão @...\",\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"label\":\"Instagram\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-instagram')]},proxy:true}],null,true),model:{value:(_vm.form.instagram),callback:function ($$v) {_vm.$set(_vm.form, \"instagram\", $$v)},expression:\"form.instagram\"}}),_c('t-input',{attrs:{\"small\":\"Preencha no padrão in/...\",\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"label\":\"LinkedIn\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-linkedin')]},proxy:true}],null,true),model:{value:(_vm.form.linkedin),callback:function ($$v) {_vm.$set(_vm.form, \"linkedin\", $$v)},expression:\"form.linkedin\"}}),_c('t-input',{attrs:{\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"tel\":\"\",\"label\":\"Telefone fixo\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-telephone')]},proxy:true}],null,true),model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_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.productId,\"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',{staticClass:\"ml-1\",attrs:{\"text\":\"Cliente\"},model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}})],1)],1)]}},{key:\"out-of-form\",fn:function(){return [_c('t-form-tab',{attrs:{\"title\":\"Códigos de Conversão\",\"hash\":\"other-code\",\"lazy\":\"\"}},[_c('t-form-card',{attrs:{\"title\":\"Gerais\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Seu código neste cliente\",\"help\":\"Utilize este campo caso desejar armazenar seu código cadastrado no sistema do seu cliente. Exemplo de utilização: Etiquetas de vendas/expedição ou integrações.\"},model:{value:(_vm.form.providerCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"providerCodeLabel\", $$v)},expression:\"form.providerCodeLabel\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"add-error\":_vm.error.otherCodeLabel,\"label\":\"Cód. interno\",\"help\":\"Utilize este campo caso desejar armazenar o código deste cliente de outro sistema seu como por exemplo o ERP da sua empresa\"},model:{value:(_vm.form.otherCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"otherCodeLabel\", $$v)},expression:\"form.otherCodeLabel\"}})],1)],1),_c('t-form-card',{attrs:{\"title\":\"PRODUTOS\"}},[_c('CustomerProductCodeConversion',{attrs:{\"foreign-key\":_vm.form.customerId}})],1)],1)]},proxy:true}])})],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\":\"Perfil de Cliente\",\"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 }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n    <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Perfil de Cliente\" submitted focus required/>\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"TypeCostumerDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-type-customer\",\n      title: \"Cadastro rápido de Perfil de Cliente\",\n      okText: \"Incluir Perfil de Cliente\",\n      form: {\n        typeCustomerId: 0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"customer/type-profile\", (item) => {\n\n        this.itemInserted.value = item.typeCustomerId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\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!./TypeProfileDialog.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!./TypeProfileDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TypeProfileDialog.vue?vue&type=template&id=2ac1d197&\"\nimport script from \"./TypeProfileDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TypeProfileDialog.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 _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\":\"Grupo de Cliente\",\"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 }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n    <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Grupo de Cliente\" submitted focus required/>\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"GroupCostumerDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-group-customer\",\n      title: \"Cadastro rápido de Grupo de Cliente\",\n      okText: \"Incluir Grupo de Cliente\",\n      form: {\n        customerGroupId: 0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"customer/group\", (item) => {\n\n        this.itemInserted.value = item.customerGroupId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\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!./GroupCostumerDialog.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!./GroupCostumerDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GroupCostumerDialog.vue?vue&type=template&id=d02ea71a&\"\nimport script from \"./GroupCostumerDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./GroupCostumerDialog.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 _c('div',[_c('t-form-list',{attrs:{\"generalErrors\":_vm.generalErrors,\"items\":_vm.items,\"fields\":_vm.fields,\"command\":_vm.command,\"user-auth\":_vm.userAuth,\"status\":_vm.status,\"busy\":!_vm.pageFormIsLoaded,\"busy-form\":!_vm.listFormIsLoaded,\"busy-list\":!_vm.listIsLoaded,\"primary-key-column\":\"productOtherCodeId\"},on:{\"onSubmit\":_vm.onSubmit,\"onItemRead\":_vm.onItemReadDefault,\"onItemDelete\":_vm.onItemDeleteDefault},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.productOtherCodeId),callback:function ($$v) {_vm.$set(_vm.form, \"productOtherCodeId\", $$v)},expression:\"form.productOtherCodeId\"}}),_c('b-col',{staticClass:\"mb-2\",attrs:{\"cols\":\"12\"}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"8\"}},[_c('t-input-product',{attrs:{\"status\":status,\"command\":_vm.command,\"required\":\"\"},on:{\"focusout\":function($event){return _vm.focusByRef('input_code')}},model:{value:(_vm.form.productId),callback:function ($$v) {_vm.$set(_vm.form, \"productId\", $$v)},expression:\"form.productId\"}})],1),_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('t-input',{ref:\"input_code\",attrs:{\"add-error\":_vm.error.code,\"label\":\"Cód. para o cliente\",\"required\":\"\"},model:{value:(_vm.form.code),callback:function ($$v) {_vm.$set(_vm.form, \"code\", $$v)},expression:\"form.code\"}})],1)],1),_c('b-row',[_c('b-col',{staticClass:\"button-form-inline col-md-6 col-sm-12 mt-0\",attrs:{\"cols\":\"12\"}},[_c('t-button',{attrs:{\"sending\":status === 'sending',\"text\":_vm.onButtonSubmitText(_vm.command),\"no-icon\":\"\",\"submit\":\"\"}}),(_vm.command === 'update')?_c('b-link',{staticClass:\"ml-2 text-focus\",on:{\"click\":function($event){return _vm.cancelUpdatedList()}}},[_vm._v(\" \"+_vm._s(_vm.t('go-back'))+\" \")]):_vm._e()],1)],1)],1)]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <div>\n\n    <t-form-list :generalErrors=\"generalErrors\" :items=\"items\" :fields=\"fields\" :command=\"command\" :user-auth=\"userAuth\"\n                 :status=\"status\"\n                 :busy=\"!pageFormIsLoaded\" :busy-form=\"!listFormIsLoaded\" :busy-list=\"!listIsLoaded\"\n                 primary-key-column=\"productOtherCodeId\"\n                 @onSubmit=\"onSubmit\" @onItemRead=\"onItemReadDefault\" @onItemDelete=\"onItemDeleteDefault\">\n\n      <template #default=\"{status}\">\n\n        <t-input v-model=\"form.productOtherCodeId\" hidden/>\n\n        <b-col cols=\"12\" class=\"mb-2\">\n\n\n          <b-row>\n\n            <b-col cols=\"8\">\n\n              <t-input-product @focusout=\"focusByRef('input_code')\" :status=\"status\" :command=\"command\" v-model=\"form.productId\"\n                               required/>\n\n            </b-col>\n\n            <b-col cols=\"4\">\n\n              <t-input v-model=\"form.code\" ref=\"input_code\" :add-error=\"error.code\" label=\"Cód. para o cliente\" required/>\n\n            </b-col>\n\n          </b-row>\n\n\n          <b-row>\n\n            <b-col cols=\"12\" class=\"button-form-inline col-md-6 col-sm-12 mt-0\">\n\n              <t-button :sending=\"status === 'sending'\" :text=\"onButtonSubmitText(command)\" no-icon submit/>\n\n              <b-link class=\"ml-2 text-focus\" v-if=\"command === 'update'\" @click=\"cancelUpdatedList()\">\n                {{ t('go-back') }}\n              </b-link>\n\n            </b-col>\n\n          </b-row>\n\n        </b-col>\n\n      </template>\n\n    </t-form-list>\n\n  </div>\n\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport pageFormListMixin from \"@/mixins/page/pageFormListMixin\"\nimport tFormList from \"@/components/template/form/list/t-form-list\"\n\nexport default {\n  mixins: [pageDefaultMixin, pageFormMixin, pageFormListMixin],\n  components: {tFormList},\n  name: 'CustomerProductOtherCode',\n  data() {\n    return {\n      path: \"product/item-other-code\", //Utilizar somente quando fora do padrão\n      foreignKeyColumn: \"customerId\", //Utilizar quando usar Tabs com outros componentes\n      fields: [\n        {keyRead: \"productOtherCodeId\", keyDelete: \"productOtherCodeId\"},\n        {key: \"productCodeLabel\", label: \"Cód. interno do Produto\", cols: \"4\"},\n        {key: \"code\", label: \"Cód. para o Cliente\", cols: \"4\"},\n      ],\n      form: {\n        customerId: this.foreignKey,\n        productOtherCodeId: 0,\n        productId: 0,\n        code: \"\",\n        typeRelation: 1,\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        code: \"\",\n      },\n    }\n  },\n  computed: {\n    onForm() {\n      return this.form\n    }\n  },\n  methods: {\n\n    defaultForm() {\n\n      //Preenche somente os campos que foram limpos após o reset\n      this.defaultFormList()\n\n      //Padrão neste caso deste tipo de relação, sendo fixo esta informação\n      this.form.typeRelation = 1\n\n    },\n\n    mountedPrepare() {\n\n      this.listParams.append(\"typeRelation\",1)\n\n      this.mountedPrepareFormListDefault()\n\n    },\n\n    async mountedContinued() {\n\n      await this.getList()\n\n    },\n\n    async onSubmit() {\n\n      await this.setSendingFormListDefault(this.form.productOtherCodeId)\n\n    },\n\n    mountedList() {\n\n      this.listIsLoaded = true\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n\n\n    //--------------------------------------------------------------------------------------\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedFormList()\n\n    await this.mountedContinued()\n\n  },\n}\n</script>\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!./CustomerProductOtherCode.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!./CustomerProductOtherCode.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CustomerProductOtherCode.vue?vue&type=template&id=40cd9ca4&\"\nimport script from \"./CustomerProductOtherCode.vue?vue&type=script&lang=js&\"\nexport * from \"./CustomerProductOtherCode.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 _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 Origem do Cliente\",\"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 }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n    <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Tipo de Origem do Cliente\" submitted focus required/>\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"TypeOriginCustomerDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-type-origin-customer\",\n      title: \"Cadastro rápido de Origem do Cliente\",\n      okText: \"Incluir Origem do Cliente\",\n      form: {\n        typeOriginCustomerId: 0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"customer/type-origin\", (item) => {\n\n        this.itemInserted.value = item.typeOriginCustomerId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\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!./TypeOriginDialog.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!./TypeOriginDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TypeOriginDialog.vue?vue&type=template&id=136c6666&\"\nimport script from \"./TypeOriginDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./TypeOriginDialog.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","<template>\n\n  <t-page>\n\n    <TypeCustomerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onTypeCustomerDialog\"/>\n    <GroupCostumerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onGroupCostumerDialog\"/>\n    <TypeOriginCustomerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onTypeOriginCustomerDialog\"/>\n\n\n    <t-page-form tabs :submit-text=\"currentPage.singularTitle\"\n                 :title=\"t('form-of')+currentPage.pageTitle\"\n                 :command=\"command\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmit\"\n                 :check-errors-again=\"checkErrorsComponent\"\n                 :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\" :busy=\"!pageFormIsLoaded\">\n\n      <template #default=\"{status}\">\n\n        <t-form-tab title=\"Dados Básicos\" active>\n\n          <t-form-card title=\"Cadastro\" icon-building>\n\n          <t-input v-model=\"form.customerId\" hidden/>\n\n          <e-person :person=\"form.person\" :command=\"command\" not-required address-relation-name=\"addressDefault\"\n                    :error=\"error_person\" :status=\"status\" @getApi=\"getEmbedCNPJApi\">\n\n            <b-row>\n\n              <t-input v-model=\"form.customerNumber\" label=\"Cód. Cliente\" cols=\"4\" fixed/>\n\n\n              <t-input v-model=\"form.typeCustomerId\" cols=\"4\"\n                       required\n                       :options=\"typeCustomerOptions\" :add-error=\"error.typeCustomerId\"\n                       label=\"Perfil\" select>\n\n               <template #no-options=\"{search}\">\n                  <b-link @click=\"addNoOption('modal-type-customer',search)\">Cadastrar Perfil de Cliente</b-link>\n                </template>\n\n                <template #input-group-append>\n                  <t-button title=\"Adicionar Perfil de Cliente\" @click=\"openDialogForm('modal-type-customer')\"\n                            icon-plus/>\n                </template>\n\n              </t-input>\n\n              <t-input v-model=\"form.customerGroupId\" cols=\"4\"\n                       :options=\"customerGroupOptions\" :add-error=\"error.customerGroupId\"\n                       label=\"Grupo de Clientes\"\n                       help=\"Utilize o grupo de clientes para agrupar diferentes filiais em um único local, podendo centralizar preferências pela matriz.\"\n                       select>\n\n                <template #no-options=\"{search}\">\n                  <b-link @click=\"addNoOption('modal-group-customer',search)\">Cadastrar Grupo de Cliente</b-link>\n                </template>\n\n                <template #input-group-append>\n                  <t-button title=\"Adicionar Grupo de Cliente\" @click=\"openDialogForm('modal-group-customer')\"\n                            icon-plus/>\n                </template>\n\n              </t-input>\n\n            </b-row>\n\n          </e-person>\n\n          <e-address :address=\"form.addressDefault\" not-required :command=\"command\" name=\"addressDefault\" :status=\"status\"\n                     @getApi=\"getEmbedAddressApi\"/>\n\n          <b-form-checkbox v-model=\"form.hasAddressDelivery\" switch>\n            <small>Endereço de entrega diferente?</small>\n            <t-help title=\"Marque, caso o haja um endereço de entrega diferente do cadastro.\"/>\n          </b-form-checkbox>\n\n          </t-form-card>\n\n          <t-form-card v-if=\"form.hasAddressDelivery\" title=\"Endereço Entrega\" icon-truck>\n            <e-address :address=\"form.addressDelivery\" :command=\"command\" name=\"addressDelivery\" :status=\"status\"\n                       @getApi=\"getEmbedAddressApi\"/>\n          </t-form-card>\n\n\n          <t-form-card class=\"mt-4\" title=\"Informações Qualidade\" icon-card-heading>\n\n            <b-row>\n\n              <t-input  cols=\"6\" v-model=\"form.typeQualityAppraisalId\" :options=\"typeQualityAppraisalOptions\" select\n                        label=\"Tipo de Certificado de Qualidade\"/>\n\n              <t-input v-model=\"form.qualityEmail\" cols=\"6\" label=\"E-mail para envio de Certificado de Qualidade\" email-multiple help=\"Utilizado somente quando implementado o módulo de emissão de Certificados de Qualidade.\" />\n\n            </b-row>\n\n\n          </t-form-card>\n\n          <t-form-card title=\"Alçada de Acesso\" icon-folder>\n\n            <b-form-checkbox class=\"col-sm-12 ml-2 mb-3\" v-model=\"form.enableAllCompanies\" switch>\n              Habilitar todas empresas a este cliente?\n              <t-help\n                  title=\"Você poderá especificar quais as empresas desejadas, basta desmarcar esta opção e especificar quais as empresas abaixo.\"/>\n            </b-form-checkbox>\n\n            <t-table\n                v-if=\"!form.enableAllCompanies\"\n                enable-checked\n                v-model=\"companiesIds\"\n                :items=\"companiesList\"\n                :fields=\"viewFieldsPageCompanies\"\n                title-items=\"empresa\"\n                link-primary-column=\"name\"\n                table-bordered\n                disable-actions-column\n                primary-key-column=\"companyId\">\n\n              <template #first-column=\"{item}\">\n                {{ item.name }}\n              </template>\n\n            </t-table>\n\n          </t-form-card>\n\n          <t-form-card title=\"Informações Adicionais\" icon-info-square>\n\n            <b-row>\n\n              <t-input v-model=\"form.typeOriginCustomerId\" cols=\"8\"\n                       :options=\"typeOriginCustomerOptions\"\n                       required\n                       label=\"Origem do Cliente\" select>\n\n                <template #no-options=\"{search}\">\n                  <b-link @click=\"addNoOption('modal-type-origin-customer',search)\">Cadastrar Origem</b-link>\n                </template>\n\n                <template #input-group-append>\n                  <t-button title=\"Adicionar nova Origem\" @click=\"openDialogForm('modal-type-origin-customer')\"\n                            icon-plus/>\n                </template>\n\n              </t-input>\n\n              <t-input cols=\"4\" required v-model=\"form.customerSince\" label=\"Cliente desde\" date-now date/>\n\n\n            </b-row>\n\n            <b-row>\n\n              <t-input v-model=\"form.contactName\" cols=\"4\"\n                       class-icon-group=\"icon-mail-colored\" label=\"Contato - Nome\">\n                <template #input-icon>\n                  <b-icon-people/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.contactEmail\" cols=\"4\"\n                       class-icon-group=\"icon-mail-colored\" email-multiple label=\"Contato - Email\">\n                <template #input-icon>\n                  <b-icon-envelope/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.whatsapp\" cols=\"4\"\n                       class-icon-group=\"icon-whatsapp-colored\" tel label=\"WhatsApp\">\n                <template #input-icon>\n                  <b-icon-whatsapp/>\n                </template>\n              </t-input>\n\n            </b-row>\n\n\n            <b-row>\n\n              <t-input v-model=\"form.site\" cols=\"3\" class-icon-group=\"icon-mail-colored\" url label=\"Site\">\n                <template #input-icon>\n                  <b-icon-link/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.instagram\" small=\"Preencha no padrão @...\" cols=\"3\"\n                       class-icon-group=\"icon-mail-colored\" label=\"Instagram\">\n                <template #input-icon>\n                  <b-icon-instagram/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.linkedin\" small=\"Preencha no padrão in/...\" cols=\"3\"\n                       class-icon-group=\"icon-mail-colored\" label=\"LinkedIn\">\n                <template #input-icon>\n                  <b-icon-linkedin/>\n                </template>\n              </t-input>\n\n\n              <t-input v-model=\"form.phone\" cols=\"3\" class-icon-group=\"icon-mail-colored\" tel label=\"Telefone fixo\">\n                <template #input-icon>\n                  <b-icon-telephone/>\n                </template>\n              </t-input>\n\n            </b-row>\n\n\n\n\n            <t-page-form-field-customized\n                ref=\"fieldsGeneral\"\n                :command=\"command\" :status=\"status\" :user-auth=\"userAuth\"\n                :fields-customizable=\"entityFieldCustomized('page')\"\n                :primary-key=\"form.productId\" :foreign-key=\"currentPage.pageId\" :busy=\"!pageFormIsLoaded\"\n                :primary-key-column=\"fieldKey\" foreign-key-column=\"pageId\"\n            />\n\n            <t-input v-model=\"form.note\" label=\"Observações\" max-length=\"500\" textarea/>\n\n            <t-input-status text=\"Cliente\" class=\"ml-1\" v-model=\"form.status\"/>\n\n          </t-form-card>\n\n        </t-form-tab>\n\n      </template>\n\n      <template #out-of-form>\n\n        <t-form-tab title=\"Códigos de Conversão\"  hash=\"other-code\" lazy>\n\n          <t-form-card title=\"Gerais\">\n\n            <b-row>\n\n              <t-input\n                  cols=\"6\"\n                  v-model=\"form.providerCodeLabel\"\n                  label=\"Seu código neste cliente\"\n                  help=\"Utilize este campo caso desejar armazenar seu código cadastrado no sistema do seu cliente. Exemplo de utilização: Etiquetas de vendas/expedição ou integrações.\"/>\n\n              <t-input\n                  cols=\"6\"\n                  v-model=\"form.otherCodeLabel\"\n                  :add-error=\"error.otherCodeLabel\"\n                  label=\"Cód. interno\"\n                  help=\"Utilize este campo caso desejar armazenar o código deste cliente de outro sistema seu como por exemplo o ERP da sua empresa\"/>\n\n            </b-row>\n\n          </t-form-card>\n\n          <t-form-card title=\"PRODUTOS\">\n\n            <CustomerProductCodeConversion :foreign-key=\"form.customerId\"/>\n\n          </t-form-card>\n\n\n        </t-form-tab>\n\n      </template>\n\n\n    </t-page-form>\n\n  </t-page>\n\n</template>\n<script>\n\nimport TypeCustomerDialog from \"@/views/modules/customer/TypeProfileDialog\"\nimport GroupCostumerDialog from \"@/views/modules/customer/GroupCostumerDialog\"\n\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport ePerson from \"@/views/embed/general/e-person\"\nimport eAddress from \"@/views/embed/general/e-address\"\n\nimport http from \"@/services/config/http-common\"\nimport pageFormEmbeddableMixin from \"@/mixins/page/pageFormEmbeddableMixin\";\nimport CustomerProductCodeConversion from \"@/views/modules/customer/CustomerProductOtherCode\";\nimport TypeOriginCustomerDialog from \"@/views/modules/customer/TypeOriginDialog\";\nimport pageViewService from \"@/services/modules/setting/PageView.service\";\nimport CompanyService from \"@/services/modules/admin/Company.service\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageFormMixin, pageFormEmbeddableMixin],\n  components: {\n    ePerson,\n    eAddress,\n    TypeCustomerDialog,\n    GroupCostumerDialog,\n    CustomerProductCodeConversion,\n    TypeOriginCustomerDialog\n  },\n  name: 'CustomerFormProductionEmbeddable',\n  data() {\n    return {\n      path: \"\", //Utilizar somente quando fora do padrão\n      genKey: true,\n      fieldKey: \"customerId\",\n      enableGeneralFields: true,\n      /*FORM DECLARADO NO MIXIM PARA VIR DE FORA COM OS CAMPOS PADRÕES JUNTOS COM OS CUSTOMIZADOS*/\n      error: {//Campos que podem receber retorno de erro do backend\n        otherCodeLabel: \"\",\n        typeCustomerId: \"\",\n        customerGroupId: \"\",\n        companyId: \"\",\n      },\n      /*Embed Person Errors version: 1.0*/\n      error_person: {\n        name: \"\",\n        federalTaxpayer: \"\",\n      },\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      noOptionAdd: \"\", //Usado para armazenar o começo do nome digitado para inserção rápida em dialogos na página.\n      companyOptions: [],\n      typeQualityAppraisalOptions:[],\n      typeCustomerOptions: [],\n      customerGroupOptions: [],\n      typeOriginCustomerOptions: [],\n      companiesIds: [],\n      companiesList: [],\n      viewFieldsPageCompanies: [],\n      //--------------------------------------------------------------------------------------\n    }\n  },\n\n  methods: {\n\n    mountedPrepare() {\n      this.mountedPrepareEmbeddable() //Sempre no início de mountedPrepare\n    },\n    async mountedContinued() {\n\n      await http.list(\"customer/selectRelationList\").then((response) => {\n\n        this.companyOptions = response.companyOptions\n        this.typeCustomerOptions = response.typeCustomerOptions\n        this.customerGroupOptions = response.customerGroupOptions\n        this.typeQualityAppraisalOptions = response.typeQualityAppraisalOptions\n        this.typeOriginCustomerOptions = response.typeOriginCustomerOptions\n\n      }).catch(error => this.responseError(error))\n\n      await pageViewService.getViewFieldsByPage(31, true, [\"\"]).then((response) => {\n        this.viewFieldsPageCompanies = response\n      }).catch(error => this.responseError(error))\n\n      await CompanyService.getAllCompanies().then((list) => {\n        this.companiesList = list\n        this.companiesIds = this.convertObjectToArrayIds(this.form.companies, \"companyId\")\n      }).catch(error => this.responseError(error))\n\n      this.mountedContinuedEmbeddable() //Sempre no final de mountedContinued\n\n    },\n\n    async onSubmit(){\n\n      this.form.companies = await this.convertArrayIdsToObject(this.companiesIds, \"companyId\")\n\n      if (this.enabledSubmit) {\n        await this.sendingFormDefault()\n      } else {\n        await this.$emit(\"beforeSubmit\")\n      }\n    },\n\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    onTypeCustomerDialog(itemInserted) {\n\n      this.form.typeCustomerId = itemInserted.value\n      this.typeCustomerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onGroupCostumerDialog(itemInserted) {\n\n      this.form.customerGroupId = itemInserted.value\n      this.customerGroupOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onTypeOriginCustomerDialog(itemInserted) {\n\n      this.form.typeOriginCustomerId = itemInserted.value\n      this.typeOriginCustomerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n\n    //--------------------------------------------------------------------------------------\n\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedForm(true, false)\n\n    await this.mountedContinued()\n\n  },\n\n}\n</script>\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!./CustomerFormProductionEmbeddable.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!./CustomerFormProductionEmbeddable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CustomerFormProductionEmbeddable.vue?vue&type=template&id=256f7aa2&\"\nimport script from \"./CustomerFormProductionEmbeddable.vue?vue&type=script&lang=js&\"\nexport * from \"./CustomerFormProductionEmbeddable.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 _c('t-page',[_c('TypeCustomerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeCustomerDialog}}),_c('GroupCostumerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onGroupCostumerDialog}}),_c('TypeOriginCustomerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeOriginCustomerDialog}}),_c('t-page-form',{attrs:{\"tabs\":\"\",\"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-tab',{attrs:{\"title\":\"Dados Básicos\",\"active\":\"\"}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.customerId),callback:function ($$v) {_vm.$set(_vm.form, \"customerId\", $$v)},expression:\"form.customerId\"}}),_c('t-form-card',{attrs:{\"title\":\"Cadastro\",\"icon-building\":\"\"}},[_c('e-person',{attrs:{\"person\":_vm.form.person,\"not-required\":\"\",\"name-required\":\"\",\"command\":_vm.command,\"address-relation-name\":\"addressDefault\",\"error\":_vm.error_person,\"status\":status},on:{\"getApi\":_vm.getEmbedCNPJApi}},[_c('b-row',[_c('t-input',{attrs:{\"label\":\"Cód. Cliente\",\"cols\":\"2\",\"fixed\":\"\"},model:{value:(_vm.form.customerNumber),callback:function ($$v) {_vm.$set(_vm.form, \"customerNumber\", $$v)},expression:\"form.customerNumber\"}}),_c('t-input',{attrs:{\"cols\":\"2\",\"add-error\":_vm.error.otherCodeLabel,\"label\":\"Cód. Interno\",\"help\":\"Utilize este campo caso desejar armazenar o código deste cliente de outro sistema seu como por exemplo o ERP da sua empresa\"},model:{value:(_vm.form.otherCodeLabel),callback:function ($$v) {_vm.$set(_vm.form, \"otherCodeLabel\", $$v)},expression:\"form.otherCodeLabel\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"required\":\"\",\"options\":_vm.typeCustomerOptions,\"add-error\":_vm.error.typeCustomerId,\"label\":\"Perfil\",\"select\":\"\"},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-customer',search)}}},[_vm._v(\"Cadastrar Perfil de Cliente\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Perfil de Cliente\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeCustomerId\", $$v)},expression:\"form.typeCustomerId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"options\":_vm.customerGroupOptions,\"add-error\":_vm.error.customerGroupId,\"disable-unique-select\":\"\",\"label\":\"Grupo de Clientes\",\"help\":\"Utilize o grupo de clientes para agrupar diferentes filiais em um único local, podendo centralizar preferências pela matriz.\",\"select\":\"\"},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-group-customer',search)}}},[_vm._v(\"Cadastrar Grupo de Cliente\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Grupo de Cliente\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-group-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.customerGroupId),callback:function ($$v) {_vm.$set(_vm.form, \"customerGroupId\", $$v)},expression:\"form.customerGroupId\"}})],1)],1),_c('e-address',{attrs:{\"address\":_vm.form.addressDefault,\"not-required\":\"\",\"command\":_vm.command,\"name\":\"addressDefault\",\"status\":status},on:{\"getApi\":_vm.getEmbedAddressApi}})],1),_c('t-form-card',{attrs:{\"title\":\"Alçada de Acesso\",\"icon-folder\":\"\"}},[_c('b-form-checkbox',{staticClass:\"col-sm-12 ml-2 mb-3\",attrs:{\"switch\":\"\"},model:{value:(_vm.form.enableAllCompanies),callback:function ($$v) {_vm.$set(_vm.form, \"enableAllCompanies\", $$v)},expression:\"form.enableAllCompanies\"}},[_vm._v(\" Habilitar todas empresas a este cliente? \"),_c('t-help',{attrs:{\"title\":\"Você poderá especificar quais as empresas desejadas, basta desmarcar esta opção e especificar quais as empresas abaixo.\"}})],1),(!_vm.form.enableAllCompanies)?_c('t-table',{attrs:{\"enable-checked\":\"\",\"items\":_vm.companiesList,\"fields\":_vm.viewFieldsPageCompanies,\"title-items\":\"empresa\",\"link-primary-column\":\"name\",\"table-bordered\":\"\",\"disable-actions-column\":\"\",\"primary-key-column\":\"companyId\"},scopedSlots:_vm._u([{key:\"first-column\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(item.name)+\" \")]}}],null,true),model:{value:(_vm.companiesIds),callback:function ($$v) {_vm.companiesIds=$$v},expression:\"companiesIds\"}}):_vm._e()],1),_c('t-form-card',{attrs:{\"title\":\"Informações Adicionais\",\"icon-info-square\":\"\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"options\":_vm.typeOriginCustomerOptions,\"first-default\":\"\",\"required\":\"\",\"label\":\"Origem do Cliente\",\"select\":\"\"},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-origin-customer',search)}}},[_vm._v(\"Cadastrar Origem\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar nova Origem\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-origin-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeOriginCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeOriginCustomerId\", $$v)},expression:\"form.typeOriginCustomerId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"options\":_vm.priceListOptions,\"label\":\"Tabela de Preço\",\"select\":\"\"},model:{value:(_vm.form.priceListId),callback:function ($$v) {_vm.$set(_vm.form, \"priceListId\", $$v)},expression:\"form.priceListId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"required\":\"\",\"label\":\"Cliente desde\",\"date-now\":\"\",\"date\":\"\"},model:{value:(_vm.form.customerSince),callback:function ($$v) {_vm.$set(_vm.form, \"customerSince\", $$v)},expression:\"form.customerSince\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"4\",\"class-icon-group\":\"icon-mail-colored\",\"label\":\"Contato - Nome\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-people')]},proxy:true}],null,true),model:{value:(_vm.form.contactName),callback:function ($$v) {_vm.$set(_vm.form, \"contactName\", $$v)},expression:\"form.contactName\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"class-icon-group\":\"icon-mail-colored\",\"email-multiple\":\"\",\"label\":\"Contato - Email\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-envelope')]},proxy:true}],null,true),model:{value:(_vm.form.contactEmail),callback:function ($$v) {_vm.$set(_vm.form, \"contactEmail\", $$v)},expression:\"form.contactEmail\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"class-icon-group\":\"icon-whatsapp-colored\",\"tel\":\"\",\"label\":\"WhatsApp\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-whatsapp')]},proxy:true}],null,true),model:{value:(_vm.form.whatsapp),callback:function ($$v) {_vm.$set(_vm.form, \"whatsapp\", $$v)},expression:\"form.whatsapp\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"url\":\"\",\"label\":\"Site\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-link')]},proxy:true}],null,true),model:{value:(_vm.form.site),callback:function ($$v) {_vm.$set(_vm.form, \"site\", $$v)},expression:\"form.site\"}}),_c('t-input',{attrs:{\"small\":\"Preencha no padrão @...\",\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"label\":\"Instagram\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-instagram')]},proxy:true}],null,true),model:{value:(_vm.form.instagram),callback:function ($$v) {_vm.$set(_vm.form, \"instagram\", $$v)},expression:\"form.instagram\"}}),_c('t-input',{attrs:{\"small\":\"Preencha no padrão in/...\",\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"label\":\"LinkedIn\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-linkedin')]},proxy:true}],null,true),model:{value:(_vm.form.linkedin),callback:function ($$v) {_vm.$set(_vm.form, \"linkedin\", $$v)},expression:\"form.linkedin\"}}),_c('t-input',{attrs:{\"cols\":\"3\",\"class-icon-group\":\"icon-mail-colored\",\"tel\":\"\",\"label\":\"Telefone fixo\"},scopedSlots:_vm._u([{key:\"input-icon\",fn:function(){return [_c('b-icon-telephone')]},proxy:true}],null,true),model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_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.productId,\"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',{staticClass:\"ml-1\",attrs:{\"text\":\"Cliente\"},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>\n\n  <t-page>\n\n    <TypeCustomerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onTypeCustomerDialog\"/>\n    <GroupCostumerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onGroupCostumerDialog\"/>\n    <TypeOriginCustomerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onTypeOriginCustomerDialog\"/>\n\n    <t-page-form tabs :submit-text=\"currentPage.singularTitle\"\n                 :title=\"t('form-of')+currentPage.pageTitle\"\n                 :command=\"command\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmit\"\n                 :check-errors-again=\"checkErrorsComponent\"\n                 :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\" :busy=\"!pageFormIsLoaded\">\n\n      <template #default=\"{status}\">\n\n        <t-form-tab title=\"Dados Básicos\" active>\n\n          <t-input v-model=\"form.customerId\" hidden/>\n\n\n          <t-form-card title=\"Cadastro\" icon-building>\n\n            <e-person :person=\"form.person\" not-required name-required :command=\"command\" address-relation-name=\"addressDefault\"\n                      :error=\"error_person\" :status=\"status\" @getApi=\"getEmbedCNPJApi\">\n\n              <b-row>\n\n                <t-input v-model=\"form.customerNumber\" label=\"Cód. Cliente\" cols=\"2\" fixed/>\n\n                <t-input\n                    cols=\"2\"\n                    v-model=\"form.otherCodeLabel\"\n                    :add-error=\"error.otherCodeLabel\"\n                    label=\"Cód. Interno\"\n                    help=\"Utilize este campo caso desejar armazenar o código deste cliente de outro sistema seu como por exemplo o ERP da sua empresa\"/>\n\n\n                <t-input v-model=\"form.typeCustomerId\" cols=\"4\"\n                         required\n                         :options=\"typeCustomerOptions\" :add-error=\"error.typeCustomerId\"\n                         label=\"Perfil\" select>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-type-customer',search)\">Cadastrar Perfil de Cliente</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Perfil de Cliente\" @click=\"openDialogForm('modal-type-customer')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n                <t-input v-model=\"form.customerGroupId\" cols=\"4\"\n                         :options=\"customerGroupOptions\" :add-error=\"error.customerGroupId\"\n                         disable-unique-select\n                         label=\"Grupo de Clientes\"\n                         help=\"Utilize o grupo de clientes para agrupar diferentes filiais em um único local, podendo centralizar preferências pela matriz.\"\n                         select>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-group-customer',search)\">Cadastrar Grupo de Cliente</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Grupo de Cliente\" @click=\"openDialogForm('modal-group-customer')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n              </b-row>\n\n            </e-person>\n\n\n            <e-address :address=\"form.addressDefault\" not-required :command=\"command\" name=\"addressDefault\"\n                       :status=\"status\"\n                       @getApi=\"getEmbedAddressApi\"/>\n\n          </t-form-card>\n\n          <t-form-card title=\"Alçada de Acesso\" icon-folder>\n\n            <b-form-checkbox class=\"col-sm-12 ml-2 mb-3\" v-model=\"form.enableAllCompanies\" switch>\n              Habilitar todas empresas a este cliente?\n              <t-help\n                  title=\"Você poderá especificar quais as empresas desejadas, basta desmarcar esta opção e especificar quais as empresas abaixo.\"/>\n            </b-form-checkbox>\n\n            <t-table\n                v-if=\"!form.enableAllCompanies\"\n                enable-checked\n                v-model=\"companiesIds\"\n                :items=\"companiesList\"\n                :fields=\"viewFieldsPageCompanies\"\n                title-items=\"empresa\"\n                link-primary-column=\"name\"\n                table-bordered\n                disable-actions-column\n                primary-key-column=\"companyId\">\n\n              <template #first-column=\"{item}\">\n                {{ item.name }}\n              </template>\n\n            </t-table>\n\n          </t-form-card>\n\n          <t-form-card title=\"Informações Adicionais\" icon-info-square>\n\n            <b-row>\n\n\n              <t-input v-model=\"form.typeOriginCustomerId\" cols=\"4\"\n                       :options=\"typeOriginCustomerOptions\"\n                       first-default\n                       required\n                       label=\"Origem do Cliente\" select>\n\n                <template #no-options=\"{search}\">\n                  <b-link @click=\"addNoOption('modal-type-origin-customer',search)\">Cadastrar Origem</b-link>\n                </template>\n\n                <template #input-group-append>\n                  <t-button title=\"Adicionar nova Origem\" @click=\"openDialogForm('modal-type-origin-customer')\"\n                            icon-plus/>\n                </template>\n\n              </t-input>\n\n              <t-input v-model=\"form.priceListId\"\n                       cols=\"4\"\n                       :options=\"priceListOptions\"\n                       label=\"Tabela de Preço\" select />\n\n              <t-input cols=\"4\" required v-model=\"form.customerSince\" label=\"Cliente desde\" date-now date/>\n\n\n            </b-row>\n\n            <b-row>\n\n              <t-input v-model=\"form.contactName\" cols=\"4\"\n                       class-icon-group=\"icon-mail-colored\" label=\"Contato - Nome\">\n                <template #input-icon>\n                  <b-icon-people/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.contactEmail\" cols=\"4\"\n                       class-icon-group=\"icon-mail-colored\" email-multiple label=\"Contato - Email\">\n                <template #input-icon>\n                  <b-icon-envelope/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.whatsapp\" cols=\"4\"\n                       class-icon-group=\"icon-whatsapp-colored\" tel label=\"WhatsApp\">\n                <template #input-icon>\n                  <b-icon-whatsapp/>\n                </template>\n              </t-input>\n\n            </b-row>\n\n\n            <b-row>\n\n              <t-input v-model=\"form.site\" cols=\"3\" class-icon-group=\"icon-mail-colored\" url label=\"Site\">\n                <template #input-icon>\n                  <b-icon-link/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.instagram\" small=\"Preencha no padrão @...\" cols=\"3\"\n                       class-icon-group=\"icon-mail-colored\" label=\"Instagram\">\n                <template #input-icon>\n                  <b-icon-instagram/>\n                </template>\n              </t-input>\n\n              <t-input v-model=\"form.linkedin\" small=\"Preencha no padrão in/...\" cols=\"3\"\n                       class-icon-group=\"icon-mail-colored\" label=\"LinkedIn\">\n                <template #input-icon>\n                  <b-icon-linkedin/>\n                </template>\n              </t-input>\n\n\n              <t-input v-model=\"form.phone\" cols=\"3\" class-icon-group=\"icon-mail-colored\" tel label=\"Telefone fixo\">\n                <template #input-icon>\n                  <b-icon-telephone/>\n                </template>\n              </t-input>\n\n            </b-row>\n\n            <t-page-form-field-customized\n                ref=\"fieldsGeneral\"\n                :command=\"command\" :status=\"status\" :user-auth=\"userAuth\"\n                :fields-customizable=\"entityFieldCustomized('page')\"\n                :primary-key=\"form.productId\" :foreign-key=\"currentPage.pageId\" :busy=\"!pageFormIsLoaded\"\n                :primary-key-column=\"fieldKey\" foreign-key-column=\"pageId\"\n            />\n\n            <t-input v-model=\"form.note\" label=\"Observações\" max-length=\"500\" textarea/>\n\n            <t-input-status text=\"Cliente\" class=\"ml-1\" v-model=\"form.status\"/>\n\n          </t-form-card>\n\n        </t-form-tab>\n\n      </template>\n\n\n    </t-page-form>\n\n  </t-page>\n\n</template>\n<script>\n\nimport TypeCustomerDialog from \"@/views/modules/customer/TypeProfileDialog\"\nimport GroupCostumerDialog from \"@/views/modules/customer/GroupCostumerDialog\"\n\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport ePerson from \"@/views/embed/general/e-person\"\nimport eAddress from \"@/views/embed/general/e-address\"\n\nimport http from \"@/services/config/http-common\"\nimport pageFormEmbeddableMixin from \"@/mixins/page/pageFormEmbeddableMixin\";\nimport TypeOriginCustomerDialog from \"@/views/modules/customer/TypeOriginDialog\";\nimport pageViewService from \"@/services/modules/setting/PageView.service\";\nimport CompanyService from \"@/services/modules/admin/Company.service\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageFormMixin, pageFormEmbeddableMixin],\n  components: {\n    ePerson,\n    eAddress,\n    TypeCustomerDialog,\n    GroupCostumerDialog,\n    TypeOriginCustomerDialog\n  },\n  name: 'CustomerFormArchEmbeddable',\n  data() {\n    return {\n      path: \"\", //Utilizar somente quando fora do padrão\n      genKey: true,\n      fieldKey: \"customerId\",\n      enableGeneralFields: true,\n      /*FORM DECLARADO NO MIXIM PARA VIR DE FORA COM OS CAMPOS PADRÕES JUNTOS COM OS CUSTOMIZADOS*/\n      error: {//Campos que podem receber retorno de erro do backend\n        otherCodeLabel: \"\",\n        typeCustomerId: \"\",\n        customerGroupId: \"\",\n        companyId: \"\",\n      },\n      /*Embed Person Errors version: 1.0*/\n      error_person: {\n        name: \"\",\n        federalTaxpayer: \"\",\n      },\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      noOptionAdd: \"\", //Usado para armazenar o começo do nome digitado para inserção rápida em dialogos na página.\n      companyOptions: [],\n      typeOriginCustomerOptions: [],\n      priceListOptions: [],\n      typeCustomerOptions: [],\n      customerGroupOptions: [],\n      companiesIds: [],\n      companiesList: [],\n      viewFieldsPageCompanies: [],\n      //--------------------------------------------------------------------------------------\n    }\n  },\n\n  methods: {\n\n    mountedPrepare() {\n      this.mountedPrepareEmbeddable() //Sempre no início de mountedPrepare\n    },\n    async mountedContinued() {\n\n      const account = await this.$store.getters.getAccountUser\n\n      if(this.isInsert()){\n\n        this.form.enableAllCompanies = account.enableAllCompanies\n\n        if(!this.form.enableAllCompanies){\n          this.form.companies = account.companies\n        }\n\n      }\n\n      await http.list(\"customer/selectRelationList\").then((response) => {\n\n        this.companyOptions = response.companyOptions\n        this.typeCustomerOptions = response.typeCustomerOptions\n        this.priceListOptions = response.priceListOptions\n        this.customerGroupOptions = response.customerGroupOptions\n        this.typeOriginCustomerOptions = response.typeOriginCustomerOptions\n\n      }).catch(error => this.responseError(error))\n\n      await pageViewService.getViewFieldsByPage(31, true, [\"\"]).then((response) => {\n        this.viewFieldsPageCompanies = response\n      }).catch(error => this.responseError(error))\n\n      await CompanyService.getAllCompanies().then((list) => {\n        this.companiesList = list\n        this.companiesIds = this.convertObjectToArrayIds(this.form.companies, \"companyId\")\n      }).catch(error => this.responseError(error))\n\n\n\n\n      this.mountedContinuedEmbeddable() //Sempre no final de mountedContinued\n\n    },\n    async onSubmit(){\n\n      this.form.companies = await this.convertArrayIdsToObject(this.companiesIds, \"companyId\")\n\n      if (this.enabledSubmit) {\n        await this.sendingFormDefault()\n      } else {\n        await this.$emit(\"beforeSubmit\")\n      }\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    onTypeCustomerDialog(itemInserted) {\n\n      this.form.typeCustomerId = itemInserted.value\n      this.typeCustomerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onGroupCostumerDialog(itemInserted) {\n\n      this.form.customerGroupId = itemInserted.value\n      this.customerGroupOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onTypeOriginCustomerDialog(itemInserted) {\n\n      this.form.typeOriginCustomerId = itemInserted.value\n      this.typeOriginCustomerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n\n    //--------------------------------------------------------------------------------------\n\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedForm(true, false)\n\n    await this.mountedContinued()\n\n  },\n\n}\n</script>\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!./CustomerFormArchEmbeddable.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!./CustomerFormArchEmbeddable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CustomerFormArchEmbeddable.vue?vue&type=template&id=5f0c0e56&\"\nimport script from \"./CustomerFormArchEmbeddable.vue?vue&type=script&lang=js&\"\nexport * from \"./CustomerFormArchEmbeddable.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 _c('t-page',[_c('TypeCustomerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeCustomerDialog}}),_c('GroupCostumerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onGroupCostumerDialog}}),_c('SellerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onSellerDialog}}),_c('PriceListDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onPriceListDialog}}),_c('PaymentPlanDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onPaymentPlanDialog}}),_c('BankAccountDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onBankAccountDialog}}),_c('TypeOriginCustomerDialog',{attrs:{\"no-option-add\":_vm.noOptionAdd},on:{\"onSubmit\":_vm.onTypeOriginCustomerDialog}}),_c('t-page-form',{attrs:{\"tabs\":\"\",\"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.onSubmitDefault},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar status = ref.status;\nreturn [_c('t-form-tab',{attrs:{\"title\":\"Dados Básicos\",\"active\":\"\"}},[_c('t-input',{attrs:{\"hidden\":\"\"},model:{value:(_vm.form.customerId),callback:function ($$v) {_vm.$set(_vm.form, \"customerId\", $$v)},expression:\"form.customerId\"}}),_c('t-form-card',{attrs:{\"title\":\"Cadastro\",\"icon-building\":\"\"}},[(_vm.form.person)?_c('e-person',{attrs:{\"person\":_vm.form.person,\"command\":_vm.command,\"address-relation-name\":\"addressDefault\",\"error\":_vm.error_person,\"status\":status},on:{\"getApi\":_vm.getEmbedCNPJApi}},[_c('b-row',[_c('t-input',{attrs:{\"label\":\"Cód. Cliente\",\"cols\":\"4\",\"fixed\":\"\"},model:{value:(_vm.form.customerNumber),callback:function ($$v) {_vm.$set(_vm.form, \"customerNumber\", $$v)},expression:\"form.customerNumber\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"options\":_vm.typeCustomerOptions,\"add-error\":_vm.error.typeCustomerId,\"label\":\"Perfil\",\"select\":\"\"},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-customer',search)}}},[_vm._v(\"Cadastrar Perfil de Cliente\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Tipo de Cliente\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeCustomerId\", $$v)},expression:\"form.typeCustomerId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"options\":_vm.customerGroupOptions,\"add-error\":_vm.error.customerGroupId,\"label\":\"Grupo de Clientes\",\"help\":\"Utilize o grupo de clientes para agrupar diferentes filiais em um único local, podendo centralizar preferências pela matriz.\",\"select\":\"\"},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-group-customer',search)}}},[_vm._v(\"Cadastrar Grupo de Cliente\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Grupo de Cliente\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-group-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.customerGroupId),callback:function ($$v) {_vm.$set(_vm.form, \"customerGroupId\", $$v)},expression:\"form.customerGroupId\"}})],1)],1):_vm._e(),_c('e-address',{attrs:{\"address\":_vm.form.addressDefault,\"command\":_vm.command,\"name\":\"addressDefault\",\"status\":status},on:{\"getApi\":_vm.getEmbedAddressApi}}),_c('b-form-checkbox',{attrs:{\"switch\":\"\"},model:{value:(_vm.form.hasAddressDelivery),callback:function ($$v) {_vm.$set(_vm.form, \"hasAddressDelivery\", $$v)},expression:\"form.hasAddressDelivery\"}},[_c('small',[_vm._v(\"Endereço de entrega diferente?\")]),_c('t-help',{attrs:{\"title\":\"Marque, caso o haja um endereço de entrega diferente do cadastro.\"}})],1)],1),(_vm.form.hasAddressDelivery)?_c('t-form-card',{attrs:{\"title\":\"Endereço Entrega\",\"icon-truck\":\"\"}},[_c('e-address',{attrs:{\"address\":_vm.form.addressDelivery,\"command\":_vm.command,\"name\":\"addressDelivery\",\"status\":status},on:{\"getApi\":_vm.getEmbedAddressApi}})],1):_vm._e(),_c('t-form-card',{attrs:{\"title\":\"Dados Fiscais\"},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('b-icon-receipt')]},proxy:true}],null,true)},[_c('div',{staticClass:\"form-card-header\"},[_c('t-input',{attrs:{\"not-row\":\"\",\"label\":\"Perfil para NF-e\",\"options\":_vm.typeInvoiceBROptions,\"required\":\"\",\"radio\":\"\"},model:{value:(_vm.form.invoiceBRTypeProfile),callback:function ($$v) {_vm.$set(_vm.form, \"invoiceBRTypeProfile\", $$v)},expression:\"form.invoiceBRTypeProfile\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"E-mail envio NF-e\"},model:{value:(_vm.form.invoiceEmail),callback:function ($$v) {_vm.$set(_vm.form, \"invoiceEmail\", $$v)},expression:\"form.invoiceEmail\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"required\":\"\",\"options\":_vm.typeProfileTaxationOptions,\"label\":\"Regime Tributação\",\"select\":\"\"},model:{value:(_vm.form.typeProfileTaxationId),callback:function ($$v) {_vm.$set(_vm.form, \"typeProfileTaxationId\", $$v)},expression:\"form.typeProfileTaxationId\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Insc. Estadual - Indicador\",\"help\":\"Campo utilizado nas emissões de NFs informando o tipo de Inscrição Estatual do cliente Pessoa Jurídica\",\"required\":_vm.form.person && _vm.form.person.typePerson===2,\"disabled\":_vm.form.person && _vm.form.person.typePerson===1,\"options\":_vm.invoiceBRCompanyTypeStateRegistrationOptions,\"add-error\":_vm.error.invoiceBRCompanyTypeStateRegistration,\"select-common\":\"\"},model:{value:(_vm.form.invoiceBRCompanyTypeStateRegistration),callback:function ($$v) {_vm.$set(_vm.form, \"invoiceBRCompanyTypeStateRegistration\", $$v)},expression:\"form.invoiceBRCompanyTypeStateRegistration\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"help\":\"Ao vender um produto para uma empresa localizada na região da Zona Franca de Manaus ou em uma Área de Livre Comércio, poderá ser necessário aplicar benefícios tributários como isenção de ICMS ou suspensão de IPI, e poderá ser necessário informar a Inscrição SUFRAMA do destinatário para gerar a NF-e.\",\"label\":\"Suframa\"},model:{value:(_vm.form.suframa),callback:function ($$v) {_vm.$set(_vm.form, \"suframa\", $$v)},expression:\"form.suframa\"}})],1)],1),_c('t-form-card',{attrs:{\"title\":\"Qualidade\"}},[_c('t-input',{attrs:{\"label\":\"E-mail para envio de Certificado de Qualidade\",\"email-multiple\":\"\",\"help\":\"Utilizado somente quando implementado o módulo de emissão de Certificados de Qualidade.\"},model:{value:(_vm.form.qualityEmail),callback:function ($$v) {_vm.$set(_vm.form, \"qualityEmail\", $$v)},expression:\"form.qualityEmail\"}})],1),_c('t-form-card',{attrs:{\"title\":\"Faturamento\",\"icon-cash-stack\":\"\"}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Empresa \"),_c('em',{staticClass:\"small\"},[_vm._v(\"preferêncial ou determinada\")])]),_c('b-form-checkbox',{attrs:{\"switch\":\"\"}},[_c('small',[_vm._v(\"Bloquear\")]),_c('t-help',{attrs:{\"title\":\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"}})],1)],1),_c('t-input',{attrs:{\"options\":_vm.companyOptions,\"add-error\":_vm.error.companyId,\"disable-unique-select\":\"\",\"label\":\"Empresa\",\"hide-label\":\"\",\"select\":\"\"},model:{value:(_vm.form.companyId),callback:function ($$v) {_vm.$set(_vm.form, \"companyId\", $$v)},expression:\"form.companyId\"}})],1),_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Vendedor\")]),_c('b-form-checkbox',{attrs:{\"switch\":\"\"}},[_c('small',[_vm._v(\"Bloquear\")]),_c('t-help',{attrs:{\"title\":\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"}})],1)],1),_c('t-input',{attrs:{\"options\":_vm.sellerOptions,\"add-error\":_vm.error.sellerId,\"label\":\"Vendedor\",\"hide-label\":\"\",\"select\":\"\"},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-seller',search)}}},[_vm._v(\"Cadastrar Vendedor\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Vendedor\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-seller')}}})]},proxy:true}],null,true),model:{value:(_vm.form.sellerId),callback:function ($$v) {_vm.$set(_vm.form, \"sellerId\", $$v)},expression:\"form.sellerId\"}})],1),_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Tabela de Preço\")]),_c('b-form-checkbox',{attrs:{\"switch\":\"\"}},[_c('small',[_vm._v(\"Bloquear\")]),_c('t-help',{attrs:{\"title\":\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"}})],1)],1),_c('t-input',{attrs:{\"options\":_vm.priceListOptions,\"add-error\":_vm.error.priceListId,\"label\":\"Tabela de Preço\",\"select\":\"\",\"hide-label\":\"\"},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-price-list',search)}}},[_vm._v(\"Cadastrar Tabela de Preços\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Tabela de Preços\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-price-list')}}})]},proxy:true}],null,true),model:{value:(_vm.form.priceListId),callback:function ($$v) {_vm.$set(_vm.form, \"priceListId\", $$v)},expression:\"form.priceListId\"}})],1)],1),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Forma Pagamento\")]),_c('b-form-checkbox',{attrs:{\"switch\":\"\"}},[_c('small',[_vm._v(\"Bloquear\")]),_c('t-help',{attrs:{\"title\":\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"}})],1)],1),_c('t-input',{attrs:{\"options\":_vm.typePaymentOptions,\"add-error\":_vm.error.typePaymentId,\"label\":\"Forma Pagamento\",\"select\":\"\",\"hide-label\":\"\"},model:{value:(_vm.form.typePaymentId),callback:function ($$v) {_vm.$set(_vm.form, \"typePaymentId\", $$v)},expression:\"form.typePaymentId\"}})],1),_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Plano de Pagamento\")]),_c('b-form-checkbox',{attrs:{\"switch\":\"\"}},[_c('small',[_vm._v(\"Bloquear\")]),_c('t-help',{attrs:{\"title\":\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"}})],1)],1),_c('t-input',{attrs:{\"options\":_vm.paymentPlanOptions,\"add-error\":_vm.error.paymentPlanId,\"label\":\"Plano de Pagamento\",\"select\":\"\",\"hide-label\":\"\"},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-payment-plan',search)}}},[_vm._v(\"Cadastrar Plano de Pagamento\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Plano de Pagamento\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-payment-plan')}}})]},proxy:true}],null,true),model:{value:(_vm.form.paymentPlanId),callback:function ($$v) {_vm.$set(_vm.form, \"paymentPlanId\", $$v)},expression:\"form.paymentPlanId\"}})],1),_c('b-col',{attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"d-flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('div',[_vm._v(\"Conta Bancária \"),_c('t-help',{attrs:{\"title\":\"Conta bancária para recebimento\"}})],1),_c('b-form-checkbox',{attrs:{\"switch\":\"\"}},[_c('small',[_vm._v(\"Bloquear\")]),_c('t-help',{attrs:{\"title\":\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"}})],1)],1),_c('t-input',{attrs:{\"options\":_vm.bankAccountOptions,\"add-error\":_vm.error.bankAccountId,\"label\":\"Conta Receita\",\"select\":\"\",\"hide-label\":\"\"},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-bank-account',search)}}},[_vm._v(\"Cadastrar Conta Bancária\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar Conta Bancária\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-bank-account')}}})]},proxy:true}],null,true),model:{value:(_vm.form.bankAccountId),callback:function ($$v) {_vm.$set(_vm.form, \"bankAccountId\", $$v)},expression:\"form.bankAccountId\"}})],1)],1)],1),_c('t-form-card',{attrs:{\"title\":\"Informações\",\"icon-info-square\":\"\"}},[_c('b-row',[_c('t-input',{attrs:{\"cols\":\"8\",\"options\":_vm.typeOriginCustomerOptions,\"label\":\"Origem do Cliente\",\"select\":\"\"},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-origin-customer',search)}}},[_vm._v(\"Cadastrar Origem\")])]}},{key:\"input-group-append\",fn:function(){return [_c('t-button',{attrs:{\"title\":\"Adicionar nova Origem\",\"icon-plus\":\"\"},on:{\"click\":function($event){return _vm.openDialogForm('modal-type-origin-customer')}}})]},proxy:true}],null,true),model:{value:(_vm.form.typeOriginCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeOriginCustomerId\", $$v)},expression:\"form.typeOriginCustomerId\"}}),_c('t-input',{attrs:{\"cols\":\"4\",\"label\":\"Cliente desde\",\"date\":\"\"},model:{value:(_vm.form.customerSince),callback:function ($$v) {_vm.$set(_vm.form, \"customerSince\", $$v)},expression:\"form.customerSince\"}})],1),_c('b-row',[_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Site\",\"url\":\"\"},model:{value:(_vm.form.site),callback:function ($$v) {_vm.$set(_vm.form, \"site\", $$v)},expression:\"form.site\"}}),_c('t-input',{attrs:{\"cols\":\"6\",\"label\":\"Linkedin\"},model:{value:(_vm.form.linkedin),callback:function ($$v) {_vm.$set(_vm.form, \"linkedin\", $$v)},expression:\"form.linkedin\"}})],1),_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.productId,\"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',{staticClass:\"ml-1\",attrs:{\"text\":\"Cliente\"},model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}})],1)],1)]}},{key:\"out-of-form\",fn:function(){return [_c('t-form-tab',{attrs:{\"title\":\"Contatos\",\"hash\":\"contact\"}},[_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Em desensolvimento\")])],1),_c('t-form-tab',{attrs:{\"title\":\"Financeiro\",\"hash\":\"financial\"}},[_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Em desensolvimento\")])],1),_c('t-form-tab',{attrs:{\"title\":\"Especificações\",\"hash\":\"specification\"}},[_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Em desensolvimento\")]),_c('b-row')],1),_c('t-form-tab',{attrs:{\"title\":\"Anexos\",\"hash\":\"file\"}},[_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Em desensolvimento\")])],1),_c('t-form-tab',{attrs:{\"title\":\"Comentários\",\"hash\":\"comment\"}},[_c('t-msg',{attrs:{\"info\":\"\"}},[_vm._v(\"Em desensolvimento\")])],1)]},proxy:true}])})],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:{\"label\":\"Vendedor vinculado a usuário da plataforma?\",\"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\",\"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:{\"add-error\":_vm.error.name,\"label\":\"Nome\",\"required\":!_vm.onYesLinkUser},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n\n    <t-input label=\"Vendedor vinculado a usuário da plataforma?\" v-model=\"yesOrNotLinkUser\" :options=\"yesOrNotOptions\"\n             radio/>\n\n    <div v-show=\"onYesLinkUser\">\n\n      <t-input v-model=\"form.userId\" :options=\"usersOptions\" :add-error=\"error.userId\"\n               label=\"Usuário da plataforma\" :required=\"onYesLinkUser\" select/>\n\n    </div>\n\n\n    <div v-show=\"!onYesLinkUser\">\n\n      <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Nome\" :required=\"!onYesLinkUser\"/>\n\n    </div>\n\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\nimport userService from \"@/services/modules/setting/User.service\";\n\nexport default {\n  name: \"SellerDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-seller\",\n      title: \"Cadastro rápido de Vendedor\",\n      okText: \"Incluir Vendedor\",\n      form: {\n        sellerId: 0,\n        userId:0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n      yesOrNotLinkUser: \"N\", //Valor padrão não possui vinculo com usuário\n      usersOptions: [],\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    async showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      this.pageFormIsLoaded = false\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n      await userService.selectList(\"\").then((list) =>{\n        this.usersOptions = list\n      }).catch(error => this.responseError(error))\n\n      this.pageFormIsLoaded = true\n\n      if (this.form.userId > 0) {\n        this.yesOrNotLinkUser = \"Y\"\n      }\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"business/seller\", (item) => {\n\n        this.itemInserted.value = item.sellerId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  computed: {\n    onYesLinkUser() {\n      return this.yesOrNotLinkUser === 'Y'\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  },\n\n}\n</script>\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!./SellerDialog.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!./SellerDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SellerDialog.vue?vue&type=template&id=df617fce&\"\nimport script from \"./SellerDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./SellerDialog.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 _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\":\"Nome da Tabela de Preços\",\"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 }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n    <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Nome da Tabela de Preços\" submitted focus required/>\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"PriceListDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-price-list\",\n      title: \"Cadastro rápido de Tabela de Preços\",\n      okText: \"Incluir Tabela de Preços\",\n      form: {\n        priceListId: 0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"business/price-list\", (item) => {\n\n        this.itemInserted.value = item.priceListId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\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!./PriceListDialog.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!./PriceListDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PriceListDialog.vue?vue&type=template&id=448e9a6e&\"\nimport script from \"./PriceListDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./PriceListDialog.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 _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\":\"Plano de Pagamento\",\"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 }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n    <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Plano de Pagamento\" submitted focus required/>\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"PaymentPlanDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-payment-plan\",\n      title: \"Cadastro rápido de Plano de Pagamento\",\n      okText: \"Incluir Plano de Pagamento\",\n      form: {\n        paymentPlanId: 0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"business/payment-plan\", (item) => {\n\n        this.itemInserted.value = item.paymentPlanId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\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!./PaymentPlanDialog.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!./PaymentPlanDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PaymentPlanDialog.vue?vue&type=template&id=526222ca&\"\nimport script from \"./PaymentPlanDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./PaymentPlanDialog.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 _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\":\"Conta Bancária\",\"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 }","<template>\n\n  <t-dialog-form :generalErrors=\"generalErrors\" :title=\"title\" :ok-text=\"okText\" @show=\"showModal\" @hidden=\"resetModal\" :id=\"id\" :command=\"command\"\n                 ref=\"dialog_form\" @onSubmit=\"onSubmit\">\n    <t-input v-model=\"form.name\"  :add-error=\"error.name\" label=\"Conta Bancária\" submitted focus required/>\n  </t-dialog-form>\n\n</template>\n<script>\nimport tDialogForm from \"@/components/template/dialog/t-dialog-form\";\nimport pageDialogFormMixin from \"@/mixins/page/pageDialogFormMixin\";\n\nexport default {\n  name: \"BankAccountDialog\",\n  components: {tDialogForm},\n  mixins: [pageDialogFormMixin],\n  data() {\n    return {\n      id: \"modal-bank-account\",\n      title: \"Cadastro rápido de Conta Bancária\",\n      okText: \"Incluir Conta Bancária\",\n      form: {\n        bankAccountId: 0,\n        name: \"\",\n        note: \"\",\n        status: 1,\n      },\n      error: {//Campos que podem receber retorno de erro do backend\n        name: \"\",\n      },\n    }\n  },\n  methods: {\n\n    //Declaro sempre localmente, pois poderá realizar operações diferentes do padrão como setar algum valor padrão vindo de fora e que seria limpo pelo resetModal de forma dinamica\n    showModal() {\n\n      //Limpa os campos\n      this.resetModal()\n\n      //Setar alguma informações padrão por exemplo vindo de fora\n\n    },\n\n    async onSubmit() {\n\n      //Validações específicas da tela\n\n      await this.setInsertDialog(\"purchase/bank-account\", (item) => {\n\n        this.itemInserted.value = item.bankAccountId\n        this.itemInserted.text = this.form.name\n\n        this.successInsert()\n\n      })\n\n    }\n  },\n  watch:{\n    noOptionAdd(){\n      this.form.name = this.noOptionAdd\n    }\n  }\n}\n</script>\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!./BankAccountDialog.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!./BankAccountDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BankAccountDialog.vue?vue&type=template&id=5be2dd7c&\"\nimport script from \"./BankAccountDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./BankAccountDialog.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","<template>\n\n  <t-page>\n\n    <TypeCustomerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onTypeCustomerDialog\"/>\n    <GroupCostumerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onGroupCostumerDialog\"/>\n    <SellerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onSellerDialog\"/>\n    <PriceListDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onPriceListDialog\"/>\n    <PaymentPlanDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onPaymentPlanDialog\"/>\n    <BankAccountDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onBankAccountDialog\"/>\n    <TypeOriginCustomerDialog :no-option-add=\"noOptionAdd\" @onSubmit=\"onTypeOriginCustomerDialog\"/>\n\n\n    <t-page-form tabs :submit-text=\"currentPage.singularTitle\"\n                 :title=\"t('form-of')+currentPage.pageTitle\"\n                 :command=\"command\" :status=\"status\" :generalErrors=\"generalErrors\" @onSubmit=\"onSubmitDefault\"\n                 :check-errors-again=\"checkErrorsComponent\"\n                 :go-back-title=\"t('go-back-list')\" :go-back-to=\"currentPage.name\" :busy=\"!pageFormIsLoaded\">\n\n      <template #default=\"{status}\">\n\n        <t-form-tab title=\"Dados Básicos\" active>\n\n          <t-input v-model=\"form.customerId\" hidden/>\n\n          <t-form-card title=\"Cadastro\" icon-building>\n\n            <e-person :person=\"form.person\" v-if=\"form.person\" :command=\"command\" address-relation-name=\"addressDefault\"\n                      :error=\"error_person\" :status=\"status\" @getApi=\"getEmbedCNPJApi\">\n\n              <b-row>\n\n                <t-input v-model=\"form.customerNumber\" label=\"Cód. Cliente\" cols=\"4\" fixed/>\n\n                <t-input v-model=\"form.typeCustomerId\" cols=\"4\"\n                         :options=\"typeCustomerOptions\" :add-error=\"error.typeCustomerId\"\n                         label=\"Perfil\" select>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-type-customer',search)\">Cadastrar Perfil de Cliente</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Tipo de Cliente\" @click=\"openDialogForm('modal-type-customer')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n                <t-input v-model=\"form.customerGroupId\" cols=\"4\"\n                         :options=\"customerGroupOptions\" :add-error=\"error.customerGroupId\"\n                         label=\"Grupo de Clientes\"\n                         help=\"Utilize o grupo de clientes para agrupar diferentes filiais em um único local, podendo centralizar preferências pela matriz.\"\n                         select>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-group-customer',search)\">Cadastrar Grupo de Cliente</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Grupo de Cliente\" @click=\"openDialogForm('modal-group-customer')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n              </b-row>\n\n            </e-person>\n\n            <e-address :address=\"form.addressDefault\" :command=\"command\" name=\"addressDefault\" :status=\"status\"\n                       @getApi=\"getEmbedAddressApi\"/>\n\n            <b-form-checkbox v-model=\"form.hasAddressDelivery\" switch>\n              <small>Endereço de entrega diferente?</small>\n              <t-help title=\"Marque, caso o haja um endereço de entrega diferente do cadastro.\"/>\n            </b-form-checkbox>\n\n          </t-form-card>\n\n          <t-form-card v-if=\"form.hasAddressDelivery\" title=\"Endereço Entrega\" icon-truck>\n            <e-address :address=\"form.addressDelivery\" :command=\"command\" name=\"addressDelivery\" :status=\"status\"\n                       @getApi=\"getEmbedAddressApi\"/>\n          </t-form-card>\n\n          <t-form-card title=\"Dados Fiscais\">\n\n            <template #icon>\n              <b-icon-receipt></b-icon-receipt>\n            </template>\n\n            <div class=\"form-card-header\">\n              <t-input not-row label=\"Perfil para NF-e\"\n                       v-model=\"form.invoiceBRTypeProfile\"\n                       :options=\"typeInvoiceBROptions\" required radio/>\n            </div>\n\n            <b-row>\n\n\n              <t-input cols=\"6\" v-model=\"form.invoiceEmail\"\n                       label=\"E-mail envio NF-e\"\n              />\n\n\n              <t-input cols=\"6\"\n                       required\n                       v-model=\"form.typeProfileTaxationId\"\n                       :options=\"typeProfileTaxationOptions\"\n                       label=\"Regime Tributação\" select\n              />\n\n              <t-input cols=\"6\"\n                       label=\"Insc. Estadual - Indicador\"\n                       help=\"Campo utilizado nas emissões de NFs informando o tipo de Inscrição Estatual do cliente Pessoa Jurídica\"\n                       :required=\"form.person && form.person.typePerson===2\" :disabled=\"form.person && form.person.typePerson===1\"\n                       v-model=\"form.invoiceBRCompanyTypeStateRegistration\"\n                       :options=\"invoiceBRCompanyTypeStateRegistrationOptions\"\n                       :add-error=\"error.invoiceBRCompanyTypeStateRegistration\" select-common\n              />\n\n\n              <t-input cols=\"6\" v-model=\"form.suframa\"\n                       help=\"Ao vender um produto para uma empresa localizada na região da Zona Franca de Manaus ou em uma Área de Livre Comércio, poderá ser necessário aplicar benefícios tributários como isenção de ICMS ou suspensão de IPI, e poderá ser necessário informar a Inscrição SUFRAMA do destinatário para gerar a NF-e.\"\n                       label=\"Suframa\"\n              />\n\n            </b-row>\n\n          </t-form-card>\n\n          <t-form-card title=\"Qualidade\">\n\n            <t-input v-model=\"form.qualityEmail\" label=\"E-mail para envio de Certificado de Qualidade\" email-multiple help=\"Utilizado somente quando implementado o módulo de emissão de Certificados de Qualidade.\" />\n\n          </t-form-card>\n\n          <t-form-card title=\"Faturamento\" icon-cash-stack>\n\n            <b-row>\n\n              <b-col cols=\"4\">\n\n                <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n                  <div>Empresa <em class=\"small\">preferêncial ou determinada</em></div>\n\n                  <b-form-checkbox switch>\n\n                    <small>Bloquear</small><!--Obrigar preenchimento para marcado como bloqueado -->\n                    <t-help\n                        title=\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"/>\n                  </b-form-checkbox>\n\n                </div>\n\n                <t-input v-model=\"form.companyId\"\n                         :options=\"companyOptions\" :add-error=\"error.companyId\" disable-unique-select\n                         label=\"Empresa\" hide-label select/>\n\n              </b-col>\n\n              <b-col cols=\"4\">\n\n                <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n                  <div>Vendedor</div>\n\n                  <b-form-checkbox switch>\n\n                    <small>Bloquear</small><!--Obrigar preenchimento para marcado como bloqueado -->\n                    <t-help\n                        title=\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"/>\n                  </b-form-checkbox>\n\n                </div>\n\n\n                <t-input v-model=\"form.sellerId\"\n                         :options=\"sellerOptions\" :add-error=\"error.sellerId\"\n                         label=\"Vendedor\" hide-label select>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-seller',search)\">Cadastrar Vendedor</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Vendedor\" @click=\"openDialogForm('modal-seller')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n\n              </b-col>\n\n\n              <b-col cols=\"4\">\n\n                <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n                  <div>Tabela de Preço</div>\n\n                  <b-form-checkbox switch>\n\n                    <small>Bloquear</small><!--Obrigar preenchimento para marcado como bloqueado -->\n                    <t-help\n                        title=\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"/>\n                  </b-form-checkbox>\n\n                </div>\n\n\n                <t-input v-model=\"form.priceListId\"\n                         :options=\"priceListOptions\" :add-error=\"error.priceListId\"\n                         label=\"Tabela de Preço\" select hide-label>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-price-list',search)\">Cadastrar Tabela de Preços</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Tabela de Preços\" @click=\"openDialogForm('modal-price-list')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n\n              </b-col>\n\n\n            </b-row>\n\n\n            <b-row>\n\n              <b-col cols=\"4\">\n\n                <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n                  <div>Forma Pagamento</div>\n\n                  <b-form-checkbox switch>\n\n                    <small>Bloquear</small><!--Obrigar preenchimento para marcado como bloqueado -->\n                    <t-help\n                        title=\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"/>\n                  </b-form-checkbox>\n\n                </div>\n\n                <!--Forma de Pagamento é bloqueado para cadastro nas contas, uma vez que existem diversas regras aplicáveis para geração de boleto, etc.-->\n                <t-input v-model=\"form.typePaymentId\"\n                         :options=\"typePaymentOptions\" :add-error=\"error.typePaymentId\"\n                         label=\"Forma Pagamento\" select hide-label>\n\n                </t-input>\n\n              </b-col>\n\n\n              <b-col cols=\"4\">\n\n                <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n                  <div>Plano de Pagamento</div>\n\n                  <b-form-checkbox switch>\n\n                    <small>Bloquear</small><!--Obrigar preenchimento para marcado como bloqueado -->\n                    <t-help\n                        title=\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"/>\n                  </b-form-checkbox>\n\n                </div>\n\n                <t-input v-model=\"form.paymentPlanId\"\n                         :options=\"paymentPlanOptions\" :add-error=\"error.paymentPlanId\"\n                         label=\"Plano de Pagamento\" select hide-label>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-payment-plan',search)\">Cadastrar Plano de Pagamento</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Plano de Pagamento\" @click=\"openDialogForm('modal-payment-plan')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n              </b-col>\n\n              <b-col cols=\"4\">\n\n                <div class=\"d-flex\" style=\"justify-content: space-between\">\n\n                  <div>Conta Bancária\n                    <t-help title=\"Conta bancária para recebimento\"/>\n                  </div>\n\n                  <b-form-checkbox switch>\n\n                    <small>Bloquear</small><!--Obrigar preenchimento para marcado como bloqueado -->\n                    <t-help\n                        title=\"Caso bloqueado não será possível alteração em orçamentos, pedidos e notas fiscais para este cliente. Exceto usuários com validação de acesso 'Permissão geral para alterar preferências de faturamento bloqueadas'.\"/>\n                  </b-form-checkbox>\n\n                </div>\n\n                <t-input v-model=\"form.bankAccountId\"\n                         :options=\"bankAccountOptions\" :add-error=\"error.bankAccountId\"\n                         label=\"Conta Receita\" select hide-label>\n\n                  <template #no-options=\"{search}\">\n                    <b-link @click=\"addNoOption('modal-bank-account',search)\">Cadastrar Conta Bancária</b-link>\n                  </template>\n\n                  <template #input-group-append>\n                    <t-button title=\"Adicionar Conta Bancária\" @click=\"openDialogForm('modal-bank-account')\"\n                              icon-plus/>\n                  </template>\n\n                </t-input>\n\n              </b-col>\n\n            </b-row>\n\n          </t-form-card>\n\n          <t-form-card title=\"Informações\" icon-info-square>\n\n            <b-row>\n\n              <t-input v-model=\"form.typeOriginCustomerId\" cols=\"8\"\n                       :options=\"typeOriginCustomerOptions\"\n                       label=\"Origem do Cliente\" select>\n\n                <template #no-options=\"{search}\">\n                  <b-link @click=\"addNoOption('modal-type-origin-customer',search)\">Cadastrar Origem</b-link>\n                </template>\n\n                <template #input-group-append>\n                  <t-button title=\"Adicionar nova Origem\" @click=\"openDialogForm('modal-type-origin-customer')\"\n                            icon-plus/>\n                </template>\n\n              </t-input>\n\n              <t-input cols=\"4\" v-model=\"form.customerSince\" label=\"Cliente desde\" date/>\n\n\n            </b-row>\n\n            <b-row>\n\n              <t-input cols=\"6\" v-model=\"form.site\" label=\"Site\" url/>\n              <t-input cols=\"6\" v-model=\"form.linkedin\" label=\"Linkedin\"/>\n\n            </b-row>\n\n            <t-page-form-field-customized\n                ref=\"fieldsGeneral\"\n                :command=\"command\" :status=\"status\" :user-auth=\"userAuth\"\n                :fields-customizable=\"entityFieldCustomized('page')\"\n                :primary-key=\"form.productId\" :foreign-key=\"currentPage.pageId\" :busy=\"!pageFormIsLoaded\"\n                :primary-key-column=\"fieldKey\" foreign-key-column=\"pageId\"\n            />\n\n            <t-input v-model=\"form.note\" label=\"Observações\" max-length=\"500\" textarea/>\n\n            <t-input-status text=\"Cliente\" class=\"ml-1\" v-model=\"form.status\"/>\n\n          </t-form-card>\n\n\n        </t-form-tab>\n\n      </template>\n\n      <template #out-of-form>\n\n        <t-form-tab title=\"Contatos\" hash=\"contact\">\n            <t-msg info>Em desensolvimento</t-msg>\n        </t-form-tab>\n\n        <t-form-tab title=\"Financeiro\"  hash=\"financial\">\n\n          <t-msg info>Em desensolvimento</t-msg>\n<!--          Limite de para recebimento, além de resumo de pagamento em formato dashboard-->\n\n        </t-form-tab>\n\n        <t-form-tab title=\"Especificações\"  hash=\"specification\">\n\n          <t-msg info>Em desensolvimento</t-msg>\n          <b-row>\n\n<!--            - Códigos do Cliente\n            - Detalhes relacionados a produtos e exibidos todos aqui\n            - Quadro 'Produção' com os campso perfil de produção / perfil de qualidade-->\n\n\n            <!--            <t-input cols=\"4\" v-model=\"form.productionProfileId\" label=\"Perfil Produção\" help=\"Texto Texto\"\n                                 select/>\n\n                        <t-input cols=\"4\" v-model=\"form.qualityProfileId\" label=\"Perfil Qualidade\"\n                                 help=\"Selecione conforme o perfil de qualidade exigida para o cliente, junto com o perfil serão consideradas atribuições como envio de certificado via e-mail ou impresso \"\n                                 select/>-->\n\n          </b-row>\n\n<!--          Regras específicas aplicadas a este cliente que fogem o padrão geral-->\n\n        </t-form-tab>\n\n        <t-form-tab title=\"Anexos\" hash=\"file\">\n          <t-msg info>Em desensolvimento</t-msg>\n        </t-form-tab>\n\n        <t-form-tab title=\"Comentários\" hash=\"comment\">\n          <t-msg info>Em desensolvimento</t-msg>\n        </t-form-tab>\n\n      </template>\n\n    </t-page-form>\n\n  </t-page>\n\n</template>\n<script>\n\nimport TypeCustomerDialog from \"@/views/modules/customer/TypeProfileDialog\"\nimport GroupCostumerDialog from \"@/views/modules/customer/GroupCostumerDialog\"\nimport SellerDialog from \"@/views/modules/business/SellerDialog\"\nimport PriceListDialog from \"@/views/modules/business/PriceListDialog\"\nimport PaymentPlanDialog from \"@/views/modules/business/PaymentPlanDialog\"\nimport BankAccountDialog from \"@/views/modules/financial/BankAccountDialog\"\nimport TypeOriginCustomerDialog from \"@/views/modules/customer/TypeOriginDialog\"\n\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageFormMixin from \"@/mixins/page/pageFormMixin\"\nimport ePerson from \"@/views/embed/general/e-person\"\nimport eAddress from \"@/views/embed/general/e-address\"\n\nimport http from \"@/services/config/http-common\"\nimport pageFormEmbeddableMixin from \"@/mixins/page/pageFormEmbeddableMixin\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageFormMixin, pageFormEmbeddableMixin],\n  components: {\n    ePerson,\n    eAddress,\n    TypeCustomerDialog,\n    GroupCostumerDialog,\n    SellerDialog,\n    PriceListDialog,\n    PaymentPlanDialog,\n    BankAccountDialog,\n    TypeOriginCustomerDialog\n  },\n  name: 'CustomerFormERPEmbeddable',\n  data() {\n    return {\n      path: \"\", //Utilizar somente quando fora do padrão\n      genKey: true, //Utilizar quando desejar gerar chave temporária\n      fieldKey: \"customerId\",\n      enableGeneralFields: true,\n      /*FORM DECLARADO NO MIXIM PARA VIR DE FORA COM OS CAMPOS PADRÕES JUNTOS COM OS CUSTOMIZADOS*/\n      error: {//Campos que podem receber retorno de erro do backend\n        otherCodeLabel: \"\",\n        typeCustomerId: \"\",\n        customerGroupId: \"\",\n        invoiceBRCompanyTypeStateRegistration: \"\",\n        companyId: \"\",\n        sellerId: \"\",\n        priceListId: \"\",\n        typePaymentId: \"\",\n        paymentPlanId: \"\",\n        bankAccountId: \"\",\n      },\n      /*Embed Person Errors version: 1.0*/\n      error_person: {\n        name: \"\",\n        federalTaxpayer: \"\",\n      },\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      noOptionAdd: \"\", //Usado para armazenar o começo do nome digitado para inserção rápida em dialogos na página.\n      companyOptions: [],\n      typeCustomerOptions: [],\n      customerGroupOptions: [],\n      priceListOptions: [],\n      typePaymentOptions: [],\n      sellerOptions: [],\n      paymentPlanOptions: [],\n      bankAccountOptions: [],\n      typeOriginCustomerOptions: [],\n      typeProfileTaxationOptions: [\n        {value: 1, text: \"Simples Nacional\"}, {value: 2, text: \"Lucro Presumido\"}, {value: 9, text: \"Lucro Real\"}\n      ],\n      typeInvoiceBROptions: [{value: 1, text: \"Industrialização\"}, {value: 2, text: \"Revenda\"}, {\n        value: 3,\n        text: \"Uso e Consumo\"\n      }],\n      invoiceBRCompanyTypeStateRegistrationOptions: [{value: 1, text: \"Contribuite ICMS\"}, {\n        value: 2,\n        text: \"Contribuinte Isento\"\n      }, {value: 9, text: \"Não contribuinte\"}\n      ],\n      //--------------------------------------------------------------------------------------\n    }\n  },\n\n  methods: {\n\n    mountedPrepare() {\n        this.mountedPrepareEmbeddable() //Sempre no início de mountedPrepare\n    },\n    async mountedContinued() {\n\n      await http.list(\"customer/selectRelationList\").then((response) => {\n\n        this.companyOptions = response.companyOptions\n        this.typeCustomerOptions = response.typeCustomerOptions\n        this.customerGroupOptions = response.customerGroupOptions\n        this.priceListOptions = response.priceListOptions\n        this.typePaymentOptions = response.typePaymentOptions\n        this.sellerOptions = response.sellerOptions\n        this.paymentPlanOptions = response.paymentPlanOptions\n        this.bankAccountOptions = response.bankAccountOptions\n        this.typeOriginCustomerOptions = response.typeOriginCustomerOptions\n\n      }).catch(error => this.responseError(error))\n\n      this.mountedContinuedEmbeddable() //Sempre no final de mountedContinued\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    onTypeCustomerDialog(itemInserted) {\n\n      this.form.typeCustomerId = itemInserted.value\n      this.typeCustomerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onGroupCostumerDialog(itemInserted) {\n\n      this.form.customerGroupId = itemInserted.value\n      this.customerGroupOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onSellerDialog(itemInserted) {\n\n      this.form.sellerId = itemInserted.value\n      this.sellerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    onPriceListDialog(itemInserted) {\n\n      this.form.priceListId = itemInserted.value\n      this.priceListOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n    onPaymentPlanDialog(itemInserted) {\n\n      this.form.paymentPlanId = itemInserted.value\n      this.paymentPlanOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n    onBankAccountDialog(itemInserted) {\n\n      this.form.bankAccountId = itemInserted.value\n      this.bankAccountOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n    onTypeOriginCustomerDialog(itemInserted) {\n\n      this.form.typeOriginCustomerId = itemInserted.value\n      this.typeOriginCustomerOptions.push(itemInserted); //Simples, pois é uma lista não agrupada\n\n    },\n\n    //--------------------------------------------------------------------------------------\n\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedForm(true, false)\n\n    await this.mountedContinued()\n\n  },\n\n}\n</script>\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!./CustomerFormERPEmbeddable.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!./CustomerFormERPEmbeddable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CustomerFormERPEmbeddable.vue?vue&type=template&id=3fb11104&\"\nimport script from \"./CustomerFormERPEmbeddable.vue?vue&type=script&lang=js&\"\nexport * from \"./CustomerFormERPEmbeddable.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","//Apresenta problema na alteração, pois os dados são mantidos\r\n\r\nexport default class {\r\n    /*SEGUIR EXATAMENTE ESTE PADRÃO CHAMANDO form: new XXX(), POIS SE MUDAR DARÁ ERRO COM OBJETO NÃO SENDO ALTERADO A CADA INCLUSÃO*/\r\n\r\n    constructor() {\r\n\r\n        return {\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\r\n}\r\n","import PersonEntity from \"@/model/entities/resource/entity/PersonEntity\";\r\n\r\nexport default class {\r\n    /*SEGUIR EXATAMENTE ESTE PADRÃO CHAMANDO form: new XXX(), POIS SE MUDAR DARÁ ERRO COM OBJETO NÃO SENDO ALTERADO A CADA INCLUSÃO*/\r\n\r\n    constructor() {\r\n\r\n        return {\r\n            customerId: 0,\r\n            customerNumber: 0,\r\n            typeCustomerId: 0,\r\n            customerGroupId: 0,\r\n            otherCodeLabel: \"\",\r\n            providerCodeLabel: \"\",\r\n            person: new PersonEntity(),\r\n            addressDefault: {\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            hasAddressDelivery: false,\r\n            addressDelivery: {\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            companies: [],\r\n            typeProfileTaxationId: 0,\r\n            invoiceBRTypeProfile: 0,\r\n            invoiceBRCompanyTypeStateRegistration: 0,\r\n            invoiceBRSuframa: \"\",\r\n            invoiceEmail: \"\",\r\n            typeQualityAppraisalId: 0,\r\n            qualityEmail: \"\",\r\n            companyId: 0,\r\n            companyBlocked: false,\r\n            sellerId: 0,\r\n            sellerBlocked: false,\r\n            priceListId: 0,\r\n            priceListBlocked: false,\r\n            typePaymentId: 0,\r\n            typePaymentBlocked: false,\r\n            paymentPlanId: 0,\r\n            paymentPlanBlocked: false,\r\n            bankAccountId: 0,\r\n            bankAccountBlocked: false,\r\n            typeOriginCustomerId: 0,\r\n            enableAllCompanies: true,\r\n            contactName: \"\",\r\n            contactEmail: \"\",\r\n            customerSince: \"\",\r\n            site: \"\",\r\n            linkedin: \"\",\r\n            whatsapp: \"\",\r\n            instagram: \"\",\r\n            phone: \"\",\r\n            note: \"\",\r\n            status: 1\r\n        }\r\n\r\n    }\r\n}","import formEmbeddableMixin from \"@/mixins/embeddable/resource/formEmbeddableMixin\";\r\n\r\nimport CustomerFormProductionEmbeddable from \"@/views/modules/customer/embeddable/CustomerFormProductionEmbeddable\";\r\nimport CustomerFormArchEmbeddable from \"@/views/modules/customer/embeddable/CustomerFormArchEmbeddable\";\r\nimport CustomerFormERPEmbeddable from \"@/views/modules/customer/embeddable/CustomerFormERPEmbeddable\";\r\nimport CustomerEntity from \"@/model/entities/modules/customer/CustomerEntity\";\r\n\r\n\r\nexport default {\r\n    components: {CustomerFormProductionEmbeddable, CustomerFormArchEmbeddable,CustomerFormERPEmbeddable},\r\n    mixins: [formEmbeddableMixin],\r\n    data() {\r\n        return {\r\n            path: \"customer\",\r\n            form: new CustomerEntity()\r\n        }\r\n\r\n    },\r\n    /*created(){\r\n        this.form =\r\n    },*/\r\n    methods: {\r\n\r\n\r\n    }\r\n}","<template>\n\n  <CustomerFormArchEmbeddable\n      @mounted=\"onMountedForm\"\n      @beforeSubmit=\"onBeforeSubmit\"\n      @reload=\"reload()\"\n      ref=\"embeddable\"\n      v-model=\"form\"\n      v-if=\"!mountAgain && pageEmbeddableLoaded && accountModule === 'arch'\"\n      :enabled-submit=\"enabledSubmit\" />\n\n  <CustomerFormProductionEmbeddable\n      @mounted=\"onMountedForm\"\n      @beforeSubmit=\"onBeforeSubmit\"\n      @reload=\"reload()\"\n      ref=\"embeddable\"\n      v-model=\"form\"\n      v-else-if=\"!mountAgain && pageEmbeddableLoaded && accountModule === 'production'\"\n      :enabled-submit=\"enabledSubmit\" />\n\n  <CustomerFormERPEmbeddable\n      @mounted=\"onMountedForm\"\n      @beforeSubmit=\"onBeforeSubmit\"\n      @reload=\"reload()\"\n      ref=\"embeddable\"\n      v-model=\"form\"\n      v-else-if=\"!mountAgain && pageEmbeddableLoaded && accountModule === 'erp'\"\n      :enabled-submit=\"enabledSubmit\"\n  />\n\n</template>\n<script>\nimport customerFormEmbeddableMixin from \"@/mixins/embeddable/customer/customerFormEmbeddableMixin\";\nimport ui from \"@/assets/scripts/ui\";\n\nexport default {\n  name: 'CustomerForm',\n  mixins: [customerFormEmbeddableMixin],\n  data() {\n    return {\n\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      accountModule: \"\",\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  methods: {\n\n    mountedPrepare() {\n\n      this.accountModule = ui.getAccountModule()\n    },\n    async mountedContinued() {\n\n      //Necessário realizar a montagem básica antes para saber qual componente renderizar\n      await this.getAssemble('customer', 'form')\n\n      this.pageEmbeddableLoaded = true\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n    onBeforeSubmit() {\n\n      //Libera a continuidade sem nenhuma condição especial\n      this.enabledSubmit = true\n    }\n    //--------------------------------------------------------------------------------------\n\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedContinued()\n\n  },\n}\n</script>\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!./CustomerForm.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!./CustomerForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CustomerForm.vue?vue&type=template&id=f1d04560&\"\nimport script from \"./CustomerForm.vue?vue&type=script&lang=js&\"\nexport * from \"./CustomerForm.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 = \"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","export default {\r\n    data() {\r\n        return {\r\n\r\n        }\r\n    },\r\n    props: {\r\n        value: {\r\n            type: Object,\r\n            required: true,\r\n        },\r\n    },\r\n    methods: {\r\n\r\n        async onSubmitDefault() {\r\n\r\n            if (this.enabledSubmit) {\r\n                await this.sendingFormDefault()\r\n            } else {\r\n                await this.$emit(\"beforeSubmit\")\r\n            }\r\n\r\n        },\r\n\r\n        mountedPrepareEmbeddable() {\r\n            this.setValue(this.value)\r\n        },\r\n        mountedContinuedEmbeddable() {\r\n            this.pageFormIsLoaded = true\r\n            this.setIsLoadingPage(false)\r\n            this.$emit(\"mounted\", this.userAuth, this.command)\r\n        },\r\n        setValue(v) {\r\n            this.form = v\r\n        },\r\n        async sendingFormDefault() {\r\n\r\n            await this.setSending(\r\n                this.form[this.fieldKey],\r\n                (response) => {\r\n                    this.setRedirect(this.currentPage.path, response[this.fieldKey], this.command, 0, \"\", true)\r\n                },\r\n            )\r\n        }\r\n    },\r\n    watch: {\r\n        value(v) {\r\n            this.setValue(v)\r\n        },\r\n        form(v) {\r\n            this.$emit(\"input\", v)\r\n        },\r\n        enabledSubmit: async function (newValue, oldValue) {\r\n            if (newValue && !oldValue) {\r\n                //Liberado para continuação\r\n\r\n                if(typeof this.onSubmit !== \"undefined\"){\r\n                    //Página possui sendingForm especifico\r\n                    await this.onSubmit()\r\n                }else{\r\n                    //Demais casos será padrão\r\n                    await this.sendingFormDefault()\r\n                }\r\n\r\n            }\r\n        }\r\n    }\r\n\r\n}\r\n\r\n\r\n","/**UTILIZADO NAS TELAS ONDE USARAM O COMPONENTE*/\r\n\r\nimport defaultEmbeddableMixin from \"@/mixins/embeddable/resource/defaultEmbeddableMixin\";\r\nimport ui from \"@/assets/scripts/ui\";\r\n\r\nexport default {\r\n\r\n    mixins: [defaultEmbeddableMixin],\r\n    data() {\r\n        return {\r\n            command: 'insert',\r\n            pageFormIsLoaded: false,\r\n            enabledSubmit: false,\r\n            setFieldCustomized: [] //Utilizado para enviar uma customização de campos para ser setado de fora\r\n        }\r\n    },\r\n    methods: {\r\n\r\n        responseErrorGeneral(error) {\r\n\r\n            if (error.response) {\r\n\r\n                if (error.response.status === 500) {\r\n\r\n                    const general = error.response.data.general\r\n\r\n                    if (general && general.length > 0) {\r\n\r\n                        let errors = \"\"\r\n\r\n                        for (error of general) {\r\n                            errors += \" - \" + error\r\n                        }\r\n\r\n                        ui.msgError(this,errors)\r\n\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 4')\r\n                console.warn(error.request);\r\n            }\r\n\r\n        },\r\n\r\n        onMountedForm(userAuth, command) {\r\n\r\n            this.userAuth = userAuth\r\n            this.command = command\r\n\r\n            //Chama o mountedContinued interno\r\n            this.mountedContinued()\r\n\r\n        },\r\n\r\n        getFieldValue(entity, fieldId) {\r\n\r\n            if (this.$refs.embeddable && this.$refs.embeddable.fieldsCustomizable !== undefined) {\r\n\r\n                const entityField = this.$refs.embeddable.fieldsCustomizable.find(a => a.entity === entity)\r\n\r\n                if (entityField !== undefined) {\r\n\r\n                    let field = entityField.fields.find(a => a.fieldId === fieldId)\r\n                    if (field !== undefined)\r\n                        return field.value\r\n\r\n                }\r\n\r\n            }\r\n\r\n\r\n        },\r\n\r\n        /*ATENÇÃO ESTE AQUI É DIFERENTE POIS É ACESSADO VIA REFS INDIRETAMENTE*/\r\n        setFieldValue(entity, fieldId, value) {\r\n\r\n            if (this.$refs.embeddable && this.$refs.embeddable.fieldsCustomizable !== undefined) {\r\n\r\n                let entityField = this.$refs.embeddable.fieldsCustomizable.find(a => a.entity === entity)\r\n\r\n                if (entityField !== undefined) {\r\n\r\n                    let field = entityField.fields.find(a => a.fieldId === fieldId)\r\n\r\n                    if (field !== undefined) {\r\n\r\n                        field.value = value\r\n                        entityField.fields.push(field)\r\n                        entityField.fields.pop()\r\n\r\n                    }\r\n\r\n                }\r\n\r\n            }\r\n\r\n        },\r\n\r\n    }\r\n}","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":""}