|
@@ -25,6 +25,7 @@ use Yansongda\Supports\Arr;
|
|
|
* @property bool is_wait_audit
|
|
|
* @property bool has_money
|
|
|
* @property bool is_goods_back
|
|
|
+ * @property bool need_rec
|
|
|
* @property string audit_remark
|
|
|
* @property string order_no
|
|
|
* @property float amount_last
|
|
@@ -38,6 +39,7 @@ class Refund Extends Model
|
|
|
'timeline',
|
|
|
'is_goods_back',
|
|
|
'refund_status_text',
|
|
|
+ 'need_rec',
|
|
|
];
|
|
|
const REFUND_ING=100;
|
|
|
const REFUND_PASS=200;
|
|
@@ -402,6 +404,10 @@ class Refund Extends Model
|
|
|
public function getRefundStatusTextAttr($_,$model){
|
|
|
return Arr::get(self::getRefundStatus(),$model['refund_status']);
|
|
|
}
|
|
|
+ #是否可以已收货
|
|
|
+ public function getNeedRecAttr($_,$model){
|
|
|
+ return $this->is_goods_back && $this->user_send_time;
|
|
|
+ }
|
|
|
public function getTimelineAttr(){
|
|
|
$arr=[
|
|
|
[
|