|
|
@@ -156,10 +156,10 @@ export function useOrder(tableRef: Ref) {
|
|
|
minWidth: 85,
|
|
|
cellRenderer: ({ row }) => {
|
|
|
const statusMap: Record<number, { text: string; type: string }> = {
|
|
|
- 0: { text: "待支付", type: "warning" },
|
|
|
- 1: { text: "已完成", type: "success" },
|
|
|
- 2: { text: "已取消", type: "info" },
|
|
|
- 3: { text: "已退款", type: "danger" }
|
|
|
+ 0: { text: "已取消", type: "info" },
|
|
|
+ 1: { text: "待支付", type: "warning" },
|
|
|
+ 2: { text: "已完成", type: "success" },
|
|
|
+ 3: { text: "已关闭", type: "info" }
|
|
|
};
|
|
|
const status = statusMap[row.status] || { text: "未知", type: "info" };
|
|
|
return <el-tag type={status.type as any}>{status.text}</el-tag>;
|
|
|
@@ -267,11 +267,11 @@ export function useOrder(tableRef: Ref) {
|
|
|
? "danger" : "warning";
|
|
|
const payStatusText = order.payStatusLabel || (order.payStatus === "PAID" ? "已支付" : order.payStatus === "REFUND" ? "已退款" : "待支付");
|
|
|
|
|
|
- const statusStyle = order.status === 1
|
|
|
- ? "success" : order.status === 3
|
|
|
- ? "danger" : order.status === 2
|
|
|
+ const statusStyle = order.status === 2
|
|
|
+ ? "success" : order.status === 0
|
|
|
+ ? "info" : order.status === 3
|
|
|
? "info" : "warning";
|
|
|
- const statusText = order.statusText || (order.status === 0 ? "待支付" : order.status === 1 ? "已完成" : order.status === 2 ? "已取消" : "已退款");
|
|
|
+ const statusText = order.statusText || (order.status === 0 ? "已取消" : order.status === 1 ? "待支付" : order.status === 2 ? "已完成" : "已关闭");
|
|
|
|
|
|
const payTypeMap: Record<string, { text: string; type: string }> = {
|
|
|
"wechat": { text: "微信支付", type: "success" },
|