Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 b074f09d
authored
Sep 29, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
810c1ad2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
73 additions
and
74 deletions
package-lock.json
src/api/usedCarManagement.js
src/views/usedCarManagement/evaluationManagement/evaluate.vue
src/views/usedCarManagement/operateManagement/components/contract/detail.vue
src/views/usedCarManagement/operateManagement/components/sunshine/components/add.vue
src/views/usedCarManagement/operateManagement/components/sunshine/index.vue
package-lock.json
View file @
b074f09
This diff is collapsed.
Click to expand it.
src/api/usedCarManagement.js
View file @
b074f09
...
@@ -47,7 +47,7 @@ export function getEvalOrderPriceHistory(data) {
...
@@ -47,7 +47,7 @@ export function getEvalOrderPriceHistory(data) {
}
}
//评估车辆
//评估车辆
export
function
evaluateCar
(
data
)
{
export
function
evaluateCar
(
data
)
{
return
gscPost
(
"/evalOrderManage/evaluate"
,
data
,
true
)
return
gscPost
(
"/evalOrderManage/evaluate"
,
data
,
{
returnAll
:
true
}
)
}
}
//车辆评估导出
//车辆评估导出
export
function
exportEvaluate
(
data
)
{
export
function
exportEvaluate
(
data
)
{
...
@@ -60,11 +60,11 @@ export function getSunlightPage(data) {
...
@@ -60,11 +60,11 @@ export function getSunlightPage(data) {
}
}
//修改阳光激励配置
//修改阳光激励配置
export
const
updateSunlightConfig
=
(
data
)
=>
{
export
const
updateSunlightConfig
=
(
data
)
=>
{
return
gscPost
(
"/sunlightInspiresConfig/edit"
,
data
)
return
gscPost
(
"/sunlightInspiresConfig/edit"
,
data
,
{
returnAll
:
true
}
)
}
}
// 新增阳光激励配置
// 新增阳光激励配置
export
const
createSunlightConfig
=
(
data
)
=>
{
export
const
createSunlightConfig
=
(
data
)
=>
{
return
gscPost
(
"/sunlightInspiresConfig/create"
,
data
)
return
gscPost
(
"/sunlightInspiresConfig/create"
,
data
,
{
returnAll
:
true
}
)
}
}
//阳光激励详情
//阳光激励详情
export
const
getSunlightConfig
=
(
data
)
=>
{
export
const
getSunlightConfig
=
(
data
)
=>
{
...
...
src/views/usedCarManagement/evaluationManagement/evaluate.vue
View file @
b074f09
...
@@ -66,7 +66,6 @@ export default {
...
@@ -66,7 +66,6 @@ export default {
},
},
methods
:
{
methods
:
{
handleReject
()
{
handleReject
()
{
console
.
log
(
"paramsObj"
,
this
.
paramsObj
)
this
.
rejectVisible
=
!
this
.
rejectVisible
this
.
rejectVisible
=
!
this
.
rejectVisible
},
},
dialogClose
()
{
dialogClose
()
{
...
@@ -101,11 +100,23 @@ export default {
...
@@ -101,11 +100,23 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
evaluateCar
(
params
).
then
((
res
)
=>
{
evaluateCar
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
// this.$message.success("操作成功")
if
(
res
.
data
.
code
==
0
)
{
// this.handleCancel()
this
.
$message
.
success
(
"操作成功"
)
// this.rejectVisible = false
this
.
handleCancel
()
this
.
rejectVisible
=
false
}
else
if
(
res
.
data
.
code
==
1000
)
{
this
.
refreshPage
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
msg
)
}
})
})
})
})
},
refreshPage
()
{
// 方式一:重新加载当前路由
this
.
$router
.
go
(
0
)
this
.
getEvalOrderDetail
()
this
.
getEvalOrderPriceHistory
()
}
}
}
}
}
}
...
...
src/views/usedCarManagement/operateManagement/components/contract/detail.vue
View file @
b074f09
...
@@ -196,9 +196,7 @@
...
@@ -196,9 +196,7 @@
subitem
.
formatter
subitem
.
formatter
?
subitem
.
formatter
(
detailInfo
,
signIndex
)
||
?
subitem
.
formatter
(
detailInfo
,
signIndex
)
||
"-"
"-"
:
detailInfo
.
electronicContractField
[
:
detailInfo
.
electronicContractField
signIndex
==
1
?
subitem
.
keyA
:
subitem
.
keyB
]
?
detailInfo
.
electronicContractField
[
?
detailInfo
.
electronicContractField
[
signIndex
==
1
?
subitem
.
keyA
:
subitem
.
keyB
signIndex
==
1
?
subitem
.
keyA
:
subitem
.
keyB
]
]
...
@@ -489,7 +487,7 @@ export default {
...
@@ -489,7 +487,7 @@ export default {
this
.
getContractDetail
()
this
.
getContractDetail
()
},
},
mounted
()
{
mounted
()
{
this
.
trackBusinessParam
=
{
id
}
this
.
trackBusinessParam
=
{
id
:
this
.
id
}
this
.
onPageShow
()
this
.
onPageShow
()
},
},
methods
:
{
methods
:
{
...
@@ -529,6 +527,7 @@ export default {
...
@@ -529,6 +527,7 @@ export default {
description
:
this
.
detailInfo
.
description
description
:
this
.
detailInfo
.
description
}
}
getContractEdit
(
params
).
then
((
res
)
=>
{
getContractEdit
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
handleCancel
()
this
.
handleCancel
()
this
.
$message
.
success
(
"操作成功"
)
this
.
$message
.
success
(
"操作成功"
)
})
})
...
...
src/views/usedCarManagement/operateManagement/components/sunshine/components/add.vue
View file @
b074f09
...
@@ -227,9 +227,12 @@ export default {
...
@@ -227,9 +227,12 @@ export default {
?
updateSunlightConfig
?
updateSunlightConfig
:
createSunlightConfig
:
createSunlightConfig
Methods
(
params
).
then
((
res
)
=>
{
Methods
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
0
)
{
this
.
notice
.
okTips
(
"操作成功"
)
this
.
$message
.
success
(
"操作成功"
)
this
.
visible
=
true
this
.
visible
=
true
}
else
{
this
.
$message
.
error
(
res
.
data
.
msg
)
}
})
})
}
}
})
})
...
...
src/views/usedCarManagement/operateManagement/components/sunshine/index.vue
View file @
b074f09
...
@@ -220,6 +220,7 @@ export default {
...
@@ -220,6 +220,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
onPageShow
()
this
.
onPageShow
()
this
.
getServiceStore
()
this
.
getServiceStore
()
this
.
getOptionsList
(
"showFormData"
,
true
,
"carType"
)
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
@@ -232,45 +233,6 @@ export default {
...
@@ -232,45 +233,6 @@ export default {
methods
:
{
methods
:
{
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
setReportTrackData
(
eventType
,
eventCode
=
""
,
businessParam
=
""
,
batchId
=
""
)
{
let
recordList
=
localStorage
.
getItem
(
"recordList"
)
const
route
=
this
.
$route
const
{
loginAccout
,
uuid
,
userType
}
=
this
.
loginAccount
let
{
prePagePath
}
=
this
const
item
=
{
loginAccount
:
loginAccout
,
uuid
,
userType
,
systemSource
:
1
,
eventTime
:
Util
.
dateFormate
(
Date
.
now
(),
"YYYY-MM-DD HH:mm:ss"
),
eventType
,
pagePath
:
route
.
path
}
if
(
!
prePagePath
)
prePagePath
=
this
.
getPrePagePath
(
this
)
item
.
prePagePath
=
prePagePath
||
"/index"
if
(
batchId
)
item
.
batchId
=
batchId
if
(
eventCode
)
item
.
eventCode
=
eventCode
if
(
businessParam
)
item
.
businessParam
=
JSON
.
stringify
(
businessParam
)
if
(
!
recordList
)
recordList
=
[
item
]
else
{
recordList
=
JSON
.
parse
(
recordList
)
recordList
.
push
(
item
)
}
localStorage
.
setItem
(
"recordList"
,
JSON
.
stringify
(
recordList
))
if
(
recordList
.
length
>
9
)
{
reportTrack
({
recordList
}).
then
((
res
)
=>
{
if
(
res
)
localStorage
.
removeItem
(
"recordList"
)
})
}
},
handleAddStimulate
()
{
handleAddStimulate
()
{
this
.
paramsObj
=
{}
this
.
paramsObj
=
{}
this
.
sunVisible
=
true
this
.
sunVisible
=
true
...
@@ -318,7 +280,7 @@ export default {
...
@@ -318,7 +280,7 @@ export default {
scene
:
7
//二手车
scene
:
7
//二手车
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
baseData
.
storeIdList
=
res
||
[]
this
.
baseData
.
storeIdList
=
res
||
[]
this
.
getOptionsList
()
this
.
getOptionsList
(
"showFormData"
,
false
,
"sellerMerchantIds"
)
})
})
},
},
//车辆评估
//车辆评估
...
@@ -410,29 +372,53 @@ export default {
...
@@ -410,29 +372,53 @@ export default {
}
}
},
},
getOptionsList
()
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
refreshSigle
)
{
if
(
item
.
type
===
"select"
)
{
var
item
=
this
[
formName
].
find
((
k
)
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
((
k
)
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
"optionList"
,
deepClone
(
this
.
baseData
[
item
.
optionsName
])
)
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
"全部"
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
""
temp
[
this
[
formName
][
index
].
optionLabel
]
=
"全部"
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
[
"select"
,
"radio"
].
includes
(
item
.
type
)
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
baseData
[
item
.
optionsName
].
length
this
.
showFormData
[
index
].
optionLabel
]
!==
"全部"
)
{
)
{
// if (item.optionsName != "brandList") {
this
.
$set
(
const
temp
=
{}
this
[
formName
][
index
],
temp
[
this
.
showFormData
[
index
].
optionId
]
=
""
"optionList"
,
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
"全部"
deepClone
(
this
.
baseData
[
item
.
optionsName
])
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
)
// }
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
"全部"
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
""
temp
[
this
[
formName
][
index
].
optionLabel
]
=
"全部"
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
}
this
.
$set
(
})
this
.
showFormData
[
index
],
}
"optionList"
,
this
.
baseData
[
item
.
optionsName
]
)
}
})
}
}
}
}
}
}
...
...
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