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
8d13a70e
Commit
8d13a70e
authored
Jul 20, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:下载素材提示修改
parent
b51eec5f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
logs/2026-07-20/api.log
+0
-0
src/utils/download-file.js
+1
-1
src/utils/download-typesetting.js
+2
-1
src/views/dtf-batch-detail/components/detailHead.vue
+9
-4
src/views/dtf-list/index.vue
+2
-1
No files found.
logs/2026-07-20/api.log
View file @
8d13a70e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/utils/download-file.js
View file @
8d13a70e
...
@@ -60,8 +60,8 @@ function submitTask(params) {
...
@@ -60,8 +60,8 @@ function submitTask(params) {
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
taskState
.
isRunning
=
false
;
taskState
.
isRunning
=
false
;
taskState
.
currentBatchNo
=
""
;
broadcastStatus
();
broadcastStatus
();
taskState
.
currentBatchNo
=
""
;
});
});
return
{
return
{
...
...
src/utils/download-typesetting.js
View file @
8d13a70e
...
@@ -56,6 +56,7 @@ function broadcastStatus() {
...
@@ -56,6 +56,7 @@ function broadcastStatus() {
if
(
!
win
.
isDestroyed
())
{
if
(
!
win
.
isDestroyed
())
{
win
.
webContents
.
send
(
"download-typesetting:status"
,
{
win
.
webContents
.
send
(
"download-typesetting:status"
,
{
isRunning
:
taskState
.
isRunning
,
isRunning
:
taskState
.
isRunning
,
currentBatchNo
:
taskState
.
currentBatchNo
,
result
:
taskState
.
latestResult
result
:
taskState
.
latestResult
});
});
}
}
...
@@ -98,9 +99,9 @@ function submitTask(params) {
...
@@ -98,9 +99,9 @@ function submitTask(params) {
};
};
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
// 释放锁
taskState
.
isRunning
=
false
;
taskState
.
isRunning
=
false
;
broadcastStatus
();
broadcastStatus
();
taskState
.
currentBatchNo
=
""
;
});
});
return
{
return
{
...
...
src/views/dtf-batch-detail/components/detailHead.vue
View file @
8d13a70e
...
@@ -94,9 +94,8 @@ export default {
...
@@ -94,9 +94,8 @@ export default {
if
(
!
this
.
podOrderProductIds
.
length
)
{
if
(
!
this
.
podOrderProductIds
.
length
)
{
return
this
.
$message
.
warning
(
"请选择操作单"
);
return
this
.
$message
.
warning
(
"请选择操作单"
);
}
}
console
.
log
(
1111
)
try
{
try
{
le
t
res
=
await
this
.
$api
.
post
(
cons
t
res
=
await
this
.
$api
.
post
(
pathMap
[
"downloadBySubOrderNumber"
][
"OP"
],
pathMap
[
"downloadBySubOrderNumber"
][
"OP"
],
{
{
ids
:
this
.
podOrderProductIds
,
ids
:
this
.
podOrderProductIds
,
...
@@ -109,9 +108,15 @@ export default {
...
@@ -109,9 +108,15 @@ export default {
)
)
}
}
);
);
console
.
log
(
77
,
res
);
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
`批次号:
${
this
.
curBatchArrangeNum
}
,素材下载成功`
);
}
else
{
this
.
$message
.
error
(
res
.
msg
||
"下载失败"
);
}
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
$message
.
error
(
error
);
this
.
$message
.
error
(
error
.
message
||
"下载失败"
);
}
}
},
},
getDataInfo
()
{
getDataInfo
()
{
...
...
src/views/dtf-list/index.vue
View file @
8d13a70e
...
@@ -377,7 +377,8 @@ export default {
...
@@ -377,7 +377,8 @@ export default {
this
[
statusKey
]
=
status
.
isRunning
;
this
[
statusKey
]
=
status
.
isRunning
;
if
(
!
status
.
isRunning
&&
status
.
result
)
{
if
(
!
status
.
isRunning
&&
status
.
result
)
{
const
{
success
,
failed
,
currentBatchNo
}
=
status
.
result
;
const
{
success
,
failed
}
=
status
.
result
;
const
{
currentBatchNo
}
=
status
;
this
.
$message
.
success
(
this
.
$message
.
success
(
`批次号:
${
currentBatchNo
}
,下载完成:成功
${
success
.
length
}
个,失败
${
failed
.
length
}
个`
`批次号:
${
currentBatchNo
}
,下载完成:成功
${
success
.
length
}
个,失败
${
failed
.
length
}
个`
);
);
...
...
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