123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?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;//已完结
- 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 => '已完结',
- ];
- 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,
- ];
- }
|