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['bid_project_overview'] = $bid_decision['bid_project_overview'];
|
||||||
$data['project_desc'] = $bid_decision['project_desc'];
|
$data['project_desc'] = $bid_decision['project_desc'];
|
||||||
$data['annex'] = $bid_decision['annex'];
|
$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();
|
return $data->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -32,19 +32,30 @@ class ContractNegotiationValidate extends BaseValidate
|
|||||||
*/
|
*/
|
||||||
protected $rule = [
|
protected $rule = [
|
||||||
'id' => 'require',
|
'id' => 'require',
|
||||||
'contract_id' => 'require',
|
'contract_id' => 'require|checkContract',
|
||||||
'approve_id' => 'require',
|
|
||||||
'negotiation_name' => 'require',
|
'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'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $message = [
|
||||||
/**
|
'id' => 'require',
|
||||||
* 参数描述
|
'contract_id' => 'require|checkContract',
|
||||||
* @var string[]
|
'negotiation_name' => 'require',
|
||||||
*/
|
'negotiation_amount' => 'require|float|gt:0',
|
||||||
protected $field = [
|
'negotiation_type' => 'require|checkNegotiationType',
|
||||||
'id' => 'id',
|
'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