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 bb805b77
authored
Dec 25, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
轮胎bug修复
1 parent
2a0ce368
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
bb805b7
...
@@ -1053,7 +1053,6 @@ export default {
...
@@ -1053,7 +1053,6 @@ export default {
}
}
},
},
inputTdoVal
()
{
inputTdoVal
()
{
console
.
log
(
this
.
TDOTableData
)
if
(
this
.
equityRadio
==
1
)
{
if
(
this
.
equityRadio
==
1
)
{
this
.
handleProductArrParam
(
this
.
tempAttributeList
,
this
.
packageCodeList
)
this
.
handleProductArrParam
(
this
.
tempAttributeList
,
this
.
packageCodeList
)
}
else
{
}
else
{
...
@@ -1270,6 +1269,7 @@ export default {
...
@@ -1270,6 +1269,7 @@ export default {
},
},
// 处理数据结构对比后台所需的参数
// 处理数据结构对比后台所需的参数
handleProductArrParam
(
arr
,
codearr
,
isGetDetail
=
false
)
{
handleProductArrParam
(
arr
,
codearr
,
isGetDetail
=
false
)
{
arr
=
arr
.
filter
(
item
=>
item
?.
attributeGroup
!=
'tireBatchNew'
&&
item
?.
attributeGroup
!=
'tireDTONew'
)
let
newArr
=
[],
let
newArr
=
[],
filterList
=
[]
filterList
=
[]
const
codeList
=
Array
.
from
(
new
Set
(
codearr
))
const
codeList
=
Array
.
from
(
new
Set
(
codearr
))
...
@@ -1319,28 +1319,25 @@ export default {
...
@@ -1319,28 +1319,25 @@ export default {
}
}
}
}
}
}
if
(
!
isGetDetail
)
{
codeList
.
forEach
((
item
,
index
)
=>
{
codeList
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
TDOTableData
[
item
])
{
if
(
this
.
TDOTableData
[
item
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
])
{
for
(
let
key
in
this
.
TDOTableData
[
item
])
{
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
for
(
let
i
=
0
;
i
<
4
;
i
++
)
{
let
_obj
=
{
let
_obj
=
{
name
:
item
,
name
:
item
,
index
:
index
,
index
:
index
,
value
:
{
value
:
{
attributeGroup
:
key
,
attributeGroup
:
key
,
attributeName
:
key
,
attributeName
:
key
,
attributeValue
:
this
.
TDOTableData
[
item
][
key
][
i
],
attributeValue
:
this
.
TDOTableData
[
item
][
key
][
i
],
sort
:
i
sort
:
i
}
}
}
blackArr
[
index
].
push
(
_obj
)
}
}
blackArr
[
index
].
push
(
_obj
)
}
}
}
}
})
}
}
})
console
.
log
(
blackArr
,
codeList
,
'codeList'
)
// codeList为已选中产品的packageCode
// codeList为已选中产品的packageCode
for
(
let
i
=
0
;
i
<
blackArr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
blackArr
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
blackArr
[
i
].
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
blackArr
[
i
].
length
;
j
++
)
{
...
...
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