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
87045f68
Commit
87045f68
authored
Apr 01, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:包装标签逻辑加上判断条件
parent
edabc44b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
index.vue
src/views/mes/pro/packageLablePrint/index.vue
+16
-0
No files found.
src/views/mes/pro/packageLablePrint/index.vue
View file @
87045f68
...
@@ -311,6 +311,9 @@ export default {
...
@@ -311,6 +311,9 @@ export default {
this
.
handleQuery
();
this
.
handleQuery
();
},
},
handleSave
()
{
handleSave
()
{
if
(
!
this
.
validSelect
())
{
return
}
updatePackagePrintRecord
(
this
.
tablePackageList
).
then
((
response
)
=>
{
updatePackagePrintRecord
(
this
.
tablePackageList
).
then
((
response
)
=>
{
console
.
log
(
response
,
'response'
)
console
.
log
(
response
,
'response'
)
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
...
@@ -319,6 +322,9 @@ export default {
...
@@ -319,6 +322,9 @@ export default {
});
});
},
},
handleProduce
()
{
handleProduce
()
{
if
(
!
this
.
validSelect
())
{
return
}
const
params
=
{
const
params
=
{
"checkBy"
:
this
.
produceForm
.
checkBy
,
"checkBy"
:
this
.
produceForm
.
checkBy
,
"inputBy"
:
this
.
produceForm
.
inputBy
,
"inputBy"
:
this
.
produceForm
.
inputBy
,
...
@@ -336,6 +342,9 @@ export default {
...
@@ -336,6 +342,9 @@ export default {
});
});
},
},
handleChooseTemplate
()
{
handleChooseTemplate
()
{
if
(
!
this
.
validSelect
())
{
return
}
if
(
this
.
selectPackageTable
.
length
===
0
)
{
if
(
this
.
selectPackageTable
.
length
===
0
)
{
this
.
$message
.
warning
(
'请至少选择一条数据'
)
this
.
$message
.
warning
(
'请至少选择一条数据'
)
return
return
...
@@ -370,6 +379,13 @@ export default {
...
@@ -370,6 +379,13 @@ export default {
}
}
});
});
},
},
validSelect
()
{
if
(
this
.
selectedItemId
)
{
return
true
}
this
.
$message
.
warning
(
'请选择生产工单'
)
return
false
},
handleCurrentChange
(
row
)
{
handleCurrentChange
(
row
)
{
console
.
log
(
row
,
'row88'
)
console
.
log
(
row
,
'row88'
)
this
.
produceForm
=
Object
.
assign
({},
row
)
this
.
produceForm
=
Object
.
assign
({},
row
)
...
...
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