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
mes
mes-ui
Commits
d3f38e87
Commit
d3f38e87
authored
Nov 14, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无重码打印
parent
c0bb5fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
index.vue
src/views/mes/lpn/lpnNoDuplicate/index.vue
+21
-13
No files found.
src/views/mes/lpn/lpnNoDuplicate/index.vue
View file @
d3f38e87
...
...
@@ -73,9 +73,9 @@
prop=
"salesVoucherItem"
/>
<el-table-column
label=
"LPN码"
align=
"center"
prop=
"lpnNo"
/>
<el-table-column
label=
"
o
n"
align=
"center"
prop=
"是否打印"
>
<el-table-column
label=
"
recordO
n"
align=
"center"
prop=
"是否打印"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
o
n
?
'是'
:
'否'
}}
{{
scope
.
row
.
recordO
n
?
'是'
:
'否'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
...
...
@@ -148,17 +148,25 @@ export default {
},
methods
:
{
handleprint
()
{
const
valueList
=
this
.
selectedRows
.
map
((
v
)
=>
{
return
{
packagePrint
:
{
lpnNo
:
v
.
lpnNo
,
},
}
})
postBatchPrintPdf
(
'package-lpnV2'
,
valueList
).
then
(()
=>
{
this
.
visible
=
false
this
.
getPackageList
()
})
const
rows
=
this
.
selectedRows
.
filter
(
v
=>
v
.
recordOn
)
const
rowsOff
=
this
.
selectedRows
.
filter
(
v
=>
!
v
.
recordOn
)
const
lpnlist
=
rowsOff
.
map
(
v
=>
v
.
lpnNo
)
if
(
lpnlist
.
length
>
0
)
{
this
.
$modal
.
msgWarning
(
lpnlist
.
join
(
','
)
+
'无法打印'
)
}
if
(
rows
.
length
>
0
)
{
const
valueList
=
rows
.
map
((
v
)
=>
{
return
{
packagePrint
:
{
lpnNo
:
v
.
lpnNo
,
},
}
})
postBatchPrintPdf
(
'package-lpnV2'
,
valueList
).
then
(()
=>
{
this
.
visible
=
false
this
.
getPackageList
()
})
}
},
onItemSelected
(
obj
)
{
if
(
obj
!=
undefined
&&
obj
!=
null
)
{
...
...
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