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
d831c407
authored
Dec 01, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
驳回状态
parent
a5717470
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
0 deletions
+42
-0
app/Admin/Controllers/PrescriptionController.php
+1
-0
app/Models/PrescriptionModel.php
+11
-0
database/migrations/2024_12_01_155631_add_reject_status_to_prescription_table.php
+29
-0
lang/zh_CN/prescription.php
+1
-0
No files found.
app/Admin/Controllers/PrescriptionController.php
View file @
d831c407
...
...
@@ -32,6 +32,7 @@ protected function grid()
$grid
->
column
(
'id'
,
'处方单编号'
)
->
sortable
();
$grid
->
column
(
'status'
)
->
using
(
PrescriptionModel
::
PRESCRIPTION_STATUS_MAP
)
->
badge
(
PrescriptionModel
::
PRESCRIPTION_STATUS_MAP_COLOR
);
$grid
->
column
(
'prescription_type'
)
->
using
(
PrescriptionModel
::
PRESCRIPTION_TYPE_MAP
);
$grid
->
column
(
'reject_status'
)
->
using
(
PrescriptionModel
::
REJECT_STSATUS_MAP
);
$grid
->
column
(
'patient_name'
);
$grid
->
column
(
'patient_age'
);
$grid
->
column
(
'patient_gender'
)
->
using
(
PatientModel
::
SEX_MAP
);
...
...
app/Models/PrescriptionModel.php
View file @
d831c407
...
...
@@ -98,6 +98,17 @@ class PrescriptionModel extends Model
self
::
PRESCRIPTION_TYPE_TCM
=>
'中药'
,
];
// 驳回处方单状态[0=否,1=是]
const
REJECT_STSATUS_FALSE
=
0
;
const
REJECT_STSATUS_TRUE
=
1
;
// 驳回处方单状态-文字映射
const
REJECT_STSATUS_MAP
=
[
self
::
REJECT_STSATUS_FALSE
=>
'否'
,
self
::
REJECT_STSATUS_TRUE
=>
'是'
,
];
public
function
getDoctorSignedPicAttribute
(
$value
)
{
if
(
Str
::
contains
(
$value
,
'//'
)
||
!
$value
)
{
...
...
database/migrations/2024_12_01_155631_add_reject_status_to_prescription_table.php
0 → 100644
View file @
d831c407
<?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
(
'reject_status'
)
->
default
(
0
)
->
comment
(
'驳回处方单[0=否,1=是]'
);
$table
->
string
(
'reject_reason'
)
->
default
(
''
)
->
comment
(
'驳回原因'
);
});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
lang/zh_CN/prescription.php
View file @
d831c407
...
...
@@ -38,6 +38,7 @@
'review_at'
=>
'审方时间'
,
'is_abnormal'
=>
'异常处方单'
,
'prescription_type'
=>
'处方类型'
,
'reject_status'
=>
'驳回状态'
,
],
'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