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 1b9c4797
authored
Nov 28, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
b5634f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
28 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
1b9c479
...
...
@@ -882,23 +882,24 @@ export default {
this
.
$set
(
this
.
productList
[
this
.
vailIndex
],
'disabled'
,
true
)
this
.
$set
(
this
.
productList
[
this
.
vailIndex
].
groupAttributeList
[
this
.
vail_sale_price_index
],
'disabled'
,
true
)
this
.
errGlassName
=
'车辆价格超过50万,无法购买'
if
(
this
.
tempAttributeList
.
length
&&
this
.
packageCodeList
.
length
){
if
(
this
.
packageCodeList
.
indexOf
(
this
.
vailGlassCode
)
!=-
1
){
let
arr1
=
[]
let
arr2
=
[]
this
.
tempAttributeList
.
forEach
(
ele
=>
{
if
(
ele
.
packageCode
!=
this
.
vailGlassCode
){
arr1
.
push
(
ele
)
}
})
this
.
packageCodeList
.
forEach
(
ele
=>
{
if
(
ele
!=
this
.
vailGlassCode
){
arr2
.
push
(
ele
)
}
})
this
.
handleProductArrParam
(
arr1
,
arr2
)
}
}
this
.
vaildGlassParams
()
// if(this.tempAttributeList.length&&this.packageCodeList.length){
// if( this.packageCodeList.indexOf(this.vailGlassCode)!=-1){
// let arr1 = []
// let arr2 = []
// this.tempAttributeList.forEach(ele=>{
// if(ele.packageCode!=this.vailGlassCode){
// arr1.push(ele)
// }
// })
// this.packageCodeList.forEach(ele=>{
// if(ele!=this.vailGlassCode){
// arr2.push(ele)
// }
// })
// this.handleProductArrParam(arr1, arr2)
// }
// }
}
else
{
this
.
errGlassName
=
''
if
(
this
.
vailIndex
!=
undefined
)
this
.
$set
(
this
.
productList
[
this
.
vailIndex
],
'disabled'
,
false
)
...
...
@@ -910,17 +911,24 @@ export default {
}
},
// 轮胎玻璃提单参数处理
vaildGlassParams
(
para
){
const
index
=
this
.
checkCodeList
.
indexOf
(
this
.
vailGlassCode
)
if
(
index
!=-
1
&&
this
.
errGlassName
){
for
(
let
key
in
para
){
if
(
key
.
indexOf
(
`attributes[
${
index
}
]`
)
!=-
1
){
delete
para
[
key
]
}
vaildGlassParams
(){
if
(
this
.
equityRadio
==
1
&&
this
.
tempAttributeList
.
length
&&
this
.
packageCodeList
.
length
&&
this
.
errGlassName
){
if
(
this
.
packageCodeList
.
indexOf
(
this
.
vailGlassCode
)
!=-
1
){
let
arr1
=
[]
let
arr2
=
[]
this
.
tempAttributeList
.
forEach
(
ele
=>
{
if
(
ele
.
packageCode
!=
this
.
vailGlassCode
){
arr1
.
push
(
ele
)
}
})
this
.
packageCodeList
.
forEach
(
ele
=>
{
if
(
ele
!=
this
.
vailGlassCode
){
arr2
.
push
(
ele
)
}
})
this
.
handleProductArrParam
(
arr1
,
arr2
)
}
return
para
}
return
para
},
// 切换套餐---赋默认值
changeCheckBox
(
e
,
item
,
index
)
{
...
...
@@ -1712,6 +1720,7 @@ export default {
},
// 草稿
handleDraft
()
{
this
.
vaildGlassParams
()
const
vaidObj
=
this
.
equityRadio
==
1
?
this
.
formatProduct
:
this
.
autoFormatProduct
if
(
this
.
submit
)
{
return
true
...
...
@@ -1733,7 +1742,6 @@ export default {
params
.
attributes
=
[]
}
params
=
Object
.
assign
(
params
,
vaidObj
)
params
=
this
.
vaildGlassParams
(
params
)
this
.
updateEquity
(
params
)
},
updateEquity
(
params
)
{
...
...
@@ -1782,6 +1790,7 @@ export default {
}
},
handleConfirm
()
{
this
.
vaildGlassParams
()
const
vaidObj
=
this
.
equityRadio
==
1
?
this
.
formatProduct
:
this
.
autoFormatProduct
const
isEmptyObj
=
JSON
.
stringify
(
vaidObj
)
==
'{}'
if
(
isEmptyObj
)
{
...
...
@@ -1828,7 +1837,6 @@ export default {
...
params
,
...
vaidObj
}
params
=
this
.
vaildGlassParams
(
params
)
this
.
$apis
.
beforeSale
.
checkOrderApi
({
vin
:
this
.
editForm
.
vehicle
.
vin
,
contractNo
:
this
.
routeInfo
.
contractNo
||
''
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
updateEquity
(
params
)
...
...
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