Construction.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. const Model_type_three = 3; // 带货安装
  12. public static $model_type = [
  13. self::Model_type_one,
  14. self::Model_type_two,
  15. self::Model_type_three,
  16. ];
  17. public static $model_type_title = [
  18. self::Model_type_one => '到店安装',
  19. self::Model_type_two => '带货安装(包安装)',
  20. self::Model_type_three => '带货安装(不包安装)',
  21. ];
  22. public static $prefix = [
  23. self::Model_type_one => 'WO0.',
  24. self::Model_type_two => 'T9SH.',
  25. self::Model_type_three => 'T9SH.',
  26. ];
  27. const State_minus_one = -1;//驳回
  28. const STATE_ZERO = 0;//未审核
  29. const STATE_ONE = 1;//待审核
  30. const STATE_DIFF_TWO = -100;//已预约施工
  31. const STATE_TWO = 2;//已审核
  32. const STATE_THREE = 3;//待确认
  33. const STATE_FOUR = 4;//已完结
  34. public static $name = [
  35. self::State_minus_one => '驳回',
  36. self::STATE_ZERO => '未审核',
  37. self::STATE_ONE => '待审核',
  38. self::STATE_DIFF_TWO => '已预约施工',
  39. self::STATE_TWO => '施工中',
  40. self::STATE_THREE => '待完结审核',
  41. self::STATE_FOUR => '已完结',
  42. ];
  43. public static $pq_name = [
  44. self::STATE_ZERO => '未排期',
  45. self::STATE_ONE => '已排期',
  46. ];
  47. const range_function = 'constructionRange';
  48. const is_check_function = 'constructionCheck';
  49. public static $wait_check = [
  50. self::State_minus_one,
  51. self::STATE_ZERO,
  52. self::STATE_ONE,
  53. ];
  54. }