更新投标决策
This commit is contained in:
parent
6f074486ea
commit
5e99f5cef0
@ -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'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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'],
|
||||
|
@ -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' => '项目估算',
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user