feat(order): 添加订单退款功能并优化用户票券页面显示

- 新增 refundShopOrder API 接口用于处理订单退款申请
- 在 shopOrder 页面添加退款相关操作按钮和逻辑
- 修改用户票券页面表格列配置,添加订单号和数量字段
- 更新订单详情页面商品数量字段映射关系
- 启用开发环境 API 地址配置
This commit is contained in:
2026-02-04 17:38:51 +08:00
parent 2e81564b92
commit e015eaef9e
5 changed files with 41 additions and 17 deletions

View File

@@ -31,6 +31,9 @@
</div>
</a-space>
</template>
<template v-if="column.key === 'buyQty'">
{{ record.availableQty }}
</template>
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
@@ -128,6 +131,12 @@
key: 'templateName',
align: 'center'
},
{
title: '订单号',
dataIndex: 'orderNo',
key: 'orderNo',
align: 'center'
},
{
title: '金额',
dataIndex: 'payPrice',
@@ -135,38 +144,38 @@
align: 'center',
customRender: ({ text }) => `${text.toFixed(2)}`
},
// {
// title: '商品ID',
// dataIndex: 'goodsId',
// key: 'goodsId',
// align: 'center'
// },
{
title: '赠送数量(桶)',
title: '购买数量',
dataIndex: 'buyQty',
key: 'buyQty',
align: 'center'
},
{
title: '总数量',
dataIndex: 'totalQty',
key: 'totalQty',
align: 'center'
},
{
title: '可用(桶)',
title: '可配送',
dataIndex: 'availableQty',
key: 'availableQty',
align: 'center'
},
{
title: '冻结(桶)',
title: '待赠送',
dataIndex: 'frozenQty',
key: 'frozenQty',
align: 'center'
},
{
title: '已使用(桶)',
title: '已使用',
dataIndex: 'usedQty',
key: 'usedQty',
align: 'center'
},
{
title: '已释放(桶)',
title: '已释放',
dataIndex: 'releasedQty',
key: 'releasedQty',
align: 'center'