From dcece624108dac11792efdad54fb839405becd2f Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 23 Apr 2026 14:34:06 +0800 Subject: [PATCH] =?UTF-8?q?1.1.24=20=E6=96=B0=E5=A2=9E=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=B8=AD=20=E9=A1=B9=E7=9B=AE=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=90=88=E5=90=8C=E6=B7=BB=E5=8A=A0=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=90=88=E5=90=8C=E4=BF=A1=E6=81=AF=E3=80=81=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E7=BB=88=E7=89=88=E5=90=88=E5=90=8C=E9=99=84=E4=BB=B6=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa/erp/projectInfo/edit.vue | 45 +++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/src/views/oa/erp/projectInfo/edit.vue b/src/views/oa/erp/projectInfo/edit.vue index abe8eb5..ceff3d4 100644 --- a/src/views/oa/erp/projectInfo/edit.vue +++ b/src/views/oa/erp/projectInfo/edit.vue @@ -55,9 +55,15 @@ - + @@ -287,7 +293,7 @@ import { ProjectTypeVO } from '@/api/oa/erp/projectType/types'; import { getUserList } from '@/api/system/user'; import { CodeRuleEnum, FlowCodeEnum, ProjectCategoryEnum } from '@/enums/OAEnum'; import { getErpProjectContractsList } from '@/api/oa/erp/projectContracts'; -import { listContractInfo } from '@/api/oa/erp/contractInfo'; +import { getContractInfo, listContractInfo } from '@/api/oa/erp/contractInfo'; import { ContractInfoVO, ContractInfoQuery } from '@/api/oa/erp/contractInfo/types'; import { getInfo } from '@/api/login'; @@ -754,6 +760,39 @@ const handleDeleteContract = async (row: any) => { console.error('删除合同关联失败:', error); } }; + +/** 查看合同信息 */ +const handleViewContractInfo = (row: any) => { + if (!row?.contractId) { + proxy?.$modal.msgWarning('未获取到合同ID,无法查看合同信息'); + return; + } + proxy?.$tab.openPage('/oa/erp/contractInfo/edit', '合同信息', { + id: row.contractId, + type: 'view' + }); +}; + +/** 下载终版合同附件 */ +const handleDownloadFinalContract = async (row: any) => { + if (!row?.contractId) { + proxy?.$modal.msgWarning('未获取到合同ID,无法下载终版合同附件'); + return; + } + try { + const res = await getContractInfo(row.contractId); + const contractData = res?.data as any; + const signatureAppendix = contractData?.signatureAppendix; + if (!signatureAppendix) { + proxy?.$modal.msgWarning('该合同暂无终版合同附件'); + return; + } + proxy?.$download.oss(signatureAppendix); + } catch (error) { + console.error('下载终版合同附件失败:', error); + proxy?.$modal.msgError('下载终版合同附件失败'); + } +};