Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
383d9c75
Commit
383d9c75
authored
Aug 07, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换件领用取消相同物料不能重复添加的校验
parent
e0842cad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
index.vue
...teComponents/components/AddOutStorageUseDetails/index.vue
+1
-1
No files found.
applications/dee-mes/src/privateComponents/components/AddOutStorageUseDetails/index.vue
View file @
383d9c75
...
...
@@ -381,7 +381,6 @@ export default {
},
submitEvent
({
formData
,
addContinue
})
{
const
extMaterialIds
=
this
.
tableData
.
map
(
item
=>
item
.
extMaterialId
).
includes
(
formData
[
0
].
extMaterialId
)
if
(
extMaterialIds
)
return
this
.
$utils
.
showMessageWarning
(
'相同物料不能重复添加,请重新选择!'
)
if
(
this
.
basicData
.
useRequestType
===
'swapUse'
)
{
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
extSupportingItemVO
&&
item
.
extSupportingItemVO
.
id
===
formData
[
0
].
extSupportingItemVO
.
id
)
{
...
...
@@ -389,6 +388,7 @@ export default {
}
})
}
else
{
if
(
extMaterialIds
)
return
this
.
$utils
.
showMessageWarning
(
'相同物料不能重复添加,请重新选择!'
)
this
.
tableData
.
push
(...
formData
)
}
this
.
dialogShow
=
addContinue
||
false
...
...
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