Merge pull request 'fixed' (#127) from zhangwei into dev
Reviewed-on: #127
This commit is contained in:
commit
f6789a7dc0
@ -132,7 +132,7 @@ class BidDocumentExaminationLogic extends BaseLogic
|
||||
$data['bid_project_overview'] = $bid_decision['bid_project_overview'];
|
||||
$data['project_desc'] = $bid_decision['project_desc'];
|
||||
$data['annex'] = $bid_decision['annex'];
|
||||
$item['total_amount'] = BidDocumentExaminationDetail::where('bid_document_examination_id',$data['id'])->sum('sale_amount');
|
||||
$data['total_amount'] = BidDocumentExaminationDetail::where('bid_document_examination_id',$data['id'])->sum('sale_amount');
|
||||
return $data->toArray();
|
||||
}
|
||||
}
|
@ -32,19 +32,30 @@ class ContractNegotiationValidate extends BaseValidate
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'contract_id' => 'require',
|
||||
'approve_id' => 'require',
|
||||
'contract_id' => 'require|checkContract',
|
||||
'negotiation_name' => 'require',
|
||||
'negotiation_no' => 'require',
|
||||
'negotiation_amount' => 'require|float|gt:0',
|
||||
'negotiation_type' => 'require|checkNegotiationType',
|
||||
'labor_costs' => 'float|egt:0',
|
||||
'material_costs' => 'float|egt:0',
|
||||
'warranty_amount' => 'float|egt:0',
|
||||
'warranty_expire_date' => 'dateFormat:Y-m-d',
|
||||
'profit' => 'float|egt:0',
|
||||
'negotiation_quotation' => 'checkAnnex',
|
||||
'negotiation_basis' => 'checkAnnex'
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
protected $message = [
|
||||
'id' => 'require',
|
||||
'contract_id' => 'require|checkContract',
|
||||
'negotiation_name' => 'require',
|
||||
'negotiation_amount' => 'require|float|gt:0',
|
||||
'negotiation_type' => 'require|checkNegotiationType',
|
||||
'labor_costs' => 'float|egt:0',
|
||||
'material_costs' => 'float|egt:0',
|
||||
'warranty_amount' => 'float|egt:0',
|
||||
'warranty_expire_date' => 'dateFormat:Y-m-d',
|
||||
'profit' => 'float|egt:0',
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user