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
32b121e5
Commit
32b121e5
authored
Oct 16, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
包装标签打印
parent
45f8826f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
index.vue
src/views/mes/pro/packageLablePrint/index.vue
+23
-0
No files found.
src/views/mes/pro/packageLablePrint/index.vue
View file @
32b121e5
...
...
@@ -484,8 +484,31 @@ export default {
console
.
log
(
response
,
'response'
)
if
(
response
.
code
===
200
)
{
const
valueList
=
response
.
data
.
map
((
item
)
=>
{
const
obj
=
{}
if
(
item
.
standardSize
)
{
const
arr
=
item
.
standardSize
.
split
(
'|'
)
if
(
arr
&&
arr
.
length
>
0
){
arr
.
forEach
((
item1
,
index
)
=>
{
let
[
size
,
jh
]
=
item1
.
split
(
":"
)
let
zl
,
loss
if
(
jh
)
{
[
zl
,
loss
]
=
jh
.
split
(
"+"
)
if
(
loss
)
{
jh
=
(
Number
(
zl
)
+
Number
(
loss
))
+
''
}
else
{
jh
=
zl
}
}
obj
[
'size'
+
(
index
+
1
)]
=
size
obj
[
'zl'
+
(
index
+
1
)]
=
zl
obj
[
'loss'
+
(
index
+
1
)]
=
loss
obj
[
'jh'
+
(
index
+
1
)]
=
jh
})
}
}
return
{
packagePrint
:
item
,
standardSizeobj
:
obj
}
})
postBatchPrintPdf
(
...
...
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