ApplyOrder.php 913 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * 物料分类
  6. * Class Unit
  7. * @package App\Models
  8. */
  9. class ApplyOrder extends Model
  10. {
  11. protected $table = "apply_order"; //指定表
  12. const CREATED_AT = 'crt_time';
  13. const UPDATED_AT = 'upd_time';
  14. protected $dateFormat = 'U';
  15. const type_one = 1;
  16. const type_two = 2;
  17. const type_three = 3;
  18. const type_four = 4;
  19. const type_five = 5;
  20. public static $type_name = [
  21. self::type_one => '领料申请单',
  22. self::type_two => '完工入库申请单',
  23. self::type_three => '包装入库申请单',
  24. self::type_four => '包装领料申请单',
  25. self::type_five => '质检入库申请单',
  26. ];
  27. const state_zero = 0;
  28. const state_one = 1;
  29. public static $state_name = [
  30. self::state_zero => '未审核',
  31. self::state_one => '已审核',
  32. ];
  33. }