111
This commit is contained in:
@@ -888,13 +888,14 @@
|
|||||||
>
|
>
|
||||||
<template #default="{ record }">
|
<template #default="{ record }">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="record.planSubjectName"
|
v-model:value="record.planSubjectCode"
|
||||||
:options="ourParties.map(p => ({ label: `${p.companyName} (${p.subjectCode})`, value: p.companyName, subjectCode: p.subjectCode }))"
|
:options="planSubjectOptions"
|
||||||
|
show-search
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="从已选我方主体中选择"
|
placeholder="选择所属主体机构"
|
||||||
:disabled="!ourParties.length"
|
:filter-option="filterPartnerOption"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="(value, option) => { record.planSubjectCode = option?.subjectCode || ''; }"
|
@change="(value, option) => { record.planSubjectName = option?.label || ''; }"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
@@ -985,6 +986,14 @@ import {
|
|||||||
const counterpartyOptions = ref([]);
|
const counterpartyOptions = ref([]);
|
||||||
const ourPartyOrgOptions = ref([]);
|
const ourPartyOrgOptions = ref([]);
|
||||||
|
|
||||||
|
/** 履行计划所属主体下拉选项:从全部可选机构中选取 */
|
||||||
|
const planSubjectOptions = computed(() =>
|
||||||
|
ourPartyOrgOptions.value.map((opt) => ({
|
||||||
|
label: opt.raw?.orgName || opt.label || opt.value,
|
||||||
|
value: String(opt.raw?.orgId ?? ""),
|
||||||
|
})),
|
||||||
|
);
|
||||||
|
|
||||||
// ========== 合同相关字典 ==========
|
// ========== 合同相关字典 ==========
|
||||||
|
|
||||||
const mandateTypeOptions = [
|
const mandateTypeOptions = [
|
||||||
|
|||||||
Reference in New Issue
Block a user