|
|
|
@ -96,17 +96,17 @@ class Order extends BaseModel |
|
|
|
|
|
|
|
public function agent() |
|
|
|
{ |
|
|
|
return $this->belongsTo(Agent::class); |
|
|
|
return $this->belongsTo(Agent::class)->withTrashed(); |
|
|
|
} |
|
|
|
|
|
|
|
public function supplier() |
|
|
|
{ |
|
|
|
return $this->belongsTo(Supplier::class); |
|
|
|
return $this->belongsTo(Supplier::class)->withTrashed(); |
|
|
|
} |
|
|
|
|
|
|
|
public function user() |
|
|
|
{ |
|
|
|
return $this->belongsTo(User::class); |
|
|
|
return $this->belongsTo(User::class)->withTrashed(); |
|
|
|
} |
|
|
|
|
|
|
|
public function agentProductItem() |
|
|
|
@ -121,7 +121,7 @@ class Order extends BaseModel |
|
|
|
|
|
|
|
public function guide() |
|
|
|
{ |
|
|
|
return $this->belongsTo(Guide::class); |
|
|
|
return $this->belongsTo(Guide::class)->withTrashed(); |
|
|
|
} |
|
|
|
|
|
|
|
//关联的计调云产品
|
|
|
|
|