ReturnExchangeOrder.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Model;
  3. class ReturnExchangeOrder extends UseScopeBaseModel
  4. {
  5. protected $table = "return_exchange_order"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const Order_type = 0; //合同
  10. const Order_type2 = 1; // 采购单
  11. public static $order_type_name = [
  12. self::Order_type => '合同',
  13. self::Order_type2 => '采购单',
  14. ];
  15. const Model_type_one = 1; // 退货单
  16. const Model_type_two = 2; // 换货单
  17. public static $model_type = [
  18. self::Model_type_one,
  19. self::Model_type_two,
  20. ];
  21. public static $model_type_name = [
  22. self::Model_type_one => '退货单',
  23. self::Model_type_two => '换货单',
  24. ];
  25. const State_zero = 0;//未确认
  26. const State_one = 1;//已确认
  27. public static $state = [
  28. self::State_zero => '未确认',
  29. self::State_one => '已确认',
  30. ];
  31. public static $prefix = [
  32. self::Model_type_one => 'TH',
  33. self::Model_type_two => 'HH',
  34. ];
  35. const range_function = 'returnExchangeOrderRange';
  36. }