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
ximai
mes-ui
Commits
c37ce61a
Commit
c37ce61a
authored
Oct 29, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
序列号打印
parent
6b98d008
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
qrcodeRecord.js
src/api/mes/pro/qrcodeRecord.js
+9
-0
index.vue
src/views/mes/pro/qrcodeRecord/index.vue
+3
-4
No files found.
src/api/mes/pro/qrcodeRecord.js
View file @
c37ce61a
...
...
@@ -35,6 +35,15 @@ export function updateQrcodeRecord(data) {
})
}
// 修改打印次数
export
function
editList
(
data
)
{
return
request
({
url
:
'/pro/qrcodeRecord/editList'
,
method
:
'put'
,
data
:
data
})
}
// 删除产品序列号打印记录
export
function
delQrcodeRecord
(
recordId
)
{
return
request
({
...
...
src/views/mes/pro/qrcodeRecord/index.vue
View file @
c37ce61a
...
...
@@ -290,6 +290,7 @@ import {
delQrcodeRecord
,
addQrcodeRecord
,
updateQrcodeRecord
,
editList
}
from
'@/api/mes/pro/qrcodeRecord'
import
{
postBatchPrintPdf
}
from
'@/utils/ruoyi'
export
default
{
...
...
@@ -382,9 +383,7 @@ export default {
this
.
$message
.
warning
(
this
.
$t
(
'没有配置标签模版'
))
}
this
.
selectRow
.
forEach
((
s
,
i
)
=>
{
promise
.
push
(
updateQrcodeRecord
({
...
s
,
...{
printTime
:
s
.
printTime
+
1
}
})
)
promise
.
push
(
s
.
recordId
)
detail
.
push
({
detail
:
[{
barcode
:
s
.
qrcode
,
...
...
@@ -395,7 +394,7 @@ export default {
})
postBatchPrintPdf
(
this
.
selectRow
[
0
].
templateName
,
detail
)
if
(
promise
.
length
>
0
)
{
Promise
.
all
(
promise
).
then
((
res
)
=>
{
editList
(
promise
).
then
((
res
)
=>
{
this
.
getList
()
})
}
...
...
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