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
7092f429
Commit
7092f429
authored
Nov 04, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除委外加工商必选
parent
b6407ce9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
+22
-9
scheduleList.js
src/api/mes/pro/scheduleList.js
+8
-0
index.vue
src/views/mes/pro/outSourceSchedule/index.vue
+0
-2
index.vue
src/views/mes/pro/scheduleList/index.vue
+14
-7
No files found.
src/api/mes/pro/scheduleList.js
View file @
7092f429
...
...
@@ -137,3 +137,11 @@ export function outsourceConfirm(query) {
});
}
// 打印
export
function
printData
(
query
)
{
return
request
({
url
:
"/mes/pro/taskWorkunit/printData"
,
method
:
"post"
,
data
:
query
});
}
src/views/mes/pro/outSourceSchedule/index.vue
View file @
7092f429
...
...
@@ -444,8 +444,6 @@ export default {
this
.
getList
();
},
handleOutsource
(){
const
arr
=
this
.
selections
.
filter
(
v
=>
!
v
.
vendorId
)
if
(
arr
&&
arr
.
length
>
0
)
return
this
.
$modal
.
msgWarning
(
this
.
$t
(
'委外加工商必选'
))
this
.
$modal
.
confirm
(
this
.
$t
(
'是否确认委外?'
))
.
then
(
()
=>
{
...
...
src/views/mes/pro/scheduleList/index.vue
View file @
7092f429
...
...
@@ -160,7 +160,7 @@
size=
"mini"
:disabled=
'multiple'
@
click=
"handlePrint"
>
打印
</el-button>
>
{{
$t
(
'打印'
)
}}
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -518,7 +518,8 @@ import {
getworkshopList
,
getworkstationList
,
gettaskWorkunitList
,
getdefaultWorkCenterList
}
from
'@/api/mes/pro/scheduleList'
getdefaultWorkCenterList
,
printData
}
from
'@/api/mes/pro/scheduleList'
import
{
putProtaskSplit
}
from
'@/api/mes/pro/protask'
import
taskList
from
'./taskList.vue'
import
BrandSelect
from
"@/components/TmTool/index.vue"
;
...
...
@@ -741,12 +742,18 @@ export default {
this
.
reset
();
},
handlePrint
(){
postBatchPrintPdf
(
''
,
this
.
selections
).
then
(()
=>
{
const
ids
=
this
.
selections
.
map
(
v
=>
v
.
taskId
)
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