{"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\\TwoMonthReport.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorProjectManagement\\TwoMonthReport.vue","mtime":1718912489938},{"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 \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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 RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport moment from 'moment';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport apiList from '@/api/MajorReformProjects/monthReport.js';\nimport req from '@/request.js';\nvar portal = window.context.portal;\nimport pagination from '@/components/pagination';\nimport { log } from '@antv/g2plot/lib/utils';\nexport default {\n name: 'TwoMonthReport',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RejectInfoDialog: RejectInfoDialog,\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n markLoading: false,\n reqLoading: false,\n visible: false,\n title: '两月进度上报',\n activeCollapse: ['1'],\n projectData: null,\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"project_id_\",\n relation: \"AND\",\n value: \"\"\n }, {\n group: \"main\",\n operation: \"IN\",\n parentGroup: \"\",\n property: \"status\",\n relation: \"AND\",\n value: []\n }]\n },\n tableData: [{\n id: 1,\n date: '2024-4',\n status: '1',\n dateUpload: '2024-05-08'\n }],\n visibleUpload: false,\n accept: '.wps,.et,.bmp,.jpg,.png,.tif,.gif,.pcx,.tga,.exif,.fpx,.svg,.psd,.cdr,.pcd,.dxf,.ufo,.eps,.ai,.raw,.WMF,.webp,.avif,.apng,.xls,.docx,.docm,.doc,.dotx,.pptx,.pptm,.ppt,.pdf,.xps,.potx,.txt,.xls,.xlsx,.xps,.zip,.rar,.7z',\n url: \"\".concat(portal, \"/file/v1/uploadFileForConfig\"),\n header: {\n Authorization: \"Bearer \".concat(this.$store.state.login.currentUser.token)\n },\n uploadAcitonData: {\n bizCode: 'projectProgress',\n bizId: '',\n bizType: ''\n },\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n uploadData: {\n planYear: '',\n planMonth: '',\n date: '',\n projectId: '',\n projectType: 3,\n // 三个一批的类型 1 加快实施 2 准备启动 3谋划储备\n files: [],\n status: 0,\n classified: ''\n },\n fileList: [],\n reportDetailType: '',\n deleteIds: '',\n // 是否查阅\n isReferTo: false,\n // 是否上报\n isReport: false\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n beforeUpload: function beforeUpload() {\n this.markLoading = true;\n },\n openDialog: function openDialog(title, data, type) {\n this.projectData = data;\n this.title = title;\n this.visible = true;\n this.uploadData.projectType = type;\n this.uploadData.projectId = this.projectData.id;\n this.uploadData.date = moment().format('YYYY-MM');\n this.uploadData.planYear = moment().format('YYYY');\n this.uploadData.planMonth = moment().format('MM');\n this.getReportData();\n },\n getReportData: function getReportData() {\n var _this = this;\n\n this.reqLoading = true;\n this.queryParam.querys[0].value = this.projectData.id;\n this.queryParam.querys[1].value = this.title === '两月进度查阅' ? [-1, 1, 2] : [];\n apiList.queryReportByProjectId(this.queryParam).then(function (res) {\n _this.tableData = res.rows;\n _this.reqLoading = false;\n _this.queryParam.pageBean.total = res.total;\n });\n },\n //展示数量\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getReportData();\n },\n //表格页数\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getReportData();\n },\n handleDateChange: function handleDateChange(val) {\n this.uploadData.planYear = val.split('-')[0];\n this.uploadData.planMonth = val.split('-')[1];\n },\n // 上传报告\n handleAddReport: function handleAddReport() {\n this.visibleUpload = true;\n },\n // 关闭\n handleClose: function handleClose() {\n if (this.isReferTo || this.isReport) {\n this.$bus.$emit('dataRefresh');\n this.isReferTo = false;\n this.isReport = false;\n }\n\n this.visible = false;\n this.projectData = null;\n },\n handleReport: function handleReport(type, row) {\n this.reportDetailType = type;\n this.visibleUpload = true;\n this.getReportById(row);\n },\n getReportById: function getReportById(row) {\n var _this2 = this;\n\n var id = row.id,\n status = row.status;\n apiList.queryReportById(id).then(function (res) {\n _this2.uploadData = res;\n _this2.uploadData.date = _this2.uploadData.planYear + '-' + (_this2.uploadData.planMonth < 10 ? '0' + _this2.uploadData.planMonth : _this2.uploadData.planMonth);\n _this2.fileList = res.files.map(function (item) {\n item.name = item.fileName;\n return item;\n });\n\n if (status === 1 && _this2.title === '两月进度查阅') {\n _this2.referTo(id);\n }\n });\n },\n // 查阅\n referTo: function referTo(id) {\n var _this3 = this;\n\n var data = {\n status: 2,\n id: id\n };\n apiList.updateStatus(data).then(function (res) {\n if (res.state) {\n _this3.getReportData();\n\n _this3.isReferTo = true;\n }\n });\n },\n handleChangeStatus: function handleChangeStatus(status, row) {\n var _this4 = this;\n\n var message;\n\n if (status == 1) {\n message = '上报';\n } else if (status == -1) {\n message = '驳回';\n } else if (status == 0) {\n message = '撤回';\n }\n\n this.$confirm(\"\\u786E\\u5B9A\".concat(message, \"\\u5417\\uFF1F\"), '提示', {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var data = {\n status: status,\n id: row.id\n };\n apiList.updateStatus(data).then(function (res) {\n if (res.state) _this4.$message.success(\"\".concat(message, \"\\u6210\\u529F\\uFF01\"));\n\n _this4.getReportData();\n\n if (status === 1) {\n _this4.isReport = true;\n }\n });\n });\n },\n handleCloseUpload: function handleCloseUpload() {\n this.fileList = [];\n this.visibleUpload = false;\n },\n handleSave: function handleSave() {\n var _this5 = this;\n\n this.$refs.refform.validate(function (valid) {\n if (valid) {\n if (!_this5.fileList.length) {\n _this5.$message.warning('请上传文件!');\n } else {\n _this5.markLoading = true;\n _this5.uploadData.files = _this5.fileList.map(function (item) {\n item.id = item.id || item.response.fileId;\n item.fileName = item.fileName || item.response.fileName;\n return item;\n });\n apiList.saveReport(_this5.uploadData).then(function (res) {\n if (res.state) {\n _this5.$message.success('保存成功!');\n\n _this5.visibleUpload = false;\n _this5.fileList = [];\n\n _this5.getReportData();\n }\n\n _this5.markLoading = false;\n });\n }\n }\n });\n },\n handleSaveAndVerfiry: function handleSaveAndVerfiry() {\n this.uploadData.status = 1;\n this.isReport = true;\n this.handleSave();\n },\n // 删除\n handleDeleteReport: function handleDeleteReport() {\n var _this6 = this;\n\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664\\u5417\\uFF1F\", '提示', {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n apiList.deleteByIds(_this6.deleteIds).then(function (res) {\n if (res.state) {\n _this6.$message.success('删除成功');\n\n _this6.getReportData();\n }\n });\n });\n },\n handleSelectionChange: function handleSelectionChange(e) {\n var ids = e.map(function (item) {\n return item.id;\n });\n\n if (ids.length) {\n this.deleteIds = ids.join(',');\n }\n },\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // --------------文件--------------\n beforeRemove: function beforeRemove(file) {\n return this.$confirm(\"\\u786E\\u5B9A\\u79FB\\u9664 \".concat(file.name, \"\\uFF1F\"));\n },\n handlePreview: function handlePreview(file, fileList) {\n console.log(file);\n },\n handleRemove: function handleRemove(file, fileList) {\n var _this7 = this;\n\n var fileId = file.id || file.response.fileId;\n apiList.removeFile(fileId).then(function (res) {\n if (res.state) {\n _this7.$message.success('文件删除成功');\n } else {\n _this7.$message.error('文件删除失败');\n }\n });\n this.fileList = fileList;\n },\n uploadSuccess: function uploadSuccess(res, file, fileList) {\n if (res.success) {\n this.$message.success('文件上传成功');\n } else {\n this.$message.error('文件上传失败');\n }\n\n this.fileList = fileList;\n this.markLoading = false;\n },\n uploadError: function uploadError(err) {\n this.$message.error('附件上传失败');\n },\n // ------------文件相关--------------\n // 根据id查询附件\n getFiles: function getFiles(id, index) {\n var data = JSON.parse(JSON.stringify(this.queryParam));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'BIZ_ID_',\n relation: 'AND',\n value: id\n }];\n req.post(portal + '/file/v1/list', data).then(function (res) {\n if (res) {}\n });\n },\n openUploade: function openUploade() {\n var projectType = this.parameter.projectType;\n var code = projectType === 2 ? 'ReadyStartProject' : 'PlanStartProject';\n this.$refs.uploadFile.open(code);\n },\n // 上传附件\n setFileList: function setFileList(file) {\n var newFile = _objectSpread(_objectSpread({}, file), {}, {\n id: file.response.fileId\n });\n\n this.advanceData.files = this.advanceData.files || this.$set(this.advanceData, 'files', []);\n this.advanceData.files.push(newFile);\n this.advanceData.classified = '';\n }\n }\n};",null]}