{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\reformDemandAnalysis\\RequirementsReview.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\reformDemandAnalysis\\RequirementsReview.vue","mtime":1682514745564},{"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//\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 req from '@/request.js'\r\nimport utils from '@/utils.js'\r\nconst portal = window.context.portal\r\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue'\r\nexport default {\r\n name: 'RequirementsReview',\r\n components: {\r\n pagination,\r\n RejectInfoDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\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: 20,\r\n total: 0\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n property: 'status',\r\n relation: 'AND',\r\n value: 1\r\n }\r\n ]\r\n },\r\n pageResult: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0\r\n },\r\n searchForm: {}, // 顶部搜索对象\r\n activeCollapse1: ['1', '2'],\r\n fileList: [], // 文件上传\r\n dialog: {\r\n title: '审核',\r\n visible: false\r\n },\r\n dialogForm: {},\r\n disabled: false, // 是否禁止输入输入\r\n isShowBtn: false, // 是否显示底部按钮\r\n rules: {}\r\n }\r\n },\r\n\r\n created() {\r\n this.loadData(this.params)\r\n },\r\n methods: {\r\n // 撤回\r\n handleAppear(data) {\r\n this.$confirm(`确认撤回吗?`, this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'error'\r\n }).then(() => {\r\n data.approvalResults = 2\r\n data.status = 1\r\n this.tableLoading = true\r\n req\r\n .post(\r\n portal + '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus',\r\n data\r\n )\r\n .then(res => {\r\n if (res.data.state) {\r\n this.$message.success(`撤回成功`)\r\n } else {\r\n this.$message.error(`撤回失败`)\r\n }\r\n this.loadData(this.params)\r\n })\r\n })\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n //获取数据\r\n loadData(params) {\r\n this.tableLoading = true\r\n req\r\n .post(\r\n portal + '/bizReformDemandAnalysisLibrary/v1/getList?isAffirm=false',\r\n params\r\n )\r\n .then(res => {\r\n this.tableLoading = false\r\n const data = (res && res.data) || {}\r\n this.tableData = data.rows || []\r\n this.pageResult = {\r\n page: data.page,\r\n pageSize: data.pageSize,\r\n total: data.total\r\n }\r\n })\r\n },\r\n // 审核通过\r\n handleVerify() {\r\n this.$confirm('确认通过吗?', this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'success'\r\n }).then(() => {\r\n this.dialogForm.status = 3\r\n this.loading = true\r\n req\r\n .post(\r\n portal + '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus',\r\n this.dialogForm\r\n )\r\n .then(res => {\r\n if (res.data.state) {\r\n this.$message.success('通过成功')\r\n } else {\r\n this.$message.error('通过失败')\r\n }\r\n this.loading = false\r\n this.dialog.visible = false\r\n this.loadData(this.params)\r\n })\r\n })\r\n },\r\n // 审核驳回\r\n handleReject() {\r\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'error'\r\n }).then(() => {\r\n this.$refs.rejectInfoDialog.open(\r\n '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus',\r\n 2\r\n )\r\n // this.dialogForm.status = 2\r\n // this.loading = true\r\n // req\r\n // .post(\r\n // portal + '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus',\r\n // this.dialogForm\r\n // )\r\n // .then(res => {\r\n // if (res.data.state) {\r\n // this.$message.success('驳回成功')\r\n // } else {\r\n // this.$message.error('驳回失败')\r\n // }\r\n // this.loading = false\r\n // this.dialog.visible = false\r\n // this.loadData(this.params)\r\n // })\r\n })\r\n },\r\n //修改\r\n handleDbClick(data) {\r\n this.isShowBtn = true\r\n this.disabled = true\r\n this.dialogForm = data\r\n this.dialog.title = '审核'\r\n this.dialog.visible = true\r\n },\r\n // 详情\r\n handleDetils(data) {\r\n this.isShowBtn = false\r\n this.disabled = true\r\n this.dialogForm = data\r\n this.dialog.title = '详情'\r\n this.dialog.visible = true\r\n },\r\n // 顶部搜索\r\n handleSearch() {\r\n let obj = this.searchForm\r\n if (!obj.status) {\r\n obj.status = 1\r\n this.operation = 'EQUAL'\r\n }\r\n let querys = []\r\n for (let i in obj) {\r\n if (obj[i]) {\r\n if (i == 'status') {\r\n querys.push({\r\n group: 'main',\r\n operation: this.operation,\r\n property: i,\r\n relation: 'AND',\r\n value: obj[i]\r\n })\r\n } else {\r\n querys.push({\r\n group: 'main',\r\n operation: i == 'demandTopic' ? 'LIKE' : 'EQUAL',\r\n property: i,\r\n relation: 'AND',\r\n value: obj[i]\r\n })\r\n }\r\n }\r\n }\r\n this.params.querys = querys\r\n this.loadData(this.params)\r\n },\r\n // 页面中swatch回调事件\r\n handleSwitch(bol) {\r\n this.switchStatus = bol\r\n if (bol) {\r\n // 已办\r\n this.operation = 'IN'\r\n this.searchForm.status = [2, 3, 4, 5]\r\n } else {\r\n // 代办\r\n this.operation = 'EQUAL'\r\n this.searchForm.status = 1\r\n }\r\n this.handleSearch()\r\n },\r\n // 弹层关闭\r\n handleDialogClose() {\r\n this.dialog.visible = false\r\n },\r\n handleSelectionChange() {},\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]}