feat(order): 添加订单解冻功能和退款申请功能
- 在订单模型中新增解冻状态字段(isUnfreeze)和解冻时间字段(unfreezeTime) - 更新订单列表页面显示解冻状态标签 - 在订单列表中添加解冻时间显示 - 为商城订单添加退款申请功能入口 - 修改已结算订单标签颜色从success改为purple - 将开发环境API地址配置从注释状态改为启用状态
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
@@ -54,6 +54,10 @@ export interface ShopDealerOrder {
|
||||
isSettled?: number;
|
||||
// 结算时间
|
||||
settleTime?: number;
|
||||
// 是否解冻(0否 1是)
|
||||
isUnfreeze?: number;
|
||||
// 解冻时间
|
||||
unfreezeTime?: number;
|
||||
// 订单备注
|
||||
comments?: string;
|
||||
// 商城ID
|
||||
|
||||
@@ -96,8 +96,11 @@
|
||||
</template>
|
||||
|
||||
<template v-if="column.key === 'isSettled'">
|
||||
<div class="flex flex-col">
|
||||
<a-tag v-if="record.isSettled === 0" color="orange">未结算</a-tag>
|
||||
<a-tag v-if="record.isSettled === 1" color="success">已结算</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 v-if="column.key === 'createTime'">
|
||||
@@ -108,6 +111,9 @@
|
||||
<a-tooltip title="结算时间">
|
||||
<span class="text-purple-500">{{ record.settleTime }}</span>
|
||||
</a-tooltip>
|
||||
<a-tooltip title="解冻时间">
|
||||
<span class="text-green-500">{{ record.unfreezeTime }}</span>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -160,6 +160,9 @@
|
||||
<a-space>
|
||||
<!-- 查看详情 - 所有状态都可以查看 -->
|
||||
<a @click.stop="openEdit(record)"> <EyeOutlined /> 详情 </a>
|
||||
<a @click.stop="handleApplyRefund(record)">
|
||||
<UndoOutlined /> 退款
|
||||
</a>
|
||||
|
||||
<!-- 未付款状态的操作 -->
|
||||
<template v-if="!record.payStatus && record.orderStatus === 0">
|
||||
|
||||
Reference in New Issue
Block a user