From d100e7a271072efa96c6cf079d5f4e53777b9025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Wed, 21 Oct 2026 12:07:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=8D=E5=88=B6=E5=90=88=E5=90=8C?= =?UTF-8?q?=E5=89=94=E9=99=A4=E7=89=B9=E6=89=B9=E9=99=84=E4=BB=B6=E5=B9=B6?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E6=9F=A5=E8=AF=A2=E5=AE=A2=E5=95=86=E9=A3=8E?= =?UTF-8?q?=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/contract-manage.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/business/contract-manage.vue b/src/views/business/contract-manage.vue index d06ccba..4ce63ba 100644 --- a/src/views/business/contract-manage.vue +++ b/src/views/business/contract-manage.vue @@ -1214,6 +1214,11 @@ const createCopiedDetail = (detail = {}) => { Object.keys(form).forEach(prop => { if (Object.prototype.hasOwnProperty.call(detail, prop)) form[prop] = detail[prop]; }); + // 特批附件属于原合同的特批佐证,复制后须对新合同重新上传,否则会绕过高风险/黑名单校验 + const stripSpecAttachments = value => { + const rows = parseArray(value).filter(item => item?.fileType !== '特批附件'); + return rows.length ? JSON.stringify(rows) : ''; + }; return { ...form, contractNo: '', @@ -1221,8 +1226,8 @@ const createCopiedDetail = (detail = {}) => { archiveStatus: '未归档', feeGenerationMode: detail.feeGenerationMode || '', billingEnabled: detail.billingEnabled, - contractFileJson: detail.contractFileJson || '', - attachmentsJson: detail.attachmentsJson || '', + contractFileJson: stripSpecAttachments(detail.contractFileJson), + attachmentsJson: stripSpecAttachments(detail.attachmentsJson), billingPlanJson: detail.billingPlanJson || '', paymentRatioJson: detail.paymentRatioJson || '', settlementRuleJson: detail.settlementRuleJson || '', @@ -2385,6 +2390,10 @@ export default { const options = [...new Set(names)].map(name => ({ label: name, value: name })); this.contractPartyAOptions = options; this.contractPartyBOptions = options; + // 复制/编辑回填的甲乙方不会触发下拉 change,加载选项后主动查一次 C101-1 风险 + ['partyA', 'partyB'].forEach(prop => { + if (this.form[prop]) this.queryPartyRisk(prop); + }); }) .finally(() => { if (requestId === this.contractPartyRequestId) this.contractPartyLoading = false;