hookehuyr

feat(订单): 添加退款相关状态和界面支持

在订单API中添加退款状态(13=退款中, 15=已退款, 17=退款失败)
在订单管理页面添加已退款标签页
/*
* @Date: 2025-07-03 17:21:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-31 15:50:33
* @LastEditTime: 2025-08-04 15:24:12
* @FilePath: /jgdl/src/api/orders.js
* @Description: 文件描述
*/
......@@ -23,7 +23,7 @@ const Api = {
* @param page 页码,从0开始
* @param page_size 每页数量
* @param type 列表类型。buy=我买的,sell=我卖的
* @param status 订单状态(3=待支付, 5=已支付待发货, 7=已取消, 9=已发货/待收货, 11=已收货)
* @param status 订单状态(3=待支付, 5=已支付待发货, 7=已取消, 9=已发货/待收货, 11=已收货, 13=退款中, 15=已退款, 17=退款失败
* @returns data{ list[{ id, title, total_amount, status, create_time, payment_time, details{ id, vehicle_id, quantity, vehicle{} } }] }
*/
export const getOrderListAPI = (params) => fn(fetch.get(Api.GET_ORDER_LIST, params));
......
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-04 15:22:11
* @LastEditTime: 2025-08-04 17:46:52
* @FilePath: /jgdl/src/pages/myOrders/index.vue
* @Description: 订单管理页面
-->
......@@ -43,6 +43,9 @@
<view v-if="viewMode === 'buy' || viewMode === 'sell' || viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 7 }" @click="setActiveTab(7)">
已取消
</view>
<view v-if="viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 15 }" @click="setActiveTab(15)">
已退款
</view>
</view>
</nut-sticky>
......@@ -553,6 +556,7 @@ const filteredOrders = computed(() => {
if (activeTab.value === 9) return order.status === 9
if (activeTab.value === 11) return order.status === 11
if (activeTab.value === 7) return order.status === 7
if (activeTab.value === 15) return order.status === 15
return true
})
})
......