Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
wms
Commits
253d3b5c
Commit
253d3b5c
authored
Dec 05, 2023
by
李翰林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打印模板
parent
16a4628c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
mymodelhtml.js
src/utils/mymodelhtml.js
+4
-4
printHandle.js
src/utils/printHandle.js
+1
-2
No files found.
src/utils/mymodelhtml.js
View file @
253d3b5c
...
...
@@ -43,7 +43,7 @@ export function str(data) {
// </tr>
// </table>`;
return
` <div style="display:flex; width:100% ;height:
100
%; flex-direction: column;justify-self: space-between; font-family:'宋体'">
return
` <div style="display:flex; width:100% ;height:
95
%; flex-direction: column;justify-self: space-between; font-family:'宋体'">
<div style="display:flex; flex-direction: row;flex:2;">
<div style="flex:3;display:flex;flex-direction: column;">
...
...
@@ -67,9 +67,9 @@ export function str(data) {
<
div
style
=
"flex:3"
>
牌号:
$
{
data
?.
shopSign
??
"--"
}
片
<
/div
>
<
/div
>
<
div
style
=
"display:flex; flex-direction: row;flex:2;"
>
<
div
style
=
"display:flex;flex-direction:
column;flex:2
"
>
<
div
style
=
"flex:1"
>
卷料
名称:
$
{
data
?.
materieName
??
"--"
}
<
/div
>
<
div
style
=
"flex:1"
>
卷料
编码:
$
{
data
?.
materieCode
??
"--"
}
<
/div
>
<
div
style
=
"display:flex;flex-direction:
row;flex:1
"
>
<
div
style
=
"flex:1"
>
名称:
$
{
data
?.
materieName
??
"--"
}
<
/div
>
<
div
style
=
"flex:1"
>
编码:
$
{
data
?.
materieCode
??
"--"
}
<
/div
>
<
/div
>
<
/div
>
<
/div>`
;
...
...
src/utils/printHandle.js
View file @
253d3b5c
...
...
@@ -22,10 +22,9 @@ export async function start(url, params) {
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
res
?.
data
?.
dataList
));
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
const
template
=
str
(
data
[
i
]);
console
.
log
(
template
);
let
LODOP
=
getLodop
();
LODOP
.
PRINT_INIT
(
"task1"
);
LODOP
.
ADD_PRINT_HTM
(
0
,
0
,
"100%"
,
"100%"
,
template
);
LODOP
.
ADD_PRINT_HTM
(
"8%"
,
0
,
"100%"
,
"100%"
,
template
);
LODOP
.
SET_PRINT_PAGESIZE
(
0
,
1000
,
500
,
""
);
// LODOP.PREVIEW();
LODOP
.
PRINT
();
...
...
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