查询问题
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) {
|
||||
|
||||
@@ -28,10 +28,11 @@
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="24">
|
||||
<a-form-item label="合同类型">
|
||||
<a-input
|
||||
<a-select
|
||||
v-model:value="queryParam.contractType"
|
||||
allow-clear
|
||||
placeholder="请输入合同类型编码"
|
||||
placeholder="请选择合同类型"
|
||||
:options="contractTypeOptions"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user