Construction.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Model;
  3. class Construction extends UseScopeBaseModel
  4. {
  5. protected $table = "construction"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const Model_type_one = 1; // 到店安装
  10. const Model_type_two = 2; // 仅施工
  11. public static $model_type = [
  12. self::Model_type_one,
  13. self::Model_type_two,
  14. ];
  15. public static $model_type_title = [
  16. self::Model_type_one => '到店安装',
  17. self::Model_type_two => '仅施工',
  18. ];
  19. public static $prefix = [
  20. self::Model_type_one => 'WO0.',
  21. self::Model_type_two => 'T9SH.',
  22. ];
  23. const State_minus_one = -1;//驳回
  24. const STATE_ZERO = 0;//未审核
  25. const STATE_ONE = 1;//待审核
  26. const STATE_DIFF_TWO = -100;//已预约施工
  27. const STATE_TWO = 2;//已审核
  28. const STATE_THREE = 3;//待确认
  29. const STATE_FOUR = 4;//已完结
  30. public static $name = [
  31. self::State_minus_one => '驳回',
  32. self::STATE_ZERO => '未审核',
  33. self::STATE_ONE => '待审核',
  34. self::STATE_DIFF_TWO => '已预约施工',
  35. self::STATE_TWO => '施工中',
  36. self::STATE_THREE => '待完结审核',
  37. self::STATE_FOUR => '已完结',
  38. ];
  39. public static $pq_name = [
  40. self::STATE_ZERO => '未排期',
  41. self::STATE_ONE => '已排期',
  42. ];
  43. const range_function = 'constructionRange';
  44. const is_check_function = 'constructionCheck';
  45. }