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}') }} - +