feat(admin): 提现审核一键查看号主相关订单,订单页支持URL预填搜索
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user