'require', 'merchant' => 'require', 'uid' => 'require', 'time' => 'require', 'number' => 'require', 'total' => 'require', 'actual' => 'require', 'money' => 'require', 'pay_type' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'merchant' => '所属商户', 'uid' => '客户ID', 'time' => '单据时间', 'number' => '单据编号', 'total' => '单据金额', 'actual' => '实际金额', 'money' => '实收金额', 'pay_type' => '支付方式 0余额 1微信 2小程序 3 h5 4支付宝 5 支付宝扫码 6 微信扫码 8先货后款 10对公转账', ]; /** * @notes 添加场景 * @return CashierclassValidate * @author likeadmin * @date 2024/04/24 09:57 */ public function sceneAdd() { return $this->only(['merchant','number','total','actual','money','pay_type']); } /** * @notes 编辑场景 * @return CashierclassValidate * @author likeadmin * @date 2024/04/24 09:57 */ public function sceneEdit() { return $this->only(['id','merchant','number','total','actual','money','pay_type']); } public function sceneAuditing() { return $this->only(['id']); } /** * @notes 删除场景 * @return CashierclassValidate * @author likeadmin * @date 2024/04/24 09:57 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return CashierclassValidate * @author likeadmin * @date 2024/04/24 09:57 */ public function sceneDetail() { return $this->only(['id']); } }