'require', 'store_id' => 'require', 'order_id' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'store_id' => '所属商户', 'order_id' => '单据编号', ]; /** * @notes 添加场景 * @return PurchaseOrderValidate * @author admin * @date 2024/08/01 16:32 */ public function sceneAdd() { return $this->only(['store_id','order_id']); } /** * @notes 编辑场景 * @return PurchaseOrderValidate * @author admin * @date 2024/08/01 16:32 */ public function sceneEdit() { return $this->only(['id','store_id','order_id']); } /** * @notes 删除场景 * @return PurchaseOrderValidate * @author admin * @date 2024/08/01 16:32 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return PurchaseOrderValidate * @author admin * @date 2024/08/01 16:32 */ public function sceneDetail() { return $this->only(['id']); } }