PaymentReceipt.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_ZERO = 0;//未确认
  11. const STATE_ONE = 1;//待确认
  12. const STATE_TWO = 2;//已确认
  13. public static $name = [
  14. self::STATE_ZERO => '未核销',
  15. self::STATE_ONE => '待核销',
  16. self::STATE_TWO => '已核销',
  17. ];
  18. const type_one = 1; // 收款
  19. const type_two = 2; // 付款
  20. const type_three = 3; // 红冲
  21. const type_four = 4; // 坏账
  22. public static $model_type = [
  23. self::type_one => '收款',
  24. self::type_two => '付款',
  25. self::type_three => '红冲',
  26. self::type_four => '坏账',
  27. ];
  28. const data_type_one = 1; // 合同
  29. const data_type_two = 2; // 采购
  30. public static $data_type = [
  31. self::data_type_one => '合同',
  32. self::data_type_two => '采购',
  33. ];
  34. const prefix = "T9RMO.";
  35. }