From 8389314fce3f157f3f062369ef4b9bc6a5ab360e Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 13 May 2026 15:55:14 +0800 Subject: [PATCH] =?UTF-8?q?1.1.39=20=E5=90=88=E5=90=8C=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=E6=8A=84=E9=80=81=E4=BA=BA=E5=91=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa/erp/contractInfo/orderActivate.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/oa/erp/contractInfo/orderActivate.vue b/src/views/oa/erp/contractInfo/orderActivate.vue index 26319c0..009fe4b 100644 --- a/src/views/oa/erp/contractInfo/orderActivate.vue +++ b/src/views/oa/erp/contractInfo/orderActivate.vue @@ -994,7 +994,7 @@ function buildProjectContractsPayload(row: ProjectRow, index: number): Record 0 ? pf.peopleId.join(',') : pf.peopleId; + base.peopleId = normalizeProjectContractsPeopleId(pf.peopleId); base.amount = pf.amount; } return base; @@ -1005,6 +1005,13 @@ function normalizePeopleId(value: string | string[] | number | undefined): strin return Array.isArray(value) ? value.join(',') : value; } +/** 关联项目抄送:后端 ErpProjectContractsBo.peopleId 为 String,禁止提交 JSON 数组(含空数组) */ +function normalizeProjectContractsPeopleId(value: string | string[] | number | undefined): string | undefined { + const raw = normalizePeopleId(value); + if (raw === undefined || raw === null || raw === '') return undefined; + return String(raw); +} + /** 校验回款比例之和是否为 100% */ function isRepaymentRateTotalValid(): boolean { const totalRate = planStageList.value.reduce((sum, item) => sum + toNumber(item.repaymentRate), 0);