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
a9e115e5
Commit
a9e115e5
authored
Jul 12, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报工的二维码打印新增字段
parent
22e8b40a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
20 deletions
+32
-20
http.api.js
common/http.api.js
+5
-0
index.vue
pages/mes/prodReport/index.vue
+27
-20
No files found.
common/http.api.js
View file @
a9e115e5
...
...
@@ -161,6 +161,7 @@ const install = (Vue, vm) => {
params
),
/**
* 工艺工序相关API
*/
...
...
@@ -277,6 +278,10 @@ const install = (Vue, vm) => {
genCode
:
(
ruleCode
)
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/autocode/get/'
+
ruleCode
),
//获取最后一道工序
getNextProcess
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/feedBackNextProcess'
,
params
),
//首页相关api
...
...
pages/mes/prodReport/index.vue
View file @
a9e115e5
...
...
@@ -2529,26 +2529,33 @@ export default {
});
});
}
console
.
log
(
'item'
,
item
)
if
(
item
.
whether
==
'1'
)
{
this
.
printPdfSocket
({
reportName
:
'mysql:qrcode-50*50-2'
,
values
:
{
detail
:
[
{
barcode
:
item
.
printContents
,
showText
:
'单号:'
+
item
.
printContents
,
gp
:
1
},
{
barcode
:
item
.
printContents
,
showText
:
'单号:'
+
item
.
printContents
,
gp
:
1
}
]
}
});
}
let
workunitName
=
''
;
console
.
log
(
item
.
taskId
);
this
.
$u
.
api
.
getNextProcess
({
taskId
:
item
.
taskId
}).
then
(
workunit
=>
{
workunitName
=
workunit
.
data
.
workunitName
;
console
.
log
(
item
.
arrangeCode
,
item
.
workorderCode
,
item
.
quantityQualify
,
workunitName
);
let
aa
=
'编排单号:'
+
item
.
arrangeCode
+
'
\
n工单号:'
+
item
.
workorderCode
+
'
\
n数量:'
+
item
.
quantityQualify
+
'
\
n下一道工序:'
+
workunitName
;
console
.
log
(
aa
);
if
(
item
.
whether
==
'1'
)
{
this
.
printPdfSocket
({
reportName
:
'mysql:qrcode-50*50-2'
,
values
:
{
detail
:
[
{
barcode
:
item
.
printContents
,
showText
:
'编排单号:'
+
item
.
arrangeCode
+
'
\
n数量:'
+
item
.
quantityQualify
+
'
\
n工单号:'
+
item
.
workorderCode
+
'
\
n下一道工序:'
+
workunitName
,
gp
:
1
},
{
barcode
:
item
.
printContents
,
showText
:
'编排单号:'
+
item
.
arrangeCode
+
'
\
n数量:'
+
item
.
quantityQualify
+
'
\
n工单号:'
+
item
.
workorderCode
+
'
\
n下一道工序:'
+
workunitName
,
gp
:
1
}
]
}
});
}
});
if
(
!
res
.
msg
)
{
this
.
$u
.
toast
(
'上报成功'
);
}
else
{
...
...
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