update
This commit is contained in:
parent
8cee7fa21a
commit
7f429adeb8
@ -78,13 +78,18 @@ class BidBuyBiddingDocumentLists extends BaseAdminDataLists implements ListsSear
|
||||
->select()->each(function($item){
|
||||
$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_decision = BidBiddingDecision::field('code')->where('id',$item['bid_decision_id'])->findOrEmpty();
|
||||
$bid_decision = BidBiddingDecision::field('code,bidding_project_fund_source,bidding_time,bid_type,is_margin,margin_amount')->where('id',$item['bid_decision_id'])->findOrEmpty();
|
||||
$admin = Admin::field('name')->where('id',$item['buyer'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['custom_name'] = $custom['name'];
|
||||
$item['bid_decision_code'] = $bid_decision['code'];
|
||||
$item['buyer'] = $admin['name'];
|
||||
$item['bidding_time'] = $bid_decision['bidding_time'];
|
||||
$item['bidding_project_fund_source'] = $bid_decision->bidding_project_fund_source_text;
|
||||
$item['bid_type'] = $bid_decision->bid_type_text;
|
||||
$item['is_margin'] = $bid_decision->is_margin_text;
|
||||
$item['margin_amount'] = $bid_decision['margin_amount'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user