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
633314e4
authored
Nov 19, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常处方
parent
6a1f68ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
app/Admin/Controllers/PrescriptionController.php
+1
-0
database/migrations/2024_11_19_155001_add_is_abnormal_to_prescription_table.php
+28
-0
lang/zh_CN/prescription.php
+1
-0
No files found.
app/Admin/Controllers/PrescriptionController.php
View file @
633314e4
...
...
@@ -53,6 +53,7 @@ protected function grid()
// $grid->column('pharmacist_id');
// $grid->column('pharmacist_license_number');
$grid
->
column
(
'created_at'
);
$grid
->
column
(
'is_abnormal'
)
->
using
([
0
=>
'否'
,
1
=>
'是'
]);
// $grid->column('updated_at')->sortable();
$grid
->
filter
(
function
(
Grid\Filter
$filter
)
{
...
...
database/migrations/2024_11_19_155001_add_is_abnormal_to_prescription_table.php
0 → 100644
View file @
633314e4
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
return
new
class
extends
Migration
{
/**
* Run the migrations.
*/
public
function
up
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_abnormal'
)
->
default
(
0
)
->
comment
(
'是否异常处方[0=否,1=是]'
);
});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
lang/zh_CN/prescription.php
View file @
633314e4
...
...
@@ -30,6 +30,7 @@
'open_source'
=>
'开方来源'
,
'prescription_at'
=>
'开方时间'
,
'review_at'
=>
'审方时间'
,
'is_abnormal'
=>
'异常处方单'
,
],
'options'
=>
[
],
...
...
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