Commit 9d38d42d by 赵增煜

药店端用法用量调整

parent ad9cf8e1
...@@ -46,8 +46,8 @@ protected function grid() ...@@ -46,8 +46,8 @@ protected function grid()
$grid->column('drug.approval_no', '批准文号'); $grid->column('drug.approval_no', '批准文号');
$grid->column('drug.limit_buy_7', '7天限购'); $grid->column('drug.limit_buy_7', '7天限购');
$grid->column('drug.standard_code', '本位码'); $grid->column('drug.standard_code', '本位码');
$grid->column('dosage.dosage_desc', '用法用量'); // $grid->column('dosage.dosage_desc', '用法用量');
$grid->column('batch_no'); // $grid->column('batch_no');
$grid->column('created_at'); $grid->column('created_at');
// 工具栏按钮 // 工具栏按钮
...@@ -88,8 +88,8 @@ protected function detail($id) ...@@ -88,8 +88,8 @@ protected function detail($id)
$show->field('id')->width(4); $show->field('id')->width(4);
$show->field('pharmacy.name', '药店')->width(4); $show->field('pharmacy.name', '药店')->width(4);
$show->field('drug.name', '药品名称')->width(4); $show->field('drug.name', '药品名称')->width(4);
$show->field('dosage.dosage_desc', '用法用量')->width(4); // $show->field('dosage.dosage_desc', '用法用量')->width(4);
$show->field('batch_no')->width(4); // $show->field('batch_no')->width(4);
$show->field('created_at')->width(4); $show->field('created_at')->width(4);
$show->field('updated_at')->width(4); $show->field('updated_at')->width(4);
...@@ -119,9 +119,9 @@ protected function form() ...@@ -119,9 +119,9 @@ protected function form()
$form->text('pharmacy.name', '药店')->disable()->width(4); $form->text('pharmacy.name', '药店')->disable()->width(4);
$form->text('drug.name', '药品名称')->disable()->width(4); $form->text('drug.name', '药品名称')->disable()->width(4);
$form->select('unit')->options(DrugUnitModel::all()->pluck('name', 'name'))->width(4)->required(); $form->select('unit')->options(DrugUnitModel::all()->pluck('name', 'name'))->width(4)->required();
$disageList = DosageModel::pluck('dosage_desc', 'id'); // $disageList = DosageModel::pluck('dosage_desc', 'id');
$form->select('dosage_id', '用法用量')->options($disageList)->width(4)->required(); // $form->select('dosage_id', '用法用量')->options($disageList)->width(4)->required();
$form->text('batch_no')->width(4)->required()->maxLength(64, '最多输入64个字符'); // $form->text('batch_no')->width(4)->required()->maxLength(64, '最多输入64个字符');
$form->display('created_at')->width(4); $form->display('created_at')->width(4);
$form->display('updated_at')->width(4); $form->display('updated_at')->width(4);
......
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