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
1
Merge Requests
1
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
97f00b64
Commit
97f00b64
authored
Jun 16, 2026
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改问题
parent
8f51f72e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
src/views/design/head/index.vue
+15
-5
No files found.
src/views/design/head/index.vue
View file @
97f00b64
...
...
@@ -230,8 +230,21 @@ export default {
break
;
}
},
async
setData
(
data
)
{
async
setData
(
data
,
type
)
{
if
(
!
data
)
return
this
.
$message
.
warning
(
"请扫描生产单号/操作单号"
);
const
canCallApi
=
this
.
desktopDevice
!=
3
||
(
data
.
saveImgList
?.
every
(
el
=>
el
.
power
)
??
false
);
if
(
this
.
desktopDevice
==
3
&&
!
canCallApi
)
{
if
(
type
==
"btn"
)
{
const
item
=
data
.
saveImgList
?.
find
(
el
=>
!
el
.
power
);
this
.
$message
.
warning
(
`该订单
${
item
?.
title
||
""
}
面未打印,无法生产完成
`
);
}
return;
}
let params = {
id: data.id,
orderType: this.orderType
...
...
@@ -244,9 +257,6 @@ export default {
params.data = { ...data };
}
//如果为惠立彩则判断当前saveImgList字段中的power是否全是true 是则生产完成
const
canCallApi
=
this
.
desktopDevice
!=
3
||
(
data
.
saveImgList
?.
every
(
el
=>
el
.
power
)
??
false
);
if (canCallApi) {
console.log("生产完成");
...
...
@@ -273,7 +283,7 @@ export default {
cancelButtonText: "取消",
type: "warning"
}).then(async () => {
await
this
.
setData
(
this
.
detail
);
await this.setData(this.detail
, "btn"
);
});
},
clearCache() {
...
...
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