This commit is contained in:
weiz 2024-01-25 10:54:01 +08:00
parent 48fd13c7b6
commit af3151a007

View File

@ -74,12 +74,13 @@ class BuildReportDetailLists extends BaseAdminDataLists implements ListsSearchIn
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
->select()->each(function($item){
$report = BuildReport::field('plan_id')->where('id',$item['report_id'])->findOrEmpty();
$report = BuildReport::field('plan_id,report_code')->where('id',$item['report_id'])->findOrEmpty();
$plan = BuildPlan::field('project_id,process_id,zy_code,price')->where('id',$report['plan_id'])->findOrEmpty();
$project = Project::field('name')->where('id',$plan['project_id'])->findOrEmpty();
$process = BuildProcessSettings::field('division_id,process_step_no,process_step')->where('id',$plan['process_id'])->findOrEmpty();
$division = BuildDivision::field('subentry_engineering')->where('id',$process['division_id'])->findOrEmpty();
$person = ProjectPersonnel::field('name,idcard,work_type')->where('id',$item['person_id'])->findOrEmpty();
$item['report_code'] = $report['report_code'];
$item['zy_code'] = $plan['zy_code'];
$item['project_name'] = $project['name'];
$item['subentry_engineering'] = $division['subentry_engineering'];