{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\dialog\\FileDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\dialog\\FileDetails.vue","mtime":1682243281796},{"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\r\nimport FileList from '@/components/uploadFile/FileList.vue'\r\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport meet from '@/api/meeting'\r\nexport default {\r\n name: 'BrandDisplayDetails',\r\n components: {\r\n FileList,\r\n RejectInfoDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n btnShow: false,\r\n DetailsVisible: false,\r\n reqLoading: false,\r\n markLoading: false,\r\n dialogVisible: false,\r\n fileList: [],\r\n fileInfo: {},\r\n activeCollapse: ['1', '2', '3'],\r\n histroyData: null,\r\n approvalComments: '',\r\n unitNames: [],\r\n newData: {},\r\n bhData: {}\r\n }\r\n },\r\n methods: {\r\n //\r\n open(item) {\r\n this.bhData = item\r\n this.reqLoading = true\r\n this.DetailsVisible = true\r\n let arr = item.unitId\r\n ? [\r\n this.getEntryById(item.id),\r\n this.getHistroyDetail({id: item.id, unitId: item.unitId})\r\n ]\r\n : item.id\r\n ? [this.getEntryById(item.id)]\r\n : []\r\n Promise.all(arr).then(() => {\r\n this.reqLoading = false\r\n })\r\n },\r\n // 根据id查询录入详情\r\n getEntryById(id) {\r\n return new Promise(resolve => {\r\n meet.getEntryById(id, res => {\r\n console.log(res)\r\n this.fileInfo = res.value\r\n let {invs} = res.value\r\n this.unitNames =\r\n invs && invs.length ? invs.map(item => item.unitName) : []\r\n resolve()\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.markLoading = true\r\n let data = JSON.parse(JSON.stringify(this.bhData))\r\n data.status = this.$route.name == 'AdvanceAudits' ? 5 : 3\r\n meet.updateStatus(data, res => {\r\n if (res.state) {\r\n this.$message.success('审核通过成功')\r\n this.$emit('flushed')\r\n this.handleClose()\r\n } else {\r\n this.$message.success('审核通过失败')\r\n }\r\n this.markLoading = false\r\n })\r\n })\r\n },\r\n openInputVisible() {\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 })\r\n },\r\n sendRejectInfo(approvalComments) {\r\n this.markLoading = true\r\n let data = JSON.parse(JSON.stringify(this.bhData))\r\n data.status = this.$route.name == 'AdvanceAudits' ? 4 : 2\r\n data.approvalComments = approvalComments\r\n meet.updateStatus(data, res => {\r\n if (res.state) {\r\n this.$message.success('审核驳回成功')\r\n this.$emit('flushed')\r\n this.handleClose()\r\n } else {\r\n this.$message.success('审核驳回失败')\r\n }\r\n this.markLoading = false\r\n })\r\n },\r\n getHistroyDetail(data) {\r\n return new Promise(resolve => {\r\n meet.getHistroyDetail(data, res => {\r\n // if (res.value[0].status == 3) {\r\n // this.histroyData = res.value[0]\r\n // resolve()\r\n // } else {\r\n this.newData = res.value[0]\r\n this.newData.approvalComments =\r\n res.value[0] && res.value[0].approvalComments\r\n ? res.value[0].approvalComments.split('$_$')\r\n : []\r\n if (res.value[1]) {\r\n this.histroyData = res.value[1]\r\n this.histroyData.approvalComments =\r\n res.value[1] && res.value[1].approvalComments\r\n ? res.value[1].approvalComments.split('$_$')\r\n : []\r\n }\r\n resolve()\r\n // }\r\n })\r\n })\r\n },\r\n // 文件相关\r\n openUploade() {\r\n this.$refs.uploadFile.open('ProjectBrand')\r\n },\r\n // ------------\r\n handleClose() {\r\n this.DetailsVisible = false\r\n this.activeCollapse = ['1', '3']\r\n this.histroyData = null\r\n }\r\n }\r\n}\r\n",null]}