This commit is contained in:
weiz 2024-01-06 15:33:18 +08:00
parent 86374c721a
commit f754a65edb

View File

@ -75,11 +75,12 @@ class BidDocumentExaminationLists extends BaseAdminDataLists implements ListsSea
->field($field)->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
->select()->each(function($item){
$project = Project::field('custom_id,name')->where('id',$item['project_id'])->findOrEmpty();
$project = Project::field('custom_id,name,project_code')->where('id',$item['project_id'])->findOrEmpty();
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
$bid_buy_doc = BidBuyBiddingDocument::field('bid_decision_id,bid_document_no,invite_tenders_company_name,bid_company_name,buy_date,bid_address')->where('id',$item['buy_bidding_document_id'])->findOrEmpty();
$bid_decision = BidBiddingDecision::field('bidding_project_fund_source,bidding_time,bid_type,is_margin,margin_amount,bid_opening_date')->where('id',$bid_buy_doc['bid_decision_id'])->findOrEmpty();
$item['project_name'] = $project['name'];
$item['project_code'] = $project['project_code'];
$item['custom_name'] = $custom['name'];
$item['bid_document_no'] = $bid_buy_doc['bid_document_no'];
$item['invite_tenders_company_name'] = $bid_buy_doc['invite_tenders_company_name'];