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 ad065339
authored
Dec 20, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复轮胎历史数据bug
1 parent
116ecd21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
ad06533
...
@@ -328,6 +328,7 @@ export default {
...
@@ -328,6 +328,7 @@ export default {
PC0005
:
''
,
PC0005
:
''
,
PC0007
:
''
PC0007
:
''
},
},
allProdList
:
[],
editCarChildRef
:
'editChildRef'
,
editCarChildRef
:
'editChildRef'
,
disabled
:
false
,
disabled
:
false
,
successDisable
:
false
,
successDisable
:
false
,
...
@@ -1318,20 +1319,7 @@ export default {
...
@@ -1318,20 +1319,7 @@ export default {
}
}
}
}
}
}
if
(
isGetDetail
)
{
if
(
!
isGetDetail
)
{
blackArr
.
forEach
(
element
=>
{
element
?.
forEach
(
item
=>
{
if
(
item
.
value
.
attributeGroup
==
'tireDTONew'
||
item
.
value
.
attributeGroup
==
'tireBatchNew'
)
{
if
(
!
this
.
TDOTableData
[
item
.
name
])
this
.
$set
(
this
.
TDOTableData
,
item
.
name
,
{})
if
(
this
.
TDOTableData
[
item
.
name
]
&&
!
this
.
TDOTableData
[
item
.
name
][
item
.
value
.
attributeGroup
])
{
this
.
$set
(
this
.
TDOTableData
[
item
.
name
],
item
.
value
.
attributeGroup
,
{})
}
this
.
$set
(
this
.
TDOTableData
[
item
.
name
][
item
.
value
.
attributeGroup
],
item
.
value
.
sort
,
item
.
value
.
attributeValue
)
}
})
})
console
.
log
(
this
.
TDOTableData
,
'isGetDetail'
)
}
else
{
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
])
{
...
@@ -1607,6 +1595,7 @@ export default {
...
@@ -1607,6 +1595,7 @@ export default {
params
.
tireFlag
=
1
params
.
tireFlag
=
1
}
}
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
allProdList
=
res
res
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
let
obj
=
null
let
obj
=
null
let
id
=
-
1
let
id
=
-
1
...
@@ -1770,7 +1759,15 @@ export default {
...
@@ -1770,7 +1759,15 @@ export default {
}
}
packCode
.
push
(
item
.
packageCode
)
packCode
.
push
(
item
.
packageCode
)
const
_curProdTarget
=
this
.
allProdList
.
find
(
el
=>
el
.
packageCode
==
item
.
packageCode
)
const
hasTire
=
_curProdTarget
?.
groupAttributeList
?.
find
(
el
=>
el
.
attributeGroup
==
'tireDTONew'
||
el
.
attributeGroup
==
'tireBatchNew'
)
if
(
hasTire
&&
!
this
.
TDOTableData
[
item
.
packageCode
])
{
this
.
$set
(
this
.
TDOTableData
,
item
.
packageCode
,
JSON
.
parse
(
JSON
.
stringify
(
TDO_OBJ
)))
}
item
.
attributeDTOList
.
forEach
(
el
=>
{
item
.
attributeDTOList
.
forEach
(
el
=>
{
if
(
this
.
TDOTableData
[
item
.
packageCode
]
&&
(
el
.
attributeGroup
==
'tireDTONew'
||
el
.
attributeGroup
==
'tireBatchNew'
))
{
this
.
$set
(
this
.
TDOTableData
[
item
.
packageCode
][
el
.
attributeGroup
],
el
.
sort
,
el
.
attributeValue
)
}
attrList
.
push
({
attrList
.
push
({
...
el
,
...
el
,
packageCode
:
item
.
packageCode
,
packageCode
:
item
.
packageCode
,
...
...
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