Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
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 9ac07eba
authored
Aug 13, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
评估订单审批记录修改
1 parent
f9cfbe90
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
7 deletions
aus-front/admin/src/api/ApproveController.ts
aus-front/admin/src/views/common/ApproveHistoryTimeline.vue
aus-front/admin/src/views/vehicle/appraise/AppraisePriceAuditForm.vue
aus-front/admin/src/views/vehicle/appraise/AppraiseVehiclePage.vue
aus-front/admin/src/api/ApproveController.ts
View file @
9ac07eb
...
...
@@ -16,6 +16,10 @@ export class ApproveController{
static
getApproveHistoriesByApproveId
(
axios
:
AxiosStatic
,
approveType
:
any
,
approveId
:
number
):
Promise
<
AxiosResponse
<
ApproveHistory
[]
>>
{
return
axios
.
get
(
'approve/getApproveHistoriesByApproveId'
,
{
params
:
{
approveType
:
approveType
,
approveId
:
approveId
}});
}
/**评估定价审批记录 */
static
getAppraisePricesByVehicleIdExcludingUnaudited
(
axios
:
AxiosStatic
,
vehicleId
:
number
):
Promise
<
AxiosResponse
<
ApproveHistory
[]
>>
{
return
axios
.
get
(
'appraise/getAppraisePricesByVehicleIdExcludingUnaudited'
,
{
params
:
{
vehicleId
:
vehicleId
}});
}
/**
*/
...
...
aus-front/admin/src/views/common/ApproveHistoryTimeline.vue
View file @
9ac07eb
<
template
>
<a-timeline
class=
"mt-10"
>
<a-timeline-item
v-for=
"item in approveHistories"
:color=
"auditStateColor(item.a
pproveResult
)"
:key=
"item.historyId"
>
<a-timeline-item
v-for=
"item in approveHistories"
:color=
"auditStateColor(item.a
uditState
)"
:key=
"item.historyId"
>
<div
class=
"title-container"
>
<div
class=
"title-type"
>
<span
class=
"label"
>
操作类型:
</span>
{{
$t
(
'enum.auditState.'
+
item
.
approveResult
)
}}
{{
$t
(
'enum.auditState.'
+
item
.
auditState
)
}}
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
市场参考价:
</span>
¥
{{
item
.
referencePrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
起拍价:
</span>
¥
{{
item
.
startingBidPrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
保留价:
</span>
¥
{{
item
.
reservePrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
佣金金额:
</span>
¥
{{
item
.
fixedCommission
??
'-'
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
成本价:
</span>
¥
{{
appraiseObj
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
预计经销差:
</span>
¥
{{
expectedProfitMethod
(
item
.
reservePrice
,
appraiseObj
.
fixedCommission
,
appraiseObj
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
)
}}
元
</div>
<div
class=
"title-remark"
v-if=
"item.remark"
:title=
"item.remark"
>
<span
class=
"label"
>
备注:
</span>
{{
item
.
remark
}}
...
...
@@ -21,6 +45,30 @@
<span
class=
"label"
>
操作类型:
</span>
提交审核
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
市场参考价:
</span>
¥
{{
appraiseObj
.
referencePrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
起拍价:
</span>
¥
{{
appraiseObj
.
startingBidPrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
保留价:
</span>
¥
{{
appraiseObj
.
reservePrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
佣金金额:
</span>
¥
{{
appraiseObj
.
fixedCommission
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
成本价:
</span>
¥
{{
appraiseObj
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
}}
元
</div>
<div
class=
"title-type"
>
<span
class=
"label"
>
预计经销差:
</span>
¥
{{
expectedProfitMethod
(
appraiseObj
.
reservePrice
,
appraiseObj
.
fixedCommission
,
appraiseObj
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
)
}}
元
</div>
<div
class=
"title-remark"
v-if=
"remark"
:title=
"remark"
>
<span
class=
"label"
>
备注:
</span>
{{
remark
}}
</div>
...
...
@@ -60,13 +108,29 @@ export default class ApproveHistoryTimeline extends Vue {
remark
:
string
;
approveHistories
:
ApproveHistory
[]
=
[];
@
Prop
({
type
:
Object
,
required
:
false
})
appraiseObj
:
appraiseObj
=
{};
created
():
void
{
ApproveController
.
getApproveHistoriesByApproveId
(
this
.
axios
,
this
.
approveType
,
this
.
approveId
).
then
(
res
=>
{
ApproveController
.
getAppraisePricesByVehicleIdExcludingUnaudited
(
this
.
axios
,
this
.
appraiseObj
?.
vehicle
?.
vehicleId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
'2222'
)
this
.
approveHistories
=
res
.
data
;
});
}
expectedProfitMethod
(
reservePrice
,
commission
,
purchasePrice
)
{
// 预计经销差=保留价+佣金-成本价
if
(
!
reservePrice
||
!
purchasePrice
)
{
return
'-'
;
}
// 佣金字段可能是0或空,需要特殊处理
const
commissionPrice
=
commission
||
0
;
// 使用 Math.round() 避免精度丢失,保留2位小数
const
margin
=
Math
.
round
((
reservePrice
+
commissionPrice
-
purchasePrice
)
*
100
)
/
100
;
return
margin
.
toFixed
(
2
);
}
auditStateColor
(
auditState
:
AuditState
):
string
{
switch
(
auditState
)
{
case
"AUDITED"
:
...
...
@@ -89,6 +153,7 @@ export default class ApproveHistoryTimeline extends Vue {
.title-container
{
display
:
flex
;
flex-wrap
:
wrap
;
width
:
100%
;
align-items
:
center
;
}
...
...
@@ -96,10 +161,10 @@ export default class ApproveHistoryTimeline extends Vue {
.title-type
{
display
:
flex
;
align-items
:
center
;
margin-right
:
20px
;
}
.title-remark
{
margin-left
:
20px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
...
...
aus-front/admin/src/views/vehicle/appraise/AppraisePriceAuditForm.vue
View file @
9ac07eb
...
...
@@ -30,7 +30,7 @@
</a-descriptions-item>
</a-descriptions>
<a-divider>
审批记录
</a-divider>
<approve-history-timeline
approve-type=
"APPRAISE_PRICE"
:approve-id=
"appraisePrice.appraiseId"
:create-time=
"appraisePrice.createTime"
<approve-history-timeline
approve-type=
"APPRAISE_PRICE"
:approve-id=
"appraisePrice.appraiseId"
:
appraise-obj=
"appraisePrice"
:
create-time=
"appraisePrice.createTime"
:starter=
"appraisePrice.createBy"
:remark=
"appraisePrice.appraisalRemark"
></approve-history-timeline>
<a-form
v-if=
"formState"
:model=
"formState"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
...
...
aus-front/admin/src/views/vehicle/appraise/AppraiseVehiclePage.vue
View file @
9ac07eb
...
...
@@ -169,7 +169,8 @@ export default class AppraiseVehiclePage extends PaginationComponent<AppraisePri
approveId
:
appraisePrice
.
appraiseId
,
createTime
:
appraisePrice
.
createTime
,
starter
:
appraisePrice
.
createBy
,
remark
:
appraisePrice
.
appraisalRemark
remark
:
appraisePrice
.
appraisalRemark
,
appraiseObj
:
appraisePrice
},
onOk
:
(
component
):
void
=>
{
modal
.
destroy
();
...
...
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