Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a30a686c
authored
Aug 21, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复属性重复问题
1 parent
515662be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
a30a686
...
...
@@ -1399,7 +1399,7 @@ export default {
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
if
(
defalutAttr
.
length
)
{
item
.
attributeDTOList
=
[...
defalutAttr
,...
item
.
attributeDTOList
]
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
}
if
(
targetItem
.
packageType
==
1
)
{
this
.
equityRadio
=
2
...
...
@@ -1519,6 +1519,22 @@ export default {
this
.
checkCodeList
=
packCode
this
.
handleProductArrParam
(
attrList
,
packCode
)
},
// 处理详情属性值赋值
handlerAttrSetValue
(
defaultList
,
targetList
){
let
arr
=
[],
nameList
=
[],
result
=
[]
targetList
.
forEach
(
el
=>
{
nameList
.
push
(
el
.
attributeName
)
})
defaultList
.
forEach
(
el
=>
{
if
(
nameList
.
includes
(
el
.
attributeName
)){
}
else
{
arr
.
push
(
el
)
}
})
result
=
[...
arr
,...
targetList
]
return
result
},
// 处理默认值赋值
handleDefaultValue
(
targetItem
,
attributeDTOList
)
{
const
currentPackageValue
=
this
.
productModal
[
targetItem
.
idName
]
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment