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
e8e042b8
authored
Nov 20, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示
parent
1e42ae7e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
app/Admin/Controllers/DiagnosiController.php
+1
-0
app/Admin/Controllers/DrugController.php
+1
-0
app/Admin/Controllers/PatientController.php
+3
-4
app/Admin/Controllers/PharmacyDrugController.php
+1
-1
No files found.
app/Admin/Controllers/DiagnosiController.php
View file @
e8e042b8
...
@@ -34,6 +34,7 @@ protected function grid()
...
@@ -34,6 +34,7 @@ protected function grid()
$filter
->
like
(
'content'
)
->
width
(
3
);
$filter
->
like
(
'content'
)
->
width
(
3
);
});
});
$grid
->
setActionClass
(
Grid\Displayers\Actions
::
class
);
// 行按钮控制
// 行按钮控制
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
...
...
app/Admin/Controllers/DrugController.php
View file @
e8e042b8
...
@@ -68,6 +68,7 @@ protected function grid()
...
@@ -68,6 +68,7 @@ protected function grid()
$filter
->
like
(
'standard_code'
)
->
width
(
3
);
$filter
->
like
(
'standard_code'
)
->
width
(
3
);
});
});
$grid
->
setActionClass
(
Grid\Displayers\Actions
::
class
);
// 行按钮控制
// 行按钮控制
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
...
...
app/Admin/Controllers/PatientController.php
View file @
e8e042b8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
use
App\Admin\Repositories\PatientRepository
;
use
App\Admin\Repositories\PatientRepository
;
use
App\Models\PatientModel
;
use
App\Models\PatientModel
;
use
App\Models\PharmacyModel
;
use
App\Models\PharmacyModel
;
use
App\Models\User
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
...
@@ -54,7 +53,7 @@ protected function grid()
...
@@ -54,7 +53,7 @@ protected function grid()
});
});
// 行按钮控制
// 行按钮控制
//
$grid->disableCreateButton(); // 禁用创建按钮
$grid
->
disableCreateButton
();
// 禁用创建按钮
// $grid->disableEditButton(); // 禁用编辑按钮
// $grid->disableEditButton(); // 禁用编辑按钮
$grid
->
disableDeleteButton
();
// 禁用删除按钮
$grid
->
disableDeleteButton
();
// 禁用删除按钮
...
@@ -98,8 +97,8 @@ protected function form()
...
@@ -98,8 +97,8 @@ protected function form()
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
text
(
'name'
)
->
width
(
4
);
$form
->
text
(
'id_card'
)
->
width
(
4
);
$form
->
text
(
'id_card'
)
->
width
(
4
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
mobile
(
'mobile'
)
->
width
(
4
)
->
rules
(
'required|regex:/^1[3456789]\d{9}$/'
);
$form
->
select
(
'user_id'
)
->
options
(
User
::
all
()
->
pluck
(
'openid'
,
'id'
)
)
->
width
(
4
);
$form
->
display
(
'user_id'
)
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
width
(
4
);
$form
->
select
(
'pharmacy_id'
)
->
options
(
PharmacyModel
::
all
()
->
pluck
(
'name'
,
'id'
))
->
disable
()
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
app/Admin/Controllers/PharmacyDrugController.php
View file @
e8e042b8
...
@@ -38,7 +38,7 @@ protected function grid()
...
@@ -38,7 +38,7 @@ protected function grid()
// $grid->column('drug_id');
// $grid->column('drug_id');
$grid
->
column
(
'drug.name'
,
'药品名称'
);
$grid
->
column
(
'drug.name'
,
'药品名称'
);
$grid
->
column
(
'drug.code'
,
'简码'
);
$grid
->
column
(
'drug.code'
,
'简码'
);
$grid
->
column
(
'
drug.
unit'
,
'单位'
);
$grid
->
column
(
'unit'
,
'单位'
);
$grid
->
column
(
'drug.is_rx'
,
'处方药'
)
->
using
(
DrugModel
::
RX_MAP
);
$grid
->
column
(
'drug.is_rx'
,
'处方药'
)
->
using
(
DrugModel
::
RX_MAP
);
$grid
->
column
(
'drug.spec'
,
'规格'
);
$grid
->
column
(
'drug.spec'
,
'规格'
);
$grid
->
column
(
'drug.dosage_form'
,
'剂型'
);
$grid
->
column
(
'drug.dosage_form'
,
'剂型'
);
...
...
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