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
68926d81
authored
Dec 02, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加待录入状态
parent
9e4b5128
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/Api/Controllers/PrescriptionController.php
+1
-1
app/Models/PrescriptionModel.php
+2
-2
No files found.
app/Api/Controllers/PrescriptionController.php
View file @
68926d81
...
...
@@ -303,7 +303,7 @@ public function create(Request $request)
$prescription
->
review_at
=
$review_at
;
$prescription
->
is_abnormal
=
$is_abnormal
;
$prescription
->
open_source
=
$open_source
;
$prescription
->
status
=
PrescriptionModel
::
PRESCRIPTION_STATUS_
INIT
;
$prescription
->
status
=
PrescriptionModel
::
PRESCRIPTION_STATUS_
ENTERED
;
$prescription_number
=
0
;
if
(
$prescription
->
save
())
{
$prescription_number
=
$prescription
->
id
;
...
...
app/Models/PrescriptionModel.php
View file @
68926d81
...
...
@@ -22,7 +22,7 @@ class PrescriptionModel extends Model
];
// 审方状态[0=待开方,1=待审方,2=审方成功]
const
PRESCRIPTION_STATUS_
INIT
=
-
1
;
const
PRESCRIPTION_STATUS_
ENTERED
=
-
1
;
const
PRESCRIPTION_STATUS_PENDING
=
0
;
...
...
@@ -32,7 +32,7 @@ class PrescriptionModel extends Model
// 审方状态-文字映射
const
PRESCRIPTION_STATUS_MAP
=
[
self
::
PRESCRIPTION_STATUS_
INIT
=>
'未录入'
,
self
::
PRESCRIPTION_STATUS_
ENTERED
=>
'未录入'
,
self
::
PRESCRIPTION_STATUS_PENDING
=>
'待开方'
,
self
::
PRESCRIPTION_STATUS_REVIEWING
=>
'待审方'
,
self
::
PRESCRIPTION_STATUS_SUCCESS
=>
'审方成功'
,
...
...
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