update
This commit is contained in:
parent
dca54364aa
commit
d334961cf5
@ -39,7 +39,9 @@ class ProjectAttendanceDetailLists extends BaseAdminDataLists implements ListsSe
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [];
|
||||
return [
|
||||
'=' => ['project_id']
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ class ProjectAttendanceRecordLists extends BaseAdminDataLists implements ListsSe
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['attendance_date'],
|
||||
'=' => ['attendance_date','project_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ class ProjectInsuranceManagementLists extends BaseAdminDataLists implements List
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['project_id'],
|
||||
'%like%' => ['type', 'insurance_no', 'insurance_company', 'invoice_no', 'handler'],
|
||||
];
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ class ProjectLaborContractLists extends BaseAdminDataLists implements ListsSearc
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['contract_status', 'contract_type', 'contract_title'],
|
||||
'=' => ['contract_status', 'project_id', 'contract_type', 'contract_title'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -61,8 +61,12 @@ class ProjectSalaryDetailLists extends BaseAdminDataLists implements ListsSearch
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
$prarms = $this->request->get(['payment_code','project_name','project_code']);
|
||||
$prarms = $this->request->get(['project_id','payment_code','project_name','project_code']);
|
||||
$where = [];
|
||||
if(isset($prarms['project_id']) && $prarms['project_id'] != ''){
|
||||
$salary_payment_ids = ProjectSalaryPayment::where('project_id',$prarms['project_id'])->column('id');
|
||||
$where[] = ['salary_payment_id','in',$salary_payment_ids];
|
||||
}
|
||||
if(isset($prarms['payment_code']) && $prarms['payment_code'] != ''){
|
||||
$salary_payment_ids = ProjectSalaryPayment::where('payment_code','like','%'.$prarms['payment_code'].'%')->column('id');
|
||||
$where[] = ['salary_payment_id','in',$salary_payment_ids];
|
||||
@ -120,8 +124,12 @@ class ProjectSalaryDetailLists extends BaseAdminDataLists implements ListsSearch
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
$prarms = $this->request->get(['payment_code','project_name','project_code']);
|
||||
$prarms = $this->request->get(['project_id','payment_code','project_name','project_code']);
|
||||
$where = [];
|
||||
if(isset($prarms['project_id']) && $prarms['project_id'] != ''){
|
||||
$salary_payment_ids = ProjectSalaryPayment::where('project_id',$prarms['project_id'])->column('id');
|
||||
$where[] = ['salary_payment_id','in',$salary_payment_ids];
|
||||
}
|
||||
if(isset($prarms['payment_code']) && $prarms['payment_code'] != ''){
|
||||
$salary_payment_ids = ProjectSalaryPayment::where('payment_code','like','%'.$prarms['payment_code'].'%')->column('id');
|
||||
$where[] = ['salary_payment_id','in',$salary_payment_ids];
|
||||
|
@ -40,7 +40,7 @@ class ProjectSalaryPaymentLists extends BaseAdminDataLists implements ListsSearc
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['payment_type', 'apply_date'],
|
||||
'=' => ['payment_type', 'apply_date','project_id'],
|
||||
'%like%' => ['payment_code'],
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user