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
dbc9f951
Commit
dbc9f951
authored
Apr 30, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改直接打印单不可以裁切问题
parent
f70c7aa5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/views/design/head/index.vue
+7
-0
src/views/design/main/index.vue
+8
-0
No files found.
src/views/design/head/index.vue
View file @
dbc9f951
...
@@ -317,7 +317,14 @@ export default {
...
@@ -317,7 +317,14 @@ export default {
ipcRenderer
.
send
(
"win-subScreen"
,
findByPodProductionNo
.
data
);
ipcRenderer
.
send
(
"win-subScreen"
,
findByPodProductionNo
.
data
);
if
(
imageResList
&&
imageResList
.
length
)
{
if
(
imageResList
&&
imageResList
.
length
)
{
if
(
this
.
checked
)
{
this
.
$message
.
warning
({
message
:
"该生产单为直接打印单不可裁切,已取消自动裁切选项"
,
duration
:
3000
,
// 设置显示时间为 5000 毫秒(5 秒)
});
this
.
checked
=
false
;
this
.
checked
=
false
;
}
let
obj
=
{
let
obj
=
{
type
:
"sendFile"
,
type
:
"sendFile"
,
value
:
imageResList
,
value
:
imageResList
,
...
...
src/views/design/main/index.vue
View file @
dbc9f951
...
@@ -704,6 +704,14 @@ export default {
...
@@ -704,6 +704,14 @@ export default {
async
cutImgFn
()
{
async
cutImgFn
()
{
if
(
!
this
.
checkList
?.
length
)
return
;
if
(
!
this
.
checkList
?.
length
)
return
;
if
(
this
.
detail
.
mssHeight
&&
this
.
detail
.
mssWidth
)
{
return
this
.
$confirm
(
`该生产单为直接打印单不可进行裁切!`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
showCancelButton
:
false
,
type
:
"warning"
,
});
}
try
{
try
{
const
processQueue
=
await
Promise
.
all
(
const
processQueue
=
await
Promise
.
all
(
this
.
checkList
.
map
(
async
(
el
)
=>
{
this
.
checkList
.
map
(
async
(
el
)
=>
{
...
...
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