Record.php 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Record extends Model
  5. {
  6. protected $guarded = [];
  7. protected $table = "record";
  8. const CREATED_AT = 'crt_time';
  9. const UPDATED_AT = 'upd_time';
  10. protected $dateFormat = 'U';
  11. public static $job = "xky_u8";
  12. const type_one = 1;
  13. const type_two = 2;
  14. const type_three = 3;
  15. const type_four = 4;
  16. const type_five = 5;
  17. const type_name = [
  18. self::type_one => '采购订单',
  19. self::type_two => '采购请购单',
  20. self::type_three => '采购入库单',
  21. self::type_four => '存货档案',
  22. self::type_five => '供应商档案',
  23. ];
  24. const state_minus_one = -1;
  25. const state_zero = 0;
  26. const state_one = 1;
  27. const state_two = 2;
  28. const state_name = [
  29. self::state_minus_one => '未发起审批',
  30. self::state_zero => '待审核',
  31. self::state_one => '审核通过',
  32. self::state_two => '审核驳回|终止|删除',
  33. ];
  34. }