Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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-pad
Commits
51b1b54a
Commit
51b1b54a
authored
Mar 20, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:联调打印模板接口
parent
a0b8234b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
20 deletions
+43
-20
index.vue
pages/mes/prodReport/index.vue
+43
-20
No files found.
pages/mes/prodReport/index.vue
View file @
51b1b54a
...
@@ -1651,32 +1651,55 @@ export default {
...
@@ -1651,32 +1651,55 @@ export default {
workorderSoDirectiveId
:
item
.
workorderSoDirectiveId
,
workorderSoDirectiveId
:
item
.
workorderSoDirectiveId
,
workorderSoSizeItemId
:
item
.
workorderSoSizeItemId
,
workorderSoSizeItemId
:
item
.
workorderSoSizeItemId
,
netWeight
:
item
.
netWeight
,
netWeight
:
item
.
netWeight
,
printContents
:
item
.
whether
==
'1'
?
item
.
printContents
:
null
printContents
:
item
.
whether
==
'1'
?
item
.
printContents
:
null
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
open
=
false
;
this
.
open
=
false
;
if
(
res
.
msg
===
'操作成功'
)
{
if
(
res
.
msg
===
'操作成功'
)
{
this
.
$u
.
toast
(
'上报成功'
);
this
.
$u
.
toast
(
'上报成功'
);
if
(
item
.
whether
==
'1'
){
let
params
=
{
this
.
printPdfSocket
({
reportName
:
'mysql:qrcode-50*50-2'
,
reportName
:
'mysql:qrcode-50*50-2'
,
values
:
{
values
:
{
detail
:
[
detail
:
[
{
{
barcode
:
item
.
printContents
,
barcode
:
item
.
printContents
,
gp
:
item
.
printContents
gp
:
item
.
printContents
},
},
],
],
},
},
}
})
res
.
data
.
forEach
(
item
=>
{
}
params
=
{
reportName
:
'mysql:'
+
item
.
printTemplate
,
}
else
{
values
:
{
this
.
$u
.
toast
(
res
.
msg
);
proWorkorder
:
item
.
proWorkorder
,
}
size
:
item
.
size
,
this
.
getTaskList
();
directive
:
item
.
directive
}
}
item
.
packagePrintList
.
forEach
(
v
=>
{
params
.
values
.
packagePrint
=
v
this
.
printPdfSocket
(
params
)
})
})
if
(
item
.
whether
==
'1'
){
this
.
printPdfSocket
({
reportName
:
'mysql:qrcode-50*50-2'
,
values
:
{
detail
:
[
{
barcode
:
item
.
printContents
,
gp
:
item
.
printContents
},
],
},
})
}
}
else
{
this
.
$u
.
toast
(
res
.
msg
);
}
this
.
getTaskList
();
}
}
});
});
});
});
...
...
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