From 2907416e8da205be79104825393b4fad06ca3c4c Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Sat, 25 Feb 2023 17:55:46 +0800 Subject: [PATCH] 1 --- app/Admin/Actions/Store/ShowOrderPrint.php | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/Admin/Actions/Store/ShowOrderPrint.php diff --git a/app/Admin/Actions/Store/ShowOrderPrint.php b/app/Admin/Actions/Store/ShowOrderPrint.php new file mode 100644 index 00000000..44ed1dfa --- /dev/null +++ b/app/Admin/Actions/Store/ShowOrderPrint.php @@ -0,0 +1,31 @@ +getKey(); + + return $this->response()->success('操作成功'); + } + + public function confirm() + { + return ['是否确定?', '打印小票']; + } + + public function allowed() + { + $model = $this->parent->model(); + return $model->source_type == Desk::class; + } +}