This commit is contained in:
weiz 2024-01-30 11:45:19 +08:00
parent d8f3970967
commit ca33c29c43
2 changed files with 2 additions and 5 deletions

View File

@ -75,7 +75,7 @@ class BidBuyBiddingDocumentLists extends BaseAdminDataLists implements ListsSear
$project_ids = Project::where('custom_id',$params['custom_id'])->column('id');
$where[] = ['project_id','in',$project_ids];
}
return BidBuyBiddingDocument::field('id,project_id,bid_decision_id,bid_document_no,invite_tenders_company_name,bid_company_name,buyer,amount,buy_date,bid_address')
return BidBuyBiddingDocument::field('id,project_id,bid_decision_id,bid_document_no,invite_tenders_company_name,bid_company_name,buyer,amount,buy_date')
->where($this->searchWhere)->where($where)
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
@ -153,7 +153,6 @@ class BidBuyBiddingDocumentLists extends BaseAdminDataLists implements ListsSear
'bidding_time' => '投标时间',
'buy_date' => '购买标书时间',
'bid_type' => '招标方式',
'bid_address' => '投标地址',
];
}
}

View File

@ -53,7 +53,6 @@ class BidBuyBiddingDocumentLogic extends BaseLogic
'buyer' => $params['buyer'] ?? 0,
'amount' => $params['amount'] ?? 0,
'buy_date' => !empty($params['buy_date']) ? strtotime($params['buy_date']) : 0,
'bid_address' => $params['bid_address'] ?? '',
]);
Db::commit();
return true;
@ -84,7 +83,6 @@ class BidBuyBiddingDocumentLogic extends BaseLogic
'buyer' => $params['buyer'] ?? 0,
'amount' => $params['amount'] ?? 0,
'buy_date' => !empty($params['buy_date']) ? strtotime($params['buy_date']) : 0,
'bid_address' => $params['bid_address'] ?? '',
'update_time' => time(),
]);
Db::commit();
@ -119,7 +117,7 @@ class BidBuyBiddingDocumentLogic extends BaseLogic
*/
public static function detail($params): array
{
$data = BidBuyBiddingDocument::field('id,project_id,bid_decision_id,bid_document_no,invite_tenders_company_name,bid_company_name,buyer,amount,buy_date,bid_address')->findOrEmpty($params['id']);
$data = BidBuyBiddingDocument::field('id,project_id,bid_decision_id,bid_document_no,invite_tenders_company_name,bid_company_name,buyer,amount,buy_date')->findOrEmpty($params['id']);
$project = Project::field('custom_id,name,project_code')->where('id',$data['project_id'])->findOrEmpty();
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
$bid_decision = BidBiddingDecision::field('code,bidding_project_fund_source,bidding_time,bid_type,is_margin,margin_amount,bid_opening_date,margin_amount_return_date,bid_project_overview,project_desc,annex')->where('id',$data['bid_decision_id'])->findOrEmpty();