feat(order): 添加订单解冻功能和退款申请功能

- 在订单模型中新增解冻状态字段(isUnfreeze)和解冻时间字段(unfreezeTime)
- 更新订单列表页面显示解冻状态标签
- 在订单列表中添加解冻时间显示
- 为商城订单添加退款申请功能入口
- 修改已结算订单标签颜色从success改为purple
- 将开发环境API地址配置从注释状态改为启用状态
This commit is contained in:
2026-02-10 12:15:47 +08:00
parent c7fe19f33c
commit b38b62b972
4 changed files with 16 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
VITE_APP_NAME=后台管理(开发环境) VITE_APP_NAME=后台管理(开发环境)
#VITE_API_URL=http://127.0.0.1:9200/api VITE_API_URL=http://127.0.0.1:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api

View File

@@ -54,6 +54,10 @@ export interface ShopDealerOrder {
isSettled?: number; isSettled?: number;
// 结算时间 // 结算时间
settleTime?: number; settleTime?: number;
// 是否解冻(0否 1是)
isUnfreeze?: number;
// 解冻时间
unfreezeTime?: number;
// 订单备注 // 订单备注
comments?: string; comments?: string;
// 商城ID // 商城ID

View File

@@ -96,8 +96,11 @@
</template> </template>
<template v-if="column.key === 'isSettled'"> <template v-if="column.key === 'isSettled'">
<a-tag v-if="record.isSettled === 0" color="orange">未结算</a-tag> <div class="flex flex-col">
<a-tag v-if="record.isSettled === 1" color="success">结算</a-tag> <a-tag v-if="record.isSettled === 0" color="orange">结算</a-tag>
<a-tag v-if="record.isSettled === 1" color="purple">已结算</a-tag>
<a-tag v-if="record.isUnfreeze === 1" color="success">已解冻</a-tag>
</div>
</template> </template>
<template v-if="column.key === 'createTime'"> <template v-if="column.key === 'createTime'">
@@ -108,6 +111,9 @@
<a-tooltip title="结算时间"> <a-tooltip title="结算时间">
<span class="text-purple-500">{{ record.settleTime }}</span> <span class="text-purple-500">{{ record.settleTime }}</span>
</a-tooltip> </a-tooltip>
<a-tooltip title="解冻时间">
<span class="text-green-500">{{ record.unfreezeTime }}</span>
</a-tooltip>
</div> </div>
</template> </template>

View File

@@ -160,6 +160,9 @@
<a-space> <a-space>
<!-- 查看详情 - 所有状态都可以查看 --> <!-- 查看详情 - 所有状态都可以查看 -->
<a @click.stop="openEdit(record)"> <EyeOutlined /> 详情 </a> <a @click.stop="openEdit(record)"> <EyeOutlined /> 详情 </a>
<a @click.stop="handleApplyRefund(record)">
<UndoOutlined /> 退款
</a>
<!-- 未付款状态的操作 --> <!-- 未付款状态的操作 -->
<template v-if="!record.payStatus && record.orderStatus === 0"> <template v-if="!record.payStatus && record.orderStatus === 0">