feat(订单): 添加退还状态字段及展示

在订单DTO中新增退还状态字段,并在订单列表页面添加退还状态的表格列展示。退还状态分为未退还(0)和已退还(1)两种状态,分别用不同样式的标签显示。
This commit is contained in:
dzq 2025-07-16 09:35:02 +08:00
parent 1855bca307
commit 994e4c9538
2 changed files with 13 additions and 0 deletions

View File

@ -105,6 +105,12 @@ export interface OrderDTO {
* *
*/ */
coverImgs?: string; coverImgs?: string;
/**
* 退
* @remarks
* 0-退 | 1-退
*/
returnStatus?: number;
} }
export const getOrderListApi = (params?: OrderQuery) => { export const getOrderListApi = (params?: OrderQuery) => {

View File

@ -232,6 +232,13 @@ getList();
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="退还状态" prop="returnStatus" width="120">
<template #default="{ row }">
<el-tag :type="row.returnStatus === 1 ? 'success' : 'info'">
{{ { 0: '未退还', 1: '已退还' }[row.returnStatus] }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="支付方式" prop="paymentMethod" width="120"> <el-table-column label="支付方式" prop="paymentMethod" width="120">
<template #default="{ row }"> <template #default="{ row }">
{{ { wechat: '微信支付', balance: '借呗支付' }[row.paymentMethod] || row.paymentMethod }} {{ { wechat: '微信支付', balance: '借呗支付' }[row.paymentMethod] || row.paymentMethod }}