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
ec8cbce2
authored
Dec 12, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志
parent
36644c66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
app/Admin/Renderable/DrugTable.php
+1
-1
app/Api/Controllers/PrescriptionController.php
+2
-0
No files found.
app/Admin/Renderable/DrugTable.php
View file @
ec8cbce2
...
...
@@ -44,7 +44,7 @@ public function grid(): Grid
});
// 行按钮控制
$grid
->
paginate
(
10
);
$grid
->
paginate
(
10
0
);
$grid
->
disableActions
();
});
}
...
...
app/Api/Controllers/PrescriptionController.php
View file @
ec8cbce2
...
...
@@ -152,6 +152,7 @@ public function create(Request $request)
// 问诊问题
$inquiry_info
=
[];
$is_abnormal
=
0
;
// 是否异常处方单,只有一个问题回答是就是异常
Log
::
info
(
'inquirys:'
.
json_encode
(
$inquirys
));
foreach
(
$inquirys
as
$inquiry
)
{
$inquiry
=
InquiryModel
::
find
(
$inquiry
[
'inquiry_id'
]);
$inquiry_info
[]
=
[
...
...
@@ -164,6 +165,7 @@ public function create(Request $request)
$is_abnormal
=
1
;
// 如果有一个answer是1,设置$is_abnormal为1
}
}
Log
::
info
(
'inquiry_info'
.
json_encode
(
$inquiry_info
));
$prescription
->
inquiry_info
=
$inquiry_info
;
// 用药信息
$drug_info
=
[];
...
...
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