Commit a21b39aa authored by daniel's avatar daniel

feat(gpsDeposit): 添加退款

parent 08ea81b6
...@@ -367,13 +367,7 @@ ...@@ -367,13 +367,7 @@
return [error, undefined] return [error, undefined]
} }
} }
// 状态
const StatusEnum =
new SuperEnum([
{ key: 'PICKED', name: '已选', color: 'warning', value: 1 },
// 增值
{ key: 'UN_PICKED', name: '未选', color: 'success', value: 0 },
])
// 订单类型 // 订单类型
const OrderTypeEnum = const OrderTypeEnum =
new SuperEnum([ new SuperEnum([
...@@ -398,6 +392,13 @@ ...@@ -398,6 +392,13 @@
{ key: 'PART_REFUND', name: '部分退款', color: 'info', value: 3 }, { key: 'PART_REFUND', name: '部分退款', color: 'info', value: 3 },
{ key: 'FULL_REFUND', name: '全额退款', color: 'warning', value: 4 }, { key: 'FULL_REFUND', name: '全额退款', color: 'warning', value: 4 },
]) ])
// 退款状态:0-退款中,1-退款成功,2-退款失败
const RefundStatusEnum =
new SuperEnum([
{ key: 'WAIT_REFUND', name: '退款中', color: 'info', value: 0 },
{ key: 'REFUND_SUCCESS', name: '退款成功', color: 'success', value: 1 },
{ key: 'REFUND_FAILED', name: '退款失败', color: 'error', value: 2 },
])
// tab类型 // tab类型
const TabEnum = const TabEnum =
new SuperEnum([ new SuperEnum([
...@@ -568,8 +569,18 @@ ...@@ -568,8 +569,18 @@
round: true, round: true,
type: PayTypeEnum[row.payType].color, type: PayTypeEnum[row.payType].color,
}, PayTypeEnum[row.payType].name), }, PayTypeEnum[row.payType].name),
]),
row.refundStatus && h(NSpace, {}, [
h('span', {}, "退款状态"),
h(NTag, {
size: "small",
bordered: false,
round: true,
type: RefundStatusEnum[row.refundStatus].color,
}, RefundStatusEnum[row.refundStatus].name),
]),
])]) ])
} }
}, },
{ {
...@@ -992,10 +1003,10 @@ ...@@ -992,10 +1003,10 @@
// 公共 // 公共
tabIndex, tabIndex,
loading, loading,
StatusEnum,
TabEnum, TabEnum,
OrderTypeEnum, OrderTypeEnum,
TradeStatusEnum, TradeStatusEnum,
RefundStatusEnum,
PayTypeEnum, PayTypeEnum,
updateTab, updateTab,
// 订单相关 // 订单相关
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment