This commit is contained in:
weiz 2024-01-29 17:23:57 +08:00
parent dca54364aa
commit d334961cf5
6 changed files with 17 additions and 6 deletions

View File

@ -39,7 +39,9 @@ class ProjectAttendanceDetailLists extends BaseAdminDataLists implements ListsSe
*/
public function setSearch(): array
{
return [];
return [
'=' => ['project_id']
];
}

View File

@ -40,7 +40,7 @@ class ProjectAttendanceRecordLists extends BaseAdminDataLists implements ListsSe
public function setSearch(): array
{
return [
'=' => ['attendance_date'],
'=' => ['attendance_date','project_id'],
];
}

View File

@ -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'],
];
}

View File

@ -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'],
];
}

View File

@ -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];

View File

@ -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'],
];
}