Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
fbe92a53
Commit
fbe92a53
authored
Jan 16, 2026
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:添加直接打印功能
parent
a327daff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/views/design/head/index.vue
+1
-0
src/views/design/main/index.vue
+7
-4
No files found.
src/views/design/head/index.vue
View file @
fbe92a53
...
...
@@ -363,6 +363,7 @@ export default {
imageResList
.
forEach
((
el
)
=>
{
el
.
isCut
=
true
;
});
this
.
detail
.
isCut
=
true
;
}
// 延迟后强制激活窗口
...
...
src/views/design/main/index.vue
View file @
fbe92a53
...
...
@@ -931,6 +931,8 @@ export default {
this
.
getBackFile
({
files
:
[
this
.
selectImgList
[
0
]]
});
}
catch
(
error
)
{
console
.
error
(
"错误"
,
error
);
}
finally
{
this
.
detail
.
isCut
=
true
;
}
},
// startLoading,
...
...
@@ -1588,21 +1590,22 @@ export default {
</div>
</div>
</div>
<
!-- <
div
<div
class=
"print-tip"
:style=
"{ left: isView ? '' : '22%' }"
v-if=
"
detail &&
detail.mssWidth &&
detail.mssHeight &&
selectImgList.length
selectImgList.length &&
!detail.isCut
"
>
<b
style=
"color: green"
v-if=
"hasSize"
>
该生产单无需拖动设计,直接打印
</b
>
<
b style="color: red" v-else>该生产单需要拖动设计打印</b
>
</div>
-->
<
!-- <b style="color: red" v-else>该生产单需要拖动设计打印</b> --
>
</div>
</div>
<img
...
...
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