{"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\\satisfactionManagement\\SatisfactionApplication.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\SatisfactionApplication.vue","mtime":1698393454186},{"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\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport sat from '@/api/satisfaction/satisfaction';\nimport moment from 'moment';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport req from '@/request.js';\nvar portal = window.context.portal;\nexport default {\n name: 'SatisfactionSurveys',\n components: {\n pagination: pagination,\n filePreview: filePreview,\n UploadFile: UploadFile,\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableHeight: 400,\n btnType: '',\n undisabledType: ['add', 'edit'],\n currentRouterKey: 'SatisfactionSurveys',\n routerData: {\n SatisfactionSurveys: {\n upperName: '区县满意度调查',\n activeName: '区县满意度信息录入'\n },\n SatisfactionAudits: {\n upperName: '区县满意度审核',\n activeName: '区县满意度填报信息'\n },\n AuditConfirmation: {\n upperName: '市委改革办审核确认',\n activeName: '满意度填报信息'\n }\n },\n // 导入------------\n unploading: false,\n actionUrl: '',\n importData: {\n satisfactionId: ''\n },\n columnData: [{\n label: '综合\\n评价得分',\n key: 'satisfaction',\n width: '80'\n }, {\n label: '经济社会发展领域(40%)',\n key: 'ecoFieldParent',\n type: 'parent-column',\n children: [{\n label: '评价得分',\n key: 'ecoField',\n width: '80'\n }, {\n label: '招商引资成效\\n评价得分',\n key: 'ecoZs',\n width: '110'\n }, {\n label: '就业创业环境\\n评价得分',\n key: 'ecoCy',\n width: '110'\n }, {\n label: '医疗卫生服务\\n评价得分',\n key: 'ecoYl',\n width: '120'\n }, {\n label: '教育环境\\n评价得分',\n key: 'ecoJy',\n width: '80'\n }, {\n label: '生态环境\\n评价得分',\n key: 'ecoSt',\n width: '80'\n }]\n }, {\n label: '民主政治领域(15%)',\n key: 'demFieldParent',\n type: 'parent-column',\n children: [{\n label: '评价得分',\n key: 'demField',\n width: '80'\n }, {\n label: '民主议事开展\\n评价得分',\n key: 'demYs',\n width: '110'\n }, {\n label: '办事效率\\n评价得分',\n key: 'demBs',\n width: '80'\n }]\n }, {\n label: '文化领域(15%)',\n key: 'culFieldParent',\n type: 'parent-column',\n children: [{\n label: '评价得分',\n key: 'culField',\n width: '80'\n }, {\n label: '文化、体育、\\n艺术活动\\n评价得分',\n key: 'culWh',\n width: '110'\n }, {\n label: '爱国主义\\n教育成效\\n评价得分',\n key: 'culAg',\n width: '80'\n }]\n }, {\n label: '平安法治领域(15%)',\n key: 'peaceFieldParent',\n type: 'parent-column',\n children: [{\n label: '评价得分',\n key: 'peaceField',\n width: '80'\n }, {\n label: '司法机关\\n公正司法\\n评价得分',\n key: 'peaceSf',\n width: '80'\n }, {\n label: '社会治安状况\\n评价得分',\n key: 'peaceZa',\n width: '110'\n }]\n }, {\n label: '党建统领领域(15%)',\n key: 'partyFieldParent',\n type: 'parent-column',\n children: [{\n label: '评价得分',\n key: 'partyField',\n width: '80'\n }, {\n label: '党政领导机关\\n干部干事劲头\\n和精神状态\\n评价得分',\n key: 'partyGb',\n width: '110'\n }, {\n label: '党员干部\\n清廉从政\\n评价得分',\n key: 'partyQl',\n width: '80'\n }]\n }, {\n label: '综合得分\\n区域排名',\n key: 'regionSn',\n width: '80'\n }, {\n label: '综合得分\\n全市排名',\n key: 'allSn',\n width: '80'\n }],\n // 导入------------\n dialogVisible: false,\n dialogImageUrl: '',\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 estigationName: '',\n scoringDate: '',\n status: null\n },\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n id: null,\n dialogForm: {\n approvalComments: '',\n // 审批意见\n estigationName: '',\n scoringDate: '',\n satisfaction: '',\n investigationConclusion: '',\n // status: 0, //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\n classified: 1,\n //0:不涉密,1:涉密\n scoringYear: new Date().getFullYear() + '',\n scoringQuarter: 1,\n scoringMonth: 1\n },\n disabled: false,\n // 是否禁止输入输入\n rules: {\n satisfaction: [{\n required: true,\n message: '请输入分数',\n trigger: 'blur'\n }, {\n pattern: /(^(\\d|[1-9]\\d)(\\.\\d{1,2})?$)|(^100$)g/,\n message: '请输入正确分数,最多输入两位小数',\n trigger: 'change'\n }],\n estigationName: [{\n required: true,\n message: '请输入调查名称',\n trigger: 'blur'\n }],\n scoringDate: [{\n required: true,\n message: '请选择调查时间',\n trigger: 'change'\n }],\n investigationConclusion: [{\n required: true,\n message: '请输入调查名称',\n trigger: 'blur'\n }],\n scoringYear: [{\n required: true,\n message: '请选择年份',\n trigger: '.change'\n }],\n scoringQuarter: [{\n required: true,\n message: '请选择季度',\n trigger: '.change'\n }],\n scoringMonth: [{\n required: true,\n message: '请选择月份',\n trigger: '.change'\n }]\n },\n rules1: {},\n isDialog: false,\n districtData: [],\n btnLoading: false,\n scoresLoading: false,\n options: [{\n value: 1,\n label: '第一季度'\n }, {\n value: 2,\n label: '第二季度'\n }, {\n value: 3,\n label: '第三季度'\n }, {\n value: 4,\n label: '第四季度'\n }]\n };\n },\n created: function created() {\n this.actionUrl = window.context.portal; // this.getDistrictList()\n\n this.getSurveyList(this.params);\n },\n mounted: function mounted() {\n var id = this.$route.query.id;\n this.btnType = this.$route.query.type;\n this.disabled = !this.undisabledType.includes(this.btnType);\n this.currentRouterKey = this.$route.query.key;\n if (id) this.openUpdate(id);\n this.dialogForm.scoringDate = new Date();\n this.getTableHeight();\n },\n methods: {\n // 模板下载\n downloadFile: function downloadFile() {\n var fileUrl = process.env.BASE_URL + '/files/excel/满意度上报模板.xlsx';\n var link = document.createElement('a');\n link.href = fileUrl;\n link.download = '满意度上报模板.xlsx';\n link.click();\n },\n // 导出excel \n exportExcel: function exportExcel() {\n var id = this.$route.query.id;\n req.downloadPostCopy(portal + \"/biz/reformSatisfaction/districts/exportExcel?satisfactionId=\".concat(id)).then(function (res) {\n console.log(res);\n });\n },\n getTableHeight: function getTableHeight() {\n var _this = this;\n\n this.$nextTick(function () {\n var total = _this.$refs.form.$el.clientHeight;\n var row1 = _this.$refs.row1.$el.clientHeight; // let row2 = this.$refs.row2 ? this.$refs.row2.clientHeight : 0\n // let row3 = this.$refs.row3.$el.clientHeight\n\n var row4 = _this.$refs.row4.clientHeight;\n var row5 = _this.$refs.row5 ? _this.$refs.row5.$el.clientHeight : 0;\n _this.tableHeight = total - row1 - row4 - row5 - 20; //row2 -row3\n\n console.log(total, row1, row4, row5);\n console.log(_this.tableHeight, 'this.tableHeight');\n });\n },\n // 审核驳回\n handleReject: function handleReject(status) {\n var _this2 = this;\n\n var message = '确认驳回吗?';\n this.btnLoading = true;\n this.$confirm(message, this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this2.$refs.rejectInfoDialog.open('/bizReformDemandAnalysisLibrary/v1/updateAuditStatus', status);\n }).catch(function () {\n _this2.btnLoading = false;\n });\n },\n // 处理填写的驳回意见\n sendRejectInfo: function sendRejectInfo(rejectInfo, api, status) {\n var _this3 = this;\n\n console.log(rejectInfo, 'rejectInfo');\n req.post(portal + \"/biz/bizReformSatisfactionManagement/v1/updateStatusById?id=\".concat(this.id, \"&status=\").concat(status, \"&approvalComments=\").concat(rejectInfo)).then(function (res) {\n if (res.data.state) {\n _this3.$message.success('驳回成功');\n\n _this3.$router.push({\n path: \"/platLayout/\".concat(_this3.currentRouterKey)\n });\n } else {\n _this3.$message.error('驳回失败');\n }\n\n _this3.btnLoading = false;\n }).catch(function () {\n _this3.btnLoading = false;\n });\n },\n // 导入---------------\n // 获取导入的满意度数据\n getImportData: function getImportData() {\n var _this4 = this;\n\n this.scoresLoading = true;\n var data = this.qs.stringify({\n satisfactionId: this.id\n });\n sat.getImportDataById(data, function (res) {\n _this4.districtData = res.value;\n _this4.scoresLoading = false;\n });\n },\n //导入运营kpl数据\n handleImport: function handleImport() {\n var _this5 = this;\n\n if (!this.districtData.length) {\n this.dialogVisible = true;\n } else {\n this.$confirm('此操作将覆盖填报数据, 是否继续?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this5.dialogVisible = true;\n }).catch(function () {\n _this5.unploading = false;\n });\n }\n },\n //上传成功\n handleImportSuccess: function handleImportSuccess(res, file) {\n this.dialogVisible = false;\n this.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n this.unploading = false;\n this.getImportData();\n },\n // 预报存,为导入获取数据id\n preSave: function preSave() {\n var _this6 = this;\n\n this.unploading = true;\n\n if (!this.id) {\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var _this6$dialogForm = _this6.dialogForm,\n estigationName = _this6$dialogForm.estigationName,\n investigationConclusion = _this6$dialogForm.investigationConclusion,\n classified = _this6$dialogForm.classified,\n scoringYear = _this6$dialogForm.scoringYear,\n scoringQuarter = _this6$dialogForm.scoringQuarter;\n\n var ids = _this6.fileList.map(function (item) {\n return item.id ? item.id : item.response.fileId;\n });\n\n var year = moment(scoringYear).format('YYYY') - 0;\n var data = {\n estigationName: estigationName,\n //调查名称\n investigationConclusion: investigationConclusion,\n //调查结论\n status: 0,\n //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\n classified: classified,\n //0:不涉密,1:涉密\n id: '',\n bizReformSatisfactionDistricts: [],\n ids: ids,\n scoringYear: year,\n scoringQuarter: scoringQuarter\n };\n sat.addSurvey(data, function (res) {\n if (res.state) {\n //返回id\n _this6.id = res.value;\n _this6.importData.satisfactionId = res.value;\n\n _this6.handleImport();\n }\n\n _this6.unploading = false;\n });\n } else {\n _this6.unploading = false;\n }\n });\n } else {\n this.importData.satisfactionId = this.id;\n this.handleImport();\n }\n },\n // 导入---------------\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('mydandfx');\n },\n setFileList: function setFileList(file) {\n this.fileList.push(file);\n this.getTableHeight();\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this7 = 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 _this7.$message.success('附件删除成功');\n\n _this7.fileList = _this7.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this7.getTableHeight();\n } else {\n _this7.$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 this.dialogImageUrl = this.previewUrl + id;\n var type = file.fileType || (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 // 根据id查询附件信息\n getFileListById: function getFileListById(id) {\n var _this8 = this;\n\n var data = JSON.parse(JSON.stringify(this.params));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'biz_id_',\n relation: 'AND',\n value: id\n }];\n sat.getFileListById(data, function (res) {\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\n _this8.fileList.push(obj);\n });\n });\n },\n // 文件下载\n handleDownload: function handleDownload(file) {\n console.log(file);\n var id = file.id ? file.id : file.response.fileId;\n sat.getDownloadById(id, function (res) {});\n },\n // 表单提交保存\n submit: function submit(status) {\n var _this9 = this;\n\n this.btnLoading = true;\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var _this9$dialogForm = _this9.dialogForm,\n estigationName = _this9$dialogForm.estigationName,\n investigationConclusion = _this9$dialogForm.investigationConclusion,\n classified = _this9$dialogForm.classified,\n scoringYear = _this9$dialogForm.scoringYear,\n scoringQuarter = _this9$dialogForm.scoringQuarter;\n\n var ids = _this9.fileList.map(function (item) {\n return item.id ? item.id : item.response.fileId;\n });\n\n var year = moment(scoringYear).format('YYYY') - 0;\n var data = {\n estigationName: estigationName,\n //调查名称\n investigationConclusion: investigationConclusion,\n //调查结论\n status: status,\n //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\n classified: classified,\n //0:不涉密,1:涉密\n id: _this9.id,\n bizReformSatisfactionDistricts: [],\n ids: ids,\n scoringYear: year,\n scoringQuarter: scoringQuarter\n };\n data.bizReformSatisfactionDistricts = _this9.districtData;\n\n if (data.bizReformSatisfactionDistricts.length) {\n _this9.$confirm(\"\".concat(status == 1 ? '确认提交上报?' : '确认保存草稿?'), _this9.$t('common.tips'), {\n confirmButtonText: _this9.$t('common.confirm'),\n cancelButtonText: _this9.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n sat.addSurvey(data, function (res) {\n if (res.state) {\n _this9.btnLoading = false;\n\n _this9.$message.success('保存成功');\n\n _this9.$router.push({\n path: \"/platLayout/\".concat(_this9.currentRouterKey)\n });\n } else {\n _this9.btnLoading = false;\n\n _this9.$message.error('保存失败');\n }\n });\n }).catch(function () {\n _this9.btnLoading = false;\n });\n } else {\n _this9.btnLoading = false;\n\n _this9.$message.error('请导入区县满意度评分');\n }\n } else {\n _this9.btnLoading = false;\n }\n });\n },\n // 单击单元格\n cellClick: function cellClick(row) {\n console.log(row);\n },\n formatFileList: function formatFileList(list) {\n var _this10 = this;\n\n list.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\n _this10.fileList.push(obj);\n });\n this.getTableHeight();\n },\n // 查看详情 修改\n openUpdate: function openUpdate(id) {\n var _this11 = this;\n\n this.scoresLoading = true;\n var data = this.qs.stringify({\n id: id\n });\n sat.queryById(data, function (res) {\n var data = res;\n _this11.id = id;\n _this11.dialogForm.approvalComments = res.approvalComments;\n _this11.dialogForm.estigationName = res.estigationName;\n _this11.dialogForm.scoringDate = res.scoringDate;\n _this11.dialogForm.classified = res.classified;\n _this11.dialogForm.investigationConclusion = res.investigationConclusion;\n _this11.dialogForm.scoringYear = res.scoringYear + '';\n _this11.dialogForm.scoringQuarter = res.scoringQuarter;\n _this11.dialogForm.scoringMonth = res.scoringMonth;\n _this11.districtData = res.bizReformSatisfactionDistricts && res.bizReformSatisfactionDistricts.length ? res.bizReformSatisfactionDistricts : [];\n\n if (res.fileList && res.fileList.length) {\n _this11.formatFileList(res.fileList);\n }\n\n _this11.scoresLoading = false;\n });\n },\n // 查询所有区县\n getDistrictList: function getDistrictList() {\n var _this12 = this;\n\n sat.getDistrictList(function (res) {\n _this12.districtData = res.value;\n });\n },\n // 分页查询所有数据\n getSurveyList: function getSurveyList(data) {\n var _this13 = this;\n\n this.tableLoading = true;\n sat.queryByPage(data, 'false', function (res) {\n _this13.tableData = res.rows;\n _this13.tableLoading = false;\n });\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.scoresLoading = false;\n this.dialogForm = {\n estigationName: '',\n scoringDate: '',\n satisfaction: '',\n investigationConclusion: '',\n // status: 0, //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\n classified: 0,\n //0:不涉密,1:涉密\n scoringYear: '',\n scoringQuarter: 1,\n scoringMonth: 1\n };\n this.districtData = [];\n this.$refs['form'].resetFields();\n this.fileList = [];\n this.dialog.visible = false;\n this.$router.push({\n path: \"/platLayout/\".concat(this.currentRouterKey)\n });\n },\n // 审核通过 驳回\n handleVerify: function handleVerify(status) {\n var _this14 = this;\n\n var message = status === 2 || status === 4 ? '确认驳回吗?' : '确认通过吗?';\n this.btnLoading = true;\n this.$confirm(message, this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n var data = {\n id: _this14.id,\n status: status\n };\n sat.auditById(data, function (res) {\n if (res.state) {\n _this14.btnLoading = false;\n\n _this14.$message.success(status === 2 ? '驳回成功' : '通过成功');\n\n _this14.$router.push({\n path: \"/platLayout/\".concat(_this14.currentRouterKey)\n });\n } else {\n _this14.btnLoading = false;\n\n _this14.$message.error(status === 2 ? '驳回失败' : '通过失败');\n }\n });\n }).catch(function () {\n _this14.btnLoading = false;\n });\n }\n }\n};",null]}