This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
:currentPage="pagination.page"
|
||||
:pageSize="pagination.pageSize"
|
||||
:total="pagination.total"
|
||||
:actions="getAuditActions"
|
||||
:actionsWidth="120"
|
||||
:marginTop="10"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
@@ -458,6 +460,9 @@
|
||||
} from '@/config/constants/commission'
|
||||
import { RoutesAlias } from '@/router/routesAlias'
|
||||
import ExportTaskCreateDialog from '@/components/business/ExportTaskCreateDialog.vue'
|
||||
import { AUDIT_PERMISSIONS } from '@/config/constants/audit'
|
||||
import { resolveFinanceAuditTarget } from '@/utils/business/auditNavigation'
|
||||
import { openAuditInvestigation } from '@/components/business/audit/investigationController'
|
||||
|
||||
defineOptions({ name: 'AgentCommission' })
|
||||
|
||||
@@ -471,6 +476,20 @@
|
||||
const tableRef = ref()
|
||||
const summaryList = ref<ShopFundSummaryItem[]>([])
|
||||
|
||||
const getAuditActions = (row: ShopFundSummaryItem) => {
|
||||
if (!hasAuth(AUDIT_PERMISSIONS.financeTimeline)) return []
|
||||
const target = resolveFinanceAuditTarget('shop_id', row.shop_id)
|
||||
return target
|
||||
? [
|
||||
{
|
||||
label: '资金链路',
|
||||
handler: () => openAuditInvestigation(target),
|
||||
type: 'primary' as const
|
||||
}
|
||||
]
|
||||
: []
|
||||
}
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = reactive({
|
||||
shop_name: '',
|
||||
|
||||
Reference in New Issue
Block a user