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 2eccb4ba
authored
Aug 14, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.8.5' of
http://192.168.3.233:8090/usedCarAuction/aus
into v5.8.5
2 parents
e715c4e8
26597024
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
247 additions
and
86 deletions
aus-core/src/main/java/com/glsx/usedcar/module/auction/entity/vo/PendingPaymentAuditDTO.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
aus-core/src/main/java/com/glsx/usedcar/module/track/dao/ApproveHistoryDao.java
aus-front/admin/src/views/common/ApproveHistoryTimeline.vue
aus-front/admin/src/views/common/ApproveHistoryTimelineWithPrice.vue
aus-front/admin/src/views/vehicle/appraise/AppraisePriceAuditForm.vue
aus-front/admin/src/views/vehicle/appraise/AppraiseVehiclePage.vue
aus-front/admin/src/views/vehicle/auction/AuctionVehiclePage.vue
aus-core/src/main/java/com/glsx/usedcar/module/auction/entity/vo/PendingPaymentAuditDTO.java
View file @
2eccb4b
...
@@ -45,4 +45,10 @@ public class PendingPaymentAuditDTO implements Serializable {
...
@@ -45,4 +45,10 @@ public class PendingPaymentAuditDTO implements Serializable {
@Schema
(
description
=
"更新时间"
)
@Schema
(
description
=
"更新时间"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
;
@Schema
(
description
=
"审核状态: UNAUDITED-待审核, REJECTED-已驳回"
)
private
String
auditState
;
@Schema
(
description
=
"驳回原因(仅审核状态为REJECTED时有值)"
)
private
String
rejectReason
;
}
}
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
View file @
2eccb4b
package
com
.
glsx
.
usedcar
.
module
.
auction
.
service
;
package
com
.
glsx
.
usedcar
.
module
.
auction
.
service
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.usedcar.converts.OrderTransactionConverter
;
import
com.glsx.usedcar.gsc.GscApiInvoker
;
import
com.glsx.usedcar.gsc.GscApiInvoker
;
import
com.glsx.usedcar.gsc.GscInvoker
;
import
com.glsx.usedcar.gsc.GscInvoker
;
import
com.glsx.usedcar.module.account.dao.AccountDao
;
import
com.glsx.usedcar.module.account.dao.AccountDao
;
...
@@ -13,9 +14,9 @@ import com.glsx.usedcar.module.auction.dao.BidDao;
...
@@ -13,9 +14,9 @@ import com.glsx.usedcar.module.auction.dao.BidDao;
import
com.glsx.usedcar.module.auction.entity.*
;
import
com.glsx.usedcar.module.auction.entity.*
;
import
com.glsx.usedcar.module.auction.entity.resp.AccountBidResultResp
;
import
com.glsx.usedcar.module.auction.entity.resp.AccountBidResultResp
;
import
com.glsx.usedcar.module.auction.entity.vo.AuctionOrderStateCountRespVO
;
import
com.glsx.usedcar.module.auction.entity.vo.AuctionOrderStateCountRespVO
;
import
com.glsx.usedcar.module.auction.entity.vo.PendingPaymentAuditDTO
;
import
com.glsx.usedcar.module.business.entity.NoticeTemplate
;
import
com.glsx.usedcar.module.business.entity.NoticeTemplate
;
import
com.glsx.usedcar.module.business.service.NoticeField
;
import
com.glsx.usedcar.module.business.service.NoticeField
;
import
com.glsx.usedcar.converts.OrderTransactionConverter
;
import
com.glsx.usedcar.module.coupon.dao.CouponOrderUsageRepository
;
import
com.glsx.usedcar.module.coupon.dao.CouponOrderUsageRepository
;
import
com.glsx.usedcar.module.coupon.entity.CouponOrderUsage
;
import
com.glsx.usedcar.module.coupon.entity.CouponOrderUsage
;
import
com.glsx.usedcar.module.coupon.service.CouponActivityService
;
import
com.glsx.usedcar.module.coupon.service.CouponActivityService
;
...
@@ -122,14 +123,32 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -122,14 +123,32 @@ public class AuctionOrderService extends AbstractAuctionService {
public
AuctionOrder
getAuctionOrderDetailById
(
int
orderId
)
{
public
AuctionOrder
getAuctionOrderDetailById
(
int
orderId
)
{
AuctionOrder
auctionOrder
=
auctionOrderDao
.
findByOrderId
(
orderId
);
AuctionOrder
auctionOrder
=
auctionOrderDao
.
findByOrderId
(
orderId
);
// 填充待审核支付凭证信息:仅当订单状态为待付款且审核状态为待审核时有值
if
(
auctionOrder
==
null
)
{
if
(
auctionOrder
!=
null
return
null
;
&&
auctionOrder
.
getOrderState
()
==
AuctionOrder
.
OrderState
.
UNPAID
}
&&
auctionOrder
.
getAuditState
()
==
AuditState
.
UNAUDITED
)
{
// 仅当订单状态为待付款时,填充支付凭证审核信息
if
(
auctionOrder
.
getOrderState
()
==
AuctionOrder
.
OrderState
.
UNPAID
)
{
OrderTransaction
transaction
=
orderTransactionDao
.
findTopByAuctionOrder_OrderIdOrderByCreateTimeDesc
(
orderId
);
OrderTransaction
transaction
=
orderTransactionDao
.
findTopByAuctionOrder_OrderIdOrderByCreateTimeDesc
(
orderId
);
if
(
transaction
!=
null
&&
transaction
.
getAuditState
()
==
AuditState
.
UNAUDITED
)
{
if
(
transaction
==
null
)
{
return
auctionOrder
;
}
AuditState
auditState
=
auctionOrder
.
getAuditState
();
// 待审核状态:填充待审核支付凭证信息
if
(
auditState
==
AuditState
.
UNAUDITED
&&
transaction
.
getAuditState
()
==
AuditState
.
UNAUDITED
)
{
auctionOrder
.
setPendingPaymentAudit
(
orderTransactionConverter
.
toPendingPaymentAuditDTO
(
transaction
));
auctionOrder
.
setPendingPaymentAudit
(
orderTransactionConverter
.
toPendingPaymentAuditDTO
(
transaction
));
}
}
// 已驳回状态:填充审核失败信息(包含驳回原因)
else
if
(
auditState
==
AuditState
.
REJECTED
&&
transaction
.
getAuditState
()
==
AuditState
.
REJECTED
)
{
PendingPaymentAuditDTO
dto
=
orderTransactionConverter
.
toPendingPaymentAuditDTO
(
transaction
);
dto
.
setAuditState
(
AuditState
.
REJECTED
.
name
());
// 查询最近一次驳回记录,获取驳回原因
ApproveHistory
rejectHistory
=
approveHistoryDao
.
findTopByApproveTypeAndApproveIdAndApproveResultOrderByCreateTimeDesc
(
ApproveHistory
.
ApproveType
.
PAYMENT
,
transaction
.
getTransactionId
(),
AuditState
.
REJECTED
);
if
(
rejectHistory
!=
null
)
{
dto
.
setRejectReason
(
rejectHistory
.
getRemark
());
}
auctionOrder
.
setPendingPaymentAudit
(
dto
);
}
}
}
return
auctionOrder
;
return
auctionOrder
;
}
}
...
...
aus-core/src/main/java/com/glsx/usedcar/module/track/dao/ApproveHistoryDao.java
View file @
2eccb4b
...
@@ -22,4 +22,11 @@ public interface ApproveHistoryDao extends BaseRepository<ApproveHistory, Intege
...
@@ -22,4 +22,11 @@ public interface ApproveHistoryDao extends BaseRepository<ApproveHistory, Intege
@EntityGraph
(
attributePaths
=
{
"user"
})
@EntityGraph
(
attributePaths
=
{
"user"
})
List
<
ApproveHistory
>
findByApproveTypeAndApproveIdAndApproveResultNotOrderByCreateTimeDesc
(
List
<
ApproveHistory
>
findByApproveTypeAndApproveIdAndApproveResultNotOrderByCreateTimeDesc
(
ApproveHistory
.
ApproveType
approveType
,
int
approveId
,
AuditState
excludeState
);
ApproveHistory
.
ApproveType
approveType
,
int
approveId
,
AuditState
excludeState
);
/**
* 根据审批类型、业务ID和审批结果查询最近一条记录
*/
@EntityGraph
(
attributePaths
=
{
"user"
})
ApproveHistory
findTopByApproveTypeAndApproveIdAndApproveResultOrderByCreateTimeDesc
(
ApproveHistory
.
ApproveType
approveType
,
int
approveId
,
AuditState
approveResult
);
}
}
aus-front/admin/src/views/common/ApproveHistoryTimeline.vue
View file @
2eccb4b
<
template
>
<
template
>
<a-timeline
class=
"mt-10"
>
<a-timeline
class=
"mt-10"
>
<a-timeline-item
v-for=
"item in approveHistories"
:color=
"auditStateColor(item.a
uditState
)"
:key=
"item.historyId"
>
<a-timeline-item
v-for=
"item in approveHistories"
:color=
"auditStateColor(item.a
pproveResult
)"
:key=
"item.historyId"
>
<div
class=
"title-container"
>
<div
class=
"title-container"
>
<div
class=
"title-type"
>
<div
class=
"title-type"
>
<span
class=
"label"
>
操作类型:
</span>
<span
class=
"label"
>
操作类型:
</span>
{{
$t
(
'enum.auditState.'
+
item
.
auditState
)
}}
{{
$t
(
'enum.auditState.'
+
item
.
approveResult
)
}}
</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>
<div
class=
"title-remark"
v-if=
"item.remark"
:title=
"item.remark"
>
<div
class=
"title-remark"
v-if=
"item.remark"
:title=
"item.remark"
>
<span
class=
"label"
>
备注:
</span>
{{
item
.
remark
}}
<span
class=
"label"
>
备注:
</span>
{{
item
.
remark
}}
...
@@ -45,30 +21,6 @@
...
@@ -45,30 +21,6 @@
<span
class=
"label"
>
操作类型:
</span>
<span
class=
"label"
>
操作类型:
</span>
提交审核
提交审核
</div>
</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"
>
<div
class=
"title-remark"
v-if=
"remark"
:title=
"remark"
>
<span
class=
"label"
>
备注:
</span>
{{
remark
}}
<span
class=
"label"
>
备注:
</span>
{{
remark
}}
</div>
</div>
...
@@ -108,29 +60,13 @@ export default class ApproveHistoryTimeline extends Vue {
...
@@ -108,29 +60,13 @@ export default class ApproveHistoryTimeline extends Vue {
remark
:
string
;
remark
:
string
;
approveHistories
:
ApproveHistory
[]
=
[];
approveHistories
:
ApproveHistory
[]
=
[];
@
Prop
({
type
:
Object
,
required
:
false
})
appraiseObj
:
appraiseObj
=
{};
created
():
void
{
created
():
void
{
ApproveController
.
getAppraisePricesByVehicleIdExcludingUnaudited
(
this
.
axios
,
this
.
appraiseObj
?.
vehicle
?.
vehicleId
).
then
(
res
=>
{
ApproveController
.
getApproveHistoriesByApproveId
(
this
.
axios
,
this
.
approveType
,
this
.
approveId
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
'2222'
)
this
.
approveHistories
=
res
.
data
;
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
{
auditStateColor
(
auditState
:
AuditState
):
string
{
switch
(
auditState
)
{
switch
(
auditState
)
{
case
"AUDITED"
:
case
"AUDITED"
:
...
@@ -153,7 +89,6 @@ export default class ApproveHistoryTimeline extends Vue {
...
@@ -153,7 +89,6 @@ export default class ApproveHistoryTimeline extends Vue {
.title-container
{
.title-container
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
width
:
100%
;
width
:
100%
;
align-items
:
center
;
align-items
:
center
;
}
}
...
@@ -161,10 +96,10 @@ export default class ApproveHistoryTimeline extends Vue {
...
@@ -161,10 +96,10 @@ export default class ApproveHistoryTimeline extends Vue {
.title-type
{
.title-type
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-right
:
20px
;
}
}
.title-remark
{
.title-remark
{
margin-left
:
20px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
aus-front/admin/src/views/common/ApproveHistoryTimelineWithPrice.vue
0 → 100644
View file @
2eccb4b
<
template
>
<a-timeline
class=
"mt-10"
>
<a-timeline-item
v-for=
"item in approveHistories"
:color=
"auditStateColor(item.auditState)"
:key=
"item.historyId"
>
<div
class=
"title-container"
>
<div
class=
"title-type"
>
<span
class=
"label"
>
操作类型:
</span>
{{
$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
}}
</div>
</div>
<p
class=
"time-label"
>
<a-tooltip
:title=
"item.user.userName"
class=
"mr-16"
>
{{
item
.
user
.
realName
}}
</a-tooltip>
<span>
{{
item
.
createTime
}}
</span>
</p>
</a-timeline-item>
<a-timeline-item
v-if=
"createTime"
>
<div
class=
"title-container"
>
<div
class=
"title-type"
>
<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>
</div>
<p
class=
"time-label"
>
<user-real-name
:user-name=
"starter"
></user-real-name>
<span
class=
"ml-8"
>
{{
createTime
}}
</span>
</p>
</a-timeline-item>
</a-timeline>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
'vue-facing-decorator'
;
import
{
ApproveHistory
,
ApproveHistory_ApproveType
}
from
"lib/src/entity/track/entity/ApproveHistory"
;
import
{
ApproveController
}
from
"@/api/ApproveController"
;
import
{
AuditState
}
from
"lib/src/entity/enum_types"
;
import
UserRealName
from
"@/components/UserRealName.vue"
;
@
Component
({
components
:
{
UserRealName
}
})
export
default
class
ApproveHistoryTimeline
extends
Vue
{
@
Prop
({
type
:
String
,
required
:
true
})
approveType
:
ApproveHistory_ApproveType
;
@
Prop
({
type
:
Number
,
required
:
true
})
approveId
:
number
;
@
Prop
({
type
:
String
,
required
:
false
})
createTime
:
Date
|
string
;
@
Prop
({
type
:
String
,
required
:
false
})
starter
:
string
;
@
Prop
({
type
:
String
,
required
:
false
})
remark
:
string
;
approveHistories
:
ApproveHistory
[]
=
[];
@
Prop
({
type
:
Object
,
required
:
false
})
appraiseObj
:
appraiseObj
=
{};
created
():
void
{
ApproveController
.
getAppraisePricesByVehicleIdExcludingUnaudited
(
this
.
axios
,
this
.
appraiseObj
?.
vehicle
?.
vehicleId
).
then
(
res
=>
{
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"
:
return
'green'
;
case
"REJECTED"
:
return
'red'
;
case
'UNAUDITED'
:
return
'blue'
;
}
return
'gray'
;
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.label
{
color
:
#777C85
FF
;
}
.title-container
{
display
:
flex
;
flex-wrap
:
wrap
;
width
:
100%
;
align-items
:
center
;
}
.title-type
{
display
:
flex
;
align-items
:
center
;
margin-right
:
20px
;
}
.title-remark
{
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
flex
:
1
;
}
.time-label
{
font-size
:
12px
;
color
:
#777C85
FF
;
}
</
style
>
aus-front/admin/src/views/vehicle/appraise/AppraisePriceAuditForm.vue
View file @
2eccb4b
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
</a-descriptions-item>
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
<a-divider>
审批记录
</a-divider>
<a-divider>
审批记录
</a-divider>
<approve-history-timeline
approve-type=
"APPRAISE_PRICE"
:approve-id=
"appraisePrice.appraiseId"
:appraise-obj=
"appraisePrice"
:create-time=
"appraisePrice.createTime"
<approve-history-timeline
-with-price
approve-type=
"APPRAISE_PRICE"
:approve-id=
"appraisePrice.appraiseId"
:appraise-obj=
"appraisePrice"
:create-time=
"appraisePrice.createTime"
:starter=
"appraisePrice.createBy"
:remark=
"appraisePrice.appraisalRemark"
></approve-history-timeline>
:starter=
"appraisePrice.createBy"
:remark=
"appraisePrice.appraisalRemark"
></approve-history-timeline
-with-price
>
<a-form
v-if=
"formState"
:model=
"formState"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<a-form
v-if=
"formState"
:model=
"formState"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<a-form-item
label=
"审核结果"
name=
"approveResult"
>
<a-form-item
label=
"审核结果"
name=
"approveResult"
>
...
@@ -54,14 +54,14 @@ import {reactive} from "vue";
...
@@ -54,14 +54,14 @@ import {reactive} from "vue";
import
{
AppraiseController
}
from
"@/api/AppraiseController"
;
import
{
AppraiseController
}
from
"@/api/AppraiseController"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
ApproveHistory
}
from
"lib/src/entity/track/entity/ApproveHistory"
;
import
{
ApproveHistory
}
from
"lib/src/entity/track/entity/ApproveHistory"
;
import
ApproveHistoryTimeline
from
"@/views/common/ApproveHistoryTimelin
e.vue"
;
import
ApproveHistoryTimeline
WithPrice
from
"@/views/common/ApproveHistoryTimelineWithPric
e.vue"
;
import
VehicleBaseInfo
from
"@/views/vehicle/inventory/VehicleBaseInfo.vue"
;
import
VehicleBaseInfo
from
"@/views/vehicle/inventory/VehicleBaseInfo.vue"
;
import
TitleTipIcon
from
"@/components/icons/TitleTipIcon.vue"
;
import
TitleTipIcon
from
"@/components/icons/TitleTipIcon.vue"
;
import
{
BusinessConfig
}
from
"lib/src/entity/business/domain/BusinessConfig"
;
import
{
BusinessConfig
}
from
"lib/src/entity/business/domain/BusinessConfig"
;
import
{
ConfigController
}
from
"@/api/ConfigController"
;
import
{
ConfigController
}
from
"@/api/ConfigController"
;
@
Component
({
@
Component
({
components
:
{
TitleTipIcon
,
VehicleBaseInfo
,
ApproveHistoryTimeline
}
components
:
{
TitleTipIcon
,
VehicleBaseInfo
,
ApproveHistoryTimeline
WithPrice
}
})
})
export
default
class
AppraisePriceAuditForm
extends
EnhanceFormComponent
<
ApproveHistory
>
{
export
default
class
AppraisePriceAuditForm
extends
EnhanceFormComponent
<
ApproveHistory
>
{
...
...
aus-front/admin/src/views/vehicle/appraise/AppraiseVehiclePage.vue
View file @
2eccb4b
...
@@ -52,7 +52,7 @@ import {AppraisePrice} from "lib/src/entity/auction/entity/AppraisePrice";
...
@@ -52,7 +52,7 @@ import {AppraisePrice} from "lib/src/entity/auction/entity/AppraisePrice";
import
AppraisePriceAuditForm
from
"@/views/vehicle/appraise/AppraisePriceAuditForm.vue"
;
import
AppraisePriceAuditForm
from
"@/views/vehicle/appraise/AppraisePriceAuditForm.vue"
;
import
{
AUDIT_STATES
}
from
"lib/src/entity/enum_types"
;
import
{
AUDIT_STATES
}
from
"lib/src/entity/enum_types"
;
import
AuditStateTag
from
"@/views/common/AuditStateTag.vue"
;
import
AuditStateTag
from
"@/views/common/AuditStateTag.vue"
;
import
ApproveHistoryTimeline
from
"@/views/common/ApproveHistoryTimelin
e.vue"
;
import
ApproveHistoryTimeline
WithPrice
from
"@/views/common/ApproveHistoryTimelineWithPric
e.vue"
;
import
{
Security
}
from
"@/store"
;
import
{
Security
}
from
"@/store"
;
import
{
VenueController
}
from
"@/api/VenueController"
;
import
{
VenueController
}
from
"@/api/VenueController"
;
...
@@ -163,7 +163,7 @@ export default class AppraiseVehiclePage extends PaginationComponent<AppraisePri
...
@@ -163,7 +163,7 @@ export default class AppraiseVehiclePage extends PaginationComponent<AppraisePri
viewApproveHistory
(
appraisePrice
:
AppraisePrice
):
void
{
viewApproveHistory
(
appraisePrice
:
AppraisePrice
):
void
{
const
modal
=
ModalService
.
confirm
({
const
modal
=
ModalService
.
confirm
({
title
:
'审批记录'
,
component
:
ApproveHistoryTimeline
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
title
:
'审批记录'
,
component
:
ApproveHistoryTimeline
WithPrice
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
props
:
{
props
:
{
approveType
:
'APPRAISE_PRICE'
,
approveType
:
'APPRAISE_PRICE'
,
approveId
:
appraisePrice
.
appraiseId
,
approveId
:
appraisePrice
.
appraiseId
,
...
...
aus-front/admin/src/views/vehicle/auction/AuctionVehiclePage.vue
View file @
2eccb4b
<
template
>
<
template
>
<a-card
class=
"tabs-card"
:bordered=
"false"
:tab-list=
"tabs"
:active-tab-key=
"currentTab"
@
tabChange=
"key => changeTab(key )"
>
<a-card
class=
"tabs-card"
:bordered=
"false"
:tab-list=
"tabs"
:active-tab-key=
"currentTab"
@
tabChange=
"key => changeTab(key )"
>
<!--查询栏-->
<!--查询栏-->
<m-pagination-query-render
:fields=
"pagination.filterFields"
:form=
"pagination.queryForm"
@
onSearch=
"
pageReload"
@
onReset=
"pag
eReset"
:simpleFieldNum=
"4"
/>
<m-pagination-query-render
:fields=
"pagination.filterFields"
:form=
"pagination.queryForm"
@
onSearch=
"
handlePageReload"
@
onReset=
"handl
eReset"
:simpleFieldNum=
"4"
/>
<!--查询栏end-->
<!--查询栏end-->
<!--拍卖车辆列表start-->
<!--拍卖车辆列表start-->
<div
class=
"table-operations"
>
<div
class=
"table-operations"
>
...
@@ -114,15 +114,32 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
...
@@ -114,15 +114,32 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
get
tabs
()
{
get
tabs
()
{
let
total
=
0
;
let
total
=
0
;
for
(
const
vehicleState
of
this
.
vehicleStates
)
{
for
(
const
vehicleState
of
this
.
vehicleStates
)
{
total
=
total
+
(
this
.
vehicleCount
?.
stateCountMap
[
vehicleState
]
??
0
)
;
total
+=
this
.
vehicleCount
?.
stateCountMap
?.[
vehicleState
]
??
0
;
}
}
const
tabs
=
[{
key
:
''
,
tab
:
`全部(
${
total
}
)`
}];
const
tabs
=
[{
key
:
''
,
tab
:
`全部(
${
total
}
)`
}];
this
.
vehicleStates
.
forEach
(
item
=>
{
this
.
vehicleStates
.
forEach
(
item
=>
{
tabs
.
push
({
key
:
item
,
tab
:
this
.
$t
(
'enum.vehicle.vehicleState.'
+
item
)
+
`(
${
this
.
vehicleCount
?.
stateCountMap
[
item
]
??
0
})
`});
const
count
=
this
.
vehicleCount
?.
stateCountMap
?.[
item
]
??
0
;
tabs
.
push
({
key
:
item
,
tab
:
this
.
$t
(
'enum.vehicle.vehicleState.'
+
item
)
+
`(
${
count
}
)`
});
});
});
return
tabs
;
return
tabs
;
}
}
//查询
handlePageReload
()
{
this
.
pageReload
();
this
.
loadVehicleCount
()
}
//重置查询条件
handleReset
()
{
this
.
pageReset
();
this
.
loadVehicleCount
()
}
changeTab
(
key
:
Vehicle_VehicleState
|
""
):
void
{
changeTab
(
key
:
Vehicle_VehicleState
|
""
):
void
{
this
.
currentTab
=
key
;
this
.
currentTab
=
key
;
...
...
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