|
@@ -16,13 +16,12 @@ use App\Traits\ServiceAppAop;
|
|
|
class RejectedService
|
|
class RejectedService
|
|
|
{
|
|
{
|
|
|
use ServiceAppAop;
|
|
use ServiceAppAop;
|
|
|
- protected $modelClass=Rejected::class;
|
|
|
|
|
/** @var CacheService $cacheService */
|
|
/** @var CacheService $cacheService */
|
|
|
private $cacheService;
|
|
private $cacheService;
|
|
|
function __construct(){
|
|
function __construct(){
|
|
|
$this->instant($this->cacheService,'CacheService');
|
|
$this->instant($this->cacheService,'CacheService');
|
|
|
}
|
|
}
|
|
|
- private function conditionQuery(array $param)
|
|
|
|
|
|
|
+ private function conditionQuery(array $param)
|
|
|
{
|
|
{
|
|
|
$user = Auth::user();
|
|
$user = Auth::user();
|
|
|
$rejectedBills = RejectedBill::query()->with('user','owner', 'logistic', 'items.quality','orderIssueRejectedBill:logistic_number_return')
|
|
$rejectedBills = RejectedBill::query()->with('user','owner', 'logistic', 'items.quality','orderIssueRejectedBill:logistic_number_return')
|
|
@@ -32,6 +31,7 @@ class RejectedService
|
|
|
'created_at_start' => ['alias' => 'created_at', 'startDate' => ' 00:00:00'],
|
|
'created_at_start' => ['alias' => 'created_at', 'startDate' => ' 00:00:00'],
|
|
|
'created_at_end' => ['alias' => 'created_at', 'endDate' => ' 23:59:59'],
|
|
'created_at_end' => ['alias' => 'created_at', 'endDate' => ' 23:59:59'],
|
|
|
'owner' => ['alias' => 'id_owner', 'multi' => ','],
|
|
'owner' => ['alias' => 'id_owner', 'multi' => ','],
|
|
|
|
|
+ 'owner_id' => ['alias' => 'id_owner', 'multi' => ','],
|
|
|
'order_number' => ['batch' => ''],
|
|
'order_number' => ['batch' => ''],
|
|
|
'remark' => ['batch' => '','timeLimit'=>15],
|
|
'remark' => ['batch' => '','timeLimit'=>15],
|
|
|
'logistic_number' => ['batch' => ''],
|
|
'logistic_number' => ['batch' => ''],
|
|
@@ -99,9 +99,7 @@ class RejectedService
|
|
|
}
|
|
}
|
|
|
unset($param['is_issue']);
|
|
unset($param['is_issue']);
|
|
|
}
|
|
}
|
|
|
- $rejectedBills = app(QueryService::class)->query($param, $rejectedBills, $columnQueryRules,"rejected_bills");
|
|
|
|
|
-
|
|
|
|
|
- return $rejectedBills;
|
|
|
|
|
|
|
+ return app(QueryService::class)->query($param, $rejectedBills, $columnQueryRules,"rejected_bills");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function paginate(Request $request)
|
|
public function paginate(Request $request)
|