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 8422c76c
authored
May 19, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
同步v2.1.2紧急版本代码
1 parent
dfada6f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
8422c76
...
...
@@ -295,7 +295,7 @@ export default {
}
],
invoicePrice
:
[{
required
:
true
,
message
:
'请输入车辆价格'
,
trigger
:
'change'
}],
//
vehicleColor: [{ required: true, message: '请输入车身颜色', trigger: 'change' }],
vehicleColor
:
[{
required
:
true
,
message
:
'请输入车身颜色'
,
trigger
:
'change'
}],
vehicleBrandId
:
[{
required
:
true
,
message
:
'请选择车品牌'
,
trigger
:
'change'
}],
vehicleSubBrandId
:
[{
required
:
true
,
message
:
'请选择车子品牌'
,
trigger
:
'change'
}],
vehicleSeriesId
:
[{
required
:
true
,
message
:
'请选择车系'
,
trigger
:
'change'
}],
...
...
@@ -979,9 +979,9 @@ export default {
let
arrt4
=
`attributes[
${
blackArr
[
i
][
j
].
index
}
].attributeDTOList[
${
j
}
].sort`
let
obj
=
{
[
arrt1
]:
blackArr
[
i
][
j
].
value
.
attributeGroup
,
[
arrt2
]:
blackArr
[
i
][
j
].
value
.
attributeName
,
[
arrt2
]:
blackArr
[
i
][
j
].
value
.
attributeName
==
'afterTireScale'
?
'tireScale'
:
blackArr
[
i
][
j
].
value
.
attributeName
,
[
arrt3
]:
this
.
priceFormat
(
blackArr
[
i
][
j
].
value
.
attributeName
,
blackArr
[
i
][
j
].
value
.
attributeValue
),
[
arrt4
]:
blackArr
[
i
][
j
].
value
.
sort
[
arrt4
]:
blackArr
[
i
][
j
].
value
.
attributeName
==
'afterTireScale'
?
1
:
blackArr
[
i
][
j
].
value
.
sort
}
newParaArr
.
push
(
obj
)
}
...
...
@@ -992,7 +992,6 @@ export default {
concactArr
.
forEach
(
item
=>
{
this
.
formatProduct
=
Object
.
assign
(
this
.
formatProduct
,
item
)
})
// console.log(this.formatProduct, '自选权益')
}
else
{
concactArr
.
forEach
(
item
=>
{
this
.
autoFormatProduct
=
Object
.
assign
(
this
.
autoFormatProduct
,
item
)
...
...
@@ -1167,6 +1166,22 @@ export default {
},
getPackageList
()
{
this
.
$apis
.
beforeSale
.
getPackageListApi
({}).
then
(
res
=>
{
res
.
forEach
((
item
,
index
)
=>
{
let
obj
=
null
let
id
=
-
1
item
.
groupAttributeList
.
forEach
((
e
,
idx
)
=>
{
if
(
e
.
groupName
==
'tireScale'
)
{
if
(
e
?.
attributeList
&&
e
?.
attributeList
[
0
])
{
e
.
attributeList
[
0
].
attributeDesc
=
'规格型号(前轮)'
obj
=
JSON
.
parse
(
JSON
.
stringify
(
e
))
obj
.
attributeList
[
0
].
attributeDesc
=
'规格型号(后轮)'
obj
.
attributeList
[
0
].
attributeName
=
'afterTireScale'
id
=
idx
}
}
})
if
(
id
>
-
1
)
item
.
groupAttributeList
.
splice
(
id
+
1
,
0
,
obj
)
})
this
.
toTestProductData
(
res
)
})
},
...
...
@@ -1194,6 +1209,9 @@ export default {
if
(
item
.
attributeName
.
includes
(
'price'
))
{
item
.
attributeValue
=
item
.
attributeValue
/
100
}
if
(
item
.
attributeName
==
'tireScale'
&&
item
.
sort
==
1
)
{
item
.
attributeName
=
'afterTireScale'
}
if
(
item
.
attributeName
==
'buy_car_type'
&&
item
.
attributeValue
==
1
)
{
this
.
compensationNameDisable
=
true
}
...
...
@@ -1226,6 +1244,9 @@ export default {
}
else
if
(
item
.
attributeName
==
'planId'
)
{
this
.
getCase
(
parseInt
(
item
.
attributeValue
))
}
if
(
item
.
attributeName
==
'tireScale'
&&
item
.
sort
==
1
)
{
item
.
attributeName
=
'afterTireScale'
}
if
(
item
.
attributeName
==
'buy_car_type'
&&
item
.
attributeValue
==
1
)
{
this
.
compensationNameDisable
=
true
}
...
...
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