招标文件审批记录

This commit is contained in:
吴红兵
2026-03-08 20:39:03 +08:00
parent a8b3b9fb20
commit 7200f8fe5f

View File

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