Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9d38d42d
authored
Nov 25, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
药店端用法用量调整
parent
ad9cf8e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/Admin/Controllers/PharmacyDrugController.php
+7
-7
No files found.
app/Admin/Controllers/PharmacyDrugController.php
View file @
9d38d42d
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment