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
fbb98b50
Commit
fbb98b50
authored
May 09, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加AO保留弹框修改
parent
16f95723
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
index.vue
...mponents/components/AddExtRetentionDetailDialog/index.vue
+18
-6
No files found.
applications/dee-mes/src/privateComponents/components/AddExtRetentionDetailDialog/index.vue
View file @
fbb98b50
...
...
@@ -41,12 +41,16 @@ export default {
layConfig
:
{
typeName
:
'ExtProcessPlan'
,
layKey
:
'addExtRetentionLists'
}
}
},
computed
:
{},
computed
:
{
isAddAO
()
{
return
this
.
componentProp
.
name
===
'添加AO保留'
}
},
watch
:
{
'componentProp.name'
:
{
isAddAO
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
val
===
'添加AO保留'
)
{
if
(
val
)
{
this
.
layConfig
=
{
typeName
:
'ExtProcessPlan'
,
layKey
:
'addExtRetentionLists'
}
}
else
{
this
.
layConfig
=
{
typeName
:
'ExtProcessPlan'
,
layKey
:
'addOtherExtRetentionLists'
}
...
...
@@ -84,15 +88,23 @@ export default {
if
(
this
.
selection
.
length
)
{
const
showData
=
this
.
findByNameVnode
(
this
,
'DeeAsTable'
).
showData
if
(
showData
.
length
)
{
const
validId
=
this
.
componentProp
.
name
===
'添加AO保留'
?
'id'
:
'targetId'
const
validId
=
this
.
isAddAO
?
'id'
:
'targetId'
this
.
selection
=
this
.
selection
.
filter
(
item
=>
!
showData
.
some
(
x
=>
x
.
targetId
===
item
[
validId
]))
}
const
data
=
this
.
selection
.
map
(
row
=>
{
const
item
=
this
.
componentProp
.
name
===
'添加AO保留'
?
row
:
row
.
target
let
item
=
''
let
assemblyUnit
=
''
if
(
this
.
isAddAO
)
{
item
=
row
assemblyUnit
=
this
.
getCaNo
(
item
.
targetExtProcessUsageLink
&&
item
.
targetExtProcessUsageLink
[
0
]
&&
item
.
targetExtProcessUsageLink
[
0
].
source
)
}
else
{
item
=
row
.
target
assemblyUnit
=
row
.
assemblyUnit
}
return
{
operator
:
'ADD'
,
dictOptions
:
this
.
dictOptions
,
assemblyUnit
:
this
.
getCaNo
(
item
.
targetExtProcessUsageLink
&&
item
.
targetExtProcessUsageLink
[
0
]
&&
item
.
targetExtProcessUsageLink
[
0
].
source
)
,
assemblyUnit
:
assemblyUnit
,
target
:
item
,
targetId
:
item
.
id
,
targetIdType
:
'ExtProcessPlan'
,
...
...
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