12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class PaymentReceipt extends UseScopeBaseModel
- {
- protected $table = "payment_receipt"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const State_minus_one = -1;//驳回
- const STATE_ZERO = 0;//未确认
- const STATE_ONE = 1;//待确认
- const STATE_TWO = 2;//已确认
- public static $name = [
- self::State_minus_one => '驳回',
- self::STATE_ZERO => '未核销',
- self::STATE_ONE => '待核销',
- self::STATE_TWO => '已核销',
- ];
- const type_one = 1; // 收款
- const type_two = 2; // 付款
- const type_three = 3; // 红冲
- const type_four = 4; // 坏账
- public static $model_type = [
- self::type_one => '收款',
- self::type_two => '付款',
- self::type_three => '红冲',
- self::type_four => '坏账',
- ];
- const data_type_one = 1; // 合同
- const data_type_two = 2; // 采购
- const data_type_three = 3; // 虚拟采购
- public static $data_type = [
- self::data_type_one => '合同',
- self::data_type_two => '采购',
- self::data_type_three => '虚拟采购',
- ];
- const prefix = "T9RMO.";
- const is_check_function = 'paymentReceiptCheck';
- public static $wait_check = [
- self::State_minus_one,
- self::STATE_ZERO,
- self::STATE_ONE
- ];
- }
|