feat(admin): full repair of order module including list, statistics, aftersales, cashier, and write-off records with real RPC integration

This commit is contained in:
comlibmb
2026-02-10 23:01:23 +08:00
parent 1d9915cd77
commit cd7b92d496
12 changed files with 397 additions and 138 deletions

View File

@@ -5,10 +5,12 @@
<view class="filter-card border-shadow">
<view class="filter-item">
<text class="label-txt">退款状态:</text>
<view class="select-mock">
<text class="select-val">全部</text>
<text class="arrow-down">▼</text>
</view>
<picker :value="statusIndex" :range="statusOptions" range-key="label" @change="onStatusChange">
<view class="select-mock">
<text class="select-val">{{ statusOptions[statusIndex].label }}</text>
<text class="arrow-down">▼</text>
</view>
</picker>
</view>
<view class="filter-item">
@@ -39,7 +41,7 @@
<view class="th" style="width: 180px;">原订单号</view>
<view class="th" style="flex: 1.5;">商品信息</view>
<view class="th" style="width: 120px;">用户信息</view>
<view class="th" style="width: 100px;">实际支付</view>
<view class="th" style="width: 100px;">退款金额</view>
<view class="th" style="width: 160px;">发起退款时间</view>
<view class="th" style="width: 100px;">退款状态</view>
<view class="th" style="width: 100px;">订单状态</view>
@@ -132,6 +134,20 @@ const totalPages = computed((): number => {
})
const refundStatusFilter = ref<number | null>(null)
const statusIndex = ref(0)
const statusOptions = [
{ label: '全部', value: null as number | null },
{ label: '申请中', value: 1 as number | null },
{ label: '已同意', value: 2 as number | null },
{ label: '已拒绝', value: 3 as number | null },
{ label: '已完成', value: 4 as number | null }
]
const onStatusChange = (e : any) => {
statusIndex.value = e.detail.value as number
refundStatusFilter.value = statusOptions[statusIndex.value].value
handleQuery()
}
const loadRefundOrders = async () => {
loading.value = true