| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?php
- namespace addons\Happiness\common\enums;
- use common\enums\AddonsEnum;
- /**
- * Class AddonsCouponEnum
- * @package addons\Coupon\common\enums
- */
- class HappinessEnum
- {
- const ADDONS_NAME = AddonsEnum::ADDONS_NAME_HAPPINESS;
-
- const STORE_GLOBAL_STATISTICS_YESTERDAY = 'happiness_store_global_statistics_yesterday';
- const STORE_REAL_PAY_AMOUNTS = 'happiness_store_real_pay_amounts';
- const STORE_NOT_SETTLE_AMOUNTS = 'happiness_store_not_settle_amounts';
- const STORE_SETTLE_AMOUNTS = 'happiness_store_settle_amounts';
- const STORE_PAY_ORDER_NUMBERS = 'happiness_store_pay_order_numbers';
- const STORE_PAY_PEOPLE_NUMBERS_SET = 'happiness_store_pay_people_numbers_set';
- const STORE_PAY_PEOPLE_NUMBERS = 'happiness_store_pay_people_numbers';
- const STORE_WAITING_AUDIT_STORE_NUMBERS = 'happiness_store_waiting_audit_store_numbers';
- const NOT_PAY = 0;
- const PAY = 1;
- const SHIPMENTS = 2;
- const SING = 3;
- const ACCOMPLISH = 4;
- const REPEAL = -4;
- const ALL = 999;
- // 自提状态
- const TAKE = 6;// 待自提
- const TAKE_FINISH = 7;// 自提成功
- const CHECK_ADOPT=1;//审核通过
- const CHECK_WAITING=0;//待审核
- const CHECK_FAILED=2;// 审核未通过
- const AGENT_PROVINCE=1;//省代
- const AGENT_CITY=2;//市代
- const AGENT_DISTRICT=3;//区代
- const MOVE_NO_AUDIT=0;
- const MOVE_AUDIT_SUCCESS=1;
- const MOVE_AUDIT_FAILED=2;
- public static function getMoveStatusMap(): array
- {
- return [
- self::MOVE_NO_AUDIT => '待调货',
- self::MOVE_AUDIT_SUCCESS => '已调货',
- self::MOVE_AUDIT_FAILED => '拒绝调货',
- ];
- }
- public static function getMap(): array
- {
- return [
- self::NOT_PAY => '待付款',
- self::PAY => '待配送', // 已付款
- self::SHIPMENTS => '已发货',
- self::SING => '已送达',
- self::ACCOMPLISH => '已完成',
- self::TAKE => '待自提',
- self::TAKE_FINISH => '自提成功',
- self::REPEAL => '已关闭',
- self::ALL => '全部',
- ];
- }
- public static function setpArrMap($order_status,$shipping_type_text,$shipping_type_fields = '')
- {
- switch ($order_status) {
- case self::REPEAL :
- $setpArr = [
- [
- 'title' => '买家下单',
- 'field' => 'created_at',
- ],
- [
- 'title' => '交易关闭',
- 'field' => 'close_time',
- ],
- ];
- break;
- default :
- $setpArr = [
- [
- 'title' => '买家下单',
- 'field' => 'created_at',
- ],
- [
- 'title' => '买家付款',
- 'field' => 'pay_time',
- ],
- [
- 'title' => '门店配送',
- 'field' => 'sign_time',
- ],
- [
- 'title' => '交易完成',
- 'field' => 'finish_time',
- ],
- ];
- }
- return $setpArr;
- }
- }
|