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
c25ad1ec
authored
Nov 26, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印处方
parent
fc67c87d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/Admin/Controllers/PrescriptionPrintController.php
+7
-7
No files found.
app/Admin/Controllers/PrescriptionPrintController.php
View file @
c25ad1ec
...
@@ -93,33 +93,33 @@ public function search()
...
@@ -93,33 +93,33 @@ public function search()
// 处方单编号
// 处方单编号
$img
->
text
(
"处方编号:
{
$prescription
->
id
}
"
,
1170
,
190
,
function
(
$font
)
{
$img
->
text
(
"处方编号:
{
$prescription
->
id
}
"
,
1170
,
190
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
24
);
$font
->
size
(
36
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
});
});
// 姓名
// 姓名
$img
->
text
(
$prescription
->
patient_name
,
410
,
260
,
function
(
$font
)
{
$img
->
text
(
$prescription
->
patient_name
,
410
,
260
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
3
2
);
$font
->
size
(
3
6
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
});
});
// 性别
// 性别
$gender
=
PatientModel
::
SEX_MAP
[
$prescription
->
patient_gender
];
$gender
=
PatientModel
::
SEX_MAP
[
$prescription
->
patient_gender
];
$img
->
text
(
$gender
,
890
,
260
,
function
(
$font
)
{
$img
->
text
(
$gender
,
890
,
260
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
3
2
);
$font
->
size
(
3
6
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
});
});
// 年龄
// 年龄
$img
->
text
(
"
{
$prescription
->
patient_age
}
岁"
,
1270
,
260
,
function
(
$font
)
{
$img
->
text
(
"
{
$prescription
->
patient_age
}
岁"
,
1270
,
260
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
3
2
);
$font
->
size
(
3
6
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
});
});
// 开方日期
// 开方日期
$date
=
\Carbon\Carbon
::
parse
(
$prescription
->
prescription_at
)
->
format
(
'Y-m-d'
);
$date
=
\Carbon\Carbon
::
parse
(
$prescription
->
prescription_at
)
->
format
(
'Y-m-d'
);
$img
->
text
(
$date
,
1215
,
330
,
function
(
$font
)
{
$img
->
text
(
$date
,
1215
,
330
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
3
2
);
$font
->
size
(
3
6
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
});
});
// 诊断
// 诊断
...
@@ -157,7 +157,7 @@ public function search()
...
@@ -157,7 +157,7 @@ public function search()
$medicineText
=
"
{
$medicine
[
'drug_name'
]
}
{
$medicine
[
'spec'
]
}
{
$medicine
[
'num'
]
}{
$medicine
[
'unit'
]
}
"
;
$medicineText
=
"
{
$medicine
[
'drug_name'
]
}
{
$medicine
[
'spec'
]
}
{
$medicine
[
'num'
]
}{
$medicine
[
'unit'
]
}
"
;
$img
->
text
(
$medicineText
,
450
,
$yCoordinate
,
function
(
$font
)
{
$img
->
text
(
$medicineText
,
450
,
$yCoordinate
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
3
2
);
$font
->
size
(
3
6
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
$font
->
align
(
'left'
);
$font
->
align
(
'left'
);
});
});
...
@@ -168,7 +168,7 @@ public function search()
...
@@ -168,7 +168,7 @@ public function search()
// 打印 sig 信息
// 打印 sig 信息
$img
->
text
(
'Sig: '
.
$medicine
[
'dosage_desc'
],
450
,
$yCoordinate
,
function
(
$font
)
{
$img
->
text
(
'Sig: '
.
$medicine
[
'dosage_desc'
],
450
,
$yCoordinate
,
function
(
$font
)
{
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
filename
(
public_path
(
'static/fonts/SimHei.ttf'
));
$font
->
size
(
3
2
);
$font
->
size
(
3
6
);
$font
->
color
(
'#000000'
);
$font
->
color
(
'#000000'
);
$font
->
align
(
'left'
);
$font
->
align
(
'left'
);
});
});
...
...
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