更新投标决策

This commit is contained in:
yaooo 2023-12-11 10:57:05 +08:00
parent 6f074486ea
commit 5e99f5cef0
3 changed files with 13 additions and 9 deletions

View File

@ -38,7 +38,7 @@ class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchI
public function setSearch(): array
{
return [
'=' => ['project_id'],
'=' => ['project_id', 'bidding_project_fund_source', 'bid_type'],
];
}

View File

@ -42,16 +42,17 @@ class BidBiddingDecisionLogic extends BaseLogic
try {
BidBiddingDecision::create([
'project_id' => $params['project_id'],
'approve_id' => $params['approve_id'],
'project_estimation' => $params['project_estimation'],
'bidding_project_fund_source' => $params['bidding_project_fund_source'],
'bidding_time' => $params['bidding_time'],
'buy_bid_document_date' => $params['buy_bid_document_date'],
'bidding_time' => strtotime($params['bidding_time']),
'buy_bid_document_date' => strtotime($params['buy_bid_document_date']),
'bid_type' => $params['bid_type'],
'competitor' => $params['competitor'],
'is_margin' => $params['is_margin'],
'margin_amount' => $params['margin_amount'],
'bid_opening_date' => $params['bid_opening_date'],
'margin_amount_return_date' => $params['margin_amount_return_date'],
'bid_opening_date' => strtotime($params['bid_opening_date']),
'margin_amount_return_date' => strtotime($params['margin_amount_return_date']),
'is_internal_resources' => $params['is_internal_resources'],
'project_assurance' => $params['project_assurance'],
'bid_project_overview' => $params['bid_project_overview'],
@ -82,16 +83,17 @@ class BidBiddingDecisionLogic extends BaseLogic
try {
BidBiddingDecision::where('id', $params['id'])->update([
'project_id' => $params['project_id'],
'approve_id' => $params['approve_id'],
'project_estimation' => $params['project_estimation'],
'bidding_project_fund_source' => $params['bidding_project_fund_source'],
'bidding_time' => $params['bidding_time'],
'buy_bid_document_date' => $params['buy_bid_document_date'],
'bidding_time' => strtotime($params['bidding_time']),
'buy_bid_document_date' => strtotime($params['buy_bid_document_date']),
'bid_type' => $params['bid_type'],
'competitor' => $params['competitor'],
'is_margin' => $params['is_margin'],
'margin_amount' => $params['margin_amount'],
'bid_opening_date' => $params['bid_opening_date'],
'margin_amount_return_date' => $params['margin_amount_return_date'],
'bid_opening_date' => strtotime($params['bid_opening_date']),
'margin_amount_return_date' => strtotime($params['margin_amount_return_date']),
'is_internal_resources' => $params['is_internal_resources'],
'project_assurance' => $params['project_assurance'],
'bid_project_overview' => $params['bid_project_overview'],

View File

@ -32,6 +32,7 @@ class BidBiddingDecisionValidate extends BaseValidate
*/
protected $rule = [
'id' => 'require',
'project_estimation' => 'require',
];
@ -41,6 +42,7 @@ class BidBiddingDecisionValidate extends BaseValidate
*/
protected $field = [
'id' => 'id',
'project_estimation' => '项目估算',
];