{"version":3,"sources":["webpack:///./src/views/modules/purchase/PurchaseInvoice.vue?c7a4","webpack:///src/views/modules/purchase/PurchaseInvoice.vue","webpack:///./src/views/modules/purchase/PurchaseInvoice.vue?7b1a","webpack:///./src/views/modules/purchase/PurchaseInvoice.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","model","value","callback","$$v","$set","expression","proxy","checkViewListTableDefault","checkIsFiltered","pageListIsLoaded","content","fields","reloadPageList","ref","item","purchaseInvoiceNumber","path","staticRenderFns","mixins","pageDefaultMixin","data","companyId","supplierId","typePaymentId","paymentPlanId","contactId","issueDate","statusPurchaseInvoice","companyOptions","typePaymentOptions","paymentPlanOptions","methods","mountedPrepare","status","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,6BAA6B,GAAG,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,iCAAiC,mBAAmBN,EAAIwB,gBAAgB,oB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Q,YAAYsC,gBAAgB,IAAI,IAChMC,EAAkB,G,4DC0DtB,GACEC,OAAQ,CAACC,EAAX,aACE3B,KAAM,kBACN4B,KAHF,WAII,MAAO,CACLJ,KAAM,GACNpB,KAAM,CACJyB,UAAW,EACXC,WAAY,EACZC,cAAe,EACfC,cAAe,EACfC,UAAW,EACXC,UAAW,GACXC,sBAAuB,GAEzBhB,OAAQ,CACd,CAAQ,IAAR,wBAAQ,MAAR,eACA,CAAQ,IAAR,4BAAQ,MAAR,cACA,CAAQ,IAAR,0BAAQ,MAAR,YACA,CAAQ,IAAR,WAAQ,MAAR,cACA,CAAQ,IAAR,SAAQ,MAAR,cAAQ,UAAR,UACA,CAAQ,IAAR,wBAAQ,MAAR,UACA,CAAQ,IAAR,UAAQ,MAAR,KAIMiB,eAAgB,GAChBC,mBAAoB,GACpBC,mBAAoB,KAKxBC,QAAS,CAEPC,eAFJ,kBAGa7D,KAAKyB,KAAKqC,QAEnB,iBALJ,WAKA,wKAEA,iFACA,kCACA,0CACA,6CACA,gDANA,+CAgBE,QAtDF,WAsDA,+JAEA,mBAFA,SAIA,gBAJA,uBAMA,qBANA,+CCnHuX,I,YCOnXC,EAAY,eACd,EACAjE,EACAgD,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E","file":"js/chunk-2d0d6f13.13b63f66.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,\"msg-return-gender-feminine\":\"\",\"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\":\"Pedido Compra, Fornecedor, ...\",\"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:{\"enable-range\":\"\",\"date\":\"\",\"label\":\"Data de Emissão\"},model:{value:(_vm.form.issueDate),callback:function ($$v) {_vm.$set(_vm.form, \"issueDate\", $$v)},expression:\"form.issueDate\"}}),_c('t-input-person',{attrs:{\"supplier\":\"\"},model:{value:(_vm.form.supplierId),callback:function ($$v) {_vm.$set(_vm.form, \"supplierId\", $$v)},expression:\"form.supplierId\"}}),_c('t-input-search',{attrs:{\"select\":\"\",\"label\":\"Status Pedido Compra\"},model:{value:(_vm.form.statusPurchaseInvoice),callback:function ($$v) {_vm.$set(_vm.form, \"statusPurchaseInvoice\", $$v)},expression:\"form.statusPurchaseInvoice\"}})],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.fields,\"link-primary-column\":\"purchaseInvoiceNumber\",\"primary-key-column\":\"purchaseInvoiceNumber\"},on:{\"reload\":function($event){return _vm.reloadPageList()}},scopedSlots:_vm._u([{key:\"first-column\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-list-link-primary',{attrs:{\"formatter\":\"lpad:4\",\"label\":item.purchaseInvoiceNumber,\"userAuth\":_vm.userAuth,\"id\":item.purchaseInvoiceNumber,\"path\":_vm.currentPage.path}})]}}])})],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 msg-return-gender-feminine\n :total-pages=\"request.totalPages\" :total-elements=\"request.totalElements\" @getPage=\"getPage\">\n\n <template #search>\n <t-button v-if=\"userAuth.validation.validationCreate\" :text=\"t('insert') + ' ' + currentPage.singularTitle\"\n :to=\"currentPage.name + '-form-new'\"\n primary/>\n <t-content-header-search-default @searchChange=\"searchDefault\"\n @onClearSearch=\"clearSearch()\"\n placeholder=\"Pedido Compra, Fornecedor, ...\"\n :filtered-default=\"filteredDefault\" :filtered-advanced=\"filteredAdvanced\"\n :search-form=\"form\">\n\n <t-input-search v-model=\"form.issueDate\" enable-range date label=\"Data de Emissão\"/>\n\n <t-input-person supplier\n v-model=\"form.supplierId\"/>\n\n <t-input-search v-model=\"form.statusPurchaseInvoice\" select\n label=\"Status Pedido Compra\"/>\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=\"fields\"\n link-primary-column=\"purchaseInvoiceNumber\"\n primary-key-column=\"purchaseInvoiceNumber\">\n\n <template #first-column=\"{item}\">\n\n <t-list-link-primary formatter=\"lpad:4\"\n :label=\"item.purchaseInvoiceNumber\" :userAuth=\"userAuth\" :id=\"item.purchaseInvoiceNumber\"\n :path=\"currentPage.path\"/>\n\n\n </template>\n\n\n </t-table>\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\";\n\nexport default {\n mixins: [pageDefaultMixin, pageListMixin],\n name: 'PurchaseInvoice',\n data() {\n return {\n path: \"\", //Utilizar somente quando fora do padrão\n form: {\n companyId: 0,\n supplierId: 0,\n typePaymentId: 0,\n paymentPlanId: 0,\n contactId: 0,\n issueDate: \"\",\n statusPurchaseInvoice: 0, //Pendente\n },\n fields: [\n {key: \"purchaseInvoiceNumber\", label: \"Cód. Compra\"},\n {key: \"supplierNameAutomatically\", label: \"Fornecedor\"},\n {key: \"supplierFederalTaxpayer\", label: \"CNPJ/CPF\"},\n {key: \"qtyItems\", label: \"Qtd. Itens\"},\n {key: \"amount\", label: \"Valor Total\", formatter: \"number\"},\n {key: \"statusPurchaseInvoice\", label: \"Status\"},\n {key: \"actions\", label: \"\"},\n ],\n //--------------------------------------------------------------------------------------\n //InÃcio de campos personalizados desta tela\n companyOptions: [],\n typePaymentOptions: [],\n paymentPlanOptions: [],\n //--------------------------------------------------------------------------------------\n\n }\n },\n methods: {\n\n mountedPrepare() {\n delete this.form.status\n },\n async mountedContinued() {\n\n await http.list(this.userAuth.currentPage.path + \"/selectRelationList\").then((response) => {\n this.companyOptions = response.companyOptions\n this.typePaymentOptions = response.typePaymentOptions\n this.paymentPlanOptions = response.paymentPlanOptions\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}\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!./PurchaseInvoice.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!./PurchaseInvoice.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PurchaseInvoice.vue?vue&type=template&id=dd010250&\"\nimport script from \"./PurchaseInvoice.vue?vue&type=script&lang=js&\"\nexport * from \"./PurchaseInvoice.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":""}