feat: 7月迭代
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m21s

This commit is contained in:
luo
2026-07-28 14:00:22 +08:00
parent f0a2b84e53
commit 2706c52a47
63 changed files with 4113 additions and 3945 deletions

View File

@@ -269,9 +269,22 @@
<ElFormItem class="main-wallet-filter__actions">
<ElButton type="primary" @click="handleMainWalletSearch">搜索</ElButton>
<ElButton @click="handleMainWalletReset">重置</ElButton>
<ElButton
v-if="hasAuth('agent_wallet_transaction:export')"
@click="mainWalletExportDialogVisible = true"
>
导出
</ElButton>
</ElFormItem>
</div>
</ElForm>
<ExportTaskCreateDialog
v-model="mainWalletExportDialogVisible"
scene="agent_wallet_transaction"
:query="mainWalletExportQuery"
confirm-permission="agent_wallet_transaction:export"
title="导出代理主钱包流水"
/>
<ArtTable
ref="mainWalletTableRef"
row-key="id"
@@ -508,6 +521,7 @@
} from '@/config/constants/commission'
import { RoutesAlias } from '@/router/routesAlias'
import { normalizeApiError } from '@/utils/business/apiError'
import ExportTaskCreateDialog from '@/components/business/ExportTaskCreateDialog.vue'
defineOptions({ name: 'AgentCommission' })
@@ -619,10 +633,10 @@
return
}
if (value <= 0) {
callback(new Error('实际信用额度必须大于0'))
return
}
if (value <= 0) {
callback(new Error('实际信用额度必须大于0'))
return
}
callback()
},
@@ -649,6 +663,17 @@
date_range: [],
asset_identifier: ''
})
const mainWalletExportDialogVisible = ref(false)
const mainWalletExportQuery = computed(() => {
const [startDate, endDate] = mainWalletSearchForm.date_range || []
return {
shop_id: currentShop.value?.shop_id,
transaction_type: mainWalletSearchForm.transaction_type,
start_date: startDate || undefined,
end_date: endDate || undefined,
asset_identifier: mainWalletSearchForm.asset_identifier.trim() || undefined
}
})
// 列配置
const columnOptions = [
@@ -878,10 +903,6 @@
}
])
onMounted(() => {
getTableData()
})
// 获取代理商资金汇总列表
const getTableData = async () => {
loading.value = true
@@ -905,6 +926,14 @@
}
}
const loadInitialData = async () => {
await getTableData()
const shopId = Number(route.query.shop_id)
if (!shopId) return
const targetShop = summaryList.value.find((item) => item.shop_id === shopId)
if (targetShop) showDetail(targetShop)
}
// 搜索
const handleSearch = () => {
pagination.page = 1
@@ -953,6 +982,10 @@
loadCommissionRecords()
}
onMounted(() => {
void loadInitialData()
})
// 获取操作按钮
const getActions = (row: ShopFundSummaryItem) => {
const actions: any[] = []