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:
@@ -123,7 +123,7 @@
|
||||
import { ref, onMounted } from 'vue'
|
||||
import AdminLayout from '@/layouts/admin/AdminLayout.uvue'
|
||||
import EChartsView from '@/uni_modules/charts/EChartsView.vue'
|
||||
import { fetchOrderStats, fetchOrderTrend, fetchOrderSourceStats } from '@/services/orderService.uts'
|
||||
import { fetchOrderStats, fetchOrderTrend, fetchOrderSourceStats, fetchOrderTypeStats } from '@/services/orderService.uts'
|
||||
|
||||
const currentPage = ref<string>('order_statistic')
|
||||
|
||||
@@ -155,6 +155,10 @@ async function loadAllData() {
|
||||
// 3. 加载来源数据
|
||||
const sourceData = await fetchOrderSourceStats(startTime, endTime)
|
||||
initSourceChart(sourceData)
|
||||
|
||||
// 4. 加载订单类型数据
|
||||
const typeData = await fetchOrderTypeStats(startTime, endTime)
|
||||
orderTypeData.value = typeData
|
||||
} catch (e) {
|
||||
uni.showToast({ title: '加载统计数据失败', icon: 'none' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user