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 ae5added
authored
Aug 12, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
认证修改
1 parent
adf6a523
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
387 additions
and
105 deletions
aus-front/admin/src/assets/i18n/zh_CN/enum.ts
aus-front/admin/src/router/BusinessRouter.ts
aus-front/admin/src/views/auction/order/AuctionOrderPage.vue
aus-front/admin/src/views/auction/order/ViewAuctionOrder.vue
aus-front/admin/src/views/business/platformContract/ViewPlatformContract.vue
aus-front/admin/src/views/business/platformContract/platFormContractPage.vue
aus-front/admin/src/views/vehicle/appraise/AppraisePriceAuditForm.vue
aus-front/admin/src/views/vehicle/appraise/AppraisePriceForm.vue
aus-front/admin/src/views/vehicle/inventory/view/AuctionVehicleHistory.vue
aus-front/app/src/api/AccountController.ts
aus-front/app/src/common/i18n/zh_cn/enum.ts
aus-front/app/src/module/account/CertificationResult.vue
aus-front/app/src/module/account/PersonCertificationPage.vue
aus-front/app/src/module/auction/AuctionVehiclePage.vue
aus-front/app/src/pages.json
aus-front/app/src/pages/LoginPage.vue
aus-front/app/src/pages/tabbar/HomePage.vue
aus-front/app/src/pages/tabbar/ProfilePage.vue
aus-front/app/src/pages/tabbar/home/CertificationDialog.vue
aus-front/lib/src/entity/business/entity/Agreement.ts
aus-front/admin/src/assets/i18n/zh_CN/enum.ts
View file @
ae5adde
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
},
},
"auctionOrder"
:
{
"auctionOrder"
:
{
"orderState"
:
{
"orderState"
:
{
"CONTRACT_UNSIGNED"
:
"待签署合同"
,
//
"CONTRACT_UNSIGNED": "待签署合同",
"UNPAID"
:
"待付车款"
,
"UNPAID"
:
"待付车款"
,
"WAIT_PICKUP"
:
"待提车"
,
"WAIT_PICKUP"
:
"待提车"
,
"TRANSFERRING"
:
"待过户"
,
"TRANSFERRING"
:
"待过户"
,
...
...
aus-front/admin/src/router/BusinessRouter.ts
View file @
ae5adde
...
@@ -39,7 +39,7 @@ export const businessRouter: Array<RouteRecordRaw> = [
...
@@ -39,7 +39,7 @@ export const businessRouter: Array<RouteRecordRaw> = [
},
},
{
{
path
:
'/business/platformContract'
,
path
:
'/business/platformContract'
,
component
:
()
=>
import
(
'@/views/business/platformContract/plat
f
ormContractPage.vue'
),
component
:
()
=>
import
(
'@/views/business/platformContract/plat
F
ormContractPage.vue'
),
meta
:
{
meta
:
{
breadcrumbs
:
[{
name
:
'运营管理'
},
{
name
:
'平台合同管理'
}]
breadcrumbs
:
[{
name
:
'运营管理'
},
{
name
:
'平台合同管理'
}]
}
}
...
...
aus-front/admin/src/views/auction/order/AuctionOrderPage.vue
View file @
ae5adde
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<!-- 审核过户资料-->
<!-- 审核过户资料-->
<a-button
type=
"link"
v-if=
"record.orderState==='TRANSFERRING'&&record.auditState==='UNAUDITED'"
size=
"small"
@
click=
"auditAuctionOrder(record)"
>
审核
</a-button>
<a-button
type=
"link"
v-if=
"record.orderState==='TRANSFERRING'&&record.auditState==='UNAUDITED'"
size=
"small"
@
click=
"auditAuctionOrder(record)"
>
审核
</a-button>
<!--
<a-button
type=
"link"
disabled
v-if=
"record.orderState==='TRANSFERRING'&&!record.auditState"
size=
"small"
>
未提交过户资料
</a-button>
-->
<!--
<a-button
type=
"link"
disabled
v-if=
"record.orderState==='TRANSFERRING'&&!record.auditState"
size=
"small"
>
未提交过户资料
</a-button>
-->
<a-button
type=
"link"
size=
"small"
@
click=
"uploadTransferring(record)"
>
修改过户资料
</a-button>
<a-button
type=
"link"
size=
"small"
v-if=
"record.orderState === 'TRANSFERRING' || record.orderState === 'COMPLETED'"
@
click=
"uploadTransferring(record)"
>
修改过户资料
</a-button>
<a-button
type=
"link"
v-if=
"record.orderState==='COMPLETED'"
size=
"small"
@
click=
"viewTransferring(record)"
>
过户资料
</a-button>
<a-button
type=
"link"
v-if=
"record.orderState==='COMPLETED'"
size=
"small"
@
click=
"viewTransferring(record)"
>
过户资料
</a-button>
<router-link
:to=
"
{path:'/account/view',query:{accountId:record.account?.accountId}}">
<router-link
:to=
"
{path:'/account/view',query:{accountId:record.account?.accountId}}">
<a-button
type=
"link"
size=
"small"
>
联系买家
</a-button>
<a-button
type=
"link"
size=
"small"
>
联系买家
</a-button>
...
@@ -83,7 +83,7 @@ import UploadPaymentVoucher from "@/views/auction/order/UploadPaymentVoucher.vue
...
@@ -83,7 +83,7 @@ import UploadPaymentVoucher from "@/views/auction/order/UploadPaymentVoucher.vue
},
},
})
})
export
default
class
AuctionOrderPage
extends
PaginationComponent
<
AuctionOrder
>
{
export
default
class
AuctionOrderPage
extends
PaginationComponent
<
AuctionOrder
>
{
orderState
:
AuctionOrder_OrderState
|
''
=
"
CONTRACT_UNSIGNE
D"
;
orderState
:
AuctionOrder_OrderState
|
''
=
"
UNPAI
D"
;
exporting
=
false
;
exporting
=
false
;
/**
/**
* 表格列配置
* 表格列配置
...
@@ -191,7 +191,7 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
...
@@ -191,7 +191,7 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
const
tabs
=
[];
const
tabs
=
[];
if
(
this
.
hasPrivilege
(
'auction_order_1'
))
tabs
.
push
({
key
:
""
,
tab
:
`全部(
${
this
.
orderStateCount
?.
total
})
`});
if
(
this
.
hasPrivilege
(
'auction_order_1'
))
tabs
.
push
({
key
:
""
,
tab
:
`全部(
${
this
.
orderStateCount
?.
total
})
`});
AUCTION_ORDER_ORDER_STATES.forEach(item => {
AUCTION_ORDER_ORDER_STATES.forEach(item => {
if (item === 'CONTRACT_UNSIGNED') tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
contractUnsignedCount
})
`});
//
if (item === 'CONTRACT_UNSIGNED') tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
contractUnsignedCount
})
`});
if (item === 'UNPAID' && this.hasPrivilege('auction_order_3')) tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
unpaidCount
})
`});
if (item === 'UNPAID' && this.hasPrivilege('auction_order_3')) tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
unpaidCount
})
`});
if (item === 'WAIT_PICKUP' && this.hasPrivilege('auction_order_4')) tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
waitPickupCount
})
`});
if (item === 'WAIT_PICKUP' && this.hasPrivilege('auction_order_4')) tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
waitPickupCount
})
`});
if (item === 'TRANSFERRING' && this.hasPrivilege('auction_order_5')) tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
transferringCount
})
`});
if (item === 'TRANSFERRING' && this.hasPrivilege('auction_order_5')) tabs.push({key: item, tab: `
$
{
this
.
$t
(
'enum.auctionOrder.orderState.'
+
item
)}(
$
{
this
.
orderStateCount
.
transferringCount
})
`});
...
...
aus-front/admin/src/views/auction/order/ViewAuctionOrder.vue
View file @
ae5adde
...
@@ -32,6 +32,18 @@
...
@@ -32,6 +32,18 @@
<a-descriptions-item
label=
"创建时间"
name=
"createTime"
>
<a-descriptions-item
label=
"创建时间"
name=
"createTime"
>
{{ auctionOrder.createTime }}
{{ auctionOrder.createTime }}
</a-descriptions-item>
</a-descriptions-item>
<a-descriptions-item
label=
"保留价"
name=
"updateTime"
>
¥{{ auctionOrder.vehicle.reservePrice }}
</a-descriptions-item>
<a-descriptions-item
label=
"预计经销差"
name=
"updateTime"
>
¥{{ expectedProfitMargin }}
</a-descriptions-item>
<a-descriptions-item
label=
"溢价金额"
name=
"updateTime"
>
¥{{ premiumAmount }}
</a-descriptions-item>
<a-descriptions-item
label=
"实际经销差"
name=
"updateTime"
>
¥{{ actualProfitMargin }}
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
</a-card>
</a-card>
<a-card
class=
"mt-10"
:bordered=
"false"
size=
"small"
>
<a-card
class=
"mt-10"
:bordered=
"false"
size=
"small"
>
...
@@ -429,6 +441,69 @@ export default class ViewAuctionOrder extends Vue {
...
@@ -429,6 +441,69 @@ export default class ViewAuctionOrder extends Vue {
return
this
.
auctionOrder
?.
account
;
return
this
.
auctionOrder
?.
account
;
}
}
/**
* 预计经销差 = 保留价 + 佣金 - 成本价
* 使用 Math.round() 避免精度丢失
*/
get
expectedProfitMargin
():
string
{
if
(
!
this
.
auctionOrder
)
return
'-'
;
const
reservePrice
=
this
.
auctionOrder
.
vehicle
?.
reservePrice
;
const
commissionPrice
=
this
.
auctionOrder
.
commissionPrice
;
const
purchasePrice
=
this
.
auctionOrder
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
;
// 如果任一值为空,返回 '-'
if
(
!
reservePrice
||
!
commissionPrice
||
!
purchasePrice
)
{
return
'-'
;
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const
margin
=
Math
.
round
((
reservePrice
+
commissionPrice
-
purchasePrice
)
*
100
)
/
100
;
return
margin
.
toFixed
(
2
);
}
/**
* 溢价金额 = 成交价 + 佣金 - 保留价
* 使用 Math.round() 避免精度丢失
*/
get
premiumAmount
():
string
{
if
(
!
this
.
auctionOrder
)
return
'-'
;
const
orderPrice
=
this
.
auctionOrder
.
orderPrice
;
const
commissionPrice
=
this
.
auctionOrder
.
commissionPrice
;
const
reservePrice
=
this
.
auctionOrder
.
vehicle
?.
reservePrice
;
// 如果任一值为空,返回 '-'
if
(
!
orderPrice
||
!
commissionPrice
||
!
reservePrice
)
{
return
'-'
;
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const
premium
=
Math
.
round
((
orderPrice
+
commissionPrice
-
reservePrice
)
*
100
)
/
100
;
return
premium
.
toFixed
(
2
);
}
/**
* 实际经销差 = 成交价 + 佣金 - 成本价
* 使用 Math.round() 避免精度丢失
*/
get
actualProfitMargin
():
string
{
if
(
!
this
.
auctionOrder
)
return
'-'
;
const
orderPrice
=
this
.
auctionOrder
.
orderPrice
;
const
commissionPrice
=
this
.
auctionOrder
.
commissionPrice
;
const
purchasePrice
=
this
.
auctionOrder
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
;
// 如果任一值为空,返回 '-'
if
(
!
orderPrice
||
!
commissionPrice
||
!
purchasePrice
)
{
return
'-'
;
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const
margin
=
Math
.
round
((
orderPrice
+
commissionPrice
-
purchasePrice
)
*
100
)
/
100
;
return
margin
.
toFixed
(
2
);
}
viewContract
(
contract
:
Contract
):
void
{
viewContract
(
contract
:
Contract
):
void
{
contract
.
auctionOrder
=
this
.
auctionOrder
;
contract
.
auctionOrder
=
this
.
auctionOrder
;
const
modal
=
ModalService
.
confirm
({
const
modal
=
ModalService
.
confirm
({
...
...
aus-front/admin/src/views/business/platformContract/ViewPlatformContract.vue
View file @
ae5adde
...
@@ -19,8 +19,7 @@
...
@@ -19,8 +19,7 @@
</a-descriptions-item>
</a-descriptions-item>
<a-descriptions-item
label=
"签署状态"
>
<a-descriptions-item
label=
"签署状态"
>
<a-tag
v-if=
"contract.signed"
color=
"success"
>
已签署
</a-tag>
<a-tag
:color=
"contract.contractStatus == '已签署' ? 'success' : 'orange'"
>
{{contract.contractStatus}}
</a-tag>
<a-tag
v-else
color=
"error"
>
未签署
</a-tag>
</a-descriptions-item>
</a-descriptions-item>
<a-descriptions-item
label=
"合同附件"
>
<a-descriptions-item
label=
"合同附件"
>
...
@@ -46,16 +45,16 @@
...
@@ -46,16 +45,16 @@
<a-empty
v-else
description=
"暂无合同附件"
:image=
"simpleImage"
></a-empty>
<a-empty
v-else
description=
"暂无合同附件"
:image=
"simpleImage"
></a-empty>
</a-card>
</a-card>
<a-descriptions
v-if=
"contract.auctionOrder?.account"
:bordered=
"false"
:column=
"4"
size=
"small"
style=
"margin-top: 16px;"
>
<a-descriptions
:bordered=
"false"
:column=
"4"
size=
"small"
style=
"margin-top: 16px;"
>
<
template
#
title
>
<
template
#
title
>
<title-tip-icon/>
<title-tip-icon/>
签署方信息
签署方信息
</
template
>
</
template
>
<a-descriptions-item
label=
"买受方"
>
<a-descriptions-item
label=
"买受方"
:span=
"2"
>
{{ contract.
auctionOrder.account.accountName || '-' }} (ID: {{ contract.auctionOrder.account.accountI
d || '-' }})
{{ contract.
signerName || '-' }} (ID: {{ contract.signerIdCar
d || '-' }})
</a-descriptions-item>
</a-descriptions-item>
<a-descriptions-item
label=
"联系方式"
>
<a-descriptions-item
label=
"联系方式"
:span=
"2"
>
{{ contract.
auctionOrder.account.m
obile || '-' }}
{{ contract.
signerM
obile || '-' }}
</a-descriptions-item>
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
</template>
</template>
...
...
aus-front/admin/src/views/business/platformContract/platFormContractPage.vue
View file @
ae5adde
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<span>
{{
record
.
accountName
||
'—'
}}
</span>
<span>
{{
record
.
accountName
||
'—'
}}
</span>
</
template
>
</
template
>
<
template
v-if=
"column.key === 'signTime'"
>
<
template
v-if=
"column.key === 'signTime'"
>
<span>
{{
record
.
signed
?
(
record
.
signTime
||
'—'
)
:
'—'
}}
</span>
<span>
{{
(
record
.
signTime
||
'—'
)
}}
</span>
</
template
>
</
template
>
<
template
v-if=
"column.key === 'createTime'"
>
<
template
v-if=
"column.key === 'createTime'"
>
<span>
{{
record
.
createTime
||
'—'
}}
</span>
<span>
{{
record
.
createTime
||
'—'
}}
</span>
...
@@ -83,7 +83,7 @@ export default class MasterContractPage extends PaginationComponent<Contract> {
...
@@ -83,7 +83,7 @@ export default class MasterContractPage extends PaginationComponent<Contract> {
{
{
title
:
'签署状态'
,
dataIndex
:
'contractStatus'
,
key
:
'contractStatus'
,
align
:
'center'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
,
title
:
'签署状态'
,
dataIndex
:
'contractStatus'
,
key
:
'contractStatus'
,
align
:
'center'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
,
},
},
{
title
:
'签署乙方姓名'
,
dataIndex
:
'
accountName'
,
key
:
'account
Name'
,
width
:
120
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'签署乙方姓名'
,
dataIndex
:
'
signerName'
,
key
:
'signer
Name'
,
width
:
120
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'创建时间'
,
dataIndex
:
'createTime'
,
key
:
'createTime'
,
width
:
170
,
align
:
'center'
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'创建时间'
,
dataIndex
:
'createTime'
,
key
:
'createTime'
,
width
:
170
,
align
:
'center'
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'签署时间'
,
dataIndex
:
'signTime'
,
key
:
'signTime'
,
width
:
170
,
align
:
'center'
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'签署时间'
,
dataIndex
:
'signTime'
,
key
:
'signTime'
,
width
:
170
,
align
:
'center'
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
80
,
align
:
'center'
,
fixed
:
'right'
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
80
,
align
:
'center'
,
fixed
:
'right'
},
...
...
aus-front/admin/src/views/vehicle/appraise/AppraisePriceAuditForm.vue
View file @
ae5adde
...
@@ -22,6 +22,12 @@
...
@@ -22,6 +22,12 @@
<a-descriptions-item
label=
"佣金金额"
name=
"referencePrice"
>
<a-descriptions-item
label=
"佣金金额"
name=
"referencePrice"
>
¥{{ appraisePrice.fixedCommission || appraisePrice.fixedCommission == 0 ? appraisePrice.fixedCommission : '-' }}元
¥{{ appraisePrice.fixedCommission || appraisePrice.fixedCommission == 0 ? appraisePrice.fixedCommission : '-' }}元
</a-descriptions-item>
</a-descriptions-item>
<a-descriptions-item
label=
"成本价"
name=
"referencePrice"
>
¥{{ appraisePrice.vehicle?.evaluationTransaction?.purchasePrice || appraisePrice.vehicle?.evaluationTransaction?.purchasePrice == 0 ? appraisePrice.vehicle?.evaluationTransaction?.purchasePrice : '-' }}元
</a-descriptions-item>
<a-descriptions-item
label=
"预计经销差"
name=
"referencePrice"
>
¥{{ expectedProfitMargin }}元
</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"
:create-time=
"appraisePrice.createTime"
<approve-history-timeline
approve-type=
"APPRAISE_PRICE"
:approve-id=
"appraisePrice.appraiseId"
:create-time=
"appraisePrice.createTime"
...
@@ -70,6 +76,33 @@ export default class AppraisePriceAuditForm extends EnhanceFormComponent<Approve
...
@@ -70,6 +76,33 @@ export default class AppraisePriceAuditForm extends EnhanceFormComponent<Approve
this
.
formState
=
reactive
<
ApproveHistory
>
(
approveHistory
);
this
.
formState
=
reactive
<
ApproveHistory
>
(
approveHistory
);
}
}
/**
* 预计经销差 = 保留价 + 佣金 - 成本价
* 使用 Math.round() 避免精度丢失
*/
get
expectedProfitMargin
():
string
{
// 获取保留价
const
reservePrice
=
this
.
appraisePrice
?.
reservePrice
;
// 获取佣金
const
commission
=
this
.
appraisePrice
?.
fixedCommission
;
// 获取成本价
const
purchasePrice
=
this
.
appraisePrice
?.
vehicle
?.
evaluationTransaction
?.
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
);
}
onValidSuccess
(
formValue
:
ApproveHistory
):
void
{
onValidSuccess
(
formValue
:
ApproveHistory
):
void
{
formValue
.
approveId
=
this
.
appraisePrice
.
appraiseId
;
formValue
.
approveId
=
this
.
appraisePrice
.
appraiseId
;
AppraiseController
.
auditAppraisePrice
(
this
.
axios
,
formValue
).
then
(
res
=>
{
AppraiseController
.
auditAppraisePrice
(
this
.
axios
,
formValue
).
then
(
res
=>
{
...
...
aus-front/admin/src/views/vehicle/appraise/AppraisePriceForm.vue
View file @
ae5adde
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<a-descriptions-item
label=
"车辆信息"
>
{{
vehicle
.
baseInfo
.
carSeriesName
}}
{{
vehicle
.
baseInfo
.
carTypeName
}}
</a-descriptions-item>
<a-descriptions-item
label=
"车辆信息"
>
{{
vehicle
.
baseInfo
.
carSeriesName
}}
{{
vehicle
.
baseInfo
.
carTypeName
}}
</a-descriptions-item>
<a-descriptions-item
label=
"市场参考价"
>
¥
{{
vehicle
.
baseInfo
.
guidePrice
}}
元
</a-descriptions-item>
<a-descriptions-item
label=
"市场参考价"
>
¥
{{
vehicle
.
baseInfo
.
guidePrice
}}
元
</a-descriptions-item>
<a-descriptions-item
label=
"收车成本价"
>
¥
{{
vehicle
.
evaluationTransaction
.
purchasePrice
}}
元
</a-descriptions-item>
<a-descriptions-item
label=
"收车成本价"
>
¥
{{
vehicle
.
evaluationTransaction
.
purchasePrice
}}
元
</a-descriptions-item>
<a-descriptions-item
label=
"预计经销差"
>
¥
{{
difference
}}
元
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
<a-alert
v-if=
"(businessConfig&&!businessConfig?.specialPricingEnabled)&&formState.referencePrice
<
= 0" message="请配置有效的基础参考价规则"
<a-alert
v-if=
"(businessConfig&&!businessConfig?.specialPricingEnabled)&&formState.referencePrice
<
= 0" message="请配置有效的基础参考价规则"
type="error" show-icon class="mb-12"/>
type="error" show-icon class="mb-12"/>
...
@@ -87,6 +88,31 @@ export default class AppraisePriceForm extends EnhanceFormComponent<AppraisePric
...
@@ -87,6 +88,31 @@ export default class AppraisePriceForm extends EnhanceFormComponent<AppraisePric
}
}
}
}
/**
* 预计经销差 = 手动输入的保留价 + 佣金 - 收车成本价
* 佣金取值:如果开启自定义佣金,取表单输入的固定佣金,否则按 0 处理
* 使用 Math.round() 避免精度丢失
*/
get
difference
():
string
{
// 获取保留价(手动输入)
const
reservePrice
=
this
.
formState
.
reservePrice
;
// 获取佣金:如果开启自定义佣金,取表单输入的固定佣金,否则为 0
const
commissionPrice
=
this
.
formState
.
fixedCommissionSwitch
?
(
this
.
formState
.
fixedCommission
||
0
)
:
0
;
// 获取收车成本价
const
purchasePrice
=
this
.
vehicle
?.
evaluationTransaction
?.
purchasePrice
;
// 如果保留价或成本价为空,返回 '-'
if
(
!
reservePrice
||
!
purchasePrice
)
{
return
'-'
;
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const
margin
=
Math
.
round
((
reservePrice
+
commissionPrice
-
purchasePrice
)
*
100
)
/
100
;
return
margin
.
toFixed
(
2
);
}
verifyReferencePrice
(
_rule
:
RuleObject
,
referencePrice
:
number
)
{
verifyReferencePrice
(
_rule
:
RuleObject
,
referencePrice
:
number
)
{
if
(
referencePrice
<=
0
)
{
if
(
referencePrice
<=
0
)
{
return
Promise
.
reject
(
'请配置有效的基础参考价规则!'
);
return
Promise
.
reject
(
'请配置有效的基础参考价规则!'
);
...
...
aus-front/admin/src/views/vehicle/inventory/view/AuctionVehicleHistory.vue
View file @
ae5adde
...
@@ -31,6 +31,12 @@
...
@@ -31,6 +31,12 @@
<a-descriptions-item
label=
"保留价"
>
<a-descriptions-item
label=
"保留价"
>
¥
{{
vehicle
.
reservePrice
}}
¥
{{
vehicle
.
reservePrice
}}
</a-descriptions-item>
</a-descriptions-item>
<a-descriptions-item
label=
"成本价"
>
¥
{{
vehicle
.
evaluationTransaction
?.
purchasePrice
??
'-'
}}
</a-descriptions-item>
<a-descriptions-item
label=
"预计经销差"
>
¥
{{
expectedProfitMargin
}}
</a-descriptions-item>
<a-descriptions-item
label=
"延时规则"
>
<a-descriptions-item
label=
"延时规则"
>
最后
{{
auctionVehicle
.
auction
.
beforeEndMinute
}}
分钟出价,延时
{{
auctionVehicle
.
auction
.
delayMinute
}}
分钟
最后
{{
auctionVehicle
.
auction
.
beforeEndMinute
}}
分钟出价,延时
{{
auctionVehicle
.
auction
.
delayMinute
}}
分钟
</a-descriptions-item>
</a-descriptions-item>
...
@@ -108,6 +114,24 @@ export default class AuctionVehicleHistory extends Vue {
...
@@ -108,6 +114,24 @@ export default class AuctionVehicleHistory extends Vue {
}
}
}
}
/**
* 计算预计经销差(保留价 - 成本价)
* 使用 Math.round() 避免精度丢失
*/
get
expectedProfitMargin
():
string
{
const
reservePrice
=
this
.
vehicle
.
reservePrice
;
const
purchasePrice
=
this
.
vehicle
.
evaluationTransaction
?.
purchasePrice
;
// 如果保留价或成本价为空,返回 '-'
if
(
!
reservePrice
||
!
purchasePrice
)
{
return
'-'
;
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const
margin
=
Math
.
round
((
reservePrice
-
purchasePrice
)
*
100
)
/
100
;
return
margin
.
toFixed
(
2
);
}
created
()
{
created
()
{
AuctionController
.
getAuctionVehiclesByVehicleId
(
this
.
axios
,
this
.
vehicle
.
vehicleId
).
then
(
response
=>
{
AuctionController
.
getAuctionVehiclesByVehicleId
(
this
.
axios
,
this
.
vehicle
.
vehicleId
).
then
(
response
=>
{
this
.
auctionVehicles
=
response
.
data
;
this
.
auctionVehicles
=
response
.
data
;
...
...
aus-front/app/src/api/AccountController.ts
View file @
ae5adde
...
@@ -83,4 +83,11 @@ export class AccountController {
...
@@ -83,4 +83,11 @@ export class AccountController {
// region 前端扩展代码区
// region 前端扩展代码区
// endregion
// endregion
/**
* 发起平台合同签署
*/
static
initiateSigningApi
(
axios
:
AxiosStatic
):
Promise
<
AxiosResponse
<
Account
>>
{
return
axios
.
post
(
'platformContract/initiateSigning'
);
}
}
}
aus-front/app/src/common/i18n/zh_cn/enum.ts
View file @
ae5adde
...
@@ -172,7 +172,9 @@ export default {
...
@@ -172,7 +172,9 @@ export default {
"COUPON_2"
:
"优惠券协议2"
,
"COUPON_2"
:
"优惠券协议2"
,
"COUPON_3"
:
"优惠券协议3"
,
"COUPON_3"
:
"优惠券协议3"
,
"COUPON_4"
:
"优惠券协议4"
,
"COUPON_4"
:
"优惠券协议4"
,
"COUPON_5"
:
"优惠券协议5"
"COUPON_5"
:
"优惠券协议5"
,
"PURCHASE_CONTRACT"
:
"购车合同"
,
"PLATFORM_CONTRACT"
:
"平台交易整体合同"
},
},
"agreementState"
:
{
"agreementState"
:
{
"DRAFT"
:
"草稿"
,
"DRAFT"
:
"草稿"
,
...
...
aus-front/app/src/module/account/CertificationResult.vue
View file @
ae5adde
This diff is collapsed.
Click to expand it.
aus-front/app/src/module/account/PersonCertificationPage.vue
View file @
ae5adde
<
template
>
<
template
>
<view
class=
"dealer-application-container"
>
<view
class=
"dealer-application-container"
>
<view
class=
"form-content"
>
<uni-forms
ref=
"form"
:model=
"formData"
:rules=
"rules"
>
<uni-forms
ref=
"form"
:model=
"formData"
:rules=
"rules"
>
<!-- 个人信息部分 -->
<!-- 个人信息部分 -->
<view
class=
"form-section"
>
<view
class=
"form-section"
>
...
@@ -51,20 +52,23 @@
...
@@ -51,20 +52,23 @@
</view>
</view>
</view>
</view>
</view>
</view>
<!--
<view
class=
"form-section"
>
-->
<!--
<uni-forms-item
label=
""
name=
"recommendCode"
>
-->
<!--
<view
class=
"form-item"
>
-->
<!--
<text
class=
"label-text"
>
推荐码
</text>
-->
<!--
<uni-easyinput
v-model=
"formData.recommendCode"
placeholder=
"请输入推荐码"
:inputBorder=
"false"
/>
-->
<!--
</view>
-->
<!--
</uni-forms-item>
-->
<!--
</view>
-->
<!-- 提交按钮 -->
<view
class=
"submit-button-container"
>
<van-button
type=
"primary"
:disabled=
"!isFormValid"
round
@
click=
"submitForm"
block
>
提交
</van-button>
</view>
</uni-forms>
</uni-forms>
</view>
</view>
<!-- 合同内容查看 -->
<view
class=
"contract-section"
>
<view
class=
"section-title sticky-title"
>
平台交易整体合同
</view>
<view
class=
"contract-content"
>
<rich-text
class=
"content-text"
:nodes=
"htmlContent"
></rich-text>
</view>
</view>
<!-- 底部固定提交按钮 -->
<view
class=
"footer-submit-bar"
>
<van-button
type=
"primary"
:disabled=
"!isFormValid"
round
@
click=
"submitForm"
block
>
提交认证
</van-button>
</view>
</view>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Watch
}
from
'vue-facing-decorator'
;
import
{
Component
,
Vue
,
Watch
}
from
'vue-facing-decorator'
;
...
@@ -74,7 +78,7 @@ import {AccountController} from "@/api/AccountController";
...
@@ -74,7 +78,7 @@ import {AccountController} from "@/api/AccountController";
import
type
{
FileInfo
}
from
"lib/src/core/bean/FileInfo"
;
import
type
{
FileInfo
}
from
"lib/src/core/bean/FileInfo"
;
import
{
AuthService
}
from
"@/common/AuthService"
;
import
{
AuthService
}
from
"@/common/AuthService"
;
import
{
ID_CARD_18_REGEX
}
from
"@/common/CommonUtils"
;
import
{
ID_CARD_18_REGEX
}
from
"@/common/CommonUtils"
;
import
{
AgreementController
}
from
"@/api/AgreementController"
@
Component
({})
@
Component
({})
export
default
class
PersonCertificationPage
extends
Vue
{
export
default
class
PersonCertificationPage
extends
Vue
{
formData
:
Certification
=
null
;
formData
:
Certification
=
null
;
...
@@ -90,6 +94,7 @@ export default class PersonCertificationPage extends Vue {
...
@@ -90,6 +94,7 @@ export default class PersonCertificationPage extends Vue {
isFormValid
=
false
;
isFormValid
=
false
;
agreement
:
{
content
:
string
}
=
null
;
// 110101199001011234
// 110101199001011234
rules
=
{
rules
=
{
...
@@ -117,11 +122,28 @@ export default class PersonCertificationPage extends Vue {
...
@@ -117,11 +122,28 @@ export default class PersonCertificationPage extends Vue {
});
});
const
recommendCode
=
uni
.
getStorageSync
(
'recommendCode'
);
const
recommendCode
=
uni
.
getStorageSync
(
'recommendCode'
);
console
.
log
(
"recommendCode:"
+
recommendCode
);
console
.
log
(
"recommendCode:"
+
recommendCode
);
// if (recommendCode) {
AgreementController
.
getAgreementByKey
(
this
.
axios
,
'PLATFORM_CONTRACT'
).
then
(
res
=>
{
// this.formData.recommendCode = recommendCode;
this
.
agreement
=
res
.
data
||
{};
// }
}).
catch
(()
=>
{
this
.
agreement
=
{};
});
});
});
}
get
htmlContent
():
string
{
console
.
log
(
'htmlContent: this.agreement?.content ='
,
this
.
agreement
?.
content
);
return
this
.
formatRichText
(
this
.
agreement
?.
content
??
""
);
}
formatRichText
(
html
:
string
)
{
// 移除 mce 前缀类名
html
=
html
.
replace
(
/class="mce-.*
?
"/g
,
''
);
// 移除固定宽度样式
html
=
html
.
replace
(
/width:
\s
*
\d
+px;/g
,
''
);
// 移除内联 style 中的 height(保留 auto)
html
=
html
.
replace
(
/height:
\s
*
\d
+px;/g
,
'height: auto;'
);
html
=
html
.
replace
(
/<
(\/)?
pre
[^
>
]
*>/gi
,
''
);
return
html
;
}
}
@
Watch
(
"formData"
,
{
deep
:
true
,
immediate
:
true
})
@
Watch
(
"formData"
,
{
deep
:
true
,
immediate
:
true
})
...
@@ -238,7 +260,7 @@ export default class PersonCertificationPage extends Vue {
...
@@ -238,7 +260,7 @@ export default class PersonCertificationPage extends Vue {
.dealer-application-container
{
.dealer-application-container
{
min-height
:
100vh
;
min-height
:
100vh
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
padding-bottom
:
30px
;
padding-bottom
:
calc
(
64px
+
env
(
safe-area-inset-bottom
))
;
}
}
...
@@ -261,6 +283,38 @@ export default class PersonCertificationPage extends Vue {
...
@@ -261,6 +283,38 @@ export default class PersonCertificationPage extends Vue {
display
:
block
;
display
:
block
;
}
}
.sticky-title
{
position
:
sticky
;
top
:
0
;
background
:
#fff
;
z-index
:
100
;
padding
:
15px
15px
10px
;
margin
:
0
-15px
10px
;
}
.contract-section
{
background-color
:
#fff
;
padding
:
15px
;
margin-bottom
:
10px
;
}
.contract-content
{
background
:
#F8F8F8
;
padding
:
8px
12px
;
border-radius
:
8px
;
}
.footer-submit-bar
{
position
:
fixed
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
101
;
padding
:
12px
15px
calc
(
12px
+
env
(
safe-area-inset-bottom
));
background-color
:
#fff
;
box-shadow
:
0
-2px
10px
rgba
(
0
,
0
,
0
,
0.05
);
}
.section-tip
{
.section-tip
{
display
:
inline-flex
;
display
:
inline-flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -332,9 +386,10 @@ export default class PersonCertificationPage extends Vue {
...
@@ -332,9 +386,10 @@ export default class PersonCertificationPage extends Vue {
}
}
/* 提交按钮样式 */
.content-text
{
.submit-button-container
{
font-size
:
14px
;
padding
:
20px
15px
0
;
line-height
:
1.6
;
color
:
#333
;
}
}
</
style
>
</
style
>
aus-front/app/src/module/auction/AuctionVehiclePage.vue
View file @
ae5adde
...
@@ -393,7 +393,9 @@
...
@@ -393,7 +393,9 @@
@
close=
"closeBidSuccessDialog"
></bid-success-dialog>
@
close=
"closeBidSuccessDialog"
></bid-success-dialog>
</van-dialog>
</van-dialog>
</view>
</view>
<van-dialog
use-slot
:show=
"showCertifyDialog"
:show-cancel-button=
"false"
:show-confirm-button=
"false"
>
<certification-dialog
@
close=
"onCertifyDialogClosed"
></certification-dialog>
</van-dialog>
<coupon-home-benefit-popup
v-if=
"!isSinglePageMode"
:show=
"showCouponBenefitPopup"
:payload=
"couponBenefitPayload"
<coupon-home-benefit-popup
v-if=
"!isSinglePageMode"
:show=
"showCouponBenefitPopup"
:payload=
"couponBenefitPayload"
@
close=
"onCouponBenefitPopupClose"
/>
@
close=
"onCouponBenefitPopupClose"
/>
...
@@ -429,7 +431,7 @@ import roundBidBottom from "@/module/auction/roundBidBottom.vue";
...
@@ -429,7 +431,7 @@ import roundBidBottom from "@/module/auction/roundBidBottom.vue";
import
RoundBidPopup
from
"@/components/RoundBidPopup.vue"
;
import
RoundBidPopup
from
"@/components/RoundBidPopup.vue"
;
import
customNav
from
"@/module/auction/customNav.vue"
;
import
customNav
from
"@/module/auction/customNav.vue"
;
import
InspectionReport
from
"@/module/auction/InspectionReport.vue"
;
import
InspectionReport
from
"@/module/auction/InspectionReport.vue"
;
import
CertificationDialog
from
"@/pages/tabbar/home/CertificationDialog.vue"
;
/**
/**
* 检测是否处于微信朋友圈/短链「单页模式」。
* 检测是否处于微信朋友圈/短链「单页模式」。
* 必须在类字段初始化阶段同步调用:冷启动时 composable onLoad 可能尚未执行,
* 必须在类字段初始化阶段同步调用:冷启动时 composable onLoad 可能尚未执行,
...
@@ -468,7 +470,7 @@ function parseAucvehIdFromEnterOptions(): number | undefined {
...
@@ -468,7 +470,7 @@ function parseAucvehIdFromEnterOptions(): number | undefined {
}
}
@
Component
({
@
Component
({
components
:
{
BidSuccessDialog
,
roundBidBottom
,
RoundBidPopup
,
customNav
,
InspectionReport
,
CouponHomeBenefitPopup
}
components
:
{
CertificationDialog
,
BidSuccessDialog
,
roundBidBottom
,
RoundBidPopup
,
customNav
,
InspectionReport
,
CouponHomeBenefitPopup
}
})
})
export
default
class
AuctionVehiclePage
extends
Vue
{
export
default
class
AuctionVehiclePage
extends
Vue
{
...
@@ -573,7 +575,9 @@ export default class AuctionVehiclePage extends Vue {
...
@@ -573,7 +575,9 @@ export default class AuctionVehiclePage extends Vue {
lightBidPriceRange
:
LightBidPriceRange
;
lightBidPriceRange
:
LightBidPriceRange
;
darkBidPriceRange
:
DarkBidPriceRange
;
darkBidPriceRange
:
DarkBidPriceRange
;
/** 认证弹窗延迟定时器(避免重复 onShow 叠加多个定时器) */
certifyDelayTimer
:
ReturnType
<
typeof
setTimeout
>
|
null
=
null
;
showCertifyDialog
=
false
;
change
(
e
:
any
)
{
change
(
e
:
any
)
{
// this.show = e.show
// this.show = e.show
}
}
...
@@ -1088,6 +1092,10 @@ export default class AuctionVehiclePage extends Vue {
...
@@ -1088,6 +1092,10 @@ export default class AuctionVehiclePage extends Vue {
}
}
}
}
onCertifyDialogClosed
():
void
{
this
.
showCertifyDialog
=
false
;
}
// 增加出价金额
// 增加出价金额
addBidAmount
(
price
:
number
)
{
addBidAmount
(
price
:
number
)
{
this
.
currentAddPrice
=
price
;
this
.
currentAddPrice
=
price
;
...
@@ -1157,6 +1165,15 @@ export default class AuctionVehiclePage extends Vue {
...
@@ -1157,6 +1165,15 @@ export default class AuctionVehiclePage extends Vue {
}
}
}
}
});
});
}
else
if
(
reason
.
data
&&
reason
.
data
.
code
===
"platformContract"
)
{
if
(
this
.
certifyDelayTimer
!=
null
)
{
clearTimeout
(
this
.
certifyDelayTimer
);
this
.
certifyDelayTimer
=
null
;
}
this
.
certifyDelayTimer
=
setTimeout
(()
=>
{
this
.
certifyDelayTimer
=
null
;
this
.
showCertifyDialog
=
true
;
},
1000
);
}
}
}).
finally
(()
=>
{
}).
finally
(()
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
...
...
aus-front/app/src/pages.json
View file @
ae5adde
...
@@ -328,7 +328,7 @@
...
@@ -328,7 +328,7 @@
{
{
"path"
:
"CompanyCertificationPage"
,
"path"
:
"CompanyCertificationPage"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
成为车商
"
,
"navigationBarTitleText"
:
"
升级参拍权
"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
...
...
aus-front/app/src/pages/LoginPage.vue
View file @
ae5adde
...
@@ -32,8 +32,10 @@
...
@@ -32,8 +32,10 @@
</view>
</view>
<text
class=
"agreement-text"
>
<text
class=
"agreement-text"
>
阅读并同意
阅读并同意
<text
class=
"agreement-link"
@
click=
"viewUserAgreement"
>
《优加车拍二手车用户协议》
</text>
<text
class=
"agreement-link"
@
click=
"viewAgreement('ACCOUNT')"
>
《用户协议》
</text>
<text
class=
"agreement-link"
@
click=
"viewPrivacyAgreement"
>
《优加车拍二手车隐私协议》
</text>
<text
class=
"agreement-link"
@
click=
"viewAgreement('PRIVACY')"
>
《隐私协议》
</text>
<text
class=
"agreement-link"
@
click=
"viewAgreement('PURCHASE_CONTRACT')"
>
《购车合同》
</text>
<text
class=
"agreement-link"
@
click=
"viewAgreement('AUCTION')"
>
《竞拍规则》
</text>
未登录用户默认注册为平台会员
未登录用户默认注册为平台会员
</text>
</text>
</view>
</view>
...
@@ -139,14 +141,9 @@ export default class LoginPage extends Vue {
...
@@ -139,14 +141,9 @@ export default class LoginPage extends Vue {
this
.
isAgreed
=
!
this
.
isAgreed
;
this
.
isAgreed
=
!
this
.
isAgreed
;
}
}
// 查看用户协议
// 查看协议
viewUserAgreement
()
{
viewAgreement
(
key
)
{
uni
.
navigateTo
({
url
:
'/module/profile/AgreementPage?key=ACCOUNT'
});
uni
.
navigateTo
({
url
:
`/module/profile/AgreementPage?key=
${
key
}
`
});
}
// 查看隐私协议
viewPrivacyAgreement
()
{
uni
.
navigateTo
({
url
:
'/module/profile/AgreementPage?key=PRIVACY'
});
}
}
}
}
</
script
>
</
script
>
...
...
aus-front/app/src/pages/tabbar/HomePage.vue
View file @
ae5adde
...
@@ -332,10 +332,9 @@ export default class HomePage extends Vue {
...
@@ -332,10 +332,9 @@ export default class HomePage extends Vue {
return
;
return
;
}
}
const
accountInfo
=
authService
.
getAuthentication
();
const
accountInfo
=
authService
.
getAuthentication
();
/** 仅未认证/认证失败的 COMMON 用户走认证引导;已认证用户直接进入权益弹窗链路 */
/** 仅未认证/认证失败的 COMMON 用户走认证引导
或者未签署平台合同
;已认证用户直接进入权益弹窗链路 */
const
cs
=
accountInfo
?.
certifiedState
;
const
cs
=
accountInfo
?.
certifiedState
;
const
needP1
=
!!
(
accountInfo
&&
accountInfo
.
accountType
===
'COMMON'
&&
cs
!==
'CERTIFICATING'
&&
cs
!==
'CERTIFIED'
);
const
needP1
=
(
!!
(
accountInfo
&&
accountInfo
.
accountType
===
'COMMON'
&&
cs
!==
'CERTIFICATING'
&&
cs
!==
'CERTIFIED'
)
||
(
accountInfo
&&
!
accountInfo
.
platformContractSigned
));
if
(
needP1
)
{
if
(
needP1
)
{
if
(
this
.
certifyDelayTimer
!=
null
)
{
if
(
this
.
certifyDelayTimer
!=
null
)
{
clearTimeout
(
this
.
certifyDelayTimer
);
clearTimeout
(
this
.
certifyDelayTimer
);
...
...
aus-front/app/src/pages/tabbar/ProfilePage.vue
View file @
ae5adde
...
@@ -54,39 +54,57 @@
...
@@ -54,39 +54,57 @@
<
template
v-if=
"accountInfo"
>
<
template
v-if=
"accountInfo"
>
<template
v-if=
"accountInfo.accountType === 'COMMON'"
>
<template
v-if=
"accountInfo.accountType === 'COMMON'"
>
<template
v-if=
"accountInfo?.certifiedState === 'UNCERTIFIED'"
>
<template
v-if=
"accountInfo?.certifiedState === 'UNCERTIFIED'"
>
<account-auth-section
title=
"
获得参拍权"
desc=
"让每一次拍得得心应手"
button=
"立即开通
"
<account-auth-section
title=
"
完成认证,解锁竞拍权限"
desc=
"出价前需完成验证"
button=
"去认证
"
url=
"/module/account/PersonCertificationPage"
></account-auth-section>
url=
"/module/account/PersonCertificationPage"
></account-auth-section>
</
template
>
</
template
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFICATING'"
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFICATING'"
>
<account-auth-section
title=
"认证资料审核中"
desc=
"
认证资料审核中"
button=
"查看详情
"
<account-auth-section
title=
"认证资料审核中"
desc=
"
出价前需完成验证"
button=
"去查看
"
url=
"/module/account/CertificationResult"
></account-auth-section>
url=
"/module/account/CertificationResult"
></account-auth-section>
</
template
>
</
template
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFY_FAILED'"
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFY_FAILED'"
>
<account-auth-section
title=
"认证失败
"
desc=
"让获得更专业的服务"
button=
"查看详情
"
<account-auth-section
title=
"认证失败
,请重新认证"
desc=
"出价前需完成验证"
button=
"去认证
"
url=
"/module/account/CertificationResult"
></account-auth-section>
url=
"/module/account/CertificationResult"
></account-auth-section>
</
template
>
</
template
>
</template>
</template>
<
template
v-if=
"accountInfo.accountType === 'PERSON'"
>
<
template
v-if=
"accountInfo.accountType === 'PERSON'"
>
<!-- 个人未认证 -->
<template
<template
v-if=
"accountInfo?.certifiedState === 'UNCERTIFIED'
|| accountInfo?.certifiedState === 'CERTIFIED'
"
>
v-if=
"accountInfo?.certifiedState === 'UNCERTIFIED'"
>
<account-auth-section
title=
"
升级参拍权"
desc=
"让获得更专业的服务"
button=
"立即升级
"
<account-auth-section
title=
"
完成认证,解锁竞拍权限"
desc=
"出价前需完成验证"
button=
"去认证
"
url=
"/module/account/
Company
CertificationPage"
></account-auth-section>
url=
"/module/account/
Person
CertificationPage"
></account-auth-section>
</
template
>
</
template
>
<!-- 个人认证中 -->
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFICATING'"
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFICATING'"
>
<account-auth-section
title=
"认证资料审核中"
desc=
"
认证资料审核中"
button=
"查看详情
"
<account-auth-section
title=
"认证资料审核中"
desc=
"
出价前需完成验证"
button=
"去查看
"
url=
"/module/account/CertificationResult"
></account-auth-section>
url=
"/module/account/CertificationResult"
></account-auth-section>
</
template
>
</
template
>
<!-- 个人认证失败 -->
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFY_FAILED'"
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFY_FAILED'"
>
<account-auth-section
title=
"认证失败"
desc=
"让获得更专业的服务"
button=
"查看详情"
<account-auth-section
title=
"认证失败,请重新认证"
desc=
"出价前需完成验证"
button=
"去认证"
url=
"/module/account/CertificationResult"
></account-auth-section>
</
template
>
<!-- 个人认证成功未签署合同 -->
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFIED' && !accountInfo?.platformContractSigned && !accountInfo?.signDeadline"
>
<account-auth-section
title=
"认证成功,待签署合同"
desc=
"合同签署成功后即可参拍"
button=
"去签署"
url=
"/module/account/CertificationResult"
></account-auth-section>
url=
"/module/account/CertificationResult"
></account-auth-section>
</
template
>
</
template
>
<!-- 合同签署中 -->
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFIED' && isSignDeadline"
>
<account-auth-section
title=
"合同签署中"
desc=
"合同签署成功后即可参拍"
button=
"去查看"
url=
"/module/account/CertificationResult"
></account-auth-section>
</
template
>
<!-- 升级到车商参拍权 -->
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFIED' && accountInfo?.platformContractSigned && accountInfo?.platformContractSignTime"
>
<account-auth-section
title=
"恭喜你,获得参拍资格"
desc=
"点击查看按钮可继续升级参拍权"
button=
"去查看"
url=
"/module/account/CompanyCertificationPage"
></account-auth-section>
</
template
>
</template>
</template>
<
template
v-if=
"accountInfo.accountType === 'COMPANY'"
>
<
template
v-if=
"accountInfo.accountType === 'COMPANY'"
>
</
template
>
</
template
>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<account-auth-section
title=
"
获得参拍权"
desc=
"让每一次拍得得心应手"
button=
"立即开通
"
<account-auth-section
title=
"
完成认证,解锁竞拍权限"
desc=
"出价前需完成验证"
button=
"去认证
"
url=
"/pages/LoginPage"
></account-auth-section>
url=
"/pages/LoginPage"
></account-auth-section>
</
template
>
</
template
>
<!-- 常用工具 -->
<!-- 常用工具 -->
...
@@ -373,6 +391,25 @@ export default class ProfilePage extends Vue {
...
@@ -373,6 +391,25 @@ export default class ProfilePage extends Vue {
return
couponImageUrl
(
"ticket.png"
);
return
couponImageUrl
(
"ticket.png"
);
}
}
/**
* 判断签署截止时间是否大于当前时间
* 用于显示"合同签署中"状态
*/
get
isSignDeadline
():
boolean
{
if
(
!
this
.
accountInfo
?.
signDeadline
)
{
return
false
;
}
try
{
const
signDeadline
=
new
Date
(
this
.
accountInfo
.
signDeadline
);
const
now
=
new
Date
();
return
signDeadline
>
now
;
}
catch
(
error
)
{
console
.
error
(
'签署截止时间解析失败:'
,
error
);
return
false
;
}
}
previewAvatar
():
void
{
previewAvatar
():
void
{
if
(
this
.
accountInfo
?.
avatar
&&
this
.
accountInfo
.
avatar
?.
url
)
{
if
(
this
.
accountInfo
?.
avatar
&&
this
.
accountInfo
.
avatar
?.
url
)
{
uni
.
previewImage
({
urls
:
[
this
.
accountInfo
.
avatar
.
url
],
current
:
0
});
uni
.
previewImage
({
urls
:
[
this
.
accountInfo
.
avatar
.
url
],
current
:
0
});
...
...
aus-front/app/src/pages/tabbar/home/CertificationDialog.vue
View file @
ae5adde
<
template
>
<
template
>
<view
class=
"dialog-container"
>
<view
class=
"dialog-container"
>
<view
class=
"dialog-body"
>
<view
class=
"dialog-body"
>
<view
class=
"dialog-close"
@
click=
"closeDialog"
>
<text
class=
"close-icon"
>
×
</text>
</view>
<view
class=
"dialog-icon"
>
<view
class=
"dialog-icon"
>
<van-image
width=
"80"
height=
"88"
fit=
"cover"
src=
"/static/images/account/certifition/certifition.png"
></van-image>
<van-image
width=
"80"
height=
"88"
fit=
"cover"
src=
"/static/images/account/certifition/certifition.png"
></van-image>
</view>
</view>
...
@@ -8,97 +11,105 @@
...
@@ -8,97 +11,105 @@
完成本人认证
完成本人认证
</view>
</view>
<view
class=
"dialog-content"
>
<view
class=
"dialog-content"
>
<text>
完成后,您将获得在我们平台上架车辆的权限,享受安全、高效的交易环境
</text>
<text>
认证完成后,您将解锁海量优质车源的竞拍购车权限,畅享透明、安全、高效的在线交易体验。
</text>
</view>
</view>
<view
class=
"dialog-footer"
>
<view
class=
"dialog-footer"
>
<van-button
type=
"primary"
hairline
round
block
@
click=
"goCertification"
>
立即认证
</van-button>
<van-button
type=
"primary"
round
block
@
click=
"goCertification"
>
立即认证
</van-button>
<view
@
click=
"closeDialog"
class=
"popup-button-text"
>
稍后认证
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-facing-decorator"
;
import
{
Component
,
Vue
}
from
"vue-facing-decorator"
;
import
{
AuthService
}
from
"@/common/AuthService"
;
@
Component
({
@
Component
({
components
:
{}
components
:
{}
})
})
export
default
class
CertificationDialog
extends
Vue
{
export
default
class
CertificationDialog
extends
Vue
{
goCertification
():
void
{
goCertification
():
void
{
const
authService
:
AuthService
=
this
.
$auth
this
.
$emit
(
'close'
);
this
.
$emit
(
'close'
);
uni
.
navigateTo
({
url
:
'/module/account/PersonCertificationPage'
});
if
(
authService
.
accountInfo
.
certifiedState
==
'UNCERTIFIED'
)
{
uni
.
navigateTo
({
url
:
'/module/account/PersonCertificationPage'
})
}
else
{
uni
.
navigateTo
({
url
:
'/module/account/CertificationResult'
})
}
}
}
closeDialog
():
void
{
closeDialog
():
void
{
this
.
$emit
(
'close'
);
this
.
$emit
(
'close'
);
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.dialog-container
{
.dialog-container
{
//
height
:
200p
x
;
display
:
fle
x
;
//
min-height
:
100vh
;
align-items
:
center
;
/* 避免内容被顶部导航栏遮挡(可选) */
justify-content
:
center
;
//
padding-top
:
var
(
--status-bar-height
)
;
width
:
100%
;
//
box-sizing
:
border-box
;
height
:
100%
;
}
}
.bg-image
{
.dialog-body
{
background-attachment
:
inherit
;
/* 将背景图固定不动 */
position
:
relative
;
padding
:
32px
24px
28px
;
background
:
#fff
;
border-radius
:
16px
;
box-sizing
:
border-box
;
}
}
.dialog-body
{
.dialog-close
{
padding
:
20px
;
position
:
absolute
;
top
:
12px
;
right
:
12px
;
width
:
24px
;
height
:
24px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
z-index
:
1
;
}
.close-icon
{
font-size
:
22px
;
color
:
#999
;
line-height
:
1
;
}
}
.dialog-icon
{
.dialog-icon
{
text-align
:
center
;
text-align
:
center
;
margin-bottom
:
16px
;
}
}
.dialog-header
{
.dialog-header
{
position
:
relative
;
font-size
:
20px
;
font-size
:
22px
;
font-weight
:
500
;
font-weight
:
400
;
color
:
#141E34
;
color
:
#141E34
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
20px
;
margin-bottom
:
12px
;
margin-bottom
:
10px
;
}
}
.dialog-content
{
.dialog-content
{
p
osition
:
relative
;
p
adding
:
0
4px
24px
;
padding
:
4px
20px
12px
20px
;
text-align
:
center
;
text
{
text
{
text-indent
:
2em
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
1
8.2px
;
line-height
:
1
.6
;
color
:
#676D7D
;
color
:
#676D7D
;
text-justify
:
newspaper
;
}
}
}
}
.dialog-footer
{
.dialog-footer
{
margin-top
:
20px
;
position
:
relative
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
gap
:
3px
;
;
}
}
.popup-button-text
{
.dialog-footer
::v-deep
.van-button--primary
{
width
:
100%
;
background
:
#347BFF
;
height
:
20px
;
border-color
:
#347BFF
;
float
:
left
;
height
:
44px
;
line-height
:
20px
;
font-size
:
16px
;
color
:
#666666
;
font-weight
:
500
;
font-size
:
14px
;
font-weight
:
常规体
;
font-family
:
"苹方-简"
;
text-align
:
center
;
cursor
:
pointer
;
margin-top
:
16px
;
}
}
</
style
>
</
style
>
aus-front/lib/src/entity/business/entity/Agreement.ts
View file @
ae5adde
...
@@ -50,8 +50,8 @@ export class Agreement extends AuditingEntity {
...
@@ -50,8 +50,8 @@ export class Agreement extends AuditingEntity {
* ABOUT_US 关于我们
* ABOUT_US 关于我们
* COUPON_1 ~ COUPON_5 优惠券协议(多档活动可分别配置)
* COUPON_1 ~ COUPON_5 优惠券协议(多档活动可分别配置)
*/
*/
export
type
Agreement_AgreementKey
=
'AUCTION'
|
'TRANSACTION'
|
'VIOLATION'
|
'CONTRACT'
|
'ACCOUNT'
|
'PRIVACY'
|
'ABOUT_US'
|
'FAPAI_ACCOUNT'
|
'FAPAI_PRIVACY'
|
'COUPON_1'
|
'COUPON_2'
|
'COUPON_3'
|
'COUPON_4'
|
'COUPON_5'
;
export
type
Agreement_AgreementKey
=
'AUCTION'
|
'TRANSACTION'
|
'VIOLATION'
|
'CONTRACT'
|
'ACCOUNT'
|
'PRIVACY'
|
'ABOUT_US'
|
'FAPAI_ACCOUNT'
|
'FAPAI_PRIVACY'
|
'COUPON_1'
|
'COUPON_2'
|
'COUPON_3'
|
'COUPON_4'
|
'COUPON_5'
|
'PURCHASE_CONTRACT'
|
'PLATFORM_CONTRACT'
;
export
const
AGREEMENT_AGREEMENT_KEYS
=
[
'AUCTION'
,
'TRANSACTION'
,
'VIOLATION'
,
'CONTRACT'
,
'ACCOUNT'
,
'PRIVACY'
,
'ABOUT_US'
,
'FAPAI_ACCOUNT'
,
'FAPAI_PRIVACY'
,
'COUPON_1'
,
'COUPON_2'
,
'COUPON_3'
,
'COUPON_4'
,
'COUPON_5'
];
export
const
AGREEMENT_AGREEMENT_KEYS
=
[
'AUCTION'
,
'TRANSACTION'
,
'VIOLATION'
,
'CONTRACT'
,
'ACCOUNT'
,
'PRIVACY'
,
'ABOUT_US'
,
'FAPAI_ACCOUNT'
,
'FAPAI_PRIVACY'
,
'COUPON_1'
,
'COUPON_2'
,
'COUPON_3'
,
'COUPON_4'
,
'COUPON_5'
,
'PURCHASE_CONTRACT'
,
'PLATFORM_CONTRACT'
];
/**
/**
* DRAFT 草稿
* DRAFT 草稿
...
...
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