Record.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. const type_for_model = [
  35. self::type_one => PoPomain::class,
  36. self::type_two => PuAppVouch::class,
  37. self::type_three => RdRecord01::class,
  38. // self::type_four => '存货档案',
  39. // self::type_five => '供应商档案',
  40. ];
  41. }