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
2e2bc270
authored
Nov 28, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据处方类型选择不同处方单背景
parent
43c89f11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
app/Admin/Controllers/PrescriptionPrintController.php
+6
-1
public/static/images/xiyao.jpg
+0
-0
public/static/images/zhongyao.jpg
+0
-0
No files found.
app/Admin/Controllers/PrescriptionPrintController.php
View file @
2e2bc270
...
@@ -78,7 +78,12 @@ public function search()
...
@@ -78,7 +78,12 @@ public function search()
// 创建处方图片
// 创建处方图片
// 处方背景图宽1653,高2339
// 处方背景图宽1653,高2339
$img
=
Image
::
read
(
public_path
(
'static/images/chufangdan.jpg'
));
$backgroudImg
=
public_path
(
'static/images/zhongyao.jpg'
);
if
(
$prescription
->
prescription_type
==
PRESCRIPTION_TYPE_WM
)
{
$backgroudImg
=
public_path
(
'static/images/xiyao.jpg'
);
}
$img
=
Image
::
read
(
$backgroudImg
);
$imageWidth
=
1653
;
$imageWidth
=
1653
;
$centerX
=
$imageWidth
/
2
;
// 手动调整 X 坐标以居中
$centerX
=
$imageWidth
/
2
;
// 手动调整 X 坐标以居中
...
...
public/static/images/xiyao.jpg
0 → 100644
View file @
2e2bc270
403 KB
public/static/images/zhongyao.jpg
0 → 100644
View file @
2e2bc270
384 KB
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