ApplyOrder.php 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. const type_six = 6;
  21. public static $type_name = [
  22. self::type_one => '领料申请单',
  23. self::type_two => '完工入库申请单',
  24. self::type_three => '包装入库申请单',
  25. self::type_four => '包装领料申请单',
  26. self::type_five => '质检入库申请单',
  27. self::type_six => '半成品出库申请单',
  28. ];
  29. const state_zero = 0;
  30. const state_one = 1;
  31. public static $state_name = [
  32. self::state_zero => '未审核',
  33. self::state_one => '已审核',
  34. ];
  35. }