Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-ui
Commits
d32f7ccb
Commit
d32f7ccb
authored
Jan 15, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
a3904d69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
11 deletions
+33
-11
scheduleList.js
src/api/mes/pro/scheduleList.js
+9
-0
index.vue
src/views/mes/pro/scheduleList/index.vue
+24
-11
No files found.
src/api/mes/pro/scheduleList.js
View file @
d32f7ccb
...
...
@@ -146,6 +146,15 @@ export function printData(query) {
});
}
// 打印
export
function
printDataBySpil
(
query
)
{
return
request
({
url
:
"/mes/pro/taskWorkunit/printDataBySpil"
,
method
:
"post"
,
data
:
query
});
}
// 完工作业
export
function
change
(
query
)
{
return
request
({
...
...
src/views/mes/pro/scheduleList/index.vue
View file @
d32f7ccb
...
...
@@ -545,6 +545,7 @@ import {
gettaskWorkunitList
,
getdefaultWorkCenterList
,
rollBACKschedule
,
printDataBySpil
,
printData
}
from
'@/api/mes/pro/scheduleList'
import
{
putProtaskSplit
}
from
'@/api/mes/pro/protask'
import
taskList
from
'./taskList.vue'
...
...
@@ -789,17 +790,29 @@ export default {
},
handlePrint
(){
const
ids
=
this
.
selections
.
map
(
v
=>
v
.
taskId
)
printData
(
ids
).
then
(
res
=>
{
if
(
res
.
data
)
{
postBatchPrintPdf
(
res
.
data
.
reportName
,
res
.
data
.
valueList
).
then
(()
=>
{
})
}
})
if
(
!
this
.
single
&&
this
.
selections
[
0
].
sourceTaskWorkunitId
)
{
printDataBySpil
(
this
.
selections
[
0
].
taskWorkunitId
).
then
(
res
=>
{
if
(
res
.
data
)
{
postBatchPrintPdf
(
res
.
data
.
reportName
,
res
.
data
.
valueList
).
then
(()
=>
{
})
}
})
}
else
{
printData
(
ids
).
then
(
res
=>
{
if
(
res
.
data
)
{
postBatchPrintPdf
(
res
.
data
.
reportName
,
res
.
data
.
valueList
).
then
(()
=>
{
})
}
})
}
},
// 表单重置
reset
()
{
...
...
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