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
f4adf3cb
Commit
f4adf3cb
authored
Mar 18, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配套需求单明细增加显示隐藏材料,隐藏时物料类型包含金属材料/工装/工具/设备的隐藏,显示时全部显示
parent
2611d0c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
17 deletions
+51
-17
index.vue
...ivateComponents/components/MatchRequestItemsCon/index.vue
+51
-17
No files found.
applications/dee-mes/src/privateComponents/components/MatchRequestItemsCon/index.vue
View file @
f4adf3cb
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div
class=
"dee-table dee-table-dis-border"
>
<div
class=
"dee-table dee-table-dis-border"
>
<el-table
<el-table
ref=
"outerTable"
ref=
"outerTable"
:data=
"
t
ableData"
:data=
"
filterT
ableData"
align=
"center"
align=
"center"
height=
"calc(100vh - 100px)"
height=
"calc(100vh - 100px)"
:row-class-name=
"outerRowClassName"
:row-class-name=
"outerRowClassName"
...
@@ -161,16 +161,40 @@ export default {
...
@@ -161,16 +161,40 @@ export default {
{
'title'
:
'版次'
,
'key'
:
'inventory.softConfPieceNo'
}
{
'title'
:
'版次'
,
'key'
:
'inventory.softConfPieceNo'
}
],
],
tableData
:
[],
tableData
:
[],
tools
:
[{
dialogTitle
:
''
,
dialogVisible
:
false
,
cmpOptions
:
{
typeName
:
'Inventory'
,
layKey
:
'matchApplyOccupy'
},
selectionRows
:
[],
currentRow
:
{},
reqStatusOptions
:
[],
hideMaterial
:
true
}
},
computed
:
{
filterTableData
()
{
let
resData
=
[]
if
(
this
.
hideMaterial
)
{
this
.
tableData
.
forEach
(
row
=>
{
debugger
if
(
!
row
.
extMaterial
.
resType2
.
typeCode
.
includes
(
'金属材料'
)
&&
!
row
.
extMaterial
.
resType2
.
typeCode
.
includes
(
'工装'
)
&&
!
row
.
extMaterial
.
resType2
.
typeCode
.
includes
(
'工具'
)
&&
!
row
.
extMaterial
.
resType2
.
typeCode
.
includes
(
'设备'
))
{
resData
.
push
(
row
)
}
})
}
else
{
resData
=
this
.
tableData
}
return
resData
},
tools
()
{
const
data
=
[{
name
:
'占用'
,
name
:
'占用'
,
icon
:
'/icons/c-creatBook.png'
,
icon
:
'/icons/c-creatBook.png'
,
handler
:
{
handler
:
{
click
:
()
=>
{
click
:
()
=>
{
if
(
this
.
selectionRows
.
length
!==
1
)
return
this
.
$utils
.
showMessageWarning
(
'必须且只能选择一条数据进行操作!'
)
this
.
HandleBeforeOccupy
()
if
(
this
.
selectionRows
[
0
].
reqStatus
===
'Close'
||
this
.
selectionRows
[
0
].
reqStatus
===
'已关闭'
||
this
.
selectionRows
[
0
].
reqStatus
===
'All'
||
this
.
selectionRows
[
0
].
reqStatus
===
'已出库'
)
return
this
.
$utils
.
showMessageWarning
(
'当前物料不允许手动占用!'
)
this
.
dialogTitle
=
'占用'
this
.
dialogVisible
=
true
this
.
cmpOptions
=
{
typeName
:
'Inventory'
,
layKey
:
'matchApplyOccupy'
}
}
}
}
}
},
},
...
@@ -182,19 +206,19 @@ export default {
...
@@ -182,19 +206,19 @@ export default {
this
.
handleSubmit
()
this
.
handleSubmit
()
}
}
}
}
}],
dialogTitle
:
''
,
dialogVisible
:
false
,
cmpOptions
:
{
typeName
:
'Inventory'
,
layKey
:
'matchApplyOccupy'
},
},
selectionRows
:
[],
{
currentRow
:
{},
name
:
this
.
hideMaterial
?
'显示材料'
:
'隐藏材料'
,
reqStatusOptions
:
[]
icon
:
'/icons/c-scan.png'
,
handler
:
{
click
:
()
=>
{
this
.
hideMaterialFun
()
}
}
}]
return
data
}
}
},
},
computed
:
{},
watch
:
{},
watch
:
{},
created
()
{
created
()
{
this
.
getDicListByCode
()
this
.
getDicListByCode
()
...
@@ -226,6 +250,13 @@ export default {
...
@@ -226,6 +250,13 @@ export default {
// this.loading = false
// this.loading = false
})
})
},
},
HandleBeforeOccupy
()
{
if
(
this
.
selectionRows
.
length
!==
1
)
return
this
.
$utils
.
showMessageWarning
(
'必须且只能选择一条数据进行操作!'
)
if
(
this
.
selectionRows
[
0
].
reqStatus
===
'Close'
||
this
.
selectionRows
[
0
].
reqStatus
===
'已关闭'
||
this
.
selectionRows
[
0
].
reqStatus
===
'All'
||
this
.
selectionRows
[
0
].
reqStatus
===
'已出库'
)
return
this
.
$utils
.
showMessageWarning
(
'当前物料不允许手动占用!'
)
this
.
dialogTitle
=
'占用'
this
.
dialogVisible
=
true
this
.
cmpOptions
=
{
typeName
:
'Inventory'
,
layKey
:
'matchApplyOccupy'
}
},
handleExpandChange
(
row
,
rows
)
{
handleExpandChange
(
row
,
rows
)
{
const
isExpend
=
rows
.
some
(
r
=>
r
.
id
===
row
.
id
)
// 判断当前行展开状态
const
isExpend
=
rows
.
some
(
r
=>
r
.
id
===
row
.
id
)
// 判断当前行展开状态
if
(
isExpend
)
{
if
(
isExpend
)
{
...
@@ -312,6 +343,9 @@ export default {
...
@@ -312,6 +343,9 @@ export default {
},
},
handleClose
()
{
handleClose
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
},
hideMaterialFun
()
{
this
.
hideMaterial
=
!
this
.
hideMaterial
}
}
}
}
}
}
...
...
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