查询问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user