ReturnExchangeOrder.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. const Model_type_three = 3; // 仅退款
  18. public static $model_type = [
  19. self::Model_type_one,
  20. self::Model_type_two,
  21. self::Model_type_three,
  22. ];
  23. public static $model_type_name = [
  24. self::Model_type_one => '退货单',
  25. self::Model_type_two => '换货单',
  26. self::Model_type_three => '仅退款',
  27. ];
  28. const State_minus_one = -1;//驳回
  29. const State_zero = 0;//未确认
  30. const State_one = 1;//待确认
  31. const State_two = 2;//已确认
  32. public static $state = [
  33. self::State_minus_one => '驳回',
  34. self::State_zero => '未提交',
  35. self::State_one => '待审核',
  36. self::State_two => '已审核',
  37. ];
  38. public static $prefix = [
  39. self::Model_type_one => 'TH',
  40. self::Model_type_two => 'HH',
  41. self::Model_type_three => 'TK',
  42. ];
  43. const range_function = 'returnExchangeOrderRange';
  44. const is_check_function = 'returnExchangeOrderCheck';
  45. }