123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace app\common\Enum;
- class OrderGoodsEnum
- {
-
- // 发货状态
- const DELIVERY_STATUS_REFUSE = -1; // 已拒收
- const DELIVERY_STATUS_NOSEND = 0; // 未发货
- const DELIVERY_STATUS_SENDED = 1; // 已发货
- const DELIVERY_STATUS_GETED = 2; // 已收货
- const INSPECT_STATUS_NO = 0; // 未验货
- const INSPECT_STATUS_PASS = 1; // 验货通过
- const INSPECT_STATUS_FAIL = 2; // 验货不通过
-
- // 售后状态
- const AFTERSALE_STATUS_REFUSE = -1; // 拒绝
- const AFTERSALE_STATUS_NOAFTER = 0; // 未申请
- const AFTERSALE_STATUS_ING = 1; // 申请售后
- const AFTERSALE_STATUS_COMPLETED = 2; // 售后完成
- // 退款状态
- const REFUND_STATUS_NOREFUND = 0; // 退款状态 未申请
- const REFUND_STATUS_AGREE = 1; // 已同意
- const REFUND_STATUS_COMPLETED = 2; // 退款完成
- // 评价状态
- const COMMENT_STATUS_NO = 0; // 待评价
- const COMMENT_STATUS_OK = 1; // 已评价
- public static function getDeliveryStatusLabel($status)
- {
- return [
- self::DELIVERY_STATUS_REFUSE => '已拒收',
- self::DELIVERY_STATUS_NOSEND => '待发货',
- self::DELIVERY_STATUS_SENDED => '待收货',
- self::DELIVERY_STATUS_GETED => '已收货'
- ];
- }
- public static function getInspectStatusLabel($status)
- {
- return [
- self::INSPECT_STATUS_NO => '未验货',
- self::INSPECT_STATUS_PASS => '验货通过',
- self::INSPECT_STATUS_FAIL => '验货不通过'
- ];
- }
- public static function getAfterSaleStatusLabel($status)
- {
- return [
- self::AFTERSALE_STATUS_REFUSE => '拒绝',
- self::AFTERSALE_STATUS_NOAFTER => '未申请',
- self::AFTERSALE_STATUS_ING => '申请售后',
- self::AFTERSALE_STATUS_COMPLETED => '售后完成'
- ];
- }
- public static function getRefundStatusLabel($status)
- {
- return [
- self::REFUND_STATUS_NOREFUND => '未申请',
- self::REFUND_STATUS_AGREE => '已同意',
- self::REFUND_STATUS_COMPLETED => '退款完成'
- ];
- }
- public static function getCommentStatusLabel($status)
- {
- return [
- self::COMMENT_STATUS_NO => '待评价',
- self::COMMENT_STATUS_OK => '已评价'
- ];
- }
-
-
- }
|