第一次提交
This commit is contained in:
10
common/enum/order/DeliveryStatus.js
Executable file
10
common/enum/order/DeliveryStatus.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单发货状态
|
||||
* DeliveryStatusEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'NOT_DELIVERED', name: '未发货', value: 10 },
|
||||
{ key: 'DELIVERED', name: '已发货', value: 20 }
|
||||
])
|
||||
11
common/enum/order/DeliveryType.js
Executable file
11
common/enum/order/DeliveryType.js
Executable file
@@ -0,0 +1,11 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:配送方式
|
||||
* DeliveryTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'EXPRESS', name: '快递配送', value: 10 },
|
||||
{ key: 'EXTRACT', name: '上门自提', value: 20 },
|
||||
{ key: 'NOTHING', name: '无需配送', value: 30 }
|
||||
])
|
||||
11
common/enum/order/OrderSource.js
Executable file
11
common/enum/order/OrderSource.js
Executable file
@@ -0,0 +1,11 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单来源
|
||||
* OrderSourceEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'MASTER', name: '普通订单', value: 10 },
|
||||
{ key: 'BARGAIN', name: '砍价订单', value: 20 },
|
||||
{ key: 'SHARP', name: '秒杀订单', value: 30 }
|
||||
])
|
||||
12
common/enum/order/OrderStatus.js
Executable file
12
common/enum/order/OrderStatus.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单状态
|
||||
* OrderStatusEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'NORMAL', name: '进行中', value: 10 },
|
||||
{ key: 'CANCELLED', name: '已取消', value: 20 },
|
||||
{ key: 'APPLY_CANCEL', name: '待取消', value: 21 },
|
||||
{ key: 'COMPLETED', name: '已完成', value: 30 }
|
||||
])
|
||||
10
common/enum/order/OrderType.js
Executable file
10
common/enum/order/OrderType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单类型
|
||||
* OrderTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'PHYSICAL', name: '实物订单', value: 10 },
|
||||
{ key: 'VIRTUAL', name: '虚拟订单', value: 20 }
|
||||
])
|
||||
10
common/enum/order/PayStatus.js
Executable file
10
common/enum/order/PayStatus.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单支付状态
|
||||
* PayStatusEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'PENDING', name: '待支付', value: 10 },
|
||||
{ key: 'SUCCESS', name: '已支付', value: 20 }
|
||||
])
|
||||
10
common/enum/order/PayType.js
Executable file
10
common/enum/order/PayType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单支付方式
|
||||
* PayTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'BALANCE', name: '余额支付', value: 10 },
|
||||
{ key: 'WECHAT', name: '微信支付', value: 20 }
|
||||
])
|
||||
10
common/enum/order/ReceiptStatus.js
Executable file
10
common/enum/order/ReceiptStatus.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:订单收货状态
|
||||
* ReceiptStatusEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'NOT_RECEIVED', name: '未收货', value: 10 },
|
||||
{ key: 'RECEIVED', name: '已收货', value: 20 }
|
||||
])
|
||||
11
common/enum/order/delivery/DeliveryMethod.js
Executable file
11
common/enum/order/delivery/DeliveryMethod.js
Executable file
@@ -0,0 +1,11 @@
|
||||
import Enum from '../../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:发货方式
|
||||
* DeliveryMethodEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'MANUAL', name: '手动发货', value: 10 },
|
||||
{ key: 'UNWANTED', name: '无需物流', value: 20 },
|
||||
{ key: 'EORDER', name: '电子面单', value: 30 }
|
||||
])
|
||||
3
common/enum/order/delivery/index.js
Executable file
3
common/enum/order/delivery/index.js
Executable file
@@ -0,0 +1,3 @@
|
||||
import DeliveryMethodEnum from './DeliveryMethod'
|
||||
|
||||
export { DeliveryMethodEnum }
|
||||
17
common/enum/order/index.js
Executable file
17
common/enum/order/index.js
Executable file
@@ -0,0 +1,17 @@
|
||||
import DeliveryStatusEnum from './DeliveryStatus'
|
||||
import DeliveryTypeEnum from './DeliveryType'
|
||||
import OrderSourceEnum from './OrderSource'
|
||||
import OrderStatusEnum from './OrderStatus'
|
||||
import PayStatusEnum from './PayStatus'
|
||||
import ReceiptStatusEnum from './ReceiptStatus'
|
||||
import OrderTypeEnum from './OrderType'
|
||||
|
||||
export {
|
||||
DeliveryStatusEnum,
|
||||
DeliveryTypeEnum,
|
||||
OrderSourceEnum,
|
||||
OrderStatusEnum,
|
||||
PayStatusEnum,
|
||||
ReceiptStatusEnum,
|
||||
OrderTypeEnum
|
||||
}
|
||||
11
common/enum/order/refund/AuditStatus.js
Executable file
11
common/enum/order/refund/AuditStatus.js
Executable file
@@ -0,0 +1,11 @@
|
||||
import Enum from '../../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:商家审核状态
|
||||
* AuditStatusEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'WAIT', name: '待审核', value: 0 },
|
||||
{ key: 'REVIEWED', name: '已同意', value: 10 },
|
||||
{ key: 'REJECTED', name: '已拒绝', value: 20 }
|
||||
])
|
||||
12
common/enum/order/refund/RefundStatus.js
Executable file
12
common/enum/order/refund/RefundStatus.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import Enum from '../../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:售后单状态
|
||||
* RefundStatusEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'NORMAL', name: '进行中', value: 0 },
|
||||
{ key: 'REJECTED', name: '已拒绝', value: 10 },
|
||||
{ key: 'COMPLETED', name: '已完成', value: 20 },
|
||||
{ key: 'CANCELLED', name: '已取消', value: 30 }
|
||||
])
|
||||
10
common/enum/order/refund/RefundType.js
Executable file
10
common/enum/order/refund/RefundType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:售后类型
|
||||
* RefundTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'RETURN', name: '退货退款', value: 10 },
|
||||
{ key: 'EXCHANGE', name: '换货', value: 20 }
|
||||
])
|
||||
9
common/enum/order/refund/index.js
Executable file
9
common/enum/order/refund/index.js
Executable file
@@ -0,0 +1,9 @@
|
||||
import AuditStatusEnum from './AuditStatus'
|
||||
import RefundStatusEnum from './RefundStatus'
|
||||
import RefundTypeEnum from './RefundType'
|
||||
|
||||
export {
|
||||
AuditStatusEnum,
|
||||
RefundStatusEnum,
|
||||
RefundTypeEnum
|
||||
}
|
||||
Reference in New Issue
Block a user