From 7200f8fe5fc0aa8e7e25c47aa5d44fa21d547512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Sun, 8 Mar 2026 20:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=9B=E6=A0=87=E6=96=87=E4=BB=B6=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasingrequisition/DocAuditViewDialog.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/purchase/purchasingrequisition/DocAuditViewDialog.vue b/src/views/purchase/purchasingrequisition/DocAuditViewDialog.vue index ea14707..83c27b2 100644 --- a/src/views/purchase/purchasingrequisition/DocAuditViewDialog.vue +++ b/src/views/purchase/purchasingrequisition/DocAuditViewDialog.vue @@ -93,6 +93,7 @@ import { ref, computed } from 'vue'; import { DocumentChecked } from '@element-plus/icons-vue'; import { useMessage } from '/@/hooks/message'; import { getObj, getDocList, previewFileById, downloadFileById } from '/@/api/purchase/purchasingrequisition'; +import { getFlowPurchaseDetail } from '/@/api/purchase/bidfile'; const FlowCommentTimeline = defineAsyncComponent(() => import('/@/views/jsonflow/comment/timeline.vue')); @@ -129,10 +130,14 @@ const open = async (id: string, row?: any) => { docList.value = []; applyData.value = row || {}; - if (!row || !row.fileFlowInstId) { + // 使用专门的招标文件审批详情接口获取数据,确保包含 agentName + if (!row || !row.fileFlowInstId || !row.agentName) { try { - const res = await getObj(id); - applyData.value = res?.data || {}; + const res = await getFlowPurchaseDetail(id); + if (res?.code === 0 && res?.data) { + // 合并数据,确保 agentName 等字段正确返回 + applyData.value = { ...applyData.value, ...res.data }; + } } catch (e) { console.error('获取采购申请详情失败', e); useMessage().error('获取采购申请详情失败');