招标文件审批记录
This commit is contained in:
@@ -93,6 +93,7 @@ import { ref, computed } from 'vue';
|
|||||||
import { DocumentChecked } from '@element-plus/icons-vue';
|
import { DocumentChecked } from '@element-plus/icons-vue';
|
||||||
import { useMessage } from '/@/hooks/message';
|
import { useMessage } from '/@/hooks/message';
|
||||||
import { getObj, getDocList, previewFileById, downloadFileById } from '/@/api/purchase/purchasingrequisition';
|
import { getObj, getDocList, previewFileById, downloadFileById } from '/@/api/purchase/purchasingrequisition';
|
||||||
|
import { getFlowPurchaseDetail } from '/@/api/purchase/bidfile';
|
||||||
|
|
||||||
const FlowCommentTimeline = defineAsyncComponent(() => import('/@/views/jsonflow/comment/timeline.vue'));
|
const FlowCommentTimeline = defineAsyncComponent(() => import('/@/views/jsonflow/comment/timeline.vue'));
|
||||||
|
|
||||||
@@ -129,10 +130,14 @@ const open = async (id: string, row?: any) => {
|
|||||||
docList.value = [];
|
docList.value = [];
|
||||||
applyData.value = row || {};
|
applyData.value = row || {};
|
||||||
|
|
||||||
if (!row || !row.fileFlowInstId) {
|
// 使用专门的招标文件审批详情接口获取数据,确保包含 agentName
|
||||||
|
if (!row || !row.fileFlowInstId || !row.agentName) {
|
||||||
try {
|
try {
|
||||||
const res = await getObj(id);
|
const res = await getFlowPurchaseDetail(id);
|
||||||
applyData.value = res?.data || {};
|
if (res?.code === 0 && res?.data) {
|
||||||
|
// 合并数据,确保 agentName 等字段正确返回
|
||||||
|
applyData.value = { ...applyData.value, ...res.data };
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('获取采购申请详情失败', e);
|
console.error('获取采购申请详情失败', e);
|
||||||
useMessage().error('获取采购申请详情失败');
|
useMessage().error('获取采购申请详情失败');
|
||||||
|
|||||||
Reference in New Issue
Block a user