{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\DocumentEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\DocumentEntry.vue","mtime":1716368601157},{"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\r\nimport pagination from '@/components/pagination'\r\nimport OrgSelectDialog from '@/components/dialog/OrgSelectDialog.vue'\r\nimport DocumentEntryForm from './dialog/DocumentEntryForm.vue'\r\nimport FileDetails from './dialog/FileDetails.vue'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport meet from '@/api/meeting'\r\nimport req from '@/request.js'\r\nimport utils from '@/utils.js'\r\nconst portal = window.context.portal\r\nexport default {\r\n name: 'DemandEntry',\r\n components: {\r\n pagination,\r\n OrgSelectDialog,\r\n DocumentEntryForm,\r\n FileDetails,\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n markLoading: false,\r\n treeItem: null,\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 },\r\n pageResult: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\r\n searchForm: {}, // 顶部搜索对象\r\n deleteIds: '', // 是否选中列表解锁删除按钮\r\n activeCollapse1: ['1', '2'],\r\n fileList: [], // 文件上传\r\n dialog: {\r\n title: '添加',\r\n visible: false,\r\n },\r\n unitIds: [],\r\n dialogForm: {},\r\n unitArray: [],\r\n disabled: false, // 是否禁止输入输入\r\n edit: false, // 是否是修改功能\r\n rules: {\r\n fileName: {\r\n required: true,\r\n message: '请输入文件名称',\r\n trigger: 'blur',\r\n },\r\n reviewTime: {\r\n required: true,\r\n message: '请选择审议时间',\r\n trigger: 'blur',\r\n },\r\n meetingName: {\r\n required: true,\r\n message: '请输入会议名称',\r\n trigger: 'blur',\r\n },\r\n feedbackTimeLimit: {\r\n required: true,\r\n message: '请选择反馈时限',\r\n trigger: 'blur',\r\n },\r\n },\r\n }\r\n },\r\n\r\n created() {\r\n this.loadData(this.params)\r\n console.log(this.unitTreeData)\r\n },\r\n methods: {\r\n // 撤回\r\n revokeReview(item) {\r\n this.$confirm('确认执行撤销操作吗?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'error',\r\n }).then(() => {\r\n this.markLoading = true\r\n let {id} = item\r\n req.post(\r\n portal +\r\n '/fill/bizMeetingDocumentsPush/v1/revSendStatus?id=' +\r\n id\r\n ).then((res) => {\r\n if (res.data.state) {\r\n let data = {\r\n id,\r\n sendStatus: 0,\r\n }\r\n meet.distributeById(data, (res) => {\r\n console.log(res)\r\n if (res.state) {\r\n this.$message.success('撤销操作成功')\r\n this.loadData(this.params)\r\n }\r\n })\r\n }\r\n this.markLoading = false\r\n })\r\n })\r\n },\r\n handleLookDetiles(row) {\r\n this.$refs.FileDetails.open(row)\r\n },\r\n\r\n // 责任单位选择\r\n handleSelectOrg() {\r\n this.$refs.orgSeleect.open()\r\n },\r\n handleOrgSelect(row) {\r\n this.dialogForm = {\r\n ...this.dialogForm,\r\n unitId: row[0].id,\r\n unitName: row[0].name,\r\n unitCode: row[0].code,\r\n unitGrade: row[0].grade,\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.post(\r\n portal + '/bizMeetingDocumentsConsidered/v1/queryPush',\r\n params\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 flushed() {\r\n this.loadData(this.params)\r\n },\r\n //添加\r\n handleAdd() {\r\n this.$refs.DocumentEntryForm.isUpdate = false\r\n this.$refs.DocumentEntryForm.openForm()\r\n },\r\n // 详情\r\n\r\n //修改\r\n handleDbClick(row) {\r\n this.$refs.DocumentEntryForm.isUpdate = true\r\n this.$refs.DocumentEntryForm.openForm(row)\r\n },\r\n // 删除\r\n handleDelete() {\r\n this.$confirm(\r\n this.$t('common.sureDelete'),\r\n this.$t('common.tips'),\r\n {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'warning',\r\n }\r\n ).then(() => {\r\n req.remove(\r\n portal +\r\n '/bizMeetingDocumentsConsidered/v1/?ids=' +\r\n this.deleteIds\r\n ).then((res) => {\r\n this.loadData(this.params)\r\n })\r\n })\r\n },\r\n // 分发\r\n handleAppear(item) {\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: 'warning',\r\n }).then(() => {\r\n this.markLoading = true\r\n let data = {\r\n id: item.id,\r\n sendStatus: 1,\r\n }\r\n meet.distributeById(data, (res) => {\r\n if (res.state) {\r\n item.sendStatus = 1\r\n this.$message.success('分发成功')\r\n this.markLoading = false\r\n } else {\r\n this.$message.success('分发失败')\r\n this.markLoading = false\r\n }\r\n })\r\n })\r\n },\r\n\r\n // 顶部搜索\r\n handleSearch() {\r\n let obj = this.searchForm\r\n let querys = []\r\n for (let i in obj) {\r\n if (obj[i]) {\r\n querys.push({\r\n group: 'main',\r\n operation:\r\n i == 'FILE_NAME_' || i == 'MEETING_NAME_'\r\n ? 'LIKE'\r\n : 'EQUAL',\r\n parentGroup: '',\r\n property: i,\r\n relation: 'AND',\r\n value: obj[i],\r\n })\r\n }\r\n }\r\n this.params.querys = querys\r\n this.loadData(this.params)\r\n },\r\n // 弹层关闭\r\n handleDialogClose() {\r\n this.dialog.visible = false\r\n },\r\n //表格选中\r\n handleSelectionChange(currentData) {\r\n if (currentData.length === 0) return (this.deleteIds = '')\r\n let ids = []\r\n\r\n currentData.forEach((item) => {\r\n ids.push(item.id)\r\n })\r\n // this.$message.error(`【${item.demandTopic}】已上报待审核不能删除!`)\r\n this.deleteIds = ids.join(',')\r\n },\r\n handleCurrentChange(page) {\r\n this.params.pageBean = {...this.params.pageBean, page}\r\n this.handleSearch()\r\n },\r\n handleSizeChange(pageSize) {\r\n this.params.pageBean = {...this.params.pageBean, pageSize}\r\n this.handleSearch()\r\n },\r\n },\r\n}\r\n",null]}