{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorProjectManagement\\exportDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorProjectManagement\\exportDialog.vue","mtime":1718099209079},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/web.dom.iterable\";\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 { TableMixin } from '@/mixins/tableMixin';\nimport apiList from '@/api/MajorReformProjects/monthReport.js';\nimport moment from 'moment';\nimport req from '@/request.js';\nvar portal = window.context.portal;\nexport default {\n name: 'exportDialog',\n data: function data() {\n return {\n reqLoading: false,\n markLoading: false,\n visible: false,\n title: '新增',\n disabled: false,\n saveloading: false,\n monthOptions: [{\n name: '一月',\n value: 1\n }, {\n name: '二月',\n value: 2\n }, {\n name: '三月',\n value: 3\n }, {\n name: '四月',\n value: 4\n }, {\n name: '五月',\n value: 5\n }, {\n name: '六月',\n value: 6\n }, {\n name: '七月',\n value: 7\n }, {\n name: '八月',\n value: 8\n }, {\n name: '九月',\n value: 9\n }, {\n name: '十月',\n value: 10\n }, {\n name: '十一月',\n value: 11\n }, {\n name: '十二月',\n value: 12\n }],\n checkAll: false,\n checkedCities: [],\n isIndeterminate: true,\n projectOptions: [],\n projectIds: [],\n exportType: 0,\n year: ''\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n openDialog: function openDialog(title, type) {\n this.title = title;\n this.exportType = type;\n var date = new Date();\n this.year = date.getFullYear() + '';\n this.checkedCities = this.monthOptions.map(function (item) {\n return item.value;\n });\n this.getProjectData(type);\n this.visible = true;\n },\n getProjectData: function getProjectData(type) {\n var _this = this;\n\n var api = !type ? 'queryDataImplement' : 'twoBatchProject';\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: !type ? [] : [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'm.project_type_',\n relation: 'AND',\n value: type\n }]\n };\n apiList[api](data, true).then(function (res) {\n if (res.rows) {\n _this.projectOptions = res.rows;\n }\n });\n },\n handleCheckAllChange: function handleCheckAllChange(val) {\n var arr = this.monthOptions.map(function (item) {\n return item.value;\n });\n this.checkedCities = val ? arr : [];\n this.isIndeterminate = false;\n },\n handleCheckedCitiesChange: function handleCheckedCitiesChange(value) {\n var checkedCount = value.length;\n this.checkAll = checkedCount === this.monthOptions.length;\n this.isIndeterminate = checkedCount > 0 && checkedCount < this.monthOptions.length;\n },\n // 关闭\n handleClose: function handleClose() {\n this.checkedCities = [];\n this.projectIds = [];\n this.year = '';\n this.visible = false;\n },\n // 项目基础信息录入\n handleExport: function handleExport() {\n var _this2 = this;\n\n this.markLoading = true;\n var projectIds = [];\n this.projectIds.forEach(function (item) {\n projectIds.push.apply(projectIds, _toConsumableArray(item));\n });\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'plan_year_',\n relation: 'AND',\n value: this.year\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'plan_month_',\n relation: 'AND',\n value: this.checkedCities\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'm.id_',\n relation: 'AND',\n value: projectIds\n }]\n };\n\n if (this.exportType) {\n data.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'm.project_type_',\n relation: 'AND',\n value: this.exportType\n });\n }\n\n var api = this.exportType ? 'twoBatchExport' : 'exportImplementFiles';\n apiList[api](data).then(function (res) {\n console.log(res);\n\n if (res.byteLength === 0) {\n _this2.$message.warning('暂无相关资料导出');\n }\n\n _this2.markLoading = false;\n });\n }\n }\n};",null]}