Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 39886eb0
authored
Dec 25, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
轮胎bug
1 parent
359641d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
39886eb
...
...
@@ -1223,6 +1223,7 @@ export default {
},
// 处理数据结构对比后台所需的参数
handleProductArrParam
(
arr
,
codearr
,
isGetDetail
=
false
)
{
arr
=
arr
.
filter
(
item
=>
item
?.
attributeGroup
!=
'tireBatchNew'
&&
item
?.
attributeGroup
!=
'tireDTONew'
)
let
newArr
=
[],
filterList
=
[]
const
codeList
=
Array
.
from
(
new
Set
(
codearr
))
...
...
@@ -1271,27 +1272,26 @@ export default {
}
}
}
if
(
!
isGetDetail
)
{
codeList
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
TDOTableData
[
item
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
])
{
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
let
_obj
=
{
name
:
item
,
index
:
index
,
value
:
{
attributeGroup
:
key
,
attributeName
:
key
,
attributeValue
:
this
.
TDOTableData
[
item
][
key
][
i
],
sort
:
i
}
codeList
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
TDOTableData
[
item
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
])
{
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
let
_obj
=
{
name
:
item
,
index
:
index
,
value
:
{
attributeGroup
:
key
,
attributeName
:
key
,
attributeValue
:
this
.
TDOTableData
[
item
][
key
][
i
],
sort
:
i
}
blackArr
[
index
].
push
(
_obj
)
}
// const _hasItem = blackArr[index]?.find(prodi => prodi.name == item && prodi?.value?. ==sort )
blackArr
[
index
].
push
(
_obj
)
}
}
}
)
}
}
}
)
// codeList为已选中产品的packageCode
for
(
let
i
=
0
;
i
<
blackArr
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
blackArr
[
i
].
length
;
j
++
)
{
...
...
@@ -2115,7 +2115,6 @@ export default {
// 检查轮胎信息是否已填
checkTDOTableDataFn
()
{
const
allPageCodeList
=
this
.
equityRadio
==
1
?
this
.
packageCodeList
:
this
.
autoPackageCodeList
console
.
log
(
allPageCodeList
,
this
.
TDOTableData
)
let
isEmpty
=
false
try
{
allPageCodeList
.
forEach
(
item
=>
{
...
...
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