{"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\\ReformRiskManagement\\ReformRiskEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformRiskManagement\\ReformRiskEntry.vue","mtime":1683616570887},{"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/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport sat from '@/api/satisfaction/satisfaction';\nimport risk from '@/api/risk';\nimport utils from '@/utils.js';\nimport moment from 'moment';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nvar portal = window.context.portal;\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination,\n filePreview: filePreview,\n UploadFile: UploadFile\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n reqLoading: false,\n markLoading: false,\n dialogVisible: false,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\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 // 字段名\n relation: 'AND',\n value: ''\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {\n riskName: '',\n riskType: 1,\n significant: 1,\n riskDetail: '',\n riskDate: '',\n classified: 0,\n riskLevel: '',\n objectId: ''\n },\n value: '',\n disabled: false,\n // 是否禁止输入输入\n isShow: false,\n // 点击审核时显示\n rules: {\n riskName: [{\n required: true,\n message: '请输入事件名称',\n trigger: 'blur'\n }],\n riskDate: [{\n required: true,\n message: '请选择风险时间',\n trigger: 'change'\n }],\n riskType: [{\n required: true,\n message: '请选择事件类型',\n trigger: 'blur'\n }],\n riskLevel: [{\n required: true,\n message: '请选择风险程度',\n trigger: 'change'\n }],\n significant: [{\n required: true,\n message: '请选择涉及对象',\n trigger: 'change'\n }],\n riskDetail: [{\n required: true,\n message: '请输入事件详情',\n trigger: 'blur'\n }]\n },\n optionData: [],\n projectData: [],\n districtData: [],\n approvalComments: [],\n optionName: ''\n };\n },\n created: function created() {\n this.getRiskList(this.params);\n this.getNoProjectList();\n this.districtData = JSON.parse(sessionStorage.getItem('districtList'));\n },\n methods: {\n // 撤回\n riskRevokeReview: function riskRevokeReview(item) {\n var _this = this;\n\n this.$confirm('确认执行撤销操作吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this.markLoading = true;\n var data = {\n id: item.id,\n status: 0,\n approvalResults: 2\n };\n risk.auditById(data, function (res) {\n if (res.state) {\n item.status = 0;\n\n _this.$message.success('撤回成功');\n\n _this.markLoading = false;\n } else {\n _this.$message.error('撤回失败');\n\n _this.markLoading = false;\n }\n });\n });\n },\n significantChange: function significantChange(value) {\n this.dialogForm.objectId = '';\n this.$refs['objectIdForm'].clearValidate();\n this.optionData = value == 1 ? this.districtData : this.projectData;\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getRiskDetail: function getRiskDetail(id) {\n var _this2 = this;\n\n this.reqLoading = true;\n risk.getRiskDetail(id, function (res) {\n if (res) {\n _this2.$set(_this2.dialogForm, 'objectId', res.bizReformRiskInvolvedDistrictsList[0].objectId); // this.dialogForm.objectId = res.bizReformRiskInvolvedDistrictsList[0].objectId\n\n\n _this2.approvalComments = res.approvalComments ? res.approvalComments.split('$_$') : [];\n\n if (_this2.disabled) {\n _this2.optionName = res.bizReformRiskInvolvedDistrictsList[0].objectName;\n }\n\n _this2.fileList = res.fileList.map(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 return {\n id: id,\n name: \"\".concat(fileName, \".\").concat(extensionName),\n url: url,\n fileType: extensionName\n };\n });\n }\n\n _this2.reqLoading = false;\n });\n },\n // 根据附件id删除附件\n handleRemove: function handleRemove(file) {\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: 'warning'\n }).then(function () {\n var id = file.id || file.response.fileId;\n console.log(id);\n sat.deleteFileById(id, function (res) {\n var arr = [];\n\n if (res.state) {\n _this3.$message.success('附件删除成功');\n\n _this3.fileList = _this3.fileList.map(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n } else {\n _this3.$message.error('附件删除失败');\n }\n });\n });\n },\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('Risk');\n },\n setAipher: function setAipher() {\n this.dialogForm.classified = 1;\n },\n setFileList: function setFileList(file) {\n this.dialogForm.classified = 0;\n this.fileList.push(file);\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this4 = this;\n\n console.log(file);\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 _this4.$message.success('附件删除成功');\n\n var arr = _this4.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this4.fileList = arr;\n } else {\n _this4.$message.error('附件删除失败');\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 console.log(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 handleVerify: function handleVerify(item) {\n var _this5 = this;\n\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 _this5.markLoading = true;\n var data = {\n id: item.id,\n status: 1\n };\n risk.auditById(data, function (res) {\n if (res.state) {\n item.status = 1;\n\n _this5.$message.success('上报成功');\n\n _this5.markLoading = false;\n } else {\n _this5.$message.error('上报失败');\n\n _this5.markLoading = false;\n }\n });\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n this.tableLoading = true;\n var data = JSON.parse(JSON.stringify(this.params));\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'riskName' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n data.querys = querys;\n this.params.querys = data;\n this.getRiskList(data);\n },\n // 查询所有数据\n getRiskList: function getRiskList(data) {\n var _this6 = this;\n\n this.tableLoading = true;\n risk.getRiskList(data, false, function (res) {\n _this6.tableData = res.rows;\n _this6.tableLoading = false;\n _this6.pageResult.total = res.total;\n });\n },\n // 表单提交保存\n submitRisk: function submitRisk() {\n var _this7 = this;\n\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var data = JSON.parse(JSON.stringify(_this7.dialogForm));\n data.ids = _this7.fileList.map(function (item) {\n return item.id ? item.id : item.response.fileId;\n });\n data.riskDate = moment(data.riskDate).format('YYYY-MM-DD');\n data.bizReformRiskInvolvedDistrictsList = [];\n data.status = 0;\n\n if (data.significant == 1) {\n _this7.optionData.forEach(function (item) {\n if (item.id === data.objectId) {\n var code = item.code,\n id = item.id,\n grade = item.grade,\n name = item.name;\n var obj = {\n unitCode: code,\n unitGrade: grade,\n objectId: id,\n objectName: name\n };\n data.bizReformRiskInvolvedDistrictsList.push(obj);\n }\n });\n } else {\n _this7.optionData.forEach(function (item) {\n if (item.id === data.objectId) {\n var id = item.id,\n projectName = item.projectName;\n var obj = {\n objectId: id,\n objectName: projectName\n };\n data.bizReformRiskInvolvedDistrictsList.push(obj);\n }\n });\n }\n\n if (data.bizReformRiskInvolvedDistrictsList.length) {\n _this7.$confirm('确认提交保存?', _this7.$t('common.tips'), {\n confirmButtonText: _this7.$t('common.confirm'),\n cancelButtonText: _this7.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this7.markLoading = true;\n risk.addRisk(data, function (res) {\n if (res.state) {\n _this7.getRiskList(_this7.params);\n\n _this7.handleDialogClose();\n\n _this7.$message.success('提交保存成功');\n } else {\n _this7.$message.error('提交保存失败');\n }\n\n _this7.markLoading = false;\n });\n });\n } else {// this.$message.error('请选择区县进行打分')\n }\n } else {\n return false;\n }\n });\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this8 = this;\n\n this.$confirm('确认删除?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n risk.deleteRisk(_this8.deleteIds, function (res) {\n if (res.state) {\n _this8.$message.success('删除成功');\n\n _this8.getRiskList(_this8.params);\n } else {\n _this8.$message.error('删除失败');\n }\n });\n });\n },\n // 查询所有未结项项目\n getNoProjectList: function getNoProjectList() {\n var _this9 = this;\n\n var data = JSON.parse(JSON.stringify(this.params));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'closing_',\n relation: 'AND',\n value: 1\n }];\n risk.getNoProjectList(data, function (res) {\n _this9.projectData = res;\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.optionData = this.districtData;\n this.dialogForm = {\n riskName: '',\n riskType: 1,\n significant: 1,\n riskDetail: '',\n riskDate: '',\n classified: 0,\n objectId: ''\n };\n this.dialog.visible = true;\n this.id = null;\n this.disabled = false;\n this.dialogForm.riskDate = new Date();\n },\n // 编辑\n openEdit: function openEdit(item) {\n this.disabled = false;\n this.openUpdate(item);\n },\n // 查看详情 修改\n openUpdate: function openUpdate(item) {\n this.getRiskDetail(item.id);\n this.dialogForm = item;\n this.optionData = item.significant == 1 ? this.districtData : this.projectData;\n this.dialog.visible = true;\n },\n // 查看详情\n handleDetils: function handleDetils(item) {\n this.disabled = true;\n this.openUpdate(item);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n\n if (this.$refs['form']) {\n this.$refs['form'].resetFields();\n }\n\n ;\n this.dialogForm = {\n riskName: '',\n riskType: 1,\n significant: 1,\n riskDetail: '',\n riskDate: '',\n classified: 1,\n objectId: ''\n }, this.fileList = [];\n this.approvalComments = [];\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.getRiskList(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.getRiskList(this.params);\n }\n }\n};",null]}