From 272f74da1338ebda04ae6ab6feda972c2f6e16ab Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 24 Mar 2026 16:13:00 +0800 Subject: [PATCH] =?UTF-8?q?1.1.2=20=E5=90=88=E5=90=8C=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=8D=E5=88=B6=E6=8C=89=E9=92=AE=EF=BC=88?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=90=88=E5=90=8C=E4=BF=A1=E6=81=AF=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=AE=A2=E6=88=B7=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/erp/contractInfo/index.ts | 11 +++ src/api/oa/erp/contractInfo/types.ts | 10 ++ src/views/oa/erp/contractInfo/index.vue | 120 +++++++++++++++++++++++- 3 files changed, 138 insertions(+), 3 deletions(-) diff --git a/src/api/oa/erp/contractInfo/index.ts b/src/api/oa/erp/contractInfo/index.ts index 7e7b6ed..81bcf5b 100644 --- a/src/api/oa/erp/contractInfo/index.ts +++ b/src/api/oa/erp/contractInfo/index.ts @@ -98,3 +98,14 @@ export const exportContractApprovalWord = (contractId: string | number) => { responseType: 'blob' }); }; + +/** + * 复制合同信息(新合同暂存;与后端 ErpContractInfoBo 一致:contractId 为被复制合同ID,contractCode、contractName 为新合同编号与名称) + */ +export const copyContractInfo = (data: ContractInfoForm): AxiosPromise => { + return request({ + url: '/oa/erp/contractInfo/copy', + method: 'post', + data + }); +}; diff --git a/src/api/oa/erp/contractInfo/types.ts b/src/api/oa/erp/contractInfo/types.ts index 1363aed..b2ee1c2 100644 --- a/src/api/oa/erp/contractInfo/types.ts +++ b/src/api/oa/erp/contractInfo/types.ts @@ -292,6 +292,11 @@ export interface ContractInfoForm extends BaseEntity { */ oneCustomerId?: string | number; + /** + * 甲方公司名称 + */ + oneCustomerName?: string; + /** * 甲方授权代表 */ @@ -518,6 +523,11 @@ export interface ContractInfoQuery extends PageQuery { */ oneCustomerId?: string | number; + /** + * 甲方公司名称 + */ + oneCustomerName?: string; + /** * 甲方授权代表 */ diff --git a/src/views/oa/erp/contractInfo/index.vue b/src/views/oa/erp/contractInfo/index.vue index ea53fcf..02dc0cc 100644 --- a/src/views/oa/erp/contractInfo/index.vue +++ b/src/views/oa/erp/contractInfo/index.vue @@ -18,6 +18,14 @@ + + + @@ -75,6 +83,11 @@ >维护合同信息 + + 复制合同 + + 删除 @@ -188,7 +201,7 @@ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }} - +