From 9cb11948191cfd016e4d6fddce07bed8dd7f9b2a Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Fri, 7 Nov 2025 17:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/filesTransfer/apply/index.vue | 1 + src/views/filesTransfer/apply/prop/applyForm.vue | 10 +++++----- src/views/filesTransfer/audit/index.vue | 3 ++- src/views/filesTransfer/detail-data.vue | 14 +++++++------- .../record/components/data-detail.vue | 15 ++++++++------- src/views/filesTransfer/record/index.vue | 1 + 6 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/views/filesTransfer/apply/index.vue b/src/views/filesTransfer/apply/index.vue index 8ccbf32..f69aaf5 100644 --- a/src/views/filesTransfer/apply/index.vue +++ b/src/views/filesTransfer/apply/index.vue @@ -104,6 +104,7 @@ export default { name: 'DetailData', query: { id: encryptWithSM4(row.id ?? '0'), + proId: encryptWithSM4(row.proId ?? '0'), viewStatus: encryptWithSM4('detail'), auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)), } diff --git a/src/views/filesTransfer/apply/prop/applyForm.vue b/src/views/filesTransfer/apply/prop/applyForm.vue index e2a4cbe..2acfb24 100644 --- a/src/views/filesTransfer/apply/prop/applyForm.vue +++ b/src/views/filesTransfer/apply/prop/applyForm.vue @@ -132,7 +132,7 @@ export default { }); await getProSelectApi().then(res => { this.proList = res.data; - + }); @@ -143,7 +143,7 @@ export default { proId: this.rowData.proId || undefined, deptId: this.rowData.deptId || undefined, }; - const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id }); + const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id,proId:this.rowData.proId }); if (Array.isArray(res.data) && res.data.length > 0) { res.data.map(item => { const newFile = { @@ -276,7 +276,7 @@ export default { }else{ return errorMessage; } - + }, // 树数据过滤 - 支持无限层级转换 convertToVueTree(data, level = 1) { @@ -331,7 +331,7 @@ export default { } }) } - + // 触发表单验证 this.$nextTick(() => { this.$refs.ruleForm.validateField('checkTreeData'); @@ -382,4 +382,4 @@ export default { display: flex; justify-content: space-between; } - \ No newline at end of file + diff --git a/src/views/filesTransfer/audit/index.vue b/src/views/filesTransfer/audit/index.vue index 04d1f48..6cbae49 100644 --- a/src/views/filesTransfer/audit/index.vue +++ b/src/views/filesTransfer/audit/index.vue @@ -65,6 +65,7 @@ export default { name: 'DetailData2', query: { id: encryptWithSM4(row.id ?? '0'), + proId: encryptWithSM4(row.proId ?? '0'), viewStatus: encryptWithSM4('audit'), auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)), } @@ -74,7 +75,7 @@ export default { handleQuery() { this.$refs.auditTableRef.getTableList() }, - + // 获取状态 getStatusText(status) { switch (status) { diff --git a/src/views/filesTransfer/detail-data.vue b/src/views/filesTransfer/detail-data.vue index 75b0d62..17634c7 100644 --- a/src/views/filesTransfer/detail-data.vue +++ b/src/views/filesTransfer/detail-data.vue @@ -123,6 +123,7 @@ export default { data() { return { id: decryptWithSM4(this.$route.query.id), + proId: decryptWithSM4(this.$route.query.proId), viewStatus: decryptWithSM4(this.$route.query.viewStatus), status: decryptWithSM4(this.$route.query.auditStatus), // approving, approved, rejected projectName: '', @@ -180,13 +181,13 @@ export default { // 预览文件 viewFile(row) { console.error(row); - + this.title = "预览"; this.row = row; this.isViewflag = true; }, closeDialog() { - this.isViewflag = false; + this.isViewflag = false; }, showColose() { this.isflag = false; @@ -202,10 +203,9 @@ export default { }, async initData() { this.fileList = []; - - const res = this.viewStatus === 'audit' ? await getTransferAudieFilesByApplyIdApi({ id: this.id }) : await getTransferApplyFilesByApplyIdApi({ id: this.id }); + const res = this.viewStatus === 'audit' ? await getTransferAudieFilesByApplyIdApi({ id: this.id,proId: this.proId }) : await getTransferApplyFilesByApplyIdApi({ id: this.id, proId: this.proId }); - const res2 = this.viewStatus === 'audit' ? await getTransferAuditApi({ id: this.id }) : await getTransferApplyApi({ id: this.id }); + const res2 = this.viewStatus === 'audit' ? await getTransferAuditApi({ id: this.id,proId: this.proId }) : await getTransferApplyApi({ id: this.id, proId: this.proId }); this.projectName = res2?.data?.proName || '/'; this.receivingOrg = res2?.data?.deptName || '/'; // 审批信息 @@ -291,7 +291,7 @@ export default { }else{ return errorMessage; } - + } } } @@ -523,4 +523,4 @@ export default { .file-name-link:hover { text-decoration: underline; } - \ No newline at end of file + diff --git a/src/views/filesTransfer/record/components/data-detail.vue b/src/views/filesTransfer/record/components/data-detail.vue index 087b203..8ce962f 100644 --- a/src/views/filesTransfer/record/components/data-detail.vue +++ b/src/views/filesTransfer/record/components/data-detail.vue @@ -36,7 +36,7 @@ {{ scope.row.singleProName || '--' }} - +