feat(订单): 添加退还状态字段及展示
在订单DTO中新增退还状态字段,并在订单列表页面添加退还状态的表格列展示。退还状态分为未退还(0)和已退还(1)两种状态,分别用不同样式的标签显示。
This commit is contained in:
parent
1855bca307
commit
994e4c9538
|
@ -105,6 +105,12 @@ export interface OrderDTO {
|
|||
* 多个商品封面图用逗号分隔
|
||||
*/
|
||||
coverImgs?: string;
|
||||
/**
|
||||
* 退还状态
|
||||
* @remarks
|
||||
* 0-未退还 | 1-已退还
|
||||
*/
|
||||
returnStatus?: number;
|
||||
}
|
||||
|
||||
export const getOrderListApi = (params?: OrderQuery) => {
|
||||
|
|
|
@ -232,6 +232,13 @@ getList();
|
|||
</el-tag>
|
||||
</template>
|
||||
</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">
|
||||
<template #default="{ row }">
|
||||
{{ { wechat: '微信支付', balance: '借呗支付' }[row.paymentMethod] || row.paymentMethod }}
|
||||
|
|
Loading…
Reference in New Issue