This commit is contained in:
吴红兵
2026-03-08 17:37:57 +08:00
parent 877d9f0848
commit 35d179b1b9
2 changed files with 293 additions and 0 deletions

View File

@@ -270,6 +270,37 @@
</template>
</el-table-column>
<!-- 招标审批列 -->
<el-table-column prop="fileFlowStatus" label="招标审批" width="100" align="center">
<template #header>
<el-icon>
<DocumentChecked />
</el-icon>
<span style="margin-left: 4px">招标审批</span>
</template>
<template #default="scope">
<template v-if="scope.row.fileFlowInstId">
<el-tooltip v-if="scope.row.fileFlowInstId" content="点击查看审批流程及招标文件" placement="top">
<el-tag v-if="scope.row.fileFlowStatus === '0'" type="primary" class="status-tag-clickable" @click="handleShowDocAudit(scope.row)"
>运行中
</el-tag>
<el-tag v-else-if="scope.row.fileFlowStatus === '1'" type="success" class="status-tag-clickable" @click="handleShowDocAudit(scope.row)"
>完成
</el-tag>
<el-tag v-else-if="scope.row.fileFlowStatus === '2'" type="danger" class="status-tag-clickable" @click="handleShowDocAudit(scope.row)"
>作废
</el-tag>
<el-tag v-else-if="scope.row.fileFlowStatus === '3'" type="info" class="status-tag-clickable" @click="handleShowDocAudit(scope.row)"
>终止
</el-tag>
<el-tag v-else type="warning" class="status-tag-clickable" @click="handleShowDocAudit(scope.row)">未知</el-tag>
</el-tooltip>
<el-tag v-else type="info">未发起</el-tag>
</template>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="150">
<template #default="scope">
<div class="op-cell">
@@ -333,6 +364,9 @@
<!-- 补充材料查看弹窗 -->
<SupplementViewDialog ref="supplementViewDialogRef" @refresh="getDataList" />
<!-- 招标文件审批查看弹窗 -->
<DocAuditViewDialog ref="docAuditViewDialogRef" @refresh="getDataList" />
<!-- 招标文件审核弹窗 -->
<!-- <DocAuditDialog ref="docAuditDialogRef" @refresh="getDataList" />-->
@@ -450,6 +484,7 @@ const UpdateFilesDialog = defineAsyncComponent(() => import('./UpdateFilesDialog
const ContractDialog = defineAsyncComponent(() => import('./contract/ContractDialog.vue'));
const SupplementFilesDialog = defineAsyncComponent(() => import('./SupplementFilesDialog.vue'));
const SupplementViewDialog = defineAsyncComponent(() => import('./SupplementViewDialog.vue'));
const DocAuditViewDialog = defineAsyncComponent(() => import('./DocAuditViewDialog.vue'));
// const DocAuditDialog = defineAsyncComponent(() => import('./docAudit/DocAuditDialog.vue'));
// 字典数据和品目树数据
@@ -483,6 +518,7 @@ const updateFilesDialogRef = ref();
const contractDialogRef = ref();
const supplementFilesDialogRef = ref();
const supplementViewDialogRef = ref();
const docAuditViewDialogRef = ref();
/** 采购代表弹窗 */
const representorDialogVisible = ref(false);
@@ -603,6 +639,16 @@ const handleShowFileFlowComment = (row: any) => {
showFlowComment.value = true;
};
/** 点击招标审批状态:打开招标文件审批查看弹窗 */
const handleShowDocAudit = (row: any) => {
const id = row?.id ?? row?.purchaseId;
if (!id) {
useMessage().warning('无法获取采购申请ID');
return;
}
docAuditViewDialogRef.value?.open(String(id), row);
};
const SUPPLEMENT_STATUS_MAP: Record<string, { icon: any; class: string; tooltip: string }> = {
'1': { icon: Select, class: 'supplement-done', tooltip: '补充材料已完成,点击查看' },
'0': { icon: CloseBold, class: 'supplement-running', tooltip: '补充材料审批中,点击查看' },