PaymentReceipt.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class PaymentReceipt extends UseScopeBaseModel
  5. {
  6. protected $table = "payment_receipt"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const State_minus_one = -1;//驳回
  11. const STATE_ZERO = 0;//未确认
  12. const STATE_ONE = 1;//待确认
  13. const STATE_TWO = 2;//已确认
  14. public static $name = [
  15. self::State_minus_one => '驳回',
  16. self::STATE_ZERO => '未核销',
  17. self::STATE_ONE => '待核销',
  18. self::STATE_TWO => '已核销',
  19. ];
  20. const type_one = 1; // 收款
  21. const type_two = 2; // 付款
  22. const type_three = 3; // 红冲
  23. const type_four = 4; // 坏账
  24. public static $model_type = [
  25. self::type_one => '收款',
  26. self::type_two => '付款',
  27. self::type_three => '红冲',
  28. self::type_four => '坏账',
  29. ];
  30. const data_type_one = 1; // 合同
  31. const data_type_two = 2; // 采购
  32. const data_type_three = 3; // 虚拟采购
  33. public static $data_type = [
  34. self::data_type_one => '合同',
  35. self::data_type_two => '采购',
  36. self::data_type_three => '虚拟采购',
  37. ];
  38. const prefix = "T9RMO.";
  39. const is_check_function = 'paymentReceiptCheck';
  40. public static $wait_check = [
  41. self::State_minus_one,
  42. self::STATE_ZERO,
  43. self::STATE_ONE
  44. ];
  45. }