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
224a15b1
Commit
224a15b1
authored
May 07, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加AO保留弹框自定义组件修改
parent
3fed1bf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
index.vue
...mponents/components/AddExtRetentionDetailDialog/index.vue
+26
-5
No files found.
applications/dee-mes/src/privateComponents/components/AddExtRetentionDetailDialog/index.vue
View file @
224a15b1
...
...
@@ -7,6 +7,7 @@
<div
class=
"AddExtRetentionDetailDialog-dialog"
>
<dee-as-com
ref=
"tableCom"
:basic-data=
"
{...basicData,dictOptions}"
class="list-table"
:lay-config="{ typeName: 'ExtProcessPlan', layKey: 'addExtRetentionLists'}"
@selectionChange="selectionChange"
...
...
@@ -36,13 +37,20 @@ export default {
data
()
{
return
{
selection
:
[],
d
efaultData
:
{}
d
ictOptions
:
[]
}
},
computed
:
{},
watch
:
{},
created
()
{
this
.
getDictData
()
},
mounted
()
{},
methods
:
{
// 加载字典数据
async
getDictData
()
{
this
.
dictOptions
=
await
this
.
$utils
.
getDicListByCode
(
'PlanState'
)
},
findByNameVnode
(
obj
,
targetName
)
{
if
(
obj
&&
obj
.
$vnode
&&
obj
.
$vnode
.
tag
&&
obj
.
$vnode
.
tag
.
includes
(
targetName
))
{
return
obj
...
...
@@ -50,6 +58,13 @@ export default {
return
this
.
findByNameVnode
(
obj
.
$parent
,
targetName
)
}
},
getCaNo
(
data
)
{
if
(
data
.
subTypeName
===
'ExtProcessPlanAssemblyUnit'
)
{
return
data
.
serialNumber
}
else
{
return
this
.
getCaNo
(
data
.
targetExtProcessUsageLink
&&
data
.
targetExtProcessUsageLink
[
0
]
&&
data
.
targetExtProcessUsageLink
[
0
].
source
)
}
},
selectionChange
(
val
)
{
this
.
selection
=
val
},
...
...
@@ -57,12 +72,18 @@ export default {
if
(
this
.
selection
.
length
)
{
const
showData
=
this
.
findByNameVnode
(
this
,
'DeeAsTable'
).
showData
if
(
showData
.
length
)
{
this
.
selection
=
this
.
selection
.
filter
(
item
=>
!
showData
.
some
(
x
=>
x
.
lifecycleTemplateId
===
item
.
lifecycleTemplateI
d
))
this
.
selection
=
this
.
selection
.
filter
(
item
=>
!
showData
.
some
(
x
=>
x
.
targetId
===
item
.
i
d
))
}
const
data
=
this
.
selection
.
map
(
item
=>
{
item
.
operator
=
'ADD'
item
.
id
=
null
return
item
return
{
operator
:
'ADD'
,
dictOptions
:
this
.
dictOptions
,
assemblyUnit
:
this
.
getCaNo
(
item
.
targetExtProcessUsageLink
&&
item
.
targetExtProcessUsageLink
[
0
]
&&
item
.
targetExtProcessUsageLink
[
0
].
source
),
target
:
item
,
targetId
:
item
.
id
,
targetIdType
:
'ExtProcessPlan'
,
planStateLabel
:
this
.
$utils
.
getParamsFromLists
(
this
.
dictOptions
,
'value'
,
item
.
joExecutePlan
[
0
].
planState
,
'label'
)
}
})
this
.
$emit
(
'submitEvent'
,
{
formData
:
data
})
}
...
...
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