{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\reportingManager\\reportFilling.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\reportingManager\\reportFilling.vue","mtime":1693992862394},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _toConsumableArray from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport utils from '@/utils.js';\nimport moduleRouter from '@/module_components.js';\nexport default {\n name: 'ReportFilling',\n components: {},\n data: function data() {\n return {\n components: null,\n conditions: [],\n searchForm: {},\n params: {\n business: '',\n tyep: 1,\n name: '',\n nameEn: ''\n },\n reportFormData: [],\n loading: false\n };\n },\n created: function created() {\n localStorage.removeItem(\"year\");\n this.components = moduleRouter;\n this.getHeaderTabsData(); // 获取头部tabs数据\n },\n methods: {\n handleReportOpen: function handleReportOpen(item) {\n window.localStorage.setItem(\"statementData\", JSON.stringify(item));\n var hasComp = false;\n\n for (var key in this.components) {\n if (key == item.key) {\n hasComp = true;\n }\n }\n\n if (hasComp) {\n this.$router.push({\n name: 'reportFillingComp',\n query: {\n id: item.id,\n business: item.business // 传递所属业务\n\n }\n });\n } else {\n this.$message.warning(this.$t('common.noTemplate'));\n }\n },\n // 获取报表数据\n getReportForm: function getReportForm(params) {\n var _this = this;\n\n this.loading = true;\n this.$http.post('${portal}/qfReportAuthority/v1/myAuthList', params).then(function (res) {\n // console.log(res, 'data')\n var data = res && res.data && res.data.value && res.data.value || [];\n _this.reportFormData = data; // = this.format(data)\n\n _this.loading = false;\n });\n },\n handleTabsClick: function handleTabsClick(tab) {\n window.localStorage.setItem(\"activeName\", tab.name);\n\n if (tab.name == 'all') {\n this.params.business = '';\n } else {\n this.params.business = tab.name;\n }\n\n this.getReportForm(this.params); // 获取表报数据\n },\n handleSearch: function handleSearch() {\n this.getReportForm(this.params); // 获取表报数据\n },\n // 获取头部tabs数据\n getHeaderTabsData: function getHeaderTabsData() {\n var data = [];\n\n if (this.$i18n.locale === 'zh-CN') {\n data.push.apply(data, [{\n name: '全部',\n value: 'all'\n }].concat(_toConsumableArray(utils.getDictItemsFromCache('ssyw'))));\n } else {\n data.push.apply(data, [{\n name: 'All',\n value: 'all'\n }].concat(_toConsumableArray(utils.getDictItemsFromCache('ssyw_en'))));\n }\n\n var colors = ['#0147eb', '#f04444', '#f7931a', '#8a3aed', '#0147eb', '#627eea'];\n console.log(utils.getDictItemsFromCache('ssyw'), 'data'); // return\n\n data.forEach(function (item, index) {\n item.color = colors[index];\n item.title = item.name;\n });\n\n if (window.localStorage.getItem(\"activeName\") != '') {\n this.activeName = window.localStorage.getItem(\"activeName\");\n } else {\n this.activeName = data[0].value;\n }\n\n if (this.activeName == 'all') {\n this.params.business = '';\n } else {\n this.params.business = this.activeName;\n }\n\n this.conditions = data;\n this.getReportForm(this.params); // 获取表报数据\n }\n }\n};",null]}