'require', 'supplier_id' => 'require', 'contract_id' => 'require', 'refund_amount' => 'require', 'refund_date' => 'require', 'refund_type' => 'require', 'bank_account_id' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'supplier_id' => '供应商id', 'contract_id' => '合同id', 'refund_amount' => '退款金额', 'refund_date' => '退款日期', 'refund_type' => '退款方式', 'bank_account_id' => '收款账户id', ]; /** * @notes 添加场景 * @return FinanceRefundRecordValidate * @author likeadmin * @date 2023/12/15 14:41 */ public function sceneAdd() { return $this->only(['supplier_id','contract_id','refund_amount','refund_date','refund_type','bank_account_id']); } /** * @notes 编辑场景 * @return FinanceRefundRecordValidate * @author likeadmin * @date 2023/12/15 14:41 */ public function sceneEdit() { return $this->only(['id','supplier_id','contract_id','refund_amount','refund_date','refund_type','bank_account_id']); } /** * @notes 删除场景 * @return FinanceRefundRecordValidate * @author likeadmin * @date 2023/12/15 14:41 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return FinanceRefundRecordValidate * @author likeadmin * @date 2023/12/15 14:41 */ public function sceneDetail() { return $this->only(['id']); } }