'require', 'expense_id' => 'require', 'cost_subject_id' => 'require', 'amount' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'expense_id' => '报销id', 'cost_subject_id' => '费用科目id', 'amount' => '金额', ]; /** * @notes 添加场景 * @return ExpenseReimbursementDetailValidate * @author likeadmin * @date 2023/12/19 11:10 */ public function sceneAdd() { return $this->only(['expense_id', 'cost_subject_id', 'amount']); } /** * @notes 编辑场景 * @return ExpenseReimbursementDetailValidate * @author likeadmin * @date 2023/12/19 11:10 */ public function sceneEdit() { return $this->only(['id', 'expense_id', 'cost_subject_id', 'amount']); } /** * @notes 删除场景 * @return ExpenseReimbursementDetailValidate * @author likeadmin * @date 2023/12/19 11:10 */ public function sceneDelete() { return $this->only(['id'])->remove('id', 'checkData'); } /** * @notes 详情场景 * @return ExpenseReimbursementDetailValidate * @author likeadmin * @date 2023/12/19 11:10 */ public function sceneDetail() { return $this->only(['id']); } }