Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-appreciation
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 89bdb3e8
authored
Oct 12, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
紧急版本需求开发
1 parent
512abd27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/views/beforeSale/editEquity.vue
View file @
89bdb3e
...
@@ -1170,6 +1170,8 @@ export default {
...
@@ -1170,6 +1170,8 @@ export default {
// 切换套餐---赋默认值
// 切换套餐---赋默认值
changeCheckBox
(
e
,
item
,
index
)
{
changeCheckBox
(
e
,
item
,
index
)
{
this
.
vailGlassPackage
(
item
,
index
)
this
.
vailGlassPackage
(
item
,
index
)
// 套餐商品包含的权益商品数据
const
parentArr
=
this
.
productList
.
concat
(
this
.
productList
)?.
filter
(
v
=>
v
.
parentId
&&
v
.
parentId
==
item
.
parentId
)
if
(
e
)
{
if
(
e
)
{
const
_haveTableTarget
=
item
?.
groupAttributeList
.
find
(
item
=>
item
.
attributeDesc
==
'轮胎参数'
)
const
_haveTableTarget
=
item
?.
groupAttributeList
.
find
(
item
=>
item
.
attributeDesc
==
'轮胎参数'
)
if
(
_haveTableTarget
&&
!
this
.
TDOTableData
[
item
.
idName
])
{
if
(
_haveTableTarget
&&
!
this
.
TDOTableData
[
item
.
idName
])
{
...
@@ -1177,8 +1179,20 @@ export default {
...
@@ -1177,8 +1179,20 @@ export default {
}
}
this
.
checkCodeList
.
push
(
item
.
packageCode
)
this
.
checkCodeList
.
push
(
item
.
packageCode
)
this
.
packageCodeList
.
push
(
item
.
packageCode
)
this
.
packageCodeList
.
push
(
item
.
packageCode
)
if
(
parentArr
?.
length
)
{
const
parentCodes
=
parentArr
.
map
(
v
=>
v
.
packageCode
)
this
.
checkCodeList
.
push
(...
parentCodes
)
this
.
packageCodeList
.
push
(...
parentCodes
)
this
.
curSelectPro
.
push
(...
parentCodes
)
parentArr
.
forEach
(
v
=>
{
if
(
_haveTableTarget
&&
!
this
.
TDOTableData
[
v
.
idName
])
{
this
.
$set
(
this
.
TDOTableData
,
v
.
packageCode
,
JSON
.
parse
(
JSON
.
stringify
(
TDO_OBJ
)))
}
})
}
this
.
checkCodeList
=
Array
.
from
(
new
Set
(
this
.
checkCodeList
))
this
.
checkCodeList
=
Array
.
from
(
new
Set
(
this
.
checkCodeList
))
this
.
packageCodeList
=
Array
.
from
(
new
Set
(
this
.
packageCodeList
))
this
.
packageCodeList
=
Array
.
from
(
new
Set
(
this
.
packageCodeList
))
this
.
curSelectPro
=
Array
.
from
(
new
Set
(
this
.
curSelectPro
))
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
if
(
attr
.
attributeName
==
key
)
{
if
(
attr
.
attributeName
==
key
)
{
...
@@ -1196,6 +1210,12 @@ export default {
...
@@ -1196,6 +1210,12 @@ export default {
}
else
{
}
else
{
this
.
checkCodeList
=
this
.
checkCodeList
.
filter
(
t
=>
t
!=
item
.
packageCode
)
this
.
checkCodeList
=
this
.
checkCodeList
.
filter
(
t
=>
t
!=
item
.
packageCode
)
this
.
packageCodeList
=
this
.
packageCodeList
.
filter
(
t
=>
t
!=
item
.
packageCode
)
this
.
packageCodeList
=
this
.
packageCodeList
.
filter
(
t
=>
t
!=
item
.
packageCode
)
if
(
parentArr
?.
length
)
{
const
codesToRemove
=
new
Set
(
parentArr
.
map
(
v
=>
v
.
packageCode
))
this
.
checkCodeList
=
this
.
checkCodeList
.
filter
(
t
=>
!
codesToRemove
.
has
(
t
))
this
.
packageCodeList
=
this
.
packageCodeList
.
filter
(
t
=>
!
codesToRemove
.
has
(
t
))
this
.
curSelectPro
=
this
.
curSelectPro
.
filter
(
t
=>
!
codesToRemove
.
has
(
t
))
}
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
if
(
attr
.
attributeName
==
key
)
{
if
(
attr
.
attributeName
==
key
)
{
...
@@ -1209,6 +1229,8 @@ export default {
...
@@ -1209,6 +1229,8 @@ export default {
},
},
changeRaido
(
e
,
item
,
isDel
)
{
changeRaido
(
e
,
item
,
isDel
)
{
// isDel 删除选中的
// isDel 删除选中的
// 套餐商品包含的权益商品数据
const
parentArr
=
this
.
customProductList
.
concat
(
this
.
productList
)?.
filter
(
v
=>
v
.
parentId
&&
v
.
parentId
==
item
.
parentId
)
if
(
e
)
{
if
(
e
)
{
// this.checkCodeList = []
// this.checkCodeList = []
// this.autoPackageCodeList = []
// this.autoPackageCodeList = []
...
@@ -1218,8 +1240,20 @@ export default {
...
@@ -1218,8 +1240,20 @@ export default {
}
}
this
.
checkCodeList
.
push
(
item
.
packageCode
)
this
.
checkCodeList
.
push
(
item
.
packageCode
)
this
.
autoPackageCodeList
.
push
(
item
.
packageCode
)
this
.
autoPackageCodeList
.
push
(
item
.
packageCode
)
if
(
parentArr
?.
length
)
{
const
parentCodes
=
parentArr
.
map
(
v
=>
v
.
packageCode
)
this
.
checkCodeList
.
push
(...
parentCodes
)
this
.
autoPackageCodeList
.
push
(...
parentCodes
)
this
.
curSelectCustomPro
.
push
(...
parentCodes
)
parentArr
.
forEach
(
v
=>
{
if
(
_haveTableTarget
&&
!
this
.
TDOTableData
[
v
.
idName
])
{
this
.
$set
(
this
.
TDOTableData
,
v
.
packageCode
,
JSON
.
parse
(
JSON
.
stringify
(
TDO_OBJ
)))
}
})
}
this
.
checkCodeList
=
Array
.
from
(
new
Set
(
this
.
checkCodeList
))
this
.
checkCodeList
=
Array
.
from
(
new
Set
(
this
.
checkCodeList
))
this
.
autoPackageCodeList
=
Array
.
from
(
new
Set
(
this
.
autoPackageCodeList
))
this
.
autoPackageCodeList
=
Array
.
from
(
new
Set
(
this
.
autoPackageCodeList
))
this
.
curSelectCustomPro
=
Array
.
from
(
new
Set
(
this
.
curSelectCustomPro
))
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
if
(
attr
.
attributeName
==
key
)
{
if
(
attr
.
attributeName
==
key
)
{
...
@@ -1241,6 +1275,12 @@ export default {
...
@@ -1241,6 +1275,12 @@ export default {
if
(
isDel
)
{
if
(
isDel
)
{
this
.
curSelectCustomPro
=
this
.
curSelectCustomPro
.
filter
(
t
=>
t
!=
item
.
packageCode
)
this
.
curSelectCustomPro
=
this
.
curSelectCustomPro
.
filter
(
t
=>
t
!=
item
.
packageCode
)
}
}
if
(
parentArr
?.
length
)
{
const
codesToRemove
=
new
Set
(
parentArr
.
map
(
v
=>
v
.
packageCode
))
this
.
checkCodeList
=
this
.
checkCodeList
.
filter
(
t
=>
!
codesToRemove
.
has
(
t
))
this
.
autoPackageCodeList
=
this
.
autoPackageCodeList
.
filter
(
t
=>
!
codesToRemove
.
has
(
t
))
this
.
curSelectCustomPro
=
this
.
curSelectCustomPro
.
filter
(
t
=>
!
codesToRemove
.
has
(
t
))
}
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
if
(
attr
.
attributeName
==
key
)
{
if
(
attr
.
attributeName
==
key
)
{
...
...
src/views/beforeSale/equityList.vue
View file @
89bdb3e
...
@@ -453,6 +453,14 @@ export default {
...
@@ -453,6 +453,14 @@ export default {
}
}
},
},
{
{
label
:
'套餐名称'
,
prop
:
'parentName'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
parentName
||
'-'
}
},
{
label
:
'产品名称'
,
label
:
'产品名称'
,
prop
:
'packageName'
,
prop
:
'packageName'
,
width
:
'200px'
,
width
:
'200px'
,
...
...
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