{"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\\ThreeAttacksOneTask\\threeOneDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ThreeAttacksOneTask\\threeOneDialog.vue","mtime":1708717333782},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\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//\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 { TableMixin } from '@/mixins/tableMixin';\nimport apiList from '@/api/threeOne';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nvar portal = window.context.portal;\nexport default {\n name: 'threeOneDialog',\n components: {\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n actionUrl: \"\".concat(portal, \"/majorProjects/bizMunicipalBreakDifficultyDetails/v1/importExcel\"),\n reqLoading: false,\n reqData: {\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: '',\n relation: 'AND',\n value: {}\n }]\n },\n detailDialog: false,\n title: '',\n fillType: '',\n markLoading: false,\n tableHeader: {\n nationFirm: {\n name: '国企改革攻坚',\n city: [{\n id: 1,\n name: '市属重点国企利润总额增速'\n }, {\n id: 2,\n name: '市属减亏国企占亏损国企\\n户数比例'\n }],\n county: [{\n id: 1,\n name: '区县国企法人压降数量'\n }, {\n id: 2,\n name: '区县减亏国企占亏损国企\\n户数比例'\n }]\n },\n parkArea: {\n name: '园区开发区改革攻坚',\n city: [{\n id: 1,\n name: '市级园区开发区规上工业企业\\n亩均税收增速'\n }, {\n id: 2,\n name: '市级园区开发区规上企业营业\\n收入完成值'\n }],\n county: [{\n id: 1,\n name: '区县园区开发区规上工业企业\\n亩均税收增速'\n }, {\n id: 2,\n name: '区县园区开发区规上企业营业\\n收入完成值'\n }]\n },\n gEnterprise: {\n name: '政企攻坚分离改革',\n city: [{\n id: 1,\n name: '市级部门经营性国有资产集中\\n统一监管比例'\n }, {\n id: 2,\n name: '市属减亏国企占亏损国企\\n户数比例'\n }],\n county: [{\n id: 1,\n name: '区县经营性国有资产集中\\n统一监管比例'\n }, {\n id: 2,\n name: '区县所属企业分离改革分别\\n完成比例'\n }]\n },\n nationAssets: {\n name: '国有资产盘活',\n city: [{\n id: 1,\n name: '市级完成存量国有国有资产\\n盘活回收资金'\n }, {\n id: 2,\n name: '完成盘活市级存量国有资产'\n }],\n county: [{\n id: 1,\n name: '区县完成存量国有国有资产\\n盘活回收资金'\n }, {\n id: 2,\n name: '完成盘活区县国有资产'\n }]\n }\n },\n cityData: [],\n countyData: [],\n reformId: '',\n //主数据id\n threeUploadData: {\n reformId: '',\n reformType: ''\n },\n countyUpload: false,\n cityUpload: false,\n routeName: '',\n approvalComments: [],\n status: '',\n year: ''\n };\n },\n mounted: function mounted() {\n var name = this.$route.name; // this.year = new Date().getFullYear()\n\n this.routeName = name;\n },\n methods: {\n // 打开弹框并赋值\n openDialog: function openDialog(title) {\n this.detailDialog = true;\n\n if (title !== '报告上传') {\n this.reqLoading = true;\n this.getDetailList(this.threeUploadData.reformId);\n }\n\n this.title = title;\n },\n // 附件上传\n setUploadData: function setUploadData(type) {\n if (type === 1) {\n this.countyUpload = true;\n }\n\n if (type === 2) {\n this.cityUpload = true;\n }\n\n this.threeUploadData.reformType = type;\n },\n handleImportSuccess: function handleImportSuccess(res, file) {\n var _this = this;\n\n this.markLoading = true;\n this.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n this.reqLoading = true;\n\n if (this.status > 1) {\n var data = {\n id: this.threeUploadData.reformId,\n status: 0\n };\n apiList.updateStatusById(data, function (res) {\n _this.getDetailList(_this.threeUploadData.reformId);\n });\n } else {\n this.getDetailList(this.threeUploadData.reformId);\n }\n\n this.markLoading = false;\n },\n // 查询详情列表\n getDetailList: function getDetailList(id) {\n var _this2 = this;\n\n apiList.getListById(id, function (res) {\n if (res) {\n _this2.year = res.fillYear;\n _this2.cityData = res.cityDifficultyDetails || [];\n _this2.countyData = res.countyDifficultyDetails || [];\n _this2.approvalComments = res.approvalComments && res.approvalComments.split('$_$') || [];\n _this2.reqLoading = false;\n }\n });\n },\n // 根据字典获取名称\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 关闭弹窗\n handleClose: function handleClose() {\n this.$emit('refreshData');\n this.cityData = [];\n this.countyData = [];\n this.threeUploadData = {\n reformId: '',\n reformType: ''\n };\n this.fillType = '';\n this.countyUpload = false;\n this.cityUpload = false;\n this.approvalComments = [];\n this.status = '';\n this.detailDialog = false;\n },\n clickReport: function clickReport() {\n var _this3 = this;\n\n var flag = this.fillType === 'parkArea' ? this.countyData.length ? true : false : this.countyData.length && this.cityData.length ? true : false;\n\n if (flag) {\n var routeName = this.routeName,\n threeUploadData = this.threeUploadData;\n var msg = routeName === 'InputUpload' ? '上报' : '审核通过';\n this.$confirm(\"\\u786E\\u5B9A\".concat(msg, \"\\u5417\\uFF1F\"), '提示', {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this3.markLoading = true;\n var data = {\n id: threeUploadData.reformId,\n status: routeName === 'InputUpload' ? 1 : routeName === 'threeOneAudit' ? 3 : 5\n };\n apiList.updateStatusById(data, function (res) {\n if (res.state) {\n _this3.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this3.markLoading = false;\n\n _this3.$emit('refreshData');\n\n _this3.handleClose();\n }\n });\n });\n } else {\n this.$message.error('请上传完整报告');\n }\n },\n handleReject: function handleReject() {\n var _this4 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u9A73\\u56DE\\u5417?\", '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this4.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this5 = this;\n\n console.log(approvalComments);\n this.markLoading = true;\n var data = {\n id: this.threeUploadData.reformId,\n status: this.routeName == 'threeOneAudit' ? 2 : 4,\n approvalComments: approvalComments\n };\n apiList.updateStatusById(data, function (res) {\n if (res.state) {\n _this5.$message.success(\"\\u5BA1\\u6838\\u9A73\\u56DE\\u6210\\u529F\");\n\n _this5.markLoading = false;\n\n _this5.$emit('refreshData');\n\n _this5.handleClose();\n }\n });\n },\n // 通过\n handleVerify: function handleVerify() {},\n // 根据id查询涉及区县列表\n getFindById: function getFindById(item) {\n var _this6 = this;\n\n return new Promise(function (reslove) {\n var API;\n\n if (item.isDele && item.isDele === '1') {\n API = pilot.getDeleteById;\n } else {\n API = pilot.getFindById;\n }\n\n API(item.id, function (res) {\n if (res.approvalComments) {\n _this6.approvalComments = res.approvalComments.split('$_$');\n } else {\n _this6.approvalComments = [];\n }\n\n _this6.districtName = res.invs ? res.invs.map(function (val) {\n return val.unitName;\n }) : [];\n _this6.primaryData = res;\n reslove();\n });\n });\n },\n // 根据主表id查询推进表信息\n advanceRecordsById: function advanceRecordsById(item, id) {\n var _this7 = this;\n\n return new Promise(function (resolve) {\n var API;\n\n if (item.isDele && item.isDele === '1') {\n API = pilot.advanceDeleteRecordsById;\n } else {\n API = pilot.advanceRecordsById;\n }\n\n API(id, function (res) {\n if (res.value.length) {\n _this7.attachData = res.value[0] || {};\n _this7.attachData.approvalComments = _this7.attachData.approvalComments && _this7.attachData.approvalComments.split('$_$');\n _this7.tableData = res.value[0].results || [];\n\n if (_this7.title === '更新' && (res.value[0].status == 7 || res.value[0].status == 9 || res.value[0].status == 11 || res.value[0].status == 12)) {\n _this7.historyData = JSON.parse(JSON.stringify(_this7.attachData));\n _this7.attachData.id = '';\n _this7.attachData.results && _this7.attachData.results.forEach(function (item) {\n item.id = '';\n });\n } else {\n if (res.value[1]) {\n _this7.historyData = res.value[1] || null;\n _this7.historyData.approvalComments = res.value[1].approvalComments && res.value[1].approvalComments.split('$_$');\n }\n }\n }\n\n resolve();\n });\n });\n },\n // 根据id查询附件信息\n getIds: function getIds(id) {\n var _this8 = this;\n\n return new Promise(function (resolve) {\n var data = JSON.parse(JSON.stringify(_this8.reqData));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'biz_id_',\n relation: 'AND',\n value: id\n }];\n pilot.getIds(data, function (res) {\n var arr = [];\n res.rows.forEach(function (item) {\n var id = item.id,\n fileName = item.fileName,\n extensionName = item.extensionName;\n var url = \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\").concat(id);\n var obj = {\n id: id,\n name: \"\".concat(fileName, \".\").concat(extensionName),\n url: url,\n fileType: extensionName\n };\n arr.push(obj);\n });\n _this8.primaryFileList = arr;\n resolve();\n });\n });\n },\n // 文件删除\n beforeRemove: function beforeRemove(file, fileList) {\n var _this9 = this;\n\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664 \".concat(file.name, \"\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this9.$message.success('附件删除成功');\n\n var arr = _this9.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this9.fileList = arr;\n } else {\n _this9.$message.error('附件删除失败');\n }\n });\n });\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n }\n }\n};",null]}