feat(admin): 提现审核一键查看号主相关订单,订单页支持URL预填搜索

This commit is contained in:
yml2213
2026-08-15 13:37:27 +08:00
parent 51c3f2767f
commit 134d6fa05e
3 changed files with 53 additions and 3 deletions
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { Refresh, Search } from '@element-plus/icons-vue'
import { onMounted, reactive, ref } from 'vue'
import { useRoute } from 'vue-router'
import { fetchAdminOrders, type AdminOrderQuery, type Order } from '@/features/orders'
import {
@@ -26,6 +27,7 @@ const orders = ref<Order[]>([])
const total = ref(0)
const currentPage = ref(1)
const currentPageSize = ref(20)
const route = useRoute()
const orderStatusOptions = [
{ label: '待支付', value: 'pending_payment' },
@@ -72,7 +74,14 @@ const settlementStatusOptions = [
{ label: '已仲裁', value: 'arbitrated' },
] as const
onMounted(loadOrders)
onMounted(() => {
// 支持从提现审核等页面跳转预填号主/租客搜索
const keyword = route.query.keyword
if (typeof keyword === 'string' && keyword.trim()) {
filters.keyword = keyword.trim()
}
void loadOrders()
})
async function loadOrders() {
loading.value = true