6
0
Fork 0
panliang 2023-02-25 17:55:46 +08:00
parent 73cea886e6
commit 2907416e8d
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace App\Admin\Actions\Store;
use Dcat\Admin\Show\AbstractTool;
use App\Models\Store\Desk;
class ShowOrderPrint extends AbstractTool
{
protected $title = '打印小票';
protected $style = 'btn btn-sm btn-warning mr-1';
public function handle()
{
$id = $this->getKey();
return $this->response()->success('操作成功');
}
public function confirm()
{
return ['是否确定?', '打印小票'];
}
public function allowed()
{
$model = $this->parent->model();
return $model->source_type == Desk::class;
}
}