{"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\\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\\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/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport sat from '@/api/satisfaction/satisfaction';\nimport moment from 'moment';\nvar portal = window.context.portal;\nexport default {\n name: 'AuditConfirmation',\n components: {\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n dialogVisible: false,\n dialogImageUrl: '',\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: 'status',\n // 字段名\n relation: 'AND',\n value: 3\n }]\n },\n operation: 'EQUAL',\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {\n estigationName: '',\n scoringDate: '',\n status: 3\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 significant: 1,\n estigationName: '',\n scoringDate: '',\n satisfaction: '',\n investigationConclusion: '',\n // status: 0, //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\n classified: 0 //0:不涉密,1:涉密\n\n },\n disabled: false,\n // 是否禁止输入输入\n rules: {\n estigationName: [{\n required: true,\n message: '请输入调查名称',\n trigger: 'blur'\n }],\n scoringDate: [{\n required: true,\n message: '请选择调查时间',\n trigger: 'change'\n }],\n // significant: [\n // { type: 'date', required: true, message: '请选择是否为重大项目', trigger: 'change' }\n // ]\n investigationConclusion: [{\n required: true,\n message: '请输入调查名称',\n trigger: 'blur'\n }]\n },\n isDialog: false,\n districtData: [],\n btnIsShow: true,\n btnLoading: false,\n noLoading: 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.getDistrictList();\n this.getSurveyList2(this.params);\n },\n methods: {\n // 页面中swatch回调事件\n handleSwitch: function handleSwitch(bol) {\n if (this.switchStatus == bol) return;\n this.switchStatus = bol;\n\n if (bol) {\n // 已办\n this.operation = 'IN';\n this.searchForm.status = [4, 5];\n } else {\n // 代办\n this.operation = 'EQUAL';\n this.searchForm.status = 3;\n }\n\n this.handleSearch();\n },\n // 根据id查询附件信息\n getFileListById: function getFileListById(id) {\n var _this = 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 _this.fileList.push(obj);\n });\n });\n },\n beforeUpload: function beforeUpload(res, file, fileList) {\n // console.log(file)\n if (res.success) {\n this.fileList = fileList;\n this.$message.success('附件上传成功');\n } else {\n this.$message.error('附件上传失败');\n }\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this2 = 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.id || file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this2.$message.success('附件删除成功');\n\n var arr = _this2.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this2.fileList = arr;\n } else {\n _this2.$message.error('附件删除失败');\n }\n });\n });\n },\n handlePreview: function handlePreview(file) {\n var id = file.id ? file.id : file.response.fileId;\n sat.getDownloadById(id, function (res) {});\n },\n // 审核通过 驳回\n handleVerify: function handleVerify(status) {\n var _this3 = this;\n\n var message = status === 4 ? '确认驳回吗?' : '确认通过吗?';\n\n if (status === 4) {\n this.noLoading = true;\n } else {\n this.btnLoading = true;\n }\n\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: _this3.id,\n status: status\n };\n sat.auditById(data, function (res) {\n if (res.state) {\n _this3.noLoading = false;\n _this3.btnLoading = false;\n\n _this3.$message.success(status === 4 ? '驳回成功' : '通过成功');\n } else {\n _this3.noLoading = false;\n _this3.btnLoading = false;\n\n _this3.$message.error(status === 4 ? '驳回失败' : '通过失败');\n }\n\n _this3.dialog.visible = false;\n\n _this3.getSurveyList2(_this3.params);\n });\n }).catch(function () {\n _this3.noLoading = false;\n _this3.btnLoading = false;\n });\n },\n // 单击单元格\n cellClick: function cellClick(row) {\n console.log(row);\n },\n handleDetils: function handleDetils(item) {\n this.$router.push({\n path: '/platLayout/SatisfactionApplication',\n query: {\n id: item.id,\n type: 'detail',\n key: 'AuditConfirmation'\n }\n });\n },\n // 删除区县打分\n tableDel: function tableDel(item) {\n console.log(item);\n var arr = this.districtData.filter(function (district) {\n return district.id !== item.id;\n });\n this.districtData = arr;\n },\n handleAudits: function handleAudits(item) {\n this.$router.push({\n path: '/platLayout/SatisfactionApplication',\n query: {\n id: item.id,\n type: 'audits',\n key: 'AuditConfirmation'\n }\n }); // this.getFileListById(item.id)\n // this.disabled = true\n // let {\n // estigationName,\n // scoringDate,\n // classified, //涉密\n // investigationConclusion,\n // significant, //重大事项\n // bizReformSatisfactionDistricts,\n // id,\n // scoringYear,\n // scoringQuarter,\n // } = item\n // let dialogForm = {\n // estigationName,\n // scoringDate,\n // classified, //涉密\n // investigationConclusion,\n // significant, //重大事项\n // scoringYear: scoringYear + '',\n // scoringQuarter,\n // }\n // console.log(bizReformSatisfactionDistricts)\n // this.districtData = bizReformSatisfactionDistricts\n // this.id = id\n // this.dialogForm = dialogForm\n // this.dialog.visible = true\n },\n // 查询所有区县\n getDistrictList: function getDistrictList() {\n var _this4 = this;\n\n sat.getDistrictList(function (res) {\n console.log(res);\n _this4.districtData = res.value;\n });\n },\n // 分页查询所有数据\n getSurveyList2: function getSurveyList2(data) {\n var _this5 = this;\n\n this.tableLoading = true;\n sat.queryByPage(data, 'true', function (res) {\n _this5.tableData = res.rows;\n _this5.tableLoading = false;\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.getDistrictList();\n this.dialog.visible = true;\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n // this.tableLoading = true\n var _this$searchForm = this.searchForm,\n estigationName = _this$searchForm.estigationName,\n scoringDate = _this$searchForm.scoringDate,\n status = _this$searchForm.status;\n var time = scoringDate ? moment(scoringDate).format('YYYY-MM-DD') : scoringDate;\n var data = [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'estigationName',\n // 字段名\n relation: 'AND',\n value: estigationName\n }, {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'scoringDate',\n // 字段名\n relation: 'AND',\n value: scoringDate\n }, {\n group: 'main',\n operation: this.operation,\n parentGroup: '',\n property: 'status',\n // 字段名\n relation: 'AND',\n value: status\n }];\n this.params.querys = data;\n this.getSurveyList2(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n var _this6 = this;\n\n this.dialog.visible = false;\n this.dialogForm = {\n significant: 1,\n estigationName: '',\n scoringDate: '',\n satisfaction: '',\n investigationConclusion: '',\n // status: 0, //0:草稿,1:已录入待审核,2:改革办审核驳回,3:改革办审核通过\n classified: 0 //0:不涉密,1:涉密\n\n };\n this.$refs['form'].resetFields();\n setTimeout(function () {\n _this6.btnIsShow = true;\n }, 500);\n this.fileList = [];\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 console.log(this.deleteIds);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n }\n }\n};",null]}