'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', 'negotiation_quotation' => 'checkAnnex', 'negotiation_basis' => 'checkAnnex' ]; 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', ]; /** * @notes 添加场景 * @return ContractNegotiationValidate * @author likeadmin * @date 2023/12/04 21:26 */ public function sceneAdd() { return $this->remove('id', true); } /** * @notes 编辑场景 * @return ContractNegotiationValidate * @author likeadmin * @date 2023/12/04 21:26 */ public function sceneEdit() { return $this->only(['id', 'contract_id', 'approve_id', 'negotiation_name', 'negotiation_no']); } /** * @notes 删除场景 * @return ContractNegotiationValidate * @author likeadmin * @date 2023/12/04 21:26 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return ContractNegotiationValidate * @author likeadmin * @date 2023/12/04 21:26 */ public function sceneDetail() { return $this->only(['id']); } }