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
1aa729f9
Commit
1aa729f9
authored
Aug 30, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刀模版入库新增一个判重
parent
f89000b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
itemIndex.vue
src/views/mes/tm/warehouse/itemIndex.vue
+5
-2
selectmachinesrecord.vue
src/views/mes/tm/warehouse/selectmachinesrecord.vue
+25
-1
No files found.
src/views/mes/tm/warehouse/itemIndex.vue
View file @
1aa729f9
...
...
@@ -8,7 +8,7 @@
size=
"mini"
@
click=
"$refs['ItemSelectRef'].showFlag = true"
>
新增
</el-button>
<ItemSelect
v-if=
"$attrs.optType === 'add'"
ref=
"ItemSelectRef"
@
onSelected=
"onItemSelect"
/>
<ItemSelect
v-if=
"$attrs.optType === 'add'"
ref=
"ItemSelectRef"
@
onSelected=
"onItemSelect"
:toolRequestItemList=
"tmToolRequestItemList"
/>
<el-table
v-loading=
"loading"
:data=
"tmToolRequestItemList"
@
selection-change=
"handleSelectionChange"
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<el-table-column
...
...
@@ -69,7 +69,9 @@ export default {
id
:{
type
:
String
,
default
:
''
}
},
},
data
()
{
return
{
...
...
@@ -85,6 +87,7 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 刀模版物料申请单表格数据
tmToolRequestItemList
:
[],
// 弹出层标题
...
...
src/views/mes/tm/warehouse/selectmachinesrecord.vue
View file @
1aa729f9
...
...
@@ -72,6 +72,11 @@ export default {
name
:
"MdItemSingle"
,
dicts
:
[
"sys_yes_no"
,
"mes_item_product"
],
components
:
{
Treeselect
},
props
:{
toolRequestItemList
:{
type
:
Array
}
},
data
()
{
return
{
showFlag
:
false
,
...
...
@@ -80,6 +85,7 @@ export default {
selectedRows
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
...
...
@@ -171,7 +177,25 @@ export default {
});
return
;
}
console
.
log
(
this
.
selectedRows
)
let
a
=
0
;
if
(
!
this
.
toolRequestItemList
.
length
==
0
){
this
.
toolRequestItemList
.
forEach
(
item
=>
{
this
.
selectedRows
.
forEach
(
items
=>
{
if
(
item
.
toolCode
===
items
.
toolCode
){
this
.
$message
.
error
(
item
.
toolCode
+
'数据已经被选择,请不要重复选择'
);
a
++
;
}
});
});
if
(
!
a
==
0
){
return
;
}
}
console
.
log
(
this
.
selectedRows
);
this
.
$emit
(
'onSelected'
,
this
.
selectedRows
);
this
.
showFlag
=
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