'require', 'supplier_id' => 'require', 'contract_id' => 'require', 'approve_id' => 'require', 'pay_date' => 'require', 'pay_type' => 'require', 'amount' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'supplier_id' => '供应商id', 'contract_id' => '合同id', 'pay_date' => '付款日期', 'pay_type' => '付款方式', 'amount' => '本次申请金额', ]; /** * @notes 添加场景 * @return FinancePaymentApplyValidate * @author likeadmin * @date 2023/12/15 13:47 */ public function sceneAdd() { return $this->only(['supplier_id','contract_id','pay_date','pay_type','amount']); } /** * @notes 编辑场景 * @return FinancePaymentApplyValidate * @author likeadmin * @date 2023/12/15 13:47 */ public function sceneEdit() { return $this->only(['id','supplier_id','contract_id','pay_date','pay_type','amount']); } /** * @notes 删除场景 * @return FinancePaymentApplyValidate * @author likeadmin * @date 2023/12/15 13:47 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return FinancePaymentApplyValidate * @author likeadmin * @date 2023/12/15 13:47 */ public function sceneDetail() { return $this->only(['id']); } }