From 0293f185b4df4648368618ee86ec2f1007cf7215 Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 14 Jan 2026 18:07:45 +0800 Subject: [PATCH] =?UTF-8?q?1.0.49=20=E5=90=88=E5=90=8C=E6=8C=89=E7=85=A7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84=E9=83=A8=E9=97=A8=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=BB=8F=E7=90=86=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/erp/projectInfo/types.ts | 20 ++++++++++++++++++++ src/views/oa/erp/contractInfo/edit.vue | 6 ++++-- src/views/oa/erp/contractInfo/index.vue | 2 +- src/views/oa/erp/projectInfo/preEdit.vue | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/api/oa/erp/projectInfo/types.ts b/src/api/oa/erp/projectInfo/types.ts index a0a600b..5e37266 100644 --- a/src/api/oa/erp/projectInfo/types.ts +++ b/src/api/oa/erp/projectInfo/types.ts @@ -261,6 +261,16 @@ export interface ProjectInfoForm extends BaseEntity { chargeName?: string; deputyName?: string; + + /** + * 合同编号 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; } export interface ProjectInfoQuery extends PageQuery { @@ -371,4 +381,14 @@ export interface ProjectInfoQuery extends PageQuery { chargeName?: string; deputyName?: string; + + /** + * 合同编号 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; } diff --git a/src/views/oa/erp/contractInfo/edit.vue b/src/views/oa/erp/contractInfo/edit.vue index 71a4030..75b9364 100644 --- a/src/views/oa/erp/contractInfo/edit.vue +++ b/src/views/oa/erp/contractInfo/edit.vue @@ -455,7 +455,7 @@ const approvalRecordRef = ref>(); // 流程相关数据 const submitFormData = ref({ businessId: '', - flowCode: 'OAC', + flowCode: '', variables: {}, bizExt: {} }); @@ -701,6 +701,7 @@ const submitForm = (status: string, mode: boolean) => { contractName: form.value.contractName, totalPrice: form.value.totalPrice, businessDirection: form.value.businessDirection, + contractDeptId: form.value.contractDeptId, contractCode: form.value.contractCode }; // 流程实例业务扩展字段 @@ -739,7 +740,7 @@ const submitForm = (status: string, mode: boolean) => { // 提交申请 const handleStartWorkFlow = async (data: ContractInfoForm) => { try { - submitFormData.value.flowCode = 'OAC'; + submitFormData.value.flowCode = FlowCodeEnum.CONTRACT_CODE; submitFormData.value.businessId = data.contractId; // 流程变量 @@ -748,6 +749,7 @@ const handleStartWorkFlow = async (data: ContractInfoForm) => { contractName: data.contractName, totalPrice: data.totalPrice, businessDirection: data.businessDirection, + contractDeptId: data.contractDeptId, contractCode: data.contractCode }; diff --git a/src/views/oa/erp/contractInfo/index.vue b/src/views/oa/erp/contractInfo/index.vue index 703749d..5615eaf 100644 --- a/src/views/oa/erp/contractInfo/index.vue +++ b/src/views/oa/erp/contractInfo/index.vue @@ -321,7 +321,7 @@ const columns = ref([ { key: 15, label: `乙方授权代表`, visible: true }, { key: 16, label: `乙方签字日期`, visible: true }, { key: 17, label: `合同状态`, visible: true }, - { key: 18, label: `流程状态`, visible: true }, + { key: 18, label: `流程状态`, visible: false }, { key: 19, label: `合同模板ID`, visible: false }, { key: 20, label: `附件ID`, visible: false }, { key: 21, label: `付款方式`, visible: true }, diff --git a/src/views/oa/erp/projectInfo/preEdit.vue b/src/views/oa/erp/projectInfo/preEdit.vue index 78f776f..18660fa 100644 --- a/src/views/oa/erp/projectInfo/preEdit.vue +++ b/src/views/oa/erp/projectInfo/preEdit.vue @@ -568,7 +568,7 @@ onMounted(async () => { form.value.deptId = userVO.deptId; form.value.managerId = userVO.userId; form.value.chargeId = userVO.chargeId; - form.value.deputyId = userVO.deputyId; + // form.value.deputyId = userVO.deputyId; } } catch (error) { console.error('获取用户信息失败:', error);