{"version":3,"sources":["webpack:///./src/views/modules/customer/Customer.vue?34f4","webpack:///src/views/modules/customer/Customer.vue","webpack:///./src/views/modules/customer/Customer.vue?1bfd","webpack:///./src/views/modules/customer/Customer.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","t","currentPage","pageTitle","userAuth","request","totalPages","totalElements","on","getPage","scopedSlots","_u","key","fn","validation","singularTitle","name","_e","filteredDefault","filteredAdvanced","form","searchDefault","$event","clearSearch","typeCustomerOptions","model","value","callback","$$v","$set","expression","typeOriginCustomerOptions","accountModule","typeQualityAppraisalOptions","proxy","checkViewListTableDefault","checkIsFiltered","pageListIsLoaded","content","viewFields","reloadPageList","staticRenderFns","mixins","pageDefaultMixin","data","path","typeQualityAppraisalId","typeOriginCustomerId","typeCustomerId","methods","mountedPrepare","ui","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQN,EAAIO,EAAE,WAAaP,EAAIQ,YAAYC,UAAU,YAAYT,EAAIU,SAAS,cAAcV,EAAIW,QAAQC,WAAW,iBAAiBZ,EAAIW,QAAQE,eAAeC,GAAG,CAAC,QAAUd,EAAIe,SAASC,YAAYhB,EAAIiB,GAAG,CAAC,CAACC,IAAI,SAASC,GAAG,WAAW,MAAO,CAAEnB,EAAIU,SAASU,WAA2B,iBAAEhB,EAAG,WAAW,CAACE,MAAM,CAAC,KAAON,EAAIO,EAAE,UAAY,IAAMP,EAAIQ,YAAYa,cAAc,GAAKrB,EAAIQ,YAAYc,KAAO,YAAY,QAAU,MAAMtB,EAAIuB,KAAKnB,EAAG,kCAAkC,CAACE,MAAM,CAAC,YAAc,6BAA6B,mBAAmBN,EAAIwB,gBAAgB,oBAAoBxB,EAAIyB,iBAAiB,cAAczB,EAAI0B,MAAMZ,GAAG,CAAC,aA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,EACtBC,eAAgB,GAIlBf,4BAA6B,GAC7BT,oBAAqB,GACrBO,0BAA2B,GAC3BC,cAAe,KAInBiB,QAAS,CAEPC,eAFJ,WAIMvD,KAAKqC,cAAgBmB,EAA3B,yBAGI,iBAPJ,WAOA,wKAEA,iFAEA,4DACA,4CACA,2DAEA,gDARA,+CAkBE,QA7CF,WA6CA,+JAEA,mBAFA,SAIA,gBAJA,uBAMA,qBANA,+CC/GgX,I,YCO5WC,EAAY,eACd,EACA3D,EACAgD,GACA,EACA,KACA,KACA,MAIa,aAAAW,E","file":"js/chunk-2d22dbc4.22ef21b2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-list',{attrs:{\"title\":_vm.t('list-of') + _vm.currentPage.pageTitle,\"user-auth\":_vm.userAuth,\"total-pages\":_vm.request.totalPages,\"total-elements\":_vm.request.totalElements},on:{\"getPage\":_vm.getPage},scopedSlots:_vm._u([{key:\"search\",fn:function(){return [(_vm.userAuth.validation.validationCreate)?_c('t-button',{attrs:{\"text\":_vm.t('insert') + ' ' + _vm.currentPage.singularTitle,\"to\":_vm.currentPage.name + '-form-new',\"primary\":\"\"}}):_vm._e(),_c('t-content-header-search-default',{attrs:{\"placeholder\":\"Nome, Cód., WhatsApp, CNPJ\",\"filtered-default\":_vm.filteredDefault,\"filtered-advanced\":_vm.filteredAdvanced,\"search-form\":_vm.form},on:{\"searchChange\":_vm.searchDefault,\"onClearSearch\":function($event){return _vm.clearSearch()}}},[_c('t-input-search',{attrs:{\"required\":\"\",\"select\":\"\",\"options\":_vm.typeCustomerOptions,\"label\":\"Perfil\"},model:{value:(_vm.form.typeCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeCustomerId\", $$v)},expression:\"form.typeCustomerId\"}}),_c('t-input-search',{attrs:{\"options\":_vm.typeOriginCustomerOptions,\"required\":\"\",\"label\":\"Origem\",\"select\":\"\"},model:{value:(_vm.form.typeOriginCustomerId),callback:function ($$v) {_vm.$set(_vm.form, \"typeOriginCustomerId\", $$v)},expression:\"form.typeOriginCustomerId\"}}),(_vm.accountModule === 'production')?_c('t-input-search',{attrs:{\"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\"}}):_vm._e()],1)]},proxy:true}])},[_c('t-table',{attrs:{\"show\":_vm.checkViewListTableDefault(),\"filtered\":_vm.checkIsFiltered(),\"busy\":!_vm.pageListIsLoaded,\"items\":_vm.request.content,\"user-auth\":_vm.userAuth,\"fields\":_vm.userAuth.viewFields,\"link-primary-column\":\"nameAutomatically\",\"primary-key-column\":\"customerNumber\"},on:{\"reload\":function($event){return _vm.reloadPageList()}}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <t-page>\n\n    <t-page-list :title=\"t('list-of') + currentPage.pageTitle\" :user-auth=\"userAuth\"\n                 :total-pages=\"request.totalPages\" :total-elements=\"request.totalElements\" @getPage=\"getPage\">\n\n\n      <template #search>\n\n\n        <t-button v-if=\"userAuth.validation.validationCreate\" :text=\"t('insert') + ' ' + currentPage.singularTitle\"\n                  :to=\"currentPage.name + '-form-new'\" primary/>\n\n\n        <t-content-header-search-default @searchChange=\"searchDefault\"\n                                         @onClearSearch=\"clearSearch()\"\n                                         placeholder=\"Nome, Cód., WhatsApp, CNPJ\"\n                                         :filtered-default=\"filteredDefault\" :filtered-advanced=\"filteredAdvanced\"\n                                         :search-form=\"form\">\n\n\n          <t-input-search v-model=\"form.typeCustomerId\"\n                          required\n                          select\n                          :options=\"typeCustomerOptions\"\n                          label=\"Perfil\">\n          </t-input-search>\n\n          <t-input-search v-model=\"form.typeOriginCustomerId\"\n                          :options=\"typeOriginCustomerOptions\"\n                          required\n                          label=\"Origem\" select>\n          </t-input-search>\n\n          <t-input-search v-if=\"accountModule === 'production'\" v-model=\"form.typeQualityAppraisalId\" :options=\"typeQualityAppraisalOptions\" select\n                          label=\"Tipo de Certificado de Qualidade\"/>\n\n\n        </t-content-header-search-default>\n\n      </template>\n\n      <t-table :show=\"checkViewListTableDefault()\" @reload=\"reloadPageList()\"\n               :filtered=\"checkIsFiltered()\"\n               :busy=\"!pageListIsLoaded\"\n               :items=\"request.content\"\n               :user-auth=\"userAuth\"\n               :fields=\"userAuth.viewFields\"\n               link-primary-column=\"nameAutomatically\"\n               primary-key-column=\"customerNumber\">\n\n      </t-table>\n\n\n    </t-page-list>\n\n  </t-page>\n\n</template>\n<script>\nimport pageDefaultMixin from \"@/mixins/page/pageDefaultMixin\"\nimport pageListMixin from \"@/mixins/page/pageListMixin\"\nimport http from \"@/services/config/http-common\";\nimport ui from \"@/assets/scripts/ui\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageListMixin],\n  name: 'Customers',\n  data() {\n    return {\n      path: \"\", //Utilizar somente quando fora do padrão\n      form: {\n        typeQualityAppraisalId: 0,\n        typeOriginCustomerId: 0,\n        typeCustomerId: 0,\n      },\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      typeQualityAppraisalOptions: [],\n      typeCustomerOptions: [],\n      typeOriginCustomerOptions: [],\n      accountModule: \"\",\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  methods: {\n\n    mountedPrepare() {\n\n      this.accountModule = ui.getAccountModule()\n\n    },\n    async mountedContinued() {\n\n      await http.list(this.userAuth.currentPage.path + \"/selectRelationList\").then((response) => {\n\n        this.typeQualityAppraisalOptions = response.typeQualityAppraisalOptions\n        this.typeCustomerOptions = response.typeCustomerOptions\n        this.typeOriginCustomerOptions = response.typeOriginCustomerOptions\n\n      }).catch(error => this.responseError(error))\n\n    },\n    //--------------------------------------------------------------------------------------\n    //Início de métodos personalizados desta tela\n\n\n    //--------------------------------------------------------------------------------------\n\n  },\n  async mounted() {\n\n    this.mountedPrepare()\n\n    await this.mountedList()\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!./Customer.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!./Customer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Customer.vue?vue&type=template&id=09cbf0df&\"\nimport script from \"./Customer.vue?vue&type=script&lang=js&\"\nexport * from \"./Customer.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":""}