From c7ac4c50e0d51008e30864aa2337a0042966f92d Mon Sep 17 00:00:00 2001 From: zhouxiaofeng <2946471396@qq.com> Date: Wed, 10 Jun 2026 13:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ContractPartyPlaceholderModal.vue | 11 +++++++++-- src/views/contract/launch/index.vue | 10 +++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/contract/launch/components/ContractPartyPlaceholderModal.vue b/src/views/contract/launch/components/ContractPartyPlaceholderModal.vue index 2f834c3..e403e4d 100644 --- a/src/views/contract/launch/components/ContractPartyPlaceholderModal.vue +++ b/src/views/contract/launch/components/ContractPartyPlaceholderModal.vue @@ -1761,7 +1761,9 @@ function resetCurrentState() { function showSearchTip(title) { loadPartnerOptions(); - message.info(`${title}数据已从客户/主体库加载,可直接在下拉框搜索选择。`); + message.info( + `${title}数据已从客户/主体库加载;相对方下拉仅展示已同步到法务的记录。`, + ); } function filterPartnerOption(input, option) { @@ -1790,6 +1792,11 @@ function getRelativeTypeLabel(value) { return map[value] || value || ""; } +function isSyncedCounterpartyOption(option) { + const raw = option?.raw || {}; + return raw.syncStatus === "synced" && !!String(raw.oppositeId || "").trim(); +} + function mapPartnerToParty(raw = {}, roleKey, companyName) { const firstContact = raw.contacts?.[0] || {}; const roleCode = @@ -1825,7 +1832,7 @@ function mapPartnerToParty(raw = {}, roleKey, companyName) { function getPartyOptions(roleCode) { const baseOptions = contractCompanyOptions.value || []; if (roleCode !== PARTY_ROLE_OUR) { - return baseOptions; + return baseOptions.filter(isSyncedCounterpartyOption); } const selfParty = currentSelfParty.value; if (!selfParty?.companyName) { diff --git a/src/views/contract/launch/index.vue b/src/views/contract/launch/index.vue index 3fa8609..b451eff 100644 --- a/src/views/contract/launch/index.vue +++ b/src/views/contract/launch/index.vue @@ -28,10 +28,11 @@ - @@ -305,7 +306,10 @@ import ContractPartyPlaceholderModal from "./components/ContractPartyPlaceholder import MixedSignModal from "./components/mixedSignModal.vue"; import UploadSignedModal from "./components/UploadSignedModal.vue"; import ContractArchiveModal from "./components/ContractArchiveModal.vue"; -import { getContractTypeSimpleLabel } from "./contractLaunchOptions.js"; +import { + contractTypeOptions, + getContractTypeSimpleLabel, +} from "./contractLaunchOptions.js"; import { copyLaunchDraft, createLaunchChangeDraft,