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
50a7d574
authored
Dec 23, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
药店端外部处方单展示
parent
dd2248f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
app/Admin/Controllers/PharmacyExternalPrescriptionController.php
+9
-5
No files found.
app/Admin/Controllers/PharmacyExternalPrescriptionController.php
View file @
50a7d574
...
...
@@ -71,17 +71,21 @@ protected function grid()
// $grid->column('created_at');
// $grid->column('updated_at')->sortable();
// 工具栏普通按钮
$grid
->
tools
(
function
(
$tools
)
{
$tools
->
append
(
new
ExternalPrescriptionImportAction
());
// 导入药品信息
});
//
$grid->tools(function ($tools) {
//
$tools->append(new ExternalPrescriptionImportAction()); // 导入药品信息
//
});
$grid
->
filter
(
function
(
Grid\Filter
$filter
)
{
//$filter->equal('id');
$filter
->
panel
();
// 更改为 panel 布局
$filter
->
expand
();
// 默认展开搜索框
$filter
->
equal
(
'external_prescription_id'
,
'580处方单编号'
)
->
width
(
3
);
$filter
->
equal
(
'pharmacy_id'
)
->
select
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
3
);
$filter
->
equal
(
'pharmacy_id'
,
'药店编号'
)
->
width
(
3
);
// $filter->equal('pharmacy_id')->select(PharmacyModel::all()->pluck('name', 'id'))->width(3);
// $filter->equal('pharmacy_id','药店编号')->width(3);
$filter
->
like
(
'patient_name'
,
'就诊人姓名'
)
->
width
(
3
);
$filter
->
like
(
'patient_mobile'
,
'就诊人手机号'
)
->
width
(
3
);
$filter
->
like
(
'doctor_name'
,
'接诊医生'
)
->
width
(
3
);
});
// 行按钮控制
...
...
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