{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\AuditConfirmation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\AuditConfirmation.vue","mtime":1685072457440},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport pagination from '@/components/pagination'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport sat from '@/api/satisfaction/satisfaction'\r\nimport moment from 'moment'\r\nconst portal = window.context.portal\r\nexport default {\r\n name: 'AuditConfirmation',\r\n components: {\r\n pagination\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n dialogVisible: false,\r\n dialogImageUrl: '',\r\n tableMaxHeight: 400,\r\n loading: false,\r\n tableLoading: false,\r\n tableData: [],\r\n multipleSelection: [],\r\n params: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 10,\r\n showTotal: true\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'status', // 字段名\r\n relation: 'AND',\r\n value: 3\r\n }\r\n ]\r\n },\r\n operation: 'EQUAL',\r\n pageResult: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0\r\n },\r\n searchForm: {\r\n estigationName: '',\r\n scoringDate: '',\r\n status: 3\r\n }, // 顶部搜索对象\r\n deleteIds: '', // 是否选中列表解锁删除按钮\r\n activeCollapse1: ['1'],\r\n fileList: [], // 文件上传\r\n dialog: {\r\n title: '调查详情',\r\n visible: false\r\n },\r\n id: null,\r\n dialogForm: {\r\n significant: 1,\r\n estigationName: '',\r\n scoringDate: '',\r\n satisfaction: '',\r\n investigationConclusion: '',\r\n // status: 0, //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\r\n classified: 0 //0:不涉密,1:涉密\r\n },\r\n disabled: false, // 是否禁止输入输入\r\n rules: {\r\n estigationName: [\r\n {\r\n required: true,\r\n message: '请输入调查名称',\r\n trigger: 'blur'\r\n }\r\n ],\r\n scoringDate: [\r\n {\r\n required: true,\r\n message: '请选择调查时间',\r\n trigger: 'change'\r\n }\r\n ],\r\n // significant: [\r\n // { type: 'date', required: true, message: '请选择是否为重大项目', trigger: 'change' }\r\n // ]\r\n investigationConclusion: [\r\n {\r\n required: true,\r\n message: '请输入调查名称',\r\n trigger: 'blur'\r\n }\r\n ]\r\n },\r\n isDialog: false,\r\n districtData: [],\r\n btnIsShow: true,\r\n btnLoading: false,\r\n noLoading: false,\r\n options: [\r\n {\r\n value: 1,\r\n label: '第一季度'\r\n },\r\n {\r\n value: 2,\r\n label: '第二季度'\r\n },\r\n {\r\n value: 3,\r\n label: '第三季度'\r\n },\r\n {\r\n value: 4,\r\n label: '第四季度'\r\n }\r\n ]\r\n }\r\n },\r\n\r\n created() {\r\n this.getDistrictList()\r\n this.getSurveyList2(this.params)\r\n },\r\n methods: {\r\n // 页面中swatch回调事件\r\n handleSwitch(bol) {\r\n if (this.switchStatus == bol) return\r\n this.switchStatus = bol\r\n if (bol) {\r\n // 已办\r\n this.operation = 'IN'\r\n this.searchForm.status = [4, 5]\r\n } else {\r\n // 代办\r\n this.operation = 'EQUAL'\r\n this.searchForm.status = 3\r\n }\r\n this.handleSearch()\r\n },\r\n // 根据id查询附件信息\r\n getFileListById(id) {\r\n let data = JSON.parse(JSON.stringify(this.params))\r\n data.querys = [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'biz_id_',\r\n relation: 'AND',\r\n value: id\r\n }\r\n ]\r\n sat.getFileListById(data, res => {\r\n res.rows.forEach(item => {\r\n let {id, fileName, extensionName} = item\r\n let url = `${portal}/file/onlinePreviewController/v1/getFileById_${id}`\r\n let obj = {\r\n id,\r\n name: `${fileName}.${extensionName}`,\r\n url,\r\n fileType: extensionName\r\n }\r\n this.fileList.push(obj)\r\n })\r\n })\r\n },\r\n beforeUpload(res, file, fileList) {\r\n // console.log(file)\r\n if (res.success) {\r\n this.fileList = fileList\r\n\r\n this.$message.success('附件上传成功')\r\n } else {\r\n this.$message.error('附件上传失败')\r\n }\r\n },\r\n beforeRemove(file, fileList) {\r\n console.log(file)\r\n this.$confirm(`确定删除 ${file.name}?`, this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n let id = file.id || file.response.fileId\r\n sat.deleteFileById(id, res => {\r\n if (res.state) {\r\n this.$message.success('附件删除成功')\r\n let arr = this.fileList.filter(item => {\r\n let fileId = item.id || item.response.fileId\r\n if (fileId !== id) {\r\n return item\r\n }\r\n })\r\n this.fileList = arr\r\n } else {\r\n this.$message.error('附件删除失败')\r\n }\r\n })\r\n })\r\n },\r\n handlePreview(file) {\r\n let id = file.id ? file.id : file.response.fileId\r\n sat.getDownloadById(id, res => {})\r\n },\r\n // 审核通过 驳回\r\n handleVerify(status) {\r\n let message = status === 4 ? '确认驳回吗?' : '确认通过吗?'\r\n if (status === 4) {\r\n this.noLoading = true\r\n } else {\r\n this.btnLoading = true\r\n }\r\n this.$confirm(message, this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'success'\r\n })\r\n .then(() => {\r\n let data = {\r\n id: this.id,\r\n status\r\n }\r\n sat.auditById(data, res => {\r\n if (res.state) {\r\n this.noLoading = false\r\n this.btnLoading = false\r\n this.$message.success(status === 4 ? '驳回成功' : '通过成功')\r\n } else {\r\n this.noLoading = false\r\n this.btnLoading = false\r\n this.$message.error(status === 4 ? '驳回失败' : '通过失败')\r\n }\r\n this.dialog.visible = false\r\n this.getSurveyList2(this.params)\r\n })\r\n })\r\n .catch(() => {\r\n this.noLoading = false\r\n this.btnLoading = false\r\n })\r\n },\r\n // 单击单元格\r\n cellClick(row) {\r\n console.log(row)\r\n },\r\n handleDetils(item) {\r\n this.$router.push({\r\n path: '/platLayout/SatisfactionApplication',\r\n query: {\r\n id: item.id,\r\n type: 'detail',\r\n key: 'AuditConfirmation'\r\n }\r\n })\r\n },\r\n // 删除区县打分\r\n tableDel(item) {\r\n console.log(item)\r\n let arr = this.districtData.filter(district => district.id !== item.id)\r\n this.districtData = arr\r\n },\r\n handleAudits(item) {\r\n this.$router.push({\r\n path: '/platLayout/SatisfactionApplication',\r\n query: {\r\n id: item.id,\r\n type: 'audits',\r\n key: 'AuditConfirmation'\r\n }\r\n })\r\n // this.getFileListById(item.id)\r\n // this.disabled = true\r\n // let {\r\n // estigationName,\r\n // scoringDate,\r\n // classified, //涉密\r\n // investigationConclusion,\r\n // significant, //重大事项\r\n // bizReformSatisfactionDistricts,\r\n // id,\r\n // scoringYear,\r\n // scoringQuarter,\r\n // } = item\r\n // let dialogForm = {\r\n // estigationName,\r\n // scoringDate,\r\n // classified, //涉密\r\n // investigationConclusion,\r\n // significant, //重大事项\r\n // scoringYear: scoringYear + '',\r\n // scoringQuarter,\r\n // }\r\n // console.log(bizReformSatisfactionDistricts)\r\n // this.districtData = bizReformSatisfactionDistricts\r\n // this.id = id\r\n // this.dialogForm = dialogForm\r\n // this.dialog.visible = true\r\n },\r\n // 查询所有区县\r\n getDistrictList() {\r\n sat.getDistrictList(res => {\r\n console.log(res)\r\n this.districtData = res.value\r\n })\r\n },\r\n // 分页查询所有数据\r\n getSurveyList2(data) {\r\n this.tableLoading = true\r\n sat.queryByPage(data, 'true', res => {\r\n this.tableData = res.rows\r\n this.tableLoading = false\r\n })\r\n },\r\n //添加\r\n handleAdd() {\r\n this.getDistrictList()\r\n this.dialog.visible = true\r\n },\r\n // 顶部搜索\r\n handleSearch() {\r\n // this.tableLoading = true\r\n let {estigationName, scoringDate, status} = this.searchForm\r\n let time = scoringDate\r\n ? moment(scoringDate).format('YYYY-MM-DD')\r\n : scoringDate\r\n let data = [\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'estigationName', // 字段名\r\n relation: 'AND',\r\n value: estigationName\r\n },\r\n {\r\n group: 'main',\r\n operation: 'BETWEEN',\r\n parentGroup: '',\r\n property: 'scoringDate', // 字段名\r\n relation: 'AND',\r\n value: scoringDate\r\n },\r\n {\r\n group: 'main',\r\n operation: this.operation,\r\n parentGroup: '',\r\n property: 'status', // 字段名\r\n relation: 'AND',\r\n value: status\r\n }\r\n ]\r\n this.params.querys = data\r\n this.getSurveyList2(this.params)\r\n },\r\n // 弹层关闭\r\n handleDialogClose() {\r\n this.dialog.visible = false\r\n this.dialogForm = {\r\n significant: 1,\r\n estigationName: '',\r\n scoringDate: '',\r\n satisfaction: '',\r\n investigationConclusion: '',\r\n // status: 0, //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\r\n classified: 0 //0:不涉密,1:涉密\r\n }\r\n this.$refs['form'].resetFields()\r\n setTimeout(() => {\r\n this.btnIsShow = true\r\n }, 500)\r\n this.fileList = []\r\n },\r\n\r\n handleSelectionChange(currentData) {\r\n if (currentData.length === 0) return (this.deleteIds = '')\r\n let ids = []\r\n currentData.forEach(item => {\r\n ids.push(item.id)\r\n })\r\n this.deleteIds = ids.join(',')\r\n console.log(this.deleteIds)\r\n },\r\n handleCurrentChange(page) {\r\n this.params.pageBean = {...this.params.pageBean, page}\r\n this.loadData(this.params)\r\n },\r\n handleSizeChange(pageSize) {\r\n this.params.pageBean = {...this.params.pageBean, pageSize}\r\n this.loadData(this.params)\r\n }\r\n }\r\n}\r\n",null]}