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('获取采购申请详情失败');