ApplyOrder.php 836 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. public static $type_name = [
  20. self::type_one => '领料申请单',
  21. self::type_two => '完工入库申请单',
  22. self::type_three => '包装入库申请单',
  23. self::type_four => '包装领料申请单',
  24. ];
  25. const state_zero = 0;
  26. const state_one = 1;
  27. public static $state_name = [
  28. self::state_zero => '未审核',
  29. self::state_one => '已审核',
  30. ];
  31. }