修改配置
This commit is contained in:
@ -1,27 +1,3 @@
|
|||||||
export enum OrderStatus {
|
|
||||||
All = 'all', // 全部订单
|
|
||||||
Pending = 'pending', // 待付款
|
|
||||||
Reserved = 'reserved', // 预约单
|
|
||||||
Confirm = 'confirm', // 待确认
|
|
||||||
Finished = 'finished', // 已完结
|
|
||||||
ToUse = 'toUse', // 待使用
|
|
||||||
Used = 'used', // 已使用 = 交易完成(平台团购直营店)
|
|
||||||
AfterSaleApply = 'afterSaleApply', // 申请售后
|
|
||||||
AfterSaleFinished = 'afterSaleFinished' // 售后完成 = 已退款(平台团购直营店)
|
|
||||||
}
|
|
||||||
|
|
||||||
export const OrderStatusText: Record<OrderStatus, string> = {
|
|
||||||
[OrderStatus.All]: '全部订单',
|
|
||||||
[OrderStatus.Pending]: '待付款',
|
|
||||||
[OrderStatus.Reserved]: '预约单',
|
|
||||||
[OrderStatus.Confirm]: '待确认',
|
|
||||||
[OrderStatus.Finished]: '已完结',
|
|
||||||
[OrderStatus.ToUse]: '待使用',
|
|
||||||
[OrderStatus.Used]: '已使用',
|
|
||||||
[OrderStatus.AfterSaleApply]: '申请售后',
|
|
||||||
[OrderStatus.AfterSaleFinished]: '售后完成'
|
|
||||||
}
|
|
||||||
|
|
||||||
// 团购类型
|
// 团购类型
|
||||||
export enum GroupBuyingCategory {
|
export enum GroupBuyingCategory {
|
||||||
Direct = 'direct', // 直营店
|
Direct = 'direct', // 直营店
|
||||||
@ -40,14 +16,18 @@ export const GroupBuyingCategoryText: Record<GroupBuyingCategory, string> = {
|
|||||||
export enum GroupBuyingCategoryOrderStatus {
|
export enum GroupBuyingCategoryOrderStatus {
|
||||||
ToUse = 'toUse', // 待使用
|
ToUse = 'toUse', // 待使用
|
||||||
Used = 'used', // 已使用(交易完成)
|
Used = 'used', // 已使用(交易完成)
|
||||||
Refunded = 'refunded' // 已退款
|
Refunded = 'refunded', // 已退款
|
||||||
|
AfterSaleApply = 'afterSaleApply', // 申请售后
|
||||||
|
AfterSaleProcessing = 'afterSaleProcessing' // 申请售后中
|
||||||
}
|
}
|
||||||
|
|
||||||
// 对应名称
|
// 对应名称
|
||||||
export const GroupBuyingStatusText: Record<GroupBuyingCategoryOrderStatus, string> = {
|
export const GroupBuyingStatusText: Record<GroupBuyingCategoryOrderStatus, string> = {
|
||||||
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
||||||
[GroupBuyingCategoryOrderStatus.Used]: '已使用',
|
[GroupBuyingCategoryOrderStatus.Used]: '已使用',
|
||||||
[GroupBuyingCategoryOrderStatus.Refunded]: '已退款'
|
[GroupBuyingCategoryOrderStatus.Refunded]: '已退款',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleApply]: '申请售后',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleProcessing]: '申请售后中'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 对应tabbar显示的标题
|
// 对应tabbar显示的标题
|
||||||
@ -55,17 +35,23 @@ export const GroupBuyingStatusTitle: Record<GroupBuyingCategory, Record<GroupBuy
|
|||||||
[GroupBuyingCategory.Direct]: {
|
[GroupBuyingCategory.Direct]: {
|
||||||
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
||||||
[GroupBuyingCategoryOrderStatus.Used]: '交易完成',
|
[GroupBuyingCategoryOrderStatus.Used]: '交易完成',
|
||||||
[GroupBuyingCategoryOrderStatus.Refunded]: '售后完成'
|
[GroupBuyingCategoryOrderStatus.Refunded]: '售后完成',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleApply]: '申请售后',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleProcessing]: '申请售后中'
|
||||||
},
|
},
|
||||||
[GroupBuyingCategory.Franchise]: {
|
[GroupBuyingCategory.Franchise]: {
|
||||||
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
||||||
[GroupBuyingCategoryOrderStatus.Used]: '交易完成',
|
[GroupBuyingCategoryOrderStatus.Used]: '交易完成',
|
||||||
[GroupBuyingCategoryOrderStatus.Refunded]: '售后完成'
|
[GroupBuyingCategoryOrderStatus.Refunded]: '售后完成',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleApply]: '申请售后',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleProcessing]: '申请售后中'
|
||||||
},
|
},
|
||||||
[GroupBuyingCategory.DouYin]: {
|
[GroupBuyingCategory.DouYin]: {
|
||||||
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
[GroupBuyingCategoryOrderStatus.ToUse]: '待使用',
|
||||||
[GroupBuyingCategoryOrderStatus.Used]: '已使用', // DouYin专属
|
[GroupBuyingCategoryOrderStatus.Used]: '已使用', // DouYin专属
|
||||||
[GroupBuyingCategoryOrderStatus.Refunded]: '售后完成'
|
[GroupBuyingCategoryOrderStatus.Refunded]: '售后完成',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleApply]: '申请售后',
|
||||||
|
[GroupBuyingCategoryOrderStatus.AfterSaleProcessing]: '申请售后中'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,16 +60,22 @@ export const CategoryStatusMap: Record<GroupBuyingCategory, GroupBuyingCategoryO
|
|||||||
[GroupBuyingCategory.Direct]: [
|
[GroupBuyingCategory.Direct]: [
|
||||||
GroupBuyingCategoryOrderStatus.ToUse,
|
GroupBuyingCategoryOrderStatus.ToUse,
|
||||||
GroupBuyingCategoryOrderStatus.Used,
|
GroupBuyingCategoryOrderStatus.Used,
|
||||||
GroupBuyingCategoryOrderStatus.Refunded
|
GroupBuyingCategoryOrderStatus.Refunded,
|
||||||
|
GroupBuyingCategoryOrderStatus.AfterSaleApply,
|
||||||
|
GroupBuyingCategoryOrderStatus.AfterSaleProcessing
|
||||||
],
|
],
|
||||||
[GroupBuyingCategory.Franchise]: [
|
[GroupBuyingCategory.Franchise]: [
|
||||||
GroupBuyingCategoryOrderStatus.ToUse,
|
GroupBuyingCategoryOrderStatus.ToUse,
|
||||||
GroupBuyingCategoryOrderStatus.Used,
|
GroupBuyingCategoryOrderStatus.Used,
|
||||||
GroupBuyingCategoryOrderStatus.Refunded
|
GroupBuyingCategoryOrderStatus.Refunded,
|
||||||
|
GroupBuyingCategoryOrderStatus.AfterSaleApply,
|
||||||
|
GroupBuyingCategoryOrderStatus.AfterSaleProcessing
|
||||||
],
|
],
|
||||||
[GroupBuyingCategory.DouYin]: [
|
[GroupBuyingCategory.DouYin]: [
|
||||||
GroupBuyingCategoryOrderStatus.ToUse,
|
GroupBuyingCategoryOrderStatus.ToUse,
|
||||||
GroupBuyingCategoryOrderStatus.Used,
|
GroupBuyingCategoryOrderStatus.Used,
|
||||||
GroupBuyingCategoryOrderStatus.Refunded
|
GroupBuyingCategoryOrderStatus.Refunded,
|
||||||
|
GroupBuyingCategoryOrderStatus.AfterSaleApply,
|
||||||
|
GroupBuyingCategoryOrderStatus.AfterSaleProcessing
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user