6
0
Fork 0
jiqu-library-server/app/Enums/DealerOrderStatus.php

27 lines
831 B
PHP

<?php
namespace App\Enums;
enum DealerOrderStatus: int {
case Pending = 0; // 待确认
case Paying = 1; // 已确认 待付款
case Confirming = 2; // 已付款 待收款
case Paid = 3; // 已收款 待发货
case Shipped = 4; // 已发货 待收货
case Completed = 9; // 已完成
case Cancelled = 10; // 已取消
public static function texts(): array
{
return [
static::Pending->value => '待确认',
static::Paying->value => '待付款',
static::Confirming->value => '待收款',
static::Paid->value => '待发货',
static::Shipped->value => '待收货',
static::Completed->value => '已完成',
static::Cancelled->value => '已取消',
];
}
}