Commit eb2c7c99 by lujunyi

药品详情

parent e0778d47
...@@ -63,19 +63,19 @@ protected function grid() ...@@ -63,19 +63,19 @@ protected function grid()
protected function detail($id) protected function detail($id)
{ {
return Show::make($id, new DrugRepository(), function (Show $show) { return Show::make($id, new DrugRepository(), function (Show $show) {
$show->field('id'); $show->field('id')->width(4);
$show->field('name'); $show->field('name')->width(4);
$show->field('code'); $show->field('code')->width(4);
$show->field('unit'); $show->field('unit')->width(4);
$show->field('spec'); $show->field('spec')->width(4);
$show->field('dosage_form'); $show->field('dosage_form')->width(4);
$show->field('factory'); $show->field('factory')->width(4);
$show->field('approval_no'); $show->field('approval_no')->width(4);
$show->field('limit_buy_7'); $show->field('limit_buy_7')->width(4);
$show->field('is_rx'); $show->field('is_rx')->using([0 => '否', 1 => '是'])->width(4);
$show->field('tag'); $show->field('tag')->width(4);
$show->field('created_at'); $show->field('created_at')->width(4);
$show->field('updated_at'); $show->field('updated_at')->width(4);
$show->panel()->tools(function ($tools) { $show->panel()->tools(function ($tools) {
$tools->disableDelete(); // 禁止删除按钮 $tools->disableDelete(); // 禁止删除按钮
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment