{"version":3,"sources":["webpack:///./src/screens/reports/report-consultations/index.vue?5d4f","webpack:///./src/screens/reports/report-consultations/index.vue?605c","webpack:///./src/screens/reports/report-consultations/scripts.js","webpack:///./src/screens/reports/report-consultations/scripts.js?79ed","webpack:///./src/screens/reports/report-consultations/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","model","value","callback","$$v","selectedHierarquical","expression","_e","selectedScheduledBasket","rules","datadc","$vuetify","dark","startDate","endDate","cpf","name","availableBaskets","maxHeight","isLoadingAllBaskets","selectedBasket","_b","isMainButtonDisabled","on","$event","getReportCallManager","options","clearFields","headers","reportsCallManager","pagination","getterReport","qtdeRowsFound","isLoading","scopedSlots","_u","key","fn","props","selected","directives","rawName","content","offset","arg","nativeOn","getIdCallManager","item","endTime","linkToDownload","getterAccount","idUserType","userType","USER_OPERADOR_GUIDE","USER_FINANCEIRO","redirectToStackTrace","status","clickToReprocess","isScheduledBasket","openModalScheduledCM","isHierarchical","openModalHierarchicalCM","_s","nameUser","formatDate","startTime","origin","basketName","Object","prototype","hasOwnProperty","call","formatMoneyToReal","callValue","length","slot","checkAndReturnIdProviderFlow","managerDialogPld","staticRenderFns","components","AddPld","FileDownloadButton","ViewSelectedHierarquical","ViewSelectedScheduledBasket","data","validateDate","UserType","rowsPageItems","text","align","moment","format","formatedCpf","computed","mapGetters","filteredList","getterBaskets","filter","basket","idClient","newObject","idProviderFlow","reports","loading","watch","val","forEach","consult","scheduleBasket","type","replace","handler","deep","mounted","getAllBaskets","beforeDestroy","REPORT","methods","mapActions","mapMutations","$router","push","query","idCallManager","SET_SELECTED_CALL_MANAGER","validatorCpfOrCnpj","message","fnandoCpf","cnpj","fnandoCnpj","result","service","SERVICE_DOWNLOAD_SPREADSHEET_ALL","SERVICE_DOSSIE","date","capitalize","toUpperCase","slice","actionGetCommentsByCallManager","isDateValid","checkHasFiltersToFill","$route","keys","recoveryItem","find","sortBy","actionGetAllBaskets","then","catch","page","rowsPerPage","params","descending","size","route","actionReportCallManager","sendToast","Date","toJSON","toISOString","startDateFormated","endDateFormated","requestBody","idUserLogged","idUser","userName","body","actionReprocessCallManager","response","code","component","VAutocomplete","VBtn","VDataTable","VFlex","VIcon","VLayout","VTextField"],"mappings":"kHAAA,yBAAumB,EAAG,G,gECA1mB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,yBAAyB,CAACF,EAAG,KAAK,CAACG,YAAY,qBAAqB,CAACP,EAAIQ,GAAG,sCAAuCR,EAAwB,qBAAEI,EAAG,6BAA6B,CAACK,MAAM,CAACC,MAAOV,EAAwB,qBAAEW,SAAS,SAAUC,GAAMZ,EAAIa,qBAAqBD,GAAKE,WAAW,0BAA0Bd,EAAIe,KAAMf,EAA2B,wBAAEI,EAAG,iCAAiC,CAACK,MAAM,CAACC,MAAOV,EAA2B,wBAAEW,SAAS,SAAUC,GAAMZ,EAAIgB,wBAAwBJ,GAAKE,WAAW,6BAA6Bd,EAAIe,KAAKX,EAAG,WAAW,CAACG,YAAY,OAAOD,MAAM,CAAC,IAAM,GAAG,eAAe,KAAK,CAACF,EAAG,SAAS,CAACG,YAAY,OAAOD,MAAM,CAAC,KAAO,KAAK,CAACF,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,cAAc,MAAQ,CAACN,EAAIiB,MAAMC,QAAQ,sBAAsB,GAAG,KAAO,aAAa,kBAAkB,GAAG,eAAe,QAAQ,MAAQlB,EAAImB,SAASC,KAAO,YAAc,WAAWX,MAAM,CAACC,MAAOV,EAAa,UAAEW,SAAS,SAAUC,GAAMZ,EAAIqB,UAAUT,GAAKE,WAAW,eAAeV,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,WAAW,MAAQ,CAACN,EAAIiB,MAAMC,QAAQ,sBAAsB,GAAG,KAAO,aAAa,kBAAkB,GAAG,eAAe,Q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,CAACC,gBAAA,KAAcC,OAAA,KAAKC,aAAA,KAAWC,QAAA,KAAMC,QAAA,KAAMC,UAAA,KAAQC,aAAA","file":"js/chunk-398d5634.807ebede.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/vuetify-loader/lib/loader.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/vuetify-loader/lib/loader.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"report-consultations\"}},[_c('h1',{staticClass:\"text-xs-left mb-4\"},[_vm._v(\"\\n Relatório de Consultas\\n \")]),(_vm.selectedHierarquical)?_c('view-selected-hierarquical',{model:{value:(_vm.selectedHierarquical),callback:function ($$v) {_vm.selectedHierarquical=$$v},expression:\"selectedHierarquical\"}}):_vm._e(),(_vm.selectedScheduledBasket)?_c('view-selected-scheduled-basket',{model:{value:(_vm.selectedScheduledBasket),callback:function ($$v) {_vm.selectedScheduledBasket=$$v},expression:\"selectedScheduledBasket\"}}):_vm._e(),_c('v-layout',{staticClass:\"mb-4\",attrs:{\"row\":\"\",\"align-center\":\"\"}},[_c('v-flex',{staticClass:\"mr-5\",attrs:{\"xs12\":\"\"}},[_c('v-text-field',{attrs:{\"label\":\"Data Início\",\"rules\":[_vm.rules.datadc],\"return-masked-value\":\"\",\"mask\":\"##/##/####\",\"persistent-hint\":\"\",\"prepend-icon\":\"event\",\"color\":_vm.$vuetify.dark ? 'secondary' : 'primary'},model:{value:(_vm.startDate),callback:function ($$v) {_vm.startDate=$$v},expression:\"startDate\"}}),_c('v-text-field',{attrs:{\"label\":\"Data Fim\",\"rules\":[_vm.rules.datadc],\"return-masked-value\":\"\",\"mask\":\"##/##/####\",\"persistent-hint\":\"\",\"prepend-icon\":\"event\",\"color\":_vm.$vuetify.dark ? 'secondary' : 'primary'},model:{value:(_vm.endDate),callback:function ($$v) {_vm.endDate=$$v},expression:\"endDate\"}})],1),_c('v-flex',{staticClass:\"mr-5\",attrs:{\"xs12\":\"\"}},[_c('v-text-field',{attrs:{\"label\":\"CPF/CNPJ\",\"autocomplete\":\"off\",\"clearable\":\"\",\"color\":_vm.$vuetify.dark ? 'secondary' : 'primary'},model:{value:(_vm.cpf),callback:function ($$v) {_vm.cpf=$$v},expression:\"cpf\"}}),_c('v-text-field',{attrs:{\"label\":\"Nome\",\"autocomplete\":\"off\",\"clearable\":\"\",\"color\":_vm.$vuetify.dark ? 'secondary' : 'primary'},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1),_c('v-flex',{staticClass:\"mr-5\",attrs:{\"xs12\":\"\"}},[_c('v-autocomplete',{attrs:{\"items\":_vm.availableBaskets,\"label\":\"Selecionar Cesta\",\"item-text\":\"name\",\"return-object\":\"\",\"menu-props\":{ maxHeight: '300px' },\"color\":_vm.$vuetify.dark ? 'secondary' : 'primary',\"loading\":_vm.isLoadingAllBaskets,\"clearable\":\"\"},model:{value:(_vm.selectedBasket),callback:function ($$v) {_vm.selectedBasket=$$v},expression:\"selectedBasket\"}})],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-btn',_vm._b({staticClass:\"white--text mb-4\",attrs:{\"color\":\"secondary\",\"block\":\"\",\"disabled\":_vm.isMainButtonDisabled},on:{\"click\":function($event){return _vm.getReportCallManager()}}},'v-btn',_vm.options,false),[_vm._v(\"\\n Gerar relatório\\n \")]),_c('v-btn',{attrs:{\"depressed\":\"\",\"block\":\"\"},on:{\"click\":function($event){return _vm.clearFields()}}},[_vm._v(\"\\n Limpar Filtro(s)\\n \")])],1)],1),_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headers,\"items\":_vm.reportsCallManager,\"pagination\":_vm.pagination,\"total-items\":_vm.getterReport.qtdeRowsFound || 0,\"loading\":_vm.isLoading,\"loading-text\":\"Loading... Please wait\",\"rows-per-page-items\":[10, 25, 50, 100],\"no-data-text\":\"Não há resultados ainda.\",\"rows-per-page-text\":\"Linhas por Página\",\"default-sort\":\"starTime:desc\"},on:{\"update:pagination\":function($event){_vm.pagination=$event}},scopedSlots:_vm._u([{key:\"items\",fn:function(props){return [_c('tr',{attrs:{\"active\":!props.selected},on:{\"click\":function($event){props.selected = !props.selected}}},[_c('td',[_c('v-layout',{attrs:{\"row\":\"\",\"align-center\":\"\"}},[_c('v-btn',{directives:[{name:\"tooltip\",rawName:\"v-tooltip:bottom\",value:({ content: 'PLD', offset: 10 }),expression:\"{ content: 'PLD', offset: 10 }\",arg:\"bottom\"}],attrs:{\"flat\":\"\",\"icon\":\"\",\"outline\":\"\",\"fab\":\"\",\"small\":\"\",\"color\":\"green\"},nativeOn:{\"click\":function($event){return _vm.getIdCallManager(props.item)}}},[_c('v-icon',[_vm._v(\"import_contacts\")])],1),_c('file-download-button',{attrs:{\"fab\":\"\",\"disabled\":props.item.endTime === '0001-01-01T00:00:00',\"url\":_vm.linkToDownload(null, props.item),\"file-name\":(\"dossie-\" + (props.item.idCallManager))}}),(_vm.getterAccount.idUserType !== _vm.userType.USER_OPERADOR_GUIDE || _vm.getterAccount.idUserType !== _vm.userType.USER_FINANCEIRO)?_c('v-btn',{directives:[{name:\"tooltip\",rawName:\"v-tooltip:bottom\",value:({ content: 'Monitor de consultas', offset: 10 }),expression:\"{ content: 'Monitor de consultas', offset: 10 }\",arg:\"bottom\"}],staticClass:\"default default--text\",attrs:{\"small\":\"\",\"outline\":\"\",\"fab\":\"\"},on:{\"click\":function($event){return _vm.redirectToStackTrace(props.item)}}},[_c('v-icon',[_vm._v(\"library_books\")])],1):_vm._e(),(props.item.status === true)?_c('v-btn',{directives:[{name:\"tooltip\",rawName:\"v-tooltip:bottom\",value:({ content: 'Reprocessar fontes que deram erro', offset: 10 }),expression:\"{ content: 'Reprocessar fontes que deram erro', offset: 10 }\",arg:\"bottom\"}],attrs:{\"flat\":\"\",\"icon\":\"\",\"outline\":\"\",\"fab\":\"\",\"small\":\"\"},nativeOn:{\"click\":function($event){_vm.clickToReprocess (props.item)}}},[_c('v-icon',[_vm._v(\"replay\")])],1):_vm._e(),(props.item.isScheduledBasket === true)?_c('v-btn',{directives:[{name:\"tooltip\",rawName:\"v-tooltip:bottom\",value:({ content: 'Visualizar consultas agendadas / automáticas', offset: 10 }),expression:\"{ content: 'Visualizar consultas agendadas / automáticas', offset: 10 }\",arg:\"bottom\"}],attrs:{\"flat\":\"\",\"icon\":\"\",\"outline\":\"\",\"fab\":\"\",\"small\":\"\"},nativeOn:{\"click\":function($event){_vm.openModalScheduledCM (props.item)}}},[_c('v-icon',[_vm._v(\"event\")])],1):_vm._e(),(props.item.isHierarchical === true)?_c('v-btn',{directives:[{name:\"tooltip\",rawName:\"v-tooltip:bottom\",value:({ content: 'Visualizar cestas filhas', offset: 10 }),expression:\"{ content: 'Visualizar cestas filhas', offset: 10 }\",arg:\"bottom\"}],attrs:{\"flat\":\"\",\"icon\":\"\",\"outline\":\"\",\"fab\":\"\",\"small\":\"\"},nativeOn:{\"click\":function($event){_vm.openModalHierarchicalCM (props.item)}}},[_c('v-icon',[_vm._v(\"link\")])],1):_vm._e()],1)],1),_c('td',[_vm._v(_vm._s(props.item.nameUser === null ? '-' : props.item.nameUser))]),_c('td',[_vm._v(_vm._s(props.item.endTime !== '0001-01-01T00:00:00' ? 'Concluído' : 'Em processamento'))]),_c('td',{staticClass:\"text-xs-left\"},[_vm._v(\"\\n \"+_vm._s(props.item.cpf || '-')+\"\\n \")]),_c('td',{staticClass:\"text-xs-left\"},[_vm._v(\"\\n \"+_vm._s(props.item.name || '-')+\"\\n \")]),_c('td',{staticClass:\"text-xs-left\"},[_vm._v(\"\\n \"+_vm._s(_vm.formatDate(props.item.startTime))+\"\\n \")]),_c('td',{staticClass:\"text-xs-left\"},[_vm._v(\"\\n \"+_vm._s(props.item.endTime !== '0001-01-01T00:00:00' ? _vm.formatDate(props.item.endTime) : \"-\")+\"\\n \")]),_c('td',{staticClass:\"text-xs-left\"},[_vm._v(\"\\n \"+_vm._s(props.item.origin === null ? 'Desconhecido' : props.item.origin)+\"\\n \")]),_c('td',{staticClass:\"text-xs-left\"},[_vm._v(\"\\n \"+_vm._s(props.item.basketName || '-')+\"\\n \")]),_c('td',{staticClass:\"text-xs-right\"},[_c('h3',[_vm._v(\"\\n \"+_vm._s(Object.prototype.hasOwnProperty.call(props.item, 'callValue') ? _vm.formatMoneyToReal(props.item.callValue, true) : 'Nenhum')+\"\\n \")])])])]}}]),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},[(!_vm.isLoadingAllBaskets && (_vm.reportsCallManager && _vm.reportsCallManager.length > 0))?_c('template',{slot:\"footer\"},[_c('td',{attrs:{\"colspan\":\"100%\"}},[_c('file-download-button',{attrs:{\"extension\":\"xls\",\"text\":\"Exportar dados encontrados\",\"url\":_vm.linkToDownload('selected'),\"file-name\":(\"report-\" + _vm.checkAndReturnIdProviderFlow)}})],1)]):_vm._e()],2),(_vm.managerDialogPld)?_c('add-pld',{model:{value:(_vm.managerDialogPld),callback:function ($$v) {_vm.managerDialogPld=$$v},expression:\"managerDialogPld\"}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters, mapActions, mapMutations } from 'vuex'\nimport moment from 'moment'\nimport service from '@/helper/const'\nimport * as fnandoCpf from '@fnando/cpf'\nimport * as fnandoCnpj from '@fnando/cnpj'\nimport {\n AddPld,\n FileDownloadButton,\n ViewSelectedHierarquical,\n ViewSelectedScheduledBasket\n} from '@/components'\nimport * as UserType from '@/helper/UserType'\n\nexport default {\n components: {\n AddPld,\n FileDownloadButton,\n ViewSelectedHierarquical,\n ViewSelectedScheduledBasket\n },\n data () {\n return {\n rules: {\n datadc: (value) => this.validateDate(value) || 'Insira um valor válido e tente novamente'\n },\n userType: UserType,\n selectedBasket: '',\n isLoading: false,\n rowsPageItems: [10, 20, 50],\n pagination: {},\n selected: [],\n headers: [\n { text: 'Ações', value: 'idCallManager', align: 'center' },\n { text: 'Usuário', value: 'NameUser', align: 'left' },\n { text: 'Status', value: 'status', align: 'left' },\n { text: 'CPF/CNPJ', value: 'cpf', align: 'left' },\n { text: 'Nome', value: 'name', align: 'left' },\n { text: 'Data/Hora início', value: 'starTime', align: 'left' },\n { text: 'Data/Hora fim', value: 'endTime', align: 'left' },\n { text: 'Origem', value: 'origin', align: 'left' },\n { text: 'Cesta', value: 'basketName', align: 'left' },\n { text: 'Valor Cobrado', value: 'callValue', align: 'right' }\n ],\n startDate: moment().format('DD/MM/YYYY'),\n endDate: moment().format('DD/MM/YYYY'),\n managerDialogPld: false,\n name: '',\n cpf: '',\n formatedCpf: '',\n selectedHierarquical: null,\n selectedScheduledBasket: null,\n isLoadingAllBaskets: false,\n isMainButtonDisabled: false\n }\n },\n computed: {\n ...mapGetters([\n 'getterBaskets',\n 'getterReport',\n 'getterAccount',\n 'getterSelectedCallManager',\n 'getterPld'\n ]),\n availableBaskets () {\n const filteredList = this.getterBaskets.filter(basket => basket.idClient === this.getterAccount.idClient)\n const newObject = {\n idProviderFlow: '00000000-0000-0000-0000-000000000000',\n name: 'Todas'\n }\n\n return [\n ...filteredList,\n newObject\n ]\n },\n reportsCallManager () {\n return this.getterReport && this.getterReport.reports ? this.getterReport.reports : []\n },\n checkAndReturnIdProviderFlow () {\n return this.selectedBasket && this.selectedBasket.idProviderFlow ? this.selectedBasket.idProviderFlow : '00000000-0000-0000-0000-000000000000'\n },\n options () {\n return {\n loading: this.isLoading\n }\n }\n },\n watch: {\n reportsCallManager (val) {\n val.forEach(consult => {\n this.getterBaskets.forEach(basket => {\n if (consult.idProviderFlow === basket.idProviderFlow) {\n consult.basketName = basket.name\n\n if (basket.scheduleBasket === true) {\n consult.isScheduledBasket = true\n }\n\n if (basket.type === 'hierarquica') {\n consult.isHierarchical = true\n }\n }\n })\n })\n },\n cpf (val) {\n if (!val) {\n this.cpf = this.formatedCpf = ''\n } else {\n this.formatedCpf = this.cpf.replace(/[.-]/g, '')\n }\n },\n startDate (val) {\n if (val && this.endDate) {\n this.isMainButtonDisabled = false\n } else {\n this.isMainButtonDisabled = true\n }\n },\n endDate (val) {\n if (val && this.startDate) {\n this.isMainButtonDisabled = false\n } else {\n this.isMainButtonDisabled = true\n }\n },\n pagination: {\n handler () {\n this.getReportCallManager()\n },\n deep: true\n },\n selectedBasket (val) {\n if (!val) {\n this.selectedBasket = null\n }\n },\n name (val) {\n if (!val) {\n this.name = ''\n }\n }\n },\n mounted () {\n this.getAllBaskets()\n },\n beforeDestroy () {\n this.REPORT()\n },\n methods: {\n ...mapActions([\n 'actionReportCallManager',\n 'actionGetAllBaskets',\n 'actionGetCommentsByCallManager',\n 'actionReprocessCallManager'\n ]),\n ...mapMutations([\n 'REPORT',\n 'SET_SELECTED_CALL_MANAGER'\n ]),\n redirectToStackTrace (item) {\n this.$router.push({ name: 'StackTrace', query: { idCallManager: item.idCallManager } })\n },\n openModalScheduledCM (item) {\n this.SET_SELECTED_CALL_MANAGER(item)\n this.selectedScheduledBasket = item\n },\n openModalHierarchicalCM (item) {\n this.SET_SELECTED_CALL_MANAGER(item)\n this.selectedHierarquical = item\n },\n validatorCpfOrCnpj () {\n let message = false\n\n if (fnandoCpf.isValid(this.cnpj)) {\n message = true\n } else if (fnandoCnpj.isValid(this.cnpj)) {\n message = true\n }\n\n return message\n },\n linkToDownload (type, item) {\n let result = ''\n\n if (type === 'selected') {\n result = `${service.SERVICE_DOWNLOAD_SPREADSHEET_ALL}?sortBy=IdCallManager&descending=false&page=1&size=10&idProviderFlow=${this.checkAndReturnIdProviderFlow}&startDate=${`${moment(this.startDate, 'DD/MM/YYYY').format('YYYY-MM-DD')}T00:00:00`}&endDate=${`${moment(this.endDate, 'DD/MM/YYYY').format('YYYY-MM-DD')}T23:59:59`}&name=&cpf=&idClient=${this.getterAccount.idClient}`\n } else {\n result = `${service.SERVICE_DOSSIE}/${item.idProviderFlow}/${item.idCallManager}`\n }\n\n return result\n },\n formatDate (date) {\n return moment(date).format('DD/MM/YYYY [às] HH:mm:ss')\n },\n capitalize (val) {\n return val[0].toUpperCase() + val.slice(1)\n },\n getIdCallManager (item) {\n this.managerDialogPld = true\n this.SET_SELECTED_CALL_MANAGER(item)\n this.actionGetCommentsByCallManager(item.idCallManager)\n },\n validateDate (date) {\n if (!date) {\n return true\n }\n const isDateValid = moment(date, 'DD/MM/YYYY').format('YYYY/MM/DD')\n if (isDateValid !== 'Invalid date') {\n return true\n }\n return false\n },\n checkHasFiltersToFill () {\n const { query } = this.$route\n\n if (Object.keys(query).length > 0) {\n if (query.idProviderFlow) {\n const recoveryItem = this.availableBaskets.find((item) => item.idProviderFlow === query.idProviderFlow)\n\n this.selectedBasket = recoveryItem\n }\n\n if (query.name) {\n this.name = query.name\n }\n\n if (query.cpf) {\n this.cpf = query.cpf\n }\n\n if (query.startDate && query.endDate) {\n this.startDate = moment(query.date, 'DD/MM/YYYY').format('YYYY-MM-DD')\n this.endDate = moment(query.endDate, 'DD/MM/YYYY').format('YYYY-MM-DD')\n }\n }\n },\n getAllBaskets () {\n this.isLoadingAllBaskets = true\n\n this.pagination.sortBy = 'StartTime'\n\n this.actionGetAllBaskets(this.getterAccount.idClient)\n .then(() => {\n this.isLoadingAllBaskets = false\n\n this.getReportCallManager()\n })\n .catch(() => {\n this.isLoadingAllBaskets = false\n })\n },\n getReportCallManager () {\n const { query } = this.$route\n\n const {\n sortBy, page, rowsPerPage\n } = this.pagination\n\n let params = {\n sortBy: this.capitalize(sortBy),\n descending: true,\n page,\n size: rowsPerPage,\n idProviderFlow: this.checkAndReturnIdProviderFlow,\n startDate: `${moment(this.startDate, 'DD/MM/YYYY').format('YYYY-MM-DD')}T00:00:00` || '',\n endDate: `${moment(this.endDate, 'DD/MM/YYYY').format('YYYY-MM-DD')}T23:59:59` || '',\n name: this.name.toUpperCase() || '',\n cpf: this.formatedCpf || '',\n idClient: this.getterAccount.idClient || '',\n route: ((this.getterAccount.idUserType === UserType.USER_OPERADOR_GUIDE) || (this.getterAccount.idUserType === UserType.USER_IMPLANTADOR_GUIDE)) ? 'relatorioFiltroNomeECpf' : 'relatorioFiltroNomeECpfResumido'\n }\n\n if (Object.keys(query).length > 0) {\n params = {\n ...params,\n ...query\n }\n }\n\n this.isLoading = true\n\n this.actionReportCallManager(params)\n .then(() => {\n this.isLoading = false\n\n this.checkHasFiltersToFill()\n })\n .catch(() => {\n this.isLoading = false\n\n this.sendToast({\n text: 'Ocorreu um erro ao buscar as consultas, tente novamente mais tarde.',\n type: 'danger'\n })\n })\n },\n clearFields () {\n this.selectedBasket = this.formatedCpf = this.name = this.cpf = ''\n this.startDate = moment(new Date().toJSON().slice(0, 10).replace(/-/g, '-')).toISOString()\n this.endDate = moment(new Date().toJSON().slice(0, 10).replace(/-/g, '-')).toISOString()\n this.startDateFormated = this.endDateFormated = moment().format('DD/MM/YYYY')\n this.getReportCallManager()\n },\n clickToReprocess (item) {\n this.isLoading = true\n const requestBody = {\n idProviderFlow: item.idProviderFlow,\n origin: 'Painel do cliente, listagem de consultas',\n idUserLogged: this.getterAccount.idUser,\n nameUser: this.getterAccount.userName\n }\n const params = {\n idCallManager: item.idCallManager,\n body: requestBody\n }\n this.actionReprocessCallManager(params)\n .then(() => {\n this.isLoading = false\n this.sendToast({\n text: 'Consulta reenviada! Fontes que deram erro serão reprocessadas.',\n type: 'success'\n })\n this.getReportCallManager()\n })\n .catch((response) => {\n if (response.data.code) {\n if (response.data.code === 'NOTHING_TO_PROCESS') {\n this.sendToast({\n text: 'Não há nada a ser reprocessado na consulta. Todas as fontes deram retornos positivos.',\n type: 'warning'\n })\n } else if (response.data.code === 'DISABLED_CLIENT') {\n this.sendToast({\n text: 'Seu cadastro está desabilitado na plataforma. Por favor, entre em contato com a equipe de suporte.',\n type: 'danger'\n })\n } else if (response.data.code === 'INVALID_BASKET_TYPE') {\n this.sendToast({\n text: 'Não é possível efetuar reprocessamento de consultas para uma cesta hierárquica.',\n type: 'danger'\n })\n } else if (response.data.code === 'INVOICE_CONFLICT') {\n this.sendToast({\n text: 'Desculpe, não é possível reprocessar uma consulta já faturada.',\n type: 'warning'\n })\n } else if (response.data.code === 'ORIGINAL_CALL_TOO_OLD') {\n this.sendToast({\n text: 'Desculpe, não é possível reprocessar uma consulta após 3 dias.',\n type: 'warning'\n })\n } else if (response.data.code === 'ORIGINAL_CALL_NOT_FINISHED') {\n this.sendToast({\n text: 'Desculpe, a consulta ainda não finalizou, aguarde antes de reprocessar.',\n type: 'danger'\n })\n } else if (response.data.code === 'PRICE_NOT_INFORMED') {\n this.sendToast({\n text: 'É necessário estar configurado o preço individual de cada provider para que seja possível calcular o preço do reprocessamento.',\n type: 'danger'\n })\n } else {\n this.sendToast({\n text: 'Não foi possível efetuar o reprocessamento da consulta. Tente novamente mais tarde ou entre em contato com a equipe de suporte.',\n type: 'danger'\n })\n }\n } else {\n this.sendToast({\n text: 'Não foi possível efetuar o reprocessamento da consulta. Tente novamente mais tarde ou entre em contato com a equipe de suporte.',\n type: 'danger'\n })\n }\n this.isLoading = false\n })\n }\n }\n}\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/eslint-loader/index.js??ref--13-0!./scripts.js?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/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=fe247e36&\"\nimport script from \"./scripts?vue&type=script&lang=js&\"\nexport * from \"./scripts?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!/opt/atlassian/pipelines/agent/build/node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAutocomplete } from 'vuetify/lib'\nimport { VBtn } from 'vuetify/lib'\nimport { VDataTable } from 'vuetify/lib'\nimport { VFlex } from 'vuetify/lib'\nimport { VIcon } from 'vuetify/lib'\nimport { VLayout } from 'vuetify/lib'\nimport { VTextField } from 'vuetify/lib'\ninstallComponents(component, {VAutocomplete,VBtn,VDataTable,VFlex,VIcon,VLayout,VTextField})\n"],"sourceRoot":""}