|
@@ -28,6 +28,7 @@ use Yansongda\Supports\Arr;
|
|
|
* @property bool need_rec
|
|
|
* @property bool need_tk
|
|
|
* @property bool need_complete
|
|
|
+ * @property bool can_view_logistics
|
|
|
* @property string audit_remark
|
|
|
* @property string order_no
|
|
|
* @property string fix_order_no
|
|
@@ -51,6 +52,7 @@ class Refund Extends Model
|
|
|
'refund_type_text',
|
|
|
'refund_by_text',
|
|
|
'reason_text',
|
|
|
+ 'can_view_logistics',
|
|
|
];
|
|
|
const REFUND_ING=100;
|
|
|
const REFUND_PASS=200;
|
|
@@ -423,6 +425,10 @@ class Refund Extends Model
|
|
|
public function gethasMoneyAttr($_,$model){
|
|
|
return $this->isRefundMoney();
|
|
|
}
|
|
|
+ #是否可查看寄回物流
|
|
|
+ public function getCanViewLogisticsAttr($_,$model){
|
|
|
+ return $model['user_send_time'];
|
|
|
+ }
|
|
|
#是否是需要寄回
|
|
|
public function getIsGoodsBackAttr($_,$model){
|
|
|
return $this->refund_status==self::REFUND_PASS && in_array($this->refund_type,self::getRefundTypeGoods());
|