12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace App\Model;
- class Construction extends UseScopeBaseModel
- {
- protected $table = "construction"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const Model_type_one = 1; // 到店安装
- const Model_type_two = 2; // 带货安装
- const Model_type_three = 3; // 带货安装
- public static $model_type = [
- self::Model_type_one,
- self::Model_type_two,
- self::Model_type_three,
- ];
- public static $model_type_title = [
- self::Model_type_one => '到店安装',
- self::Model_type_two => '带货安装(包安装)',
- self::Model_type_three => '带货安装(不包安装)',
- ];
- public static $prefix = [
- self::Model_type_one => 'WO0.',
- self::Model_type_two => 'T9SH.',
- self::Model_type_three => 'T9SH.',
- ];
- const State_minus_one = -1;//驳回
- const STATE_ZERO = 0;//未审核
- const STATE_ONE = 1;//待审核
- const STATE_DIFF_TWO = -100;//已预约施工
- const STATE_TWO = 2;//已审核
- const STATE_THREE = 3;//待确认
- const STATE_FOUR = 4;//待验车
- const STATE_FIVE = 5;//待交车
- const STATE_SIX = 6;//已交车
- public static $name = [
- self::State_minus_one => '驳回',
- self::STATE_ZERO => '未审核',
- self::STATE_ONE => '待审核',
- self::STATE_DIFF_TWO => '已预约施工',
- self::STATE_TWO => '施工中',
- self::STATE_THREE => '待确认',
- self::STATE_FOUR => '验车',
- self::STATE_FIVE => '交车',
- self::STATE_SIX => '已交车',
- ];
- public static $pq_name = [
- self::STATE_ZERO => '未排期',
- self::STATE_ONE => '已排期',
- ];
- const range_function = 'constructionRange';
- const is_check_function = 'constructionCheck';
- public static $wait_check = [
- self::State_minus_one,
- self::STATE_ZERO,
- self::STATE_ONE,
- ];
- }
|