{"version":3,"sources":["webpack:///./src/views/custom/polimix/quality/PolimixQualityAppraisal.vue?7b83","webpack:///./src/services/modules/quality/TypeQualityAppraisal.service.js","webpack:///src/views/custom/polimix/quality/PolimixQualityAppraisal.vue","webpack:///./src/views/custom/polimix/quality/PolimixQualityAppraisal.vue?228f","webpack:///./src/views/custom/polimix/quality/PolimixQualityAppraisal.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","staticClass","typeQualityAppraisalOptions","groupProductOptions","proxy","checkViewListTableDefault","content","pageListIsLoaded","fields","ref","item","qualityAppraisalCodeLabel","qualityAppraisalNumber","path","_v","_s","_f","status","issueDate","directives","rawName","modifiers","downloadReport","expeditionId","expeditionNumber","staticRenderFns","companyService","params","http","list","mixins","pageDefaultMixin","data","lotId","customerId","groupProductId","typeQualityAppraisalId","methods","mountedPrepare","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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kB,CAACE,MAAM,CAAC,QAAU,cAAc,IAAI,OAAO,MAAK,EAAM,cAAcF,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,KAAK,CAACN,EAAIiD,GAAGjD,EAAIkD,GAAGlD,EAAIO,EAAE,wBAAwB,IAAI,IAC7mBqD,EAAkB,G,gGCNhBZ,EAAO,yBAEPa,E,gGAEF,SAAWC,GACP,OAAOC,OAAKC,KAAKhB,EAAO,cAAcc,O,KAM/B,MAAID,EC2EnB,GACEI,OAAQ,CAACC,EAAX,aACE5C,KAAM,0BACN6C,KAHF,WAII,MAAO,CACLnB,KAAM,mCACNL,OAAQ,CACd,CAAQ,IAAR,QAAQ,MAAR,eACA,CAAQ,IAAR,eAAQ,MAAR,QACA,CAAQ,IAAR,WAAQ,MAAR,WACA,CAAQ,IAAR,eAAQ,MAAR,SACA,CAAQ,IAAR,QAAQ,MAAR,UACA,CAAQ,IAAR,YAAQ,MAAR,gBACA,CAAQ,IAAR,uBAAQ,MAAR,oBACA,CAAQ,IAAR,mBAAQ,MAAR,gBACA,CAAQ,IAAR,UAAQ,MAAR,KAEMjB,KAAM,CACJ0C,MAAR,EACQC,WAAR,EACQC,eAAgB,EAChBC,uBAAR,GAIMjC,oBAAqB,GACrBD,4BAAN,KAIEmC,QAAS,CAEPC,eAFJ,kBAKaxE,KAAKyB,KAAK0B,QAGnB,iBARJ,WAQA,wKAEA,+CACA,2BACA,gDAJA,uBAMA,iCACA,mCACA,gDARA,+CAkBE,QAxDF,WAwDA,+JAEA,mBAFA,SAIA,gBAJA,uBAMA,qBANA,+CCjJ8Y,I,YCO1YsB,EAAY,eACd,EACA3E,EACA6D,GACA,EACA,KACA,KACA,MAIa,aAAAc,E","file":"js/chunk-2d207b69.99718550.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\":\"Nº Controle\",\"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-code-label',{attrs:{\"disable-name\":\"\",\"lot\":\"\"},model:{value:(_vm.form.lotId),callback:function ($$v) {_vm.$set(_vm.form, \"lotId\", $$v)},expression:\"form.lotId\"}}),_c('t-input',{staticClass:\"mt-2\",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\"}}),_c('t-input-search',{attrs:{\"enable-range\":\"\",\"date\":\"\",\"label\":\"Data Emissão\"},model:{value:(_vm.form.issueDate),callback:function ($$v) {_vm.$set(_vm.form, \"issueDate\", $$v)},expression:\"form.issueDate\"}}),_c('t-input-person',{attrs:{\"customer\":\"\"},model:{value:(_vm.form.customerId),callback:function ($$v) {_vm.$set(_vm.form, \"customerId\", $$v)},expression:\"form.customerId\"}}),_c('t-input-search',{attrs:{\"options\":_vm.groupProductOptions,\"label\":\"Grupo de Produtos\",\"select\":\"\"},model:{value:(_vm.form.groupProductId),callback:function ($$v) {_vm.$set(_vm.form, \"groupProductId\", $$v)},expression:\"form.groupProductId\"}})],1)]},proxy:true}])},[(_vm.checkViewListTableDefault())?_c('b-table',{attrs:{\"hover\":\"\",\"items\":_vm.request.content,\"busy\":!_vm.pageListIsLoaded,\"fields\":_vm.fields},scopedSlots:_vm._u([{key:\"cell(first)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-list-link-primary',{attrs:{\"label\":item.qualityAppraisalCodeLabel,\"userAuth\":_vm.userAuth,\"id\":item.qualityAppraisalNumber,\"path\":_vm.currentPage.path}})]}},{key:\"cell(status)\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"statusLabel\")(item.status))+\" \")]}},{key:\"cell(issueDate)\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.issueDate))+\" \")]}},{key:\"cell(actions)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-list-actions-default',{attrs:{\"form-path\":_vm.currentPage.path,\"id\":item.qualityAppraisalNumber,\"userAuth\":_vm.userAuth}},[_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover.ds500\",modifiers:{\"hover\":true,\"ds500\":true}}],attrs:{\"title\":\"Laudo completo em PDF\",\"size\":\"sm\",\"variant\":\"outline\"},on:{\"click\":function($event){return _vm.downloadReport(7, item.expeditionId, 'LAUDO_QUALIDADE_' + item.expeditionNumber)}}},[_c('b-icon-file-pdf',{attrs:{\"variant\":\"primary\"}})],1)],1)]}}],null,false,4141430160)}):_c('t-msg',{attrs:{\"warning\":\"\"}},[_vm._v(_vm._s(_vm.t('no-record-found')))])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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 = \"quality/type-appraisal\"\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\r\n}\r\n\r\nexport default new companyService();\r\n\r\n\r\n","<template>\n\n  <t-page>\n\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        <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=\"Nº Controle\"\n                                         :filtered-default=\"filteredDefault\" :filtered-advanced=\"filteredAdvanced\"\n                                         :search-form=\"form\">\n\n\n          <t-input-code-label disable-name lot v-model=\"form.lotId\"/>\n\n\n          <t-input  class=\"mt-2\" v-model=\"form.typeQualityAppraisalId\" :options=\"typeQualityAppraisalOptions\" select\n                    label=\"Tipo de Certificado de Qualidade\"/>\n\n          <t-input-search v-model=\"form.issueDate\" enable-range date label=\"Data Emissão\"/>\n\n          <t-input-person customer\n                          v-model=\"form.customerId\"/>\n\n          <t-input-search v-model=\"form.groupProductId\"\n                          :options=\"groupProductOptions\"\n                          label=\"Grupo de Produtos\"\n                          select/>\n\n        </t-content-header-search-default>\n\n      </template>\n\n      <b-table hover :items=\"request.content\" v-if=\"checkViewListTableDefault()\" :busy=\"!pageListIsLoaded\"\n               :fields=\"fields\">\n\n        <template #cell(first)=\"{item}\">\n          <t-list-link-primary :label=\"item.qualityAppraisalCodeLabel\" :userAuth=\"userAuth\"\n                               :id=\"item.qualityAppraisalNumber\"\n                               :path=\"currentPage.path\"/>\n        </template>\n\n        <template #cell(status)=\"{item}\">\n          {{ item.status | statusLabel }}\n        </template>\n\n        <template #cell(issueDate)=\"{item}\">\n          {{ item.issueDate | date }}\n        </template>\n\n\n        <template #cell(actions)=\"{item}\">\n\n\n          <t-list-actions-default :form-path=\"currentPage.path\" :id=\"item.qualityAppraisalNumber\"\n                                  :userAuth=\"userAuth\">\n\n            <b-button\n                v-b-tooltip.hover.ds500 title=\"Laudo completo em PDF\"\n                @click=\"downloadReport(7, item.expeditionId, 'LAUDO_QUALIDADE_' + item.expeditionNumber)\"\n                size=\"sm\" variant=\"outline\">\n              <b-icon-file-pdf variant=\"primary\"></b-icon-file-pdf>\n            </b-button>\n\n          </t-list-actions-default>\n        </template>\n\n      </b-table>\n\n      <t-msg v-else warning>{{ t('no-record-found') }}</t-msg>\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 groupProductService from \"@/services/modules/product/GroupProduct.service\";\nimport typeQualityAppraisal from \"@/services/modules/quality/TypeQualityAppraisal.service\";\n\nexport default {\n  mixins: [pageDefaultMixin, pageListMixin],\n  name: 'PolimixQualityAppraisal',\n  data() {\n    return {\n      path: \"custom/polimix/quality-appraisal\", //Utilizar somente quando fora do padrão\n      fields: [\n        {key: \"first\", label: \"Nº Controle\"},\n        {key: \"lotCodeLabel\", label: \"Lote\"},\n        {key: \"customer\", label: \"Cliente\"},\n        {key: \"groupProduct\", label: \"Grupo\"},\n        {key: \"model\", label: \"Modelo\"},\n        {key: \"issueDate\", label: \"Data Emissão\"},\n        {key: \"typeQualityAppraisal\", label: \"Tipo Certificado\"},\n        {key: \"expeditionNumber\", label: \"Nº Expedição\"},\n        {key: \"actions\", label: \"\"},\n      ],\n      form: {\n        lotId:0,\n        customerId:0,\n        groupProductId: 0,\n        typeQualityAppraisalId:0,\n      },\n      //--------------------------------------------------------------------------------------\n      //Início de campos personalizados desta tela\n      groupProductOptions: [],\n      typeQualityAppraisalOptions:[],\n      //--------------------------------------------------------------------------------------\n    }\n  },\n  methods: {\n\n    mountedPrepare() {\n\n      //Remove busca por status do padrão, pois nesta tela não há status\n      delete this.form.status\n\n    },\n    async mountedContinued() {\n\n      await groupProductService.selectList(\"grouped\").then((list) => {\n        this.groupProductOptions = list\n      }).catch(error => this.responseError(error))\n\n      await typeQualityAppraisal.selectList().then((list) => {\n        this.typeQualityAppraisalOptions = list\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!./PolimixQualityAppraisal.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!./PolimixQualityAppraisal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PolimixQualityAppraisal.vue?vue&type=template&id=47a40c38&\"\nimport script from \"./PolimixQualityAppraisal.vue?vue&type=script&lang=js&\"\nexport * from \"./PolimixQualityAppraisal.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":""}