{"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\\ReformPilotManage\\components\\detailDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformPilotManage\\components\\detailDialog.vue","mtime":1687936910001},{"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/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 filePreview from '@/components/FilePreview/filePreview.vue';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport FileList from '@/components/uploadFile/FileList.vue'; // import RecordDialog from '@/components/dialog/RecordDialog'\n\nimport pilot from '@/api/pilotprojects';\nimport { TableMixin } from '@/mixins/tableMixin';\nvar portal = window.context.portal;\nimport utils from '@/utils.js';\nexport default {\n name: 'FormResultsDialog',\n components: {\n filePreview: filePreview,\n RejectInfoDialog: RejectInfoDialog,\n FileList: FileList // RecordDialog\n\n },\n mixins: [TableMixin],\n data: function data() {\n return {\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 // 主表数据\n primaryData: {},\n // 主表附件\n primaryFileList: [],\n // 子表数据\n attachData: null,\n // 成果数据\n tableData: [],\n activeCollapse: ['1', '2', '3'],\n // 涉及区县名称列表\n districtName: [],\n // 加载遮罩\n markLoading: false,\n // 通过 驳回按钮是否隐藏\n actionBtn: false,\n // 是否显示推进信息\n listShow: false,\n reqLoading: false,\n // 历史推进信息\n historyData: null,\n // 历史推进信息陈果列表破\n historyTable: [],\n // 历史信息是否显示\n historyShow: false,\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n approvalComments: [],\n classified: 0,\n title: '试点项目详细信息'\n };\n },\n methods: {\n // 打开弹框并赋值\n openDialog: function openDialog(item) {\n var _this = this;\n\n var reqArr = item.id && item.recId ? [this.advanceRecordsById({\n unitId: item.unitId,\n id: item.id\n }), this.getIds(item.id), this.getFindById(item.id)] : item.id ? [this.getFindById(item.id), this.getIds(item.id)] : [];\n Promise.all(reqArr).then(function () {\n _this.reqLoading = false;\n });\n this.detailDialog = true;\n this.primaryData = item;\n var classified = item.classified;\n this.classified = classified;\n },\n // 根据字典获取名称\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 关闭弹窗\n handleClose: function handleClose() {\n this.detailDialog = false; // 通过 驳回按钮是否隐藏\n\n this.actionBtn = false; // 是否显示推进信息\n\n this.listShow = false;\n this.historyData = null;\n this.historyShow = false;\n this.attachData = null;\n },\n // 通过\n handleVerify: function handleVerify() {\n var _this2 = this;\n\n var routeName = this.$route.name;\n this.$confirm('确认通过吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this2.markLoading = true;\n\n if (routeName == 'DistrictProjectAudit') {\n var data = {\n status: 3,\n id: _this2.primaryData.id\n };\n pilot.updateStatusById(data, function (res) {\n if (res.state) {\n _this2.$emit('sendMsg');\n\n _this2.handleClose();\n\n _this2.$message.success('通过成功');\n }\n\n _this2.markLoading = false;\n });\n } else {\n var status = routeName == 'DistrictPromotioneVerify' ? 8 : routeName == 'ReformPilotManagement' ? 10 : 12;\n var _data = {\n status: status,\n id: _this2.primaryData.recId\n };\n pilot.districtAuditsById(_data, function (res) {\n if (res.state) {\n _this2.$emit('sendMsg');\n\n _this2.handleClose();\n\n _this2.$message.success('通过成功');\n }\n\n _this2.saveLoading = false;\n _this2.markLoading = false;\n });\n }\n }).catch(function () {\n _this2.saveLoading = false;\n });\n },\n // 驳回\n openInputVisible: function openInputVisible() {\n var _this3 = this;\n\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this3.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this4 = this;\n\n this.markLoading = true;\n var routeName = this.$route.name;\n\n if (routeName == 'DistrictProjectAudit') {\n var data = {\n status: 2,\n id: this.primaryData.id,\n approvalComments: approvalComments\n };\n pilot.updateStatusById(data, function (res) {\n if (res.state) {\n _this4.$emit('sendMsg');\n\n _this4.handleClose();\n\n _this4.$message.success('驳回成功');\n } else {\n _this4.dialogInputVisible = true;\n }\n\n _this4.markLoading = false;\n });\n } else {\n var status = routeName == 'DistrictPromotioneVerify' ? 7 : routeName == 'ReformPilotManagement' ? 9 : 11;\n var _data2 = {\n status: status,\n id: this.primaryData.recId,\n approvalComments: approvalComments\n };\n pilot.districtAuditsById(_data2, function (res) {\n if (res.state) {\n _this4.$emit('sendMsg');\n\n _this4.handleClose();\n\n _this4.$message.success('驳回成功');\n\n _this4.approvalComments = [];\n }\n\n _this4.saveLoading1 = false;\n _this4.markLoading = false;\n });\n }\n },\n // 根据id查询涉及区县列表\n getFindById: function getFindById(id) {\n var _this5 = this;\n\n return new Promise(function (reslove) {\n pilot.getFindById(id, function (res) {\n _this5.approvalComments = res.approvalComments ? res.approvalComments.split('$_$') : [];\n _this5.districtName = res.invs ? res.invs.map(function (val) {\n return val.unitName;\n }) : [];\n reslove();\n });\n });\n },\n // 根据主表id查询推进表信息\n advanceRecordsById: function advanceRecordsById(id) {\n var _this6 = this;\n\n return new Promise(function (resolve) {\n pilot.advanceRecordsById(id, function (res) {\n if (res.value.length) {\n _this6.attachData = res.value[0] || {};\n _this6.attachData.approvalComments = _this6.attachData.approvalComments && _this6.attachData.approvalComments.split('$_$');\n _this6.tableData = res.value[0].results || [];\n\n if (_this6.title === '更新' && (res.value[0].status == 7 || res.value[0].status == 9 || res.value[0].status == 11 || res.value[0].status == 12)) {\n _this6.historyData = JSON.parse(JSON.stringify(_this6.attachData));\n _this6.attachData.id = '';\n _this6.attachData.results && _this6.attachData.results.forEach(function (item) {\n item.id = '';\n });\n } else {\n if (res.value[1]) {\n _this6.historyData = res.value[1] || null;\n _this6.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 _this7 = this;\n\n return new Promise(function (resolve) {\n var data = JSON.parse(JSON.stringify(_this7.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 _this7.primaryFileList = arr;\n resolve();\n });\n });\n },\n // 文件删除\n beforeRemove: function beforeRemove(file, fileList) {\n var _this8 = 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 _this8.$message.success('附件删除成功');\n\n var arr = _this8.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this8.fileList = arr;\n } else {\n _this8.$message.error('附件删除失败');\n }\n });\n });\n },\n // 文件预览\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.extensionName ? file.extensionName : file.name.split('.')[1];\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\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]}