From 43d27c9dc3d366fd79d7a5e6f6ef5c2f5cab4921 Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 17 Oct 2025 08:57:37 +0800 Subject: [PATCH] =?UTF-8?q?1.0.11=20=E5=90=88=E5=90=8C=E7=89=A9=E6=96=99?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/erp/contractInfo/types.ts | 133 ++++++++++++++++------- src/api/oa/erp/contractMaterial/types.ts | 5 + src/views/oa/erp/contractInfo/edit.vue | 133 +++++++++++++++++------ src/views/oa/erp/contractInfo/index.vue | 26 ++--- 4 files changed, 209 insertions(+), 88 deletions(-) diff --git a/src/api/oa/erp/contractInfo/types.ts b/src/api/oa/erp/contractInfo/types.ts index 6715ad4..554064b 100644 --- a/src/api/oa/erp/contractInfo/types.ts +++ b/src/api/oa/erp/contractInfo/types.ts @@ -52,32 +52,32 @@ export interface ContractInfoVO { /** * 甲方公司 */ - aCustomerId: string | number; + oneCustomerId: string | number; /** * 甲方授权代表 */ - aRepresent: string; + oneRepresent: string; /** * 甲方签字日期 */ - aDate: string; + oneDate: string; /** * 乙方公司 */ - bCustomerId: string | number; + twoCustomerId: string | number; /** * 乙方授权代表 */ - bRepresent: string; + twoRepresent: string; /** * 乙方签字日期 */ - bDate: string; + twoDate: string; /** * 合同状态(1暂存 2审批中 3可用) @@ -109,6 +109,31 @@ export interface ContractInfoVO { */ signatureAppendix: number; + /** + * 内部合同号 + */ + internalContractCode: string; + + /** + * 外部合同号 + */ + externalContractCode: string; + + /** + * 订单号 + */ + orderContractCode: string; + + /** + * 项目号 + */ + projectContractCode: string; + + /** + * 质保期(天) + */ + warrantyPeriod: number; + /** * 合同税率(预留) */ @@ -124,26 +149,6 @@ export interface ContractInfoVO { */ activeFlag: string; - /** - * 创建人 - */ - createBy: number; - - /** - * 创建时间 - */ - createTime: string; - - /** - * 更新人 - */ - updateBy: number; - - /** - * 更新时间 - */ - updateTime: string; - } export interface ContractInfoForm extends BaseEntity { @@ -200,32 +205,32 @@ export interface ContractInfoForm extends BaseEntity { /** * 甲方公司 */ - aCustomerId?: string | number; + oneCustomerId?: string | number; /** * 甲方授权代表 */ - aRepresent?: string; + oneRepresent?: string; /** * 甲方签字日期 */ - aDate?: string; + oneDate?: string; /** * 乙方公司 */ - bCustomerId?: string | number; + twoCustomerId?: string | number; /** * 乙方授权代表 */ - bRepresent?: string; + twoRepresent?: string; /** * 乙方签字日期 */ - bDate?: string; + twoDate?: string; /** * 合同状态(1暂存 2审批中 3可用) @@ -257,6 +262,31 @@ export interface ContractInfoForm extends BaseEntity { */ signatureAppendix?: number; + /** + * 内部合同号 + */ + internalContractCode?: string; + + /** + * 外部合同号 + */ + externalContractCode?: string; + + /** + * 订单号 + */ + orderContractCode?: string; + + /** + * 项目号 + */ + projectContractCode?: string; + + /** + * 质保期(天) + */ + warrantyPeriod?: number; + /** * 合同税率(预留) */ @@ -275,7 +305,7 @@ export interface ContractInfoForm extends BaseEntity { /** * 合同物料列表 */ - contractMaterielList?: any[]; + contractMaterialList?: any[]; } @@ -329,32 +359,32 @@ export interface ContractInfoQuery extends PageQuery { /** * 甲方公司 */ - aCustomerId?: string | number; + oneCustomerId?: string | number; /** * 甲方授权代表 */ - aRepresent?: string; + oneRepresent?: string; /** * 甲方签字日期 */ - aDate?: string; + oneDate?: string; /** * 乙方公司 */ - bCustomerId?: string | number; + twoCustomerId?: string | number; /** * 乙方授权代表 */ - bRepresent?: string; + twoRepresent?: string; /** * 乙方签字日期 */ - bDate?: string; + twoDate?: string; /** * 合同状态(1暂存 2审批中 3可用) @@ -386,6 +416,31 @@ export interface ContractInfoQuery extends PageQuery { */ signatureAppendix?: number; + /** + * 内部合同号 + */ + internalContractCode?: string; + + /** + * 外部合同号 + */ + externalContractCode?: string; + + /** + * 订单号 + */ + orderContractCode?: string; + + /** + * 项目号 + */ + projectContractCode?: string; + + /** + * 质保期(天) + */ + warrantyPeriod?: number; + /** * 合同税率(预留) */ diff --git a/src/api/oa/erp/contractMaterial/types.ts b/src/api/oa/erp/contractMaterial/types.ts index 94e5acb..09ebfd0 100644 --- a/src/api/oa/erp/contractMaterial/types.ts +++ b/src/api/oa/erp/contractMaterial/types.ts @@ -122,6 +122,11 @@ export interface ContractMaterialForm extends BaseEntity { */ materialId?: string | number; + /** + * 物料名称 + */ + materialName?: string; + /** * 销售物料ID */ diff --git a/src/views/oa/erp/contractInfo/edit.vue b/src/views/oa/erp/contractInfo/edit.vue index 38e4682..712f434 100644 --- a/src/views/oa/erp/contractInfo/edit.vue +++ b/src/views/oa/erp/contractInfo/edit.vue @@ -17,7 +17,7 @@ @@ -50,7 +50,9 @@ - + + + @@ -68,38 +70,52 @@ - + - - + + + + - - + + + + - - + + - - + + - - + + - - + + @@ -200,8 +216,19 @@ - - + + + {{dict.label}} + + + + + + - - + + - - - + + + @@ -233,12 +233,12 @@ const data = reactive<{ queryParams: ContractInfoQuery }>({ contractDeptId: undefined, contractDate: undefined, totalPrice: undefined, - aCustomerId: undefined, - aRepresent: undefined, - aDate: undefined, - bCustomerId: undefined, - bRepresent: undefined, - bDate: undefined, + oneCustomerId: undefined, + oneRepresent: undefined, + oneDate: undefined, + twoCustomerId: undefined, + twoRepresent: undefined, + twoDate: undefined, contractStatus: undefined, flowStatus: undefined, templateId: undefined,