初始化项目
This commit is contained in:
75
app/Models/YiiModels/ProductOrderRefund.php
Normal file
75
app/Models/YiiModels/ProductOrderRefund.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\YiiModels;
|
||||
|
||||
use App\Models\Extend\SoftDeletesInt;
|
||||
|
||||
/**
|
||||
* App\Models\YiiModels\ProductOrderRefund
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $user_id 用户id
|
||||
* @property int $order_id 关联产品订单
|
||||
* @property string $reason
|
||||
* @property string|null $remark 备注
|
||||
* @property string|null $refund_images
|
||||
* @property int $refund_type 0仅退款 1退货退款
|
||||
* @property string $refund_no 退款单号
|
||||
* @property string $refund_price 金额
|
||||
* @property int $is_refund 0待退款 1已退款
|
||||
* @property int $refund_time
|
||||
* @property int $status 0退款申请中 1申请通过 2撤销申请
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
* @property int $is_deleted 1撤销申请
|
||||
* @property-read string $created_at_format 创建时间的格式化
|
||||
* @property-read string $status_string 状态名称
|
||||
* @property-read string $updated_at_format 更新时间的格式化
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\ProductOrderRefund newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\ProductOrderRefund newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\ProductOrderRefund query()
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class ProductOrderRefund extends YiiBaseModel
|
||||
{
|
||||
use SoftDeletesInt;
|
||||
|
||||
const DELETED_AT = 'is_deleted';
|
||||
|
||||
// 原因类型
|
||||
const REASON = [
|
||||
1 => '发错货',
|
||||
2 => '少发/漏发',
|
||||
3 => '拍错了',
|
||||
4 => '商品破损',
|
||||
5 => '不想要了',
|
||||
];
|
||||
|
||||
// 退款类型
|
||||
const REFUND_TYPE_REFUND_ONLY = 0;
|
||||
const REFUND_TYPE_RETURNS_REFUNDS = 1;
|
||||
const REFUND_TYPE = [
|
||||
self::REFUND_TYPE_REFUND_ONLY => '仅退款',
|
||||
self::REFUND_TYPE_RETURNS_REFUNDS => '退货退款',
|
||||
];
|
||||
|
||||
// 退款状态
|
||||
const IS_REFUND_FALSE = 0;
|
||||
const IS_REFUND_TRUE = 1;
|
||||
const IS_REFUND_FAIL = -1;
|
||||
const IS_REFUND = [
|
||||
self::IS_REFUND_FALSE => '待退款',
|
||||
self::IS_REFUND_TRUE => '已退款',
|
||||
self::IS_REFUND_FAIL => '退款失败',
|
||||
];
|
||||
|
||||
// 状态
|
||||
const STATUS_APPLY = 0;
|
||||
const STATUS_PASS = 1;
|
||||
const STATUS_REVOKE = 2;
|
||||
const STATUS = [
|
||||
self::STATUS_APPLY => '退款申请中',
|
||||
self::STATUS_PASS => '申请通过',
|
||||
self::STATUS_REVOKE => '撤销申请',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user