From ec690ecab5fd0b7f297032bf55fa48c4edeb2efd 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 15:18:12 +0800 Subject: [PATCH] fix --- src/api/purchase/bidfile.ts | 144 ++++ .../purchasingrequisition/bidfile-audit.vue | 744 ++++++++++++++++++ 2 files changed, 888 insertions(+) create mode 100644 src/api/purchase/bidfile.ts create mode 100644 src/views/purchase/purchasingrequisition/bidfile-audit.vue diff --git a/src/api/purchase/bidfile.ts b/src/api/purchase/bidfile.ts new file mode 100644 index 0000000..c0a043c --- /dev/null +++ b/src/api/purchase/bidfile.ts @@ -0,0 +1,144 @@ +import request from '/@/utils/request'; + +export function startBidFileFlow(purchaseId: string) { + return request({ + url: '/purchase/purchasingbidfile/startFlow', + method: 'post', + params: { purchaseId }, + }); +} + +export function getBidFileTodoList(pageNum: number, pageSize: number) { + return request({ + url: '/purchase/purchasingbidfile/todoList', + method: 'get', + params: { pageNum, pageSize }, + }); +} + +export function getBidFileTaskDetail(runJobId: string) { + return request({ + url: '/purchase/purchasingbidfile/taskDetail', + method: 'get', + params: { runJobId }, + }); +} + +export function agentUploadBidFile(data: { + purchaseId: string; + fileId: string; + fileName: string; + fileUrl: string; + comment?: string; + runJobId: string; +}) { + return request({ + url: '/purchase/purchasingbidfile/agentUpload', + method: 'post', + params: data, + }); +} + +export function assetUploadBidFile(data: { + purchaseId: string; + fileId: string; + fileName: string; + fileUrl: string; + comment?: string; + runJobId: string; +}) { + return request({ + url: '/purchase/purchasingbidfile/assetUpload', + method: 'post', + params: data, + }); +} + +export function uploadBidFileNewVersion(data: { + purchaseId: string; + fileId: string; + fileName: string; + fileUrl: string; + comment?: string; + runJobId: string; +}) { + return request({ + url: '/purchase/purchasingbidfile/uploadNewVersion', + method: 'post', + params: data, + }); +} + +export function submitBidFileTask(data: { + runJobId: string; + to?: number; + comment?: string; +}) { + return request({ + url: '/purchase/purchasingbidfile/submit', + method: 'post', + params: data, + }); +} + +export function confirmBidFileFinalize(runJobId: string) { + return request({ + url: '/purchase/purchasingbidfile/confirmFinalize', + method: 'post', + params: { runJobId }, + }); +} + +export function getBidFileVersionHistory(purchaseId: string) { + return request({ + url: '/purchase/purchasingbidfile/versionHistory', + method: 'get', + params: { purchaseId }, + }); +} + +export function getBidFileCurrentVersion(purchaseId: string) { + return request({ + url: '/purchase/purchasingbidfile/currentVersion', + method: 'get', + params: { purchaseId }, + }); +} + +export function getAgentPurchaseDetail(purchaseId: string) { + return request({ + url: '/purchase/purchasingbidfile/agentPurchaseDetail', + method: 'get', + params: { purchaseId }, + }); +} + +export function getFlowPurchaseDetail(purchaseId: string) { + return request({ + url: '/purchase/purchasingbidfile/flowPurchaseDetail', + method: 'get', + params: { purchaseId }, + }); +} + +export function tempStoreBidFile(data: { + purchaseId: string; + fileId?: string; + fileName?: string; + fileUrl?: string; + comment?: string; +}) { + return request({ + url: '/purchase/purchasingbidfile/tempStore', + method: 'post', + data, + }); +} + +export function submitBidFile(purchaseId: string) { + return request({ + url: '/purchase/purchasingbidfile/submitFile', + method: 'post', + params: { purchaseId }, + }); +} \ No newline at end of file diff --git a/src/views/purchase/purchasingrequisition/bidfile-audit.vue b/src/views/purchase/purchasingrequisition/bidfile-audit.vue new file mode 100644 index 0000000..1171604 --- /dev/null +++ b/src/views/purchase/purchasingrequisition/bidfile-audit.vue @@ -0,0 +1,744 @@ + + + + + + + + + 采购申请信息 + + 运行中 + 已完成 + 已作废 + + + + + {{ applyData.purchaseNo || '-' }} + {{ applyData.projectName || '-' }} + {{ applyData.agentName || '-' }} + + + + {{ applyData.purchaseNo || '-' }} + {{ applyData.projectName || '-' }} + {{ applyData.budget ? Number(applyData.budget).toLocaleString() + ' 元' : '-' }} + {{ purchaseTypeLabel || '-' }} + {{ applyData.agentName || '-' }} + {{ applyData.createName || applyData.createBy || '-' }} + {{ applyData.deptName || '-' }} + + + + + + + + + + 需求文件 + + + + + + + + + + 下载 + + + + + + + + + + + + + 招标文件 + + {{ currentVersion.version }} + + + + + + + + + + {{ currentVersion.version }} + + + {{ currentVersion.uploadUserName || '-' }} + {{ getRoleLabel(currentVersion.uploadRoleCode) }} + + + + + {{ currentVersion.fileName }} + + + + {{ currentVersion.comment || '无' }} + + + {{ currentVersion.createTime || '-' }} + + + + 下载文件 + + + + + + + + + + + + {{ row.version }} + + + + + + + {{ getRoleLabel(row.uploadRoleCode) }} + + + + + {{ row.comment || '-' }} + + + + + + 下载 + + + + + + + + + + + + + + + 上传招标文件 + + + + + + + +选择文件 + + 仅支持 doc、docx 格式,单文件不超过 50MB,上传后自动保存 + + + + + + + + + + + + + + + + + \ No newline at end of file