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
acc19762
Commit
acc19762
authored
Mar 25, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:合并生产报工
parent
1ee48538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
38 deletions
+42
-38
index.vue
pages/mes/prodReport/index.vue
+42
-38
No files found.
pages/mes/prodReport/index.vue
View file @
acc19762
...
...
@@ -1770,51 +1770,55 @@ export default {
workorderSoSizeItemId
:
item
.
workorderSoSizeItemId
,
netWeight
:
item
.
netWeight
,
printContents
:
item
.
whether
==
'1'
?
item
.
printContents
:
null
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
proVisible
=
false
;
if
(
res
.
msg
===
'操作成功'
)
{
this
.
$u
.
toast
(
'上报成功'
);
if
(
item
.
printTemplate
)
{
let
params
=
{}
res
.
data
.
forEach
(
datas
=>
{
params
=
{
reportName
:
'mysql:'
+
item
.
printTemplate
,
values
:
{
proWorkorder
:
datas
.
proWorkorder
,
size
:
datas
.
size
,
directive
:
datas
.
directive
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
proVisible
=
false
;
if
(
res
.
msg
===
'操作成功'
)
{
this
.
$u
.
toast
(
'上报成功'
);
if
(
item
.
printTemplate
)
{
let
params
=
{}
res
.
data
.
forEach
(
datas
=>
{
params
=
{
reportName
:
'mysql:'
+
item
.
printTemplate
,
values
:
{
proWorkorder
:
datas
.
proWorkorder
,
size
:
datas
.
size
,
directive
:
datas
.
directive
}
}
}
datas
.
packagePrintList
.
forEach
(
v
=>
{
params
.
values
.
packagePrint
=
v
this
.
printPdfSocket
(
params
)
datas
.
packagePrintList
.
forEach
(
v
=>
{
params
.
values
.
packagePrint
=
v
this
.
printPdfSocket
(
params
)
}
)
})
})
}
if
(
item
.
whether
==
'1'
){
}
if
(
item
.
whether
==
'1'
){
this
.
printPdfSocket
({
reportName
:
'mysql:qrcode-50*50-2'
,
values
:
{
detail
:
[
{
barcode
:
item
.
printContents
,
gp
:
item
.
printContents
},
],
reportName
:
'mysql:qrcode-50*50-2'
,
values
:
{
detail
:
[
{
barcode
:
item
.
printContents
,
gp
:
item
.
printContents
},
})
}
if
(
res
.
msg
===
''
)
{
this
.
$u
.
toast
(
'上报成功'
);
}
else
{
],
},
})
}
}
if
(
!
res
.
msg
)
{
this
.
$u
.
toast
(
'上报成功'
);
}
else
{
this
.
$u
.
toast
(
res
.
msg
);
}
this
.
getTaskList
();
}
});
});
}
});
})
},
feedingInspectionShow
()
{
this
.
feedingInspectionVisible
=
true
;
...
...
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