fix(pl): 新规则归档超额按客户选证,并修正用证提示与启用口径。

安排/归档失败改为可执行原因;证件保存后自动启用、只读不再假启用;
customer_category 归档超额改为客户+品类证件池,避免误查合同绑证。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-15 16:46:09 +08:00
1 parent ba62ec7b36
commit 5a8a9048d4
10 files changed
+917 -90

No files matched your search

@@ -183,16 +183,28 @@
toQueryParams,
watchVisibleColumns
} = useServerColumnFilters(columns, { onChange: search })
const { visibleColumns, checkAll, isIndeterminate, visibleDefs, resetToDefault } =
usePersistedListColumns('pl-customer-quota-columns-v1', columns)
const { visibleColumns, checkAll, isIndeterminate, resetToDefault } = usePersistedListColumns(
'pl-customer-quota-columns-v1',
columns
)
// usePersistedListColumns 不返回 visibleDefs;须本地按可见列过滤,否则只剩展开列
const visibleDefs = computed(() =>
columns.filter((column) => visibleColumns.value.includes(column.prop))
)
watchVisibleColumns(visibleColumns)
const tableWrapRef = ref<HTMLElement>()
const pagerRef = ref<HTMLElement>()
const tableWrapRef = ref<HTMLElement | null>(null)
const pagerRef = ref<HTMLElement | null>(null)
const tableRef = ref()
const { tableHeight, expansionStyle } = useListTableViewportHeight({
wrapRef: tableWrapRef,
pagerRef,
tableRef
// 展开区只锁宽度,高度随证件明细撑开;表体高度须走 tableEl/pagerEl,否则卡在 240 下限裁切展开
const { width: tableViewportWidth } = useElementSize(tableWrapRef)
const expansionStyle = computed(() => ({
width: tableViewportWidth.value > 0 ? `${tableViewportWidth.value}px` : undefined
}))
const { tableHeight, recalc: recalcTableHeight } = useListTableViewportHeight({
tableEl: tableWrapRef,
pagerEl: pagerRef,
tableRef,
enabled: computed(() => !props.embedded)
})
async function init() {
@@ -258,6 +270,7 @@
? expanded.some((item: any) => item?.id === row.id)
: Boolean(expanded)
if (open) void loadDetail(row)
else nextTick(() => recalcTableHeight())
}
async function loadDetail(row: { id: string }) {
@@ -267,6 +280,12 @@
details[row.id] = { loading: false, ready: true }
} catch {
details[row.id] = { loading: false, error: true }
} finally {
nextTick(() => {
recalcTableHeight()
const inst = tableRef.value
if (inst && typeof inst.doLayout === 'function') inst.doLayout()
})
}
}
@@ -291,6 +310,9 @@
}
.statistics-expansion {
padding: 8px 12px 16px;
box-sizing: border-box;
max-width: 100%;
padding: 12px 16px 16px;
text-align: left;
}
</style>