优化计费列表展示逻辑,新增 prc_income_bill 过滤条件

This commit is contained in:
wuweihua
2026-11-18 13:22:09 +08:00
parent ccfb05bf50
commit 8df728f2d7
20 changed files with 385 additions and 99 deletions
@@ -504,8 +504,10 @@ onActivated(() => {
syncFromRoute(pendingRefresh.value)
})
// 组件已处于激活状态时路由 query 变化的兜底
// 仅当前路由就是本详情页时才响应 query;
// 避免 keep-alive 缓存的另一个详情页(普通/专属)误用对方 API 导致「套餐不存在」
watch(() => route.query.priceSetId, () => {
if (route.path !== mod.routes.detail) return
syncFromRoute(false)
})
@@ -5,6 +5,7 @@
:columns="columns"
:search-columns="searchColumns"
:query="queryList"
:default-params="defaultParams"
row-key="priceSetId"
>
<template #toolbar>
@@ -120,19 +121,22 @@ const auditPerm = [`${mod.permPrefix}:audit`]
const { proxy } = getCurrentInstance()
const tableRef = ref()
const isFirstActivate = ref(true)
/** 默认只看待启用、生效(排除已停用) */
const defaultParams = { statuses: ['D', 'E'] }
const searchColumns = computed(() => [
{
label: '状态',
prop: 'status',
prop: 'statuses',
component: 'select',
options: [
{ label: '待启用', value: 'D' },
{ label: '生效', value: 'E' },
{ label: '已停用', value: 'S' }
],
props: { multiple: true, collapseTags: true, clearable: true },
placeholder: '全部状态',
width: '140px'
width: '200px'
},
{ label: '关键字', prop: 'keyword', component: 'input', placeholder: mod.labels.keywordPlaceholder, width: '200px' },
{ label: '客户', prop: 'customerId', placeholder: '客户名称 / 代码', width: '240px' }