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 42489235
authored
Aug 11, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
需求开发
1 parent
420ce71a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1460 additions
and
14 deletions
aus-front/admin/src/api/ContractController.ts
aus-front/admin/src/api/TransactionController.ts
aus-front/admin/src/assets/i18n/zh_CN/enum.ts
aus-front/admin/src/main.ts
aus-front/admin/src/router/BusinessRouter.ts
aus-front/admin/src/views/auction/order/AuctionOrderPage.vue
aus-front/admin/src/views/auction/order/AuditTransferAuctionOrder.vue
aus-front/admin/src/views/auction/order/TransferAuctionOrder.vue
aus-front/admin/src/views/auction/order/UploadPaymentVoucher.vue
aus-front/admin/src/views/auction/order/UploadTransferringOrder.vue
aus-front/admin/src/views/auction/order/components/TransferImageUpload.vue
aus-front/admin/src/views/auction/order/components/TransferPdfUpload.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/auction/AuctionVehiclePage.vue
aus-front/admin/src/views/vehicle/inventory/VehicleForm.vue
aus-front/admin/src/views/vehicle/inventory/ViewVehicle.vue
aus-front/admin/src/api/ContractController.ts
View file @
4248923
...
@@ -141,4 +141,14 @@ export class ContractController{
...
@@ -141,4 +141,14 @@ export class ContractController{
// region 前端扩展代码区
// region 前端扩展代码区
// endregion
// endregion
/**
* 分页查询平台合同列表
* @param pagination
* @return Page
*/
static
pagePlatformContract
(
axios
:
AxiosStatic
,
pagination
:
Pagination
<
Contract
>
):
Promise
<
AxiosResponse
<
Page
<
Contract
>>>
{
return
axios
.
post
(
'platformContract/page'
,
pagination
);
}
static
PLATFORM_PAGE_CONTRACT
=
'platformContract/page'
;
}
}
aus-front/admin/src/api/TransactionController.ts
View file @
4248923
...
@@ -133,4 +133,16 @@ export class TransactionController{
...
@@ -133,4 +133,16 @@ export class TransactionController{
// region 前端扩展代码区
// region 前端扩展代码区
// endregion
// endregion
/**
* 代上传付款凭证
*/
static
proxyUploadPayVoucher
(
axios
:
AxiosStatic
,
params
):
Promise
<
AxiosResponse
<
OrderTransaction
>>
{
return
axios
.
post
(
'auctionOrder/proxyUploadPayVoucher'
,
params
);
}
/**
* 代上传过户资料
*/
static
proxyUploadTransferMaterials
(
axios
:
AxiosStatic
,
params
):
Promise
<
AxiosResponse
<
OrderTransaction
>>
{
return
axios
.
post
(
'auctionOrder/proxyUploadTransferMaterials'
,
params
);
}
}
}
aus-front/admin/src/assets/i18n/zh_CN/enum.ts
View file @
4248923
...
@@ -181,7 +181,9 @@ export default {
...
@@ -181,7 +181,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/admin/src/main.ts
View file @
4248923
...
@@ -165,8 +165,14 @@ SecurityController.getUserAuthentication(axiosInstance as AxiosStatic, null).the
...
@@ -165,8 +165,14 @@ SecurityController.getUserAuthentication(axiosInstance as AxiosStatic, null).the
authService
.
setAuthentication
(
authenticity
);
authService
.
setAuthentication
(
authenticity
);
//将当前用户信息写入vuex的store中
//将当前用户信息写入vuex的store中
store
.
commit
(
'security/changeAuthenticity'
,
authenticity
);
store
.
commit
(
'security/changeAuthenticity'
,
authenticity
);
// 开发调试
authenticity
.
privileges
[
9
].
children
.
push
({
code
:
'platform_contract'
,
name
:
'平台合同管理'
,
type
:
"MENU"
,
value
:
"/business/platformContract"
,
enabled
:
true
})
//将用户的权限树写入到vuex的store中
//将用户的权限树写入到vuex的store中
store
.
commit
(
'security/changePrivileges'
,
authenticity
.
privileges
??
[]);
store
.
commit
(
'security/changePrivileges'
,
authenticity
.
privileges
??
[]);
app
.
mount
(
'#app'
);
app
.
mount
(
'#app'
);
...
...
aus-front/admin/src/router/BusinessRouter.ts
View file @
4248923
...
@@ -38,6 +38,13 @@ export const businessRouter: Array<RouteRecordRaw> = [
...
@@ -38,6 +38,13 @@ export const businessRouter: Array<RouteRecordRaw> = [
}
}
},
},
{
{
path
:
'/business/platformContract'
,
component
:
()
=>
import
(
'@/views/business/platformContract/platformContractPage.vue'
),
meta
:
{
breadcrumbs
:
[{
name
:
'运营管理'
},
{
name
:
'平台合同管理'
}]
}
},
{
path
:
'/business/deposit-rule'
,
path
:
'/business/deposit-rule'
,
component
:
()
=>
import
(
'@/views/business/deposit-rule/DepositRulePage.vue'
),
component
:
()
=>
import
(
'@/views/business/deposit-rule/DepositRulePage.vue'
),
meta
:
{
meta
:
{
...
...
aus-front/admin/src/views/auction/order/AuctionOrderPage.vue
View file @
4248923
...
@@ -33,12 +33,13 @@
...
@@ -33,12 +33,13 @@
</router-link>
</router-link>
<!-- 审核过户资料-->
<!-- 审核过户资料-->
<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"
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>
</router-link>
</router-link>
<a-button
type=
"link"
v-if=
"record.orderState==='UNPAID' && record.auditState !== 'UNAUDITED'"
size=
"small"
@
click=
"uploadPaymentVoucher(record)"
>
上传付款凭证
</a-button>
<order-transaction-audit-btn
:auction-order=
"record"
></order-transaction-audit-btn>
<order-transaction-audit-btn
:auction-order=
"record"
></order-transaction-audit-btn>
...
@@ -66,7 +67,8 @@ import {Security} from "@/store";
...
@@ -66,7 +67,8 @@ import {Security} from "@/store";
import
{
Auction
}
from
"lib/src/entity/auction/entity/Auction"
;
import
{
Auction
}
from
"lib/src/entity/auction/entity/Auction"
;
import
OrderTransactionAuditBtn
from
"@/views/auction/order/OrderTransactionAuditBtn.vue"
;
import
OrderTransactionAuditBtn
from
"@/views/auction/order/OrderTransactionAuditBtn.vue"
;
import
TransferAuctionOrder
from
"@/views/auction/order/TransferAuctionOrder.vue"
;
import
TransferAuctionOrder
from
"@/views/auction/order/TransferAuctionOrder.vue"
;
import
UploadTransferringOrder
from
"@/views/auction/order/UploadTransferringOrder.vue"
;
import
UploadPaymentVoucher
from
"@/views/auction/order/UploadPaymentVoucher.vue"
;
@
Component
({
@
Component
({
components
:
{
components
:
{
OrderTransactionAuditBtn
,
OrderTransactionAuditBtn
,
...
@@ -75,7 +77,9 @@ import TransferAuctionOrder from "@/views/auction/order/TransferAuctionOrder.vue
...
@@ -75,7 +77,9 @@ import TransferAuctionOrder from "@/views/auction/order/TransferAuctionOrder.vue
SearchOutlined
,
SearchOutlined
,
PlusSquareOutlined
,
PlusSquareOutlined
,
UndoOutlined
,
UndoOutlined
,
EditFilled
,
DeleteFilled
,
TableOutlined
,
EyeFilled
EditFilled
,
DeleteFilled
,
TableOutlined
,
EyeFilled
,
UploadTransferringOrder
,
UploadPaymentVoucher
},
},
})
})
export
default
class
AuctionOrderPage
extends
PaginationComponent
<
AuctionOrder
>
{
export
default
class
AuctionOrderPage
extends
PaginationComponent
<
AuctionOrder
>
{
...
@@ -269,6 +273,50 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
...
@@ -269,6 +273,50 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
});
});
}
}
uploadTransferring(auctionOrder: AuctionOrder): void {
this.selectedAuctionOrder = auctionOrder;
const modal = ModalService.confirm({
title: "修改过户资料", component: UploadTransferringOrder, closable: true, appContext: this.$.appContext,
props: {
auctionOrder: auctionOrder
},
onOk: (component): void => {
component.submitForm();
},
emits: {
handleOk: (e) => {
modal.destroy();
this.reloadTabsCount();
this.pagination.refresh();
}
},
})
}
uploadPaymentVoucher(auctionOrder: AuctionOrder): void {
this.selectedAuctionOrder = auctionOrder;
const modal = ModalService.confirm({
title: '上传付款凭证',
component: UploadPaymentVoucher,
closable: true,
width: 800,
appContext: this.$.appContext,
props: {
auctionOrder: auctionOrder
},
onOk: (component): void => {
component.submitForm();
},
emits: {
handleOk: (e) => {
modal.destroy();
this.reloadTabsCount();
this.pagination.refresh();
}
}
});
}
downloadExcel(): void {
downloadExcel(): void {
this.exporting = true;
this.exporting = true;
AuctionOrderController.exportAuctionOrder(this.axios, this.pagination.requestParams, {responseType: 'blob'}).then(response => {
AuctionOrderController.exportAuctionOrder(this.axios, this.pagination.requestParams, {responseType: 'blob'}).then(response => {
...
...
aus-front/admin/src/views/auction/order/AuditTransferAuctionOrder.vue
View file @
4248923
...
@@ -9,8 +9,29 @@
...
@@ -9,8 +9,29 @@
<a-image-preview-group>
<a-image-preview-group>
<a-image
:width=
"120"
v-for=
"image in auctionOrder.vehicleLicense"
:src=
"image.url"
:key=
"image.uid"
/>
<a-image
:width=
"120"
v-for=
"image in auctionOrder.vehicleLicense"
:src=
"image.url"
:key=
"image.uid"
/>
</a-image-preview-group>
</a-image-preview-group>
<div
class=
"mb-12"
></div>
<title-divider
title=
"过户发票"
></title-divider>
<div
v-if=
"auctionOrder.transferInvoice && auctionOrder.transferInvoice.length > 0"
class=
"file-list"
>
<div
v-for=
"file in auctionOrder.transferInvoice"
:key=
"file.uid"
class=
"file-card"
>
<div
class=
"file-info"
>
<div
class=
"file-meta"
>
<div
class=
"file-name"
>
文件名称:
{{
file
.
name
||
'过户发票.pdf'
}}
</div>
<div
class=
"file-extra"
>
文件大小:
{{
formatFileSize
(
file
.
size
)
||
''
}}
</div>
<div
class=
"file-extra"
>
上传日期
{{
file
.
lastModifiedDate
||
''
}}
</div>
</div>
</div>
<div
class=
"download-btn"
@
click=
"handlePreview(file)"
>
下载
</div>
</div>
</div>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新车主身份证照片"
></title-divider>
<a-image-preview-group>
<a-image
:width=
"120"
v-for=
"image in auctionOrder.newOwnerIdCard"
:src=
"image.url"
:key=
"image.uid"
/>
</a-image-preview-group>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新车牌号"
></title-divider>
<a-descriptions
v-if=
"auctionOrder"
:column=
"3"
size=
"small"
class=
"mt-16"
>
<a-descriptions
v-if=
"auctionOrder"
:column=
"3"
size=
"small"
class=
"mt-16"
>
<a-descriptions-item
label=
"
新车牌号
"
name=
"newPlateNumber"
>
<a-descriptions-item
label=
"
车牌号码
"
name=
"newPlateNumber"
>
{{
auctionOrder
.
newPlateNumber
}}
{{
auctionOrder
.
newPlateNumber
}}
</a-descriptions-item>
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
...
@@ -66,6 +87,31 @@ export default class AuditTransferAuctionOrder extends EnhanceFormComponent<Appr
...
@@ -66,6 +87,31 @@ export default class AuditTransferAuctionOrder extends EnhanceFormComponent<Appr
mounted
()
{
mounted
()
{
}
}
handlePreview
(
file
)
{
if
(
!
file
||
!
file
.
url
)
return
;
window
.
open
(
file
.
url
,
"_blank"
);
}
formatFileSize
(
bytes
:
number
):
string
{
if
(
!
bytes
||
bytes
===
0
)
return
""
;
const
kb
=
bytes
/
1024
;
const
mb
=
bytes
/
1024
/
1024
;
// 小于 1KB,显示 B
if
(
bytes
<
1024
)
{
return
`
${
bytes
}
B`
;
}
// 小于 1MB,显示 KB
else
if
(
bytes
<
1024
*
1024
)
{
return
`
${
kb
.
toFixed
(
2
)}
KB`
;
}
// 大于等于 1MB,显示 MB
else
{
return
`
${
mb
.
toFixed
(
2
)}
MB`
;
}
}
onValidSuccess
(
formValue
:
ApproveHistory
):
void
{
onValidSuccess
(
formValue
:
ApproveHistory
):
void
{
formValue
.
approveId
=
this
.
auctionOrder
.
orderId
;
formValue
.
approveId
=
this
.
auctionOrder
.
orderId
;
AuctionOrderController
.
auditTransferAuctionOrder
(
this
.
axios
,
formValue
).
then
(
response
=>
{
AuctionOrderController
.
auditTransferAuctionOrder
(
this
.
axios
,
formValue
).
then
(
response
=>
{
...
@@ -87,5 +133,69 @@ export default class AuditTransferAuctionOrder extends EnhanceFormComponent<Appr
...
@@ -87,5 +133,69 @@ export default class AuditTransferAuctionOrder extends EnhanceFormComponent<Appr
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.mb-12
{
margin-bottom
:
12px
;
}
.mt-16
{
margin-top
:
16px
;
}
.empty-text
{
color
:
#999
;
padding
:
8px
0
;
}
.file-list
{
display
:
flex
;
flex-direction
:
column
;
gap
:
12px
;
margin-bottom
:
16px
;
background
:
#F7F8F9
;
border-radius
:
2px
;
width
:
auto
;
.file-card
{
padding
:
12px
16px
;
.file-info
{
display
:
flex
;
align-items
:
center
;
gap
:
12px
;
.file-icon
{
width
:
40px
;
height
:
40px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
#FFF2F0
;
color
:
#FF4D4F
;
border-radius
:
6px
;
font-size
:
12px
;
font-weight
:
500
;
}
.file-meta
{
display
:
flex
;
flex-direction
:
column
;
gap
:
4px
;
.file-name
{
color
:
#333
;
font-size
:
14px
;
}
.file-extra
{
color
:
#999
;
font-size
:
12px
;
}
}
}
.download-btn
{
margin-top
:
20px
;
cursor
:
pointer
;
color
:
#1956FE
;
}
}
}
</
style
>
</
style
>
aus-front/admin/src/views/auction/order/TransferAuctionOrder.vue
View file @
4248923
...
@@ -8,8 +8,29 @@
...
@@ -8,8 +8,29 @@
<a-image-preview-group>
<a-image-preview-group>
<a-image
:width=
"120"
v-for=
"image in auctionOrder.vehicleLicense"
:src=
"image.url"
:key=
"image.uid"
/>
<a-image
:width=
"120"
v-for=
"image in auctionOrder.vehicleLicense"
:src=
"image.url"
:key=
"image.uid"
/>
</a-image-preview-group>
</a-image-preview-group>
<div
class=
"mb-12"
></div>
<title-divider
title=
"过户发票"
></title-divider>
<div
v-if=
"auctionOrder.transferInvoice && auctionOrder.transferInvoice.length > 0"
class=
"file-list"
>
<div
v-for=
"file in auctionOrder.transferInvoice"
:key=
"file.uid"
class=
"file-card"
>
<div
class=
"file-info"
>
<div
class=
"file-icon"
>
PDF
</div>
<div
class=
"file-meta"
>
<div
class=
"file-name"
>
{{
file
.
name
||
'过户发票.pdf'
}}
</div>
<div
class=
"file-extra"
>
{{
file
.
size
||
''
}}
· 上传时间
{{
file
.
uploadTime
||
''
}}
</div>
</div>
</div>
<a-button
type=
"default"
size=
"small"
@
click=
"downloadFile(file)"
>
下载
</a-button>
</div>
</div>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新车主身份证照片"
></title-divider>
<a-image-preview-group>
<a-image
:width=
"120"
v-for=
"image in auctionOrder.ownerIdCard"
:src=
"image.url"
:key=
"image.uid"
/>
</a-image-preview-group>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新车牌号"
></title-divider>
<a-descriptions
v-if=
"auctionOrder"
:column=
"3"
size=
"small"
class=
"mt-16"
>
<a-descriptions
v-if=
"auctionOrder"
:column=
"3"
size=
"small"
class=
"mt-16"
>
<a-descriptions-item
label=
"
新车牌号
"
name=
"newPlateNumber"
>
<a-descriptions-item
label=
"
车牌号码
"
name=
"newPlateNumber"
>
{{
auctionOrder
.
newPlateNumber
}}
{{
auctionOrder
.
newPlateNumber
}}
</a-descriptions-item>
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
...
@@ -28,12 +49,106 @@ export default class TransferAuctionOrder extends Vue {
...
@@ -28,12 +49,106 @@ export default class TransferAuctionOrder extends Vue {
auctionOrder
:
AuctionOrder
;
auctionOrder
:
AuctionOrder
;
created
():
void
{
created
():
void
{
// TODO: 假数据,仅用于前端样式调试,接口通后删除以下代码
this
.
auctionOrder
.
transferInvoice
=
[
{
uid
:
'mock-transfer-invoice-1'
,
url
:
'https://example.com/transfer-invoice.pdf'
,
name
:
'过户发票_京A12345.pdf'
,
size
:
'2.1 MB'
,
uploadTime
:
'2026-07-28 14:32'
}
];
this
.
auctionOrder
.
ownerIdCard
=
[
{
uid
:
'mock-owner-idcard-1'
,
url
:
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png'
},
{
uid
:
'mock-owner-idcard-2'
,
url
:
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png'
}
];
// TODO: 假数据结束
}
downloadFile
(
file
:
any
):
void
{
if
(
!
file
||
!
file
.
url
)
{
return
;
}
const
link
=
document
.
createElement
(
'a'
);
link
.
href
=
file
.
url
;
link
.
download
=
file
.
name
||
'过户发票.pdf'
;
document
.
body
.
appendChild
(
link
);
link
.
click
();
document
.
body
.
removeChild
(
link
);
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.mb-12
{
margin-bottom
:
12px
;
}
.mt-16
{
margin-top
:
16px
;
}
.empty-text
{
color
:
#999
;
padding
:
8px
0
;
}
.file-list
{
display
:
flex
;
flex-direction
:
column
;
gap
:
12px
;
margin-bottom
:
16px
;
.file-card
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
12px
16px
;
border
:
1px
solid
#E1E3E6
;
border-radius
:
8px
;
background
:
#fff
;
.file-info
{
display
:
flex
;
align-items
:
center
;
gap
:
12px
;
.file-icon
{
width
:
40px
;
height
:
40px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
#FFF2F0
;
color
:
#FF4D4F
;
border-radius
:
6px
;
font-size
:
12px
;
font-weight
:
500
;
}
.file-meta
{
display
:
flex
;
flex-direction
:
column
;
gap
:
4px
;
.file-name
{
color
:
#333
;
font-size
:
14px
;
}
.file-extra
{
color
:
#999
;
font-size
:
12px
;
}
}
}
}
}
</
style
>
</
style
>
aus-front/admin/src/views/auction/order/UploadPaymentVoucher.vue
0 → 100644
View file @
4248923
This diff is collapsed.
Click to expand it.
aus-front/admin/src/views/auction/order/UploadTransferringOrder.vue
0 → 100644
View file @
4248923
<
template
>
<a-form
:model=
"formState"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<title-divider
title=
"机动车登记证书"
></title-divider>
<a-form-item
label=
""
>
<transfer-image-upload
v-model:value=
"formState.registrationCertificate"
:max-count=
"8"
:max-size=
"10"
upload-text=
"上传图片"
directory=
"auction/transfer"
@
change=
"handleImageChange('registrationCertificate', $event)"
/>
</a-form-item>
<title-divider
title=
"过户发票"
></title-divider>
<a-form-item
label=
""
>
<transfer-pdf-upload
v-model:value=
"formState.transferInvoice"
:max-size=
"10"
directory=
"auction/transfer"
@
change=
"handlePdfChange('transferInvoice', $event)"
/>
<div
class=
"upload-hint"
>
车商上传的二手车销售统一发票
</div>
</a-form-item>
<div
class=
"mb-12"
></div>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新的机动车行驶证"
></title-divider>
<a-form-item
label=
""
>
<transfer-image-upload
v-model:value=
"formState.vehicleLicense"
:max-count=
"2"
:max-size=
"10"
upload-text=
"上传图片"
directory=
"auction/transfer"
@
change=
"handleImageChange('vehicleLicense', $event)"
/>
</a-form-item>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新车主身份证照片"
></title-divider>
<a-form-item
label=
""
>
<transfer-image-upload
v-model:value=
"formState.newOwnerIdCard"
:max-count=
"2"
:max-size=
"10"
upload-text=
"上传图片"
directory=
"auction/transfer"
@
change=
"handleImageChange('newOwnerIdCard', $event)"
/>
</a-form-item>
<div
class=
"mb-12"
></div>
<title-divider
title=
"新车牌号"
></title-divider>
<a-form-item
label=
"车牌号码"
name=
"newPlateNumber"
>
<a-input
v-model:value=
"formState.newPlateNumber"
placeholder=
"请输入新车牌号"
style=
"width: 300px;"
/>
</a-form-item>
</a-form>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
"vue-facing-decorator"
;
import
{
reactive
}
from
'vue'
;
import
{
message
}
from
'ant-design-vue'
;
import
TitleDivider
from
"@/components/TitleDivider.vue"
;
import
TransferImageUpload
from
"./components/TransferImageUpload.vue"
;
import
TransferPdfUpload
from
"./components/TransferPdfUpload.vue"
;
import
{
AuctionOrder
}
from
"lib/src/entity/auction/entity/AuctionOrder"
;
import
{
TransactionController
}
from
"@/api/TransactionController"
;
@
Component
({
components
:
{
TitleDivider
,
TransferImageUpload
,
TransferPdfUpload
}
})
export
default
class
UploadTransferringOrder
extends
Vue
{
@
Prop
({
required
:
true
})
auctionOrder
:
AuctionOrder
;
labelCol
=
{
span
:
4
};
wrapperCol
=
{
span
:
20
};
submitting
=
false
;
formState
=
reactive
({
registrationCertificate
:
[],
vehicleLicense
:
[],
transferInvoice
:
null
,
newOwnerIdCard
:
[],
newPlateNumber
:
''
});
created
():
void
{
// 初始化表单数据
if
(
this
.
auctionOrder
)
{
this
.
formState
.
registrationCertificate
=
this
.
auctionOrder
.
registrationCertificate
||
[];
this
.
formState
.
vehicleLicense
=
this
.
auctionOrder
.
vehicleLicense
||
[];
this
.
formState
.
transferInvoice
=
this
.
auctionOrder
.
transferInvoice
||
null
;
this
.
formState
.
newOwnerIdCard
=
this
.
auctionOrder
.
newOwnerIdCard
||
[];
this
.
formState
.
newPlateNumber
=
this
.
auctionOrder
.
newPlateNumber
||
''
;
}
}
handleImageChange
(
fieldName
:
string
,
fileList
:
any
[]):
void
{
console
.
log
(
`
${
fieldName
}
changed:`
,
fileList
);
}
handlePdfChange
(
fieldName
:
string
,
file
:
any
):
void
{
console
.
log
(
`
${
fieldName
}
changed:`
,
file
);
}
handleCancel
():
void
{
this
.
$emit
(
'cancel'
);
}
submitForm
():
void
{
(
this
.
$refs
.
formRef
as
any
).
validate
().
then
(()
=>
{
if
(
!
this
.
formState
.
registrationCertificate
||
this
.
formState
.
registrationCertificate
.
length
<
1
)
{
message
.
warning
(
'请至少上传1张机动车登记证书图片'
);
return
;
}
// 验证机动车行驶证(必须上传主页和副页)
if
(
!
this
.
formState
.
vehicleLicense
)
{
message
.
warning
(
'请至少上传一张机动车行驶证'
);
return
;
}
const
params
=
{
orderId
:
this
.
auctionOrder
.
orderId
,
registrationCertificate
:
this
.
formState
.
registrationCertificate
?.
map
(
val
=>
{
return
val
.
url
}),
vehicleLicense
:
this
.
formState
.
vehicleLicense
?.
map
(
val
=>
{
return
val
.
url
}),
transferInvoice
:
this
.
formState
.
transferInvoice
?
[{
filePath
:
this
.
formState
.
transferInvoice
.
url
,
size
:
this
.
formState
.
transferInvoice
.
size
}]
:
[],
newOwnerIdCard
:
this
.
formState
.
newOwnerIdCard
?.
map
(
val
=>
{
return
val
.
url
}),
newPlateNumber
:
this
.
formState
.
newPlateNumber
};
console
.
log
(
params
)
TransactionController
.
proxyUploadTransferMaterials
(
this
.
axios
,
params
).
then
(
res
=>
{
message
.
success
(
'提交成功'
);
this
.
$emit
(
'handleOk'
);
}).
catch
(
err
=>
{
console
.
error
(
'提交失败:'
,
err
);
});
}).
catch
(
err
=>
{
});
}
// async handleSubmit(): Promise<void> {
// try {
// this.submitting = true;
// // 验证机动车登记证书(最少1张)
// if (!this.formState.registrationCertificate || this.formState.registrationCertificate.length < 1) {
// message.warning('请至少上传1张机动车登记证书图片');
// return;
// }
// // 验证机动车行驶证(必须上传主页和副页)
// if (!this.formState.vehicleLicense) {
// message.warning('请至少上传一张机动车行驶证');
// return;
// }
// const params = {
// orderId: this.auctionOrder.orderId,
// registrationCertificate: this.formState.registrationCertificate,
// vehicleLicense: this.formState.vehicleLicense,
// transferInvoice: this.formState.transferInvoice ? [this.formState.transferInvoice] : [],
// newOwnerIdCard: this.formState.newOwnerIdCard,
// newPlateNumber: this.formState.newPlateNumber
// };
// console.log(params, '2222')
// // await TransactionController.proxyUploadTransferMaterials(this.axios, params);
// message.success('提交成功');
// this.$emit('success');
// } catch (error) {
// message.error('提交失败,请重试');
// console.error('提交失败:', error);
// } finally {
// this.submitting = false;
// }
// }
}
</
script
>
<
style
lang=
"less"
scoped
>
.mb-12
{
margin-bottom
:
12px
;
}
.upload-hint
{
color
:
#999
;
font-size
:
12px
;
margin-top
:
8px
;
}
.form-footer
{
margin-top
:
24px
;
text-align
:
right
;
}
</
style
>
aus-front/admin/src/views/auction/order/components/TransferImageUpload.vue
0 → 100644
View file @
4248923
<
template
>
<div
class=
"transfer-image-upload"
>
<!-- 隐藏的input -->
<input
ref=
"fileInputRef"
type=
"file"
accept=
"image/jpeg,image/jpg,image/png,image/jpeg"
multiple
class=
"hidden-input"
@
change=
"onFileChange"
/>
<!-- 上传区域 -->
<div
class=
"upload-list"
>
<!-- 已上传的图片 -->
<div
v-for=
"(url, index) in imageList"
:key=
"index"
class=
"upload-item"
>
<a-image
:src=
"url"
class=
"image-preview"
/>
<div
class=
"delete-icon"
@
click=
"handleDelete(index)"
>
<CloseCircleOutlined
/>
</div>
</div>
<!-- 上传按钮 -->
<div
v-if=
"imageList.length
< maxCount
&&
!
readonly
"
class=
"upload-btn"
@
click=
"handleUploadClick"
>
<PlusOutlined
class=
"plus-icon"
/>
<div
class=
"upload-text"
>
{{
uploadText
||
'上传图片'
}}
</div>
</div>
</div>
<!-- 提示文字 -->
<div
v-if=
"hint"
class=
"upload-hint"
>
{{
hint
}}
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
"vue-facing-decorator"
;
import
{
PlusOutlined
,
CloseCircleOutlined
}
from
"@ant-design/icons-vue"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
uploadFile
,
isLikelyImageFile
}
from
"@/utils/upload.js"
;
@
Component
({
name
:
"TransferImageUpload"
,
components
:
{
PlusOutlined
,
CloseCircleOutlined
}
})
export
default
class
TransferImageUpload
extends
Vue
{
@
Prop
({
type
:
Array
,
default
:
()
=>
[]
})
value
!
:
any
[];
@
Prop
({
type
:
Number
,
default
:
10
})
maxCount
!
:
number
;
@
Prop
({
type
:
Number
,
default
:
10
})
maxSize
!
:
number
;
// MB
@
Prop
({
type
:
String
,
default
:
""
})
uploadText
!
:
string
;
@
Prop
({
type
:
String
,
default
:
""
})
hint
!
:
string
;
@
Prop
({
type
:
Boolean
,
default
:
false
})
readonly
!
:
boolean
;
@
Prop
({
type
:
String
,
default
:
"auction/transfer"
})
directory
!
:
string
;
imageList
:
string
[]
=
[];
uploading
=
false
;
@
Watch
(
"value"
,
{
deep
:
true
,
immediate
:
true
})
onValueChange
(
val
:
any
[])
{
if
(
!
val
||
val
.
length
===
0
)
{
this
.
imageList
=
[];
}
else
{
this
.
imageList
=
val
.
map
((
item
:
any
)
=>
{
if
(
typeof
item
===
"string"
)
{
return
item
;
}
return
item
.
url
||
item
.
aliyunAddress
||
""
;
});
}
}
handleUploadClick
()
{
if
(
this
.
readonly
||
this
.
uploading
)
return
;
(
this
.
$refs
.
fileInputRef
as
HTMLInputElement
)?.
click
();
}
async
onFileChange
(
ev
:
Event
)
{
const
input
=
ev
.
target
as
HTMLInputElement
;
const
files
=
Array
.
from
(
input
.
files
||
[]);
input
.
value
=
""
;
if
(
files
.
length
===
0
)
return
;
// 数量限制
if
(
this
.
imageList
.
length
+
files
.
length
>
this
.
maxCount
)
{
message
.
warning
(
`最多上传
${
this
.
maxCount
}
张图片`
);
return
;
}
// 验证文件
for
(
const
file
of
files
)
{
if
(
!
isLikelyImageFile
(
file
))
{
message
.
error
(
`
${
file
.
name
}
不是有效的图片文件`
);
return
;
}
if
(
file
.
size
>
this
.
maxSize
*
1024
*
1024
)
{
message
.
error
(
`
${
file
.
name
}
大小超过
${
this
.
maxSize
}
MB`
);
return
;
}
}
// 上传文件
try
{
this
.
uploading
=
true
;
const
uploadPromises
=
files
.
map
(
file
=>
uploadFile
(
file
,
{
dir
:
this
.
directory
}));
const
results
=
await
Promise
.
all
(
uploadPromises
);
const
newUrls
=
results
.
map
(
res
=>
res
.
aliyunAddress
||
res
.
url
||
""
);
this
.
imageList
=
[...
this
.
imageList
,
...
newUrls
];
this
.
emitChange
();
message
.
success
(
"上传成功"
);
}
catch
(
error
:
any
)
{
message
.
error
(
`上传失败:
${
error
.
message
||
error
}
`
);
}
finally
{
this
.
uploading
=
false
;
}
}
handleDelete
(
index
:
number
)
{
if
(
this
.
readonly
)
return
;
this
.
imageList
.
splice
(
index
,
1
);
this
.
emitChange
();
}
emitChange
()
{
const
fileList
=
this
.
imageList
.
map
(
url
=>
({
url
,
uid
:
`
${
Date
.
now
()}
_
${
Math
.
random
()}
`
,
name
:
url
.
split
(
"/"
).
pop
()
||
""
,
status
:
"done"
}));
this
.
$emit
(
"update:value"
,
fileList
);
this
.
$emit
(
"change"
,
fileList
);
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.transfer-image-upload
{
width
:
100%
;
.hidden-input
{
position
:
absolute
;
width
:
0
;
height
:
0
;
pointer-events
:
none
;
opacity
:
0
;
}
.upload-list
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
12px
;
}
.upload-item
{
position
:
relative
;
width
:
88px
;
height
:
88px
;
border
:
1px
solid
#e1e3e6
;
border-radius
:
6px
;
overflow
:
hidden
;
background
:
#f5f7fa
;
.image-preview
{
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
}
.delete-icon
{
position
:
absolute
;
top
:
2px
;
right
:
2px
;
width
:
20px
;
height
:
20px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
rgba
(
255
,
255
,
255
,
0.9
);
border-radius
:
50%
;
cursor
:
pointer
;
z-index
:
10
;
&:hover
{
color
:
#ff4d4f
;
}
}
}
.upload-btn
{
width
:
88px
;
height
:
88px
;
border
:
1px
dashed
#d9d9d9
;
border-radius
:
6px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
cursor
:
pointer
;
background
:
#fafafa
;
transition
:
all
0.3s
;
&:hover
{
border-color
:
#1890ff
;
}
.plus-icon
{
font-size
:
20px
;
color
:
#8c8c8c
;
margin-bottom
:
4px
;
}
.upload-text
{
font-size
:
12px
;
color
:
#8c8c8c
;
}
}
.upload-hint
{
color
:
#999
;
font-size
:
12px
;
margin-top
:
8px
;
}
}
</
style
>
aus-front/admin/src/views/auction/order/components/TransferPdfUpload.vue
0 → 100644
View file @
4248923
<
template
>
<div
class=
"transfer-pdf-upload"
>
<!-- 隐藏的input -->
<input
ref=
"fileInputRef"
type=
"file"
accept=
"application/pdf"
class=
"hidden-input"
@
change=
"onFileChange"
/>
<!-- 已上传的PDF文件 -->
<div
v-if=
"pdfFile"
class=
"pdf-file-card"
>
<div
class=
"pdf-icon"
>
<FilePdfOutlined
style=
"font-size: 24px; color: #FF4D4F;"
/>
</div>
<div
class=
"pdf-info"
>
<div
class=
"pdf-name"
>
{{
pdfFile
.
name
||
'过户发票.pdf'
}}
</div>
<div
class=
"pdf-meta"
>
文件大小:
{{
pdfFile
.
formatSize
||
''
}}
</div>
</div>
<div
class=
"pdf-actions"
>
<a-button
type=
"link"
size=
"small"
@
click=
"handlePreview"
>
预览
</a-button>
<a-button
v-if=
"!readonly"
type=
"link"
size=
"small"
@
click=
"handleDelete"
>
删除
</a-button>
</div>
</div>
<!-- 上传按钮 -->
<div
v-else-if=
"!readonly"
class=
"upload-btn"
@
click=
"handleUploadClick"
>
<a-button>
<UploadOutlined
/>
上传过户发票(PDF)
</a-button>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
"vue-facing-decorator"
;
import
{
UploadOutlined
,
FilePdfOutlined
,
CloseCircleOutlined
}
from
"@ant-design/icons-vue"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
uploadFile
}
from
"@/utils/upload.js"
;
@
Component
({
name
:
"TransferPdfUpload"
,
components
:
{
UploadOutlined
,
FilePdfOutlined
,
CloseCircleOutlined
}
})
export
default
class
TransferPdfUpload
extends
Vue
{
@
Prop
({
type
:
Object
,
default
:
null
})
value
!
:
any
;
@
Prop
({
type
:
Number
,
default
:
10
})
maxSize
!
:
number
;
// MB
@
Prop
({
type
:
Boolean
,
default
:
false
})
readonly
!
:
boolean
;
@
Prop
({
type
:
String
,
default
:
"auction/transfer"
})
directory
!
:
string
;
pdfFile
:
any
=
null
;
uploading
=
false
;
@
Watch
(
"value"
,
{
deep
:
true
,
immediate
:
true
})
onValueChange
(
val
:
any
)
{
if
(
!
val
)
{
this
.
pdfFile
=
null
;
}
else
{
// 处理不同数据格式
let
pdfData
:
any
=
null
;
// 情况1:数组格式(从后端返回的数据)
if
(
Array
.
isArray
(
val
)
&&
val
.
length
>
0
)
{
const
firstItem
=
val
[
0
];
const
fileSize
=
typeof
firstItem
===
"string"
?
0
:
(
firstItem
.
size
||
0
);
pdfData
=
{
url
:
typeof
firstItem
===
"string"
?
firstItem
:
(
firstItem
.
url
||
firstItem
.
aliyunAddress
||
""
),
name
:
typeof
firstItem
===
"string"
?
"过户发票.pdf"
:
(
firstItem
.
name
||
firstItem
.
attachment
||
"过户发票.pdf"
),
size
:
fileSize
,
formatSize
:
this
.
formatFileSize
(
fileSize
),
uid
:
typeof
firstItem
===
"string"
?
`
${
Date
.
now
()}
`
:
(
firstItem
.
uid
||
`
${
Date
.
now
()}
`
),
status
:
"done"
};
}
// 情况2:字符串格式(URL)
else
if
(
typeof
val
===
"string"
)
{
pdfData
=
{
url
:
val
,
name
:
"过户发票.pdf"
,
size
:
0
,
formatSize
:
""
,
uid
:
`
${
Date
.
now
()}
`
,
status
:
"done"
};
}
// 情况3:对象格式(FileInfo)
else
if
(
typeof
val
===
"object"
)
{
const
fileSize
=
val
.
size
||
0
;
pdfData
=
{
url
:
val
.
url
||
val
.
aliyunAddress
||
""
,
name
:
val
.
name
||
val
.
attachment
||
"过户发票.pdf"
,
size
:
fileSize
,
formatSize
:
this
.
formatFileSize
(
fileSize
),
uid
:
val
.
uid
||
`
${
Date
.
now
()}
`
,
status
:
"done"
};
}
this
.
pdfFile
=
pdfData
;
}
}
handleUploadClick
()
{
if
(
this
.
readonly
||
this
.
uploading
)
return
;
(
this
.
$refs
.
fileInputRef
as
HTMLInputElement
)?.
click
();
}
async
onFileChange
(
ev
:
Event
)
{
const
input
=
ev
.
target
as
HTMLInputElement
;
const
file
=
input
.
files
?.[
0
];
input
.
value
=
""
;
if
(
!
file
)
return
;
// 验证文件
if
(
file
.
type
!==
"application/pdf"
)
{
message
.
error
(
"只能上传PDF格式的文件"
);
return
;
}
if
(
file
.
size
>
this
.
maxSize
*
1024
*
1024
)
{
message
.
error
(
`文件大小不能超过
${
this
.
maxSize
}
MB`
);
return
;
}
// 上传文件
try
{
this
.
uploading
=
true
;
const
result
=
await
uploadFile
(
file
,
{
dir
:
this
.
directory
});
this
.
pdfFile
=
{
url
:
result
.
aliyunAddress
||
result
.
url
||
""
,
name
:
result
.
attachment
||
file
.
name
,
size
:
file
.
size
,
formatSize
:
this
.
formatFileSize
(
file
.
size
),
uid
:
result
.
uid
||
`
${
Date
.
now
()}
`
,
status
:
"done"
};
this
.
emitChange
();
message
.
success
(
"上传成功"
);
}
catch
(
error
:
any
)
{
message
.
error
(
`上传失败:
${
error
.
message
||
error
}
`
);
}
finally
{
this
.
uploading
=
false
;
}
}
handlePreview
()
{
if
(
!
this
.
pdfFile
||
!
this
.
pdfFile
.
url
)
return
;
window
.
open
(
this
.
pdfFile
.
url
,
"_blank"
);
}
handleDelete
()
{
if
(
this
.
readonly
)
return
;
this
.
pdfFile
=
null
;
this
.
emitChange
();
}
formatFileSize
(
bytes
:
number
):
string
{
if
(
!
bytes
||
bytes
===
0
)
return
""
;
const
kb
=
bytes
/
1024
;
const
mb
=
bytes
/
1024
/
1024
;
// 小于 1KB,显示 B
if
(
bytes
<
1024
)
{
return
`
${
bytes
}
B`
;
}
// 小于 1MB,显示 KB
else
if
(
bytes
<
1024
*
1024
)
{
return
`
${
kb
.
toFixed
(
2
)}
KB`
;
}
// 大于等于 1MB,显示 MB
else
{
return
`
${
mb
.
toFixed
(
2
)}
MB`
;
}
}
emitChange
()
{
this
.
$emit
(
"update:value"
,
this
.
pdfFile
);
this
.
$emit
(
"change"
,
this
.
pdfFile
);
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.transfer-pdf-upload
{
.hidden-input
{
position
:
absolute
;
width
:
0
;
height
:
0
;
pointer-events
:
none
;
opacity
:
0
;
}
.pdf-file-card
{
display
:
flex
;
align-items
:
center
;
padding
:
12px
16px
;
border-radius
:
8px
;
background
:
#F7F8F9
;
.pdf-icon
{
width
:
40px
;
height
:
40px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
#FFF2F0
;
border-radius
:
6px
;
margin-right
:
12px
;
}
.pdf-info
{
flex
:
1
;
.pdf-name
{
color
:
#333
;
font-size
:
14px
;
margin-bottom
:
4px
;
}
.pdf-meta
{
color
:
#999
;
font-size
:
12px
;
}
}
.pdf-actions
{
display
:
flex
;
gap
:
8px
;
}
}
.upload-btn
{
cursor
:
pointer
;
}
}
</
style
>
aus-front/admin/src/views/business/platformContract/ViewPlatformContract.vue
0 → 100644
View file @
4248923
<
template
>
<a-descriptions
v-if=
"contract"
:bordered=
"false"
:column=
"2"
size=
"small"
>
<template
#
title
>
<title-tip-icon/>
合同基本信息
</
template
>
<a-descriptions-item
label=
"合同编号"
:span=
"2"
>
{{ contract.contractCode }}
</a-descriptions-item>
<a-descriptions-item
label=
"合同名称"
:span=
"2"
>
{{ contract.contractName }}
</a-descriptions-item>
<a-descriptions-item
label=
"发起时间"
>
{{ contract.createTime || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"合同签署时间"
>
{{ contract.signTime || '-' }}
</a-descriptions-item>
<a-descriptions-item
label=
"签署状态"
>
<a-tag
v-if=
"contract.signed"
color=
"success"
>
已签署
</a-tag>
<a-tag
v-else
color=
"error"
>
未签署
</a-tag>
</a-descriptions-item>
<a-descriptions-item
label=
"合同附件"
>
<
template
v-if=
"contract.contractFiles && contract.contractFiles.length > 0"
>
<a
v-for=
"(file, index) in contract.contractFiles"
:key=
"index"
:href=
"file.url"
target=
"_blank"
style=
"margin-right: 8px;"
>
{{
file
.
name
}}
</a>
</
template
>
<span
v-else
>
-
</span>
</a-descriptions-item>
</a-descriptions>
<a-card
size=
"default"
:bordered=
"false"
style=
"margin-top: 16px;"
>
<
template
#
title
>
<title-tip-icon/>
合同内容预览
</
template
>
<iframe
v-if=
"contract.contractFiles && contract.contractFiles.length > 0"
:src=
"contract.contractFiles[0].url"
style=
"width: 100%; height: 400px; border: none;"
></iframe>
<a-empty
v-else
description=
"暂无合同附件"
:image=
"simpleImage"
></a-empty>
</a-card>
<a-descriptions
v-if=
"contract.auctionOrder?.account"
:bordered=
"false"
:column=
"4"
size=
"small"
style=
"margin-top: 16px;"
>
<
template
#
title
>
<title-tip-icon/>
签署方信息
</
template
>
<a-descriptions-item
label=
"买受方"
>
{{ contract.auctionOrder.account.accountName || '-' }} (ID: {{ contract.auctionOrder.account.accountId || '-' }})
</a-descriptions-item>
<a-descriptions-item
label=
"联系方式"
>
{{ contract.auctionOrder.account.mobile || '-' }}
</a-descriptions-item>
</a-descriptions>
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
"vue-facing-decorator"
;
import
{
Contract
}
from
"lib/src/entity/auction/entity/Contract"
;
import
TitleTipIcon
from
"@/components/icons/TitleTipIcon.vue"
;
import
{
Empty
}
from
"ant-design-vue"
;
@
Component
({
name
:
"ViewMasterContract"
,
components
:
{
TitleTipIcon
}
})
export
default
class
ViewMasterContract
extends
Vue
{
@
Prop
({
type
:
Object
,
required
:
true
})
contract
!
:
Contract
;
simpleImage
=
Empty
.
PRESENTED_IMAGE_SIMPLE
;
created
():
void
{
// 组件初始化逻辑
}
mounted
():
void
{
// 组件挂载完成
}
}
</
script
>
<
style
scoped
lang=
"less"
>
//
可以在这里添加自定义样式
</
style
>
aus-front/admin/src/views/business/platformContract/platFormContractPage.vue
0 → 100644
View file @
4248923
<
template
>
<!--查询栏-->
<m-pagination-query-render
:fields=
"pagination.filterFields"
:form=
"pagination.queryForm"
@
onSearch=
"pageReload"
@
onReset=
"pageReset"
:simpleFieldNum=
"4"
/>
<!--查询栏end-->
<!--合同列表start-->
<a-table
:columns=
"columns"
:data-source=
"pagination.content"
:loading=
"loading"
:bordered=
"false"
@
change=
"pageRefresh"
@
resizeColumn=
"this.$filters.tableResizeColumn"
size=
"small"
:pagination=
"pageState"
:row-key=
"record => record.contractId"
:scroll=
"
{y: 'calc(100vh - 310px)'}">
<template
#
customFilterDropdown=
"
{setSelectedKeys, selectedKeys, confirm, clearFilters, column}">
<m-filter-text-render
:pagination=
"pagination"
:column=
"column"
:confirm=
"confirm"
></m-filter-text-render>
<m-filter-checkbox-group-render
:pagination=
"pagination"
:column=
"column"
:confirm=
"confirm"
></m-filter-checkbox-group-render>
</
template
>
<
template
#
bodyCell=
"{column,record}"
>
<template
v-if=
"column.key === 'action'"
>
<a-button
type=
"link"
@
click=
"viewContract(record)"
size=
"small"
>
查看
</a-button>
</
template
>
<
template
v-if=
"column.key === 'contractCode'"
>
<span>
{{
record
.
contractCode
}}
</span>
<a-button
type=
"link"
size=
"small"
@
click=
"copyContractCode(record.contractCode)"
>
<CopyOutlined
/>
</a-button>
</
template
>
<
template
v-if=
"column.key === 'contractStatus'"
>
<a-tag
:color=
"record.contractStatus == '已签署' ? 'success' : 'orange'"
>
{{
record
.
contractStatus
}}
</a-tag>
</
template
>
<
template
v-if=
"column.key === 'accountName'"
>
<span>
{{
record
.
accountName
||
'—'
}}
</span>
</
template
>
<
template
v-if=
"column.key === 'signTime'"
>
<span>
{{
record
.
signed
?
(
record
.
signTime
||
'—'
)
:
'—'
}}
</span>
</
template
>
<
template
v-if=
"column.key === 'createTime'"
>
<span>
{{
record
.
createTime
||
'—'
}}
</span>
</
template
>
</template>
</a-table>
<!--合同列表end-->
</template>
<
script
lang=
"ts"
>
import
{
Operator
,
Order
}
from
"lib/src/core/page/Pagination"
;
import
{
Component
,
Watch
}
from
"vue-facing-decorator"
;
import
{
TableColumnsType
}
from
'ant-design-vue'
;
import
{
PaginationComponent
}
from
'@/components/PaginationComponent'
;
import
{
DoubleRightOutlined
,
SearchOutlined
,
CopyOutlined
}
from
'@ant-design/icons-vue'
;
import
{
CONTRACT_TEMPLATE_TEMPLATE_TYPES
}
from
"lib/src/entity/auction/entity/ContractTemplate"
;
import
{
ModalService
}
from
"@/components/ModalService"
;
import
{
ContractController
}
from
"@/api/ContractController"
;
import
{
Contract
}
from
"lib/src/entity/auction/entity/Contract"
;
import
ViewPlatformContract
from
"./ViewPlatformContract.vue"
;
@
Component
({
components
:
{
DoubleRightOutlined
,
SearchOutlined
,
CopyOutlined
,
ViewPlatformContract
}
})
export
default
class
MasterContractPage
extends
PaginationComponent
<
Contract
>
{
/**
* 表格列配置
*/
columns
:
TableColumnsType
=
[];
/**
* 初始化配置
*/
created
():
void
{
// 初始化表格列
this
.
columns
=
[
{
title
:
'序号'
,
key
:
'rowIndex'
,
width
:
70
,
align
:
'center'
,
customRender
:
({
index
})
=>
{
return
(
this
.
pageState
.
current
-
1
)
*
this
.
pageState
.
pageSize
+
index
+
1
;
}
},
{
title
:
'合同编号'
,
dataIndex
:
'contractCode'
,
key
:
'contractCode'
,
width
:
180
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'合同名称'
,
dataIndex
:
'contractName'
,
key
:
'contractName'
,
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
:
'accountName'
,
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
:
'signTime'
,
key
:
'signTime'
,
width
:
170
,
align
:
'center'
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
80
,
align
:
'center'
,
fixed
:
'right'
},
];
const
signedOptions
=
[
{
label
:
'未签署'
,
value
:
"SIGNING"
},
{
label
:
'已签署'
,
value
:
"SIGNED"
}
];
this
.
init
(
this
.
axios
,
ContractController
.
PLATFORM_PAGE_CONTRACT
);
this
.
buildQueryForm
({
contractCode
:
[
null
,
{
label
:
'合同编号'
,
field
:
'contractCode'
,
operator
:
Operator
.
like
,
maxLength
:
32
}],
contractName
:
[
null
,
{
label
:
'合同名称'
,
field
:
'contractName'
,
operator
:
Operator
.
like
,
maxLength
:
50
}],
contractStatus
:
[
null
,
{
label
:
'签署状态'
,
field
:
'contractStatus'
,
type
:
'select'
,
optionItems
:
signedOptions
,
allowClear
:
true
,
operator
:
Operator
.
eq
}],
signerName
:
[
null
,
{
label
:
'签署乙方姓名'
,
field
:
'signerName'
,
operator
:
Operator
.
like
,
maxLength
:
20
}],
createTime
:
[
null
,
{
label
:
'创建时间'
,
field
:
'createTime'
,
operator
:
Operator
.
dateBetween
,
type
:
'date-range'
}],
signTime
:
[
null
,
{
label
:
'签署时间'
,
field
:
'signTime'
,
operator
:
Operator
.
dateBetween
,
type
:
'date-range'
,
disabled
:
true
}],
});
this
.
pagination
.
setDefaultSort
(
'createTime'
,
Order
.
desc
);
this
.
pageLoad
();
}
/**
* 监听签署状态变化,控制签署时间字段的禁用状态
*/
@
Watch
(
'pagination.queryForm.contractStatus'
)
onSignedChange
(
newVal
:
boolean
,
oldVal
:
boolean
):
void
{
// 获取签署时间字段的配置
const
signTimeField
=
this
.
pagination
.
filterFields
.
find
(
field
=>
field
.
fieldName
===
'signTime'
);
if
(
signTimeField
)
{
// 当签署状态不为"已签署"时,禁用签署时间字段并清空值
signTimeField
.
disabled
=
newVal
!==
true
;
if
(
newVal
!==
true
&&
this
.
pagination
.
queryForm
.
signTime
)
{
this
.
pagination
.
queryForm
.
signTime
=
null
;
}
}
}
i18n
(
text
:
string
):
string
{
return
this
.
$t
(
text
);
}
/**
* 复制合同编号
*/
copyContractCode
(
contractCode
:
string
):
void
{
// 创建一个临时的textarea元素
const
textarea
=
document
.
createElement
(
'textarea'
);
textarea
.
value
=
contractCode
;
textarea
.
style
.
position
=
'fixed'
;
textarea
.
style
.
left
=
'-9999px'
;
textarea
.
style
.
top
=
'-9999px'
;
document
.
body
.
appendChild
(
textarea
);
textarea
.
select
();
try
{
// 执行复制命令
const
successful
=
document
.
execCommand
(
'copy'
);
if
(
successful
)
{
this
.
$message
.
success
(
'合同编号已复制到剪贴板'
);
}
else
{
this
.
$message
.
error
(
'复制失败,请手动复制'
);
}
}
catch
(
err
)
{
this
.
$message
.
error
(
'复制失败,请手动复制'
);
}
finally
{
// 移除临时元素
document
.
body
.
removeChild
(
textarea
);
}
}
/**
* 查看合同详情
*/
viewContract
(
contract
:
Contract
):
void
{
const
modal
=
ModalService
.
confirm
({
title
:
'合同详情'
,
component
:
ViewPlatformContract
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
props
:
{
contract
:
contract
},
emits
:
{
handleOk
:
(
e
)
=>
{
modal
.
destroy
();
}
}
});
}
}
</
script
>
<
style
scoped
lang=
"less"
>
</
style
>
aus-front/admin/src/views/vehicle/auction/AuctionVehiclePage.vue
View file @
4248923
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
type=
"link"
size=
"small"
@
click=
"viewAuction(record)"
>
关联拍场
type=
"link"
size=
"small"
@
click=
"viewAuction(record)"
>
关联拍场
</a-button>
</a-button>
<a-button
v-sec=
"'vehicle_auction_12'"
<a-button
v-sec=
"'vehicle_auction_12'"
v-if=
"record.vehicleState==='
CONTRACT_UNSIGNED'||record.vehicleState==='
UNPAID'||record.vehicleState==='WAIT_PICKUP'||record.vehicleState==='TRANSFERRING'||record.vehicleState==='COMPLETED'"
v-if=
"record.vehicleState==='UNPAID'||record.vehicleState==='WAIT_PICKUP'||record.vehicleState==='TRANSFERRING'||record.vehicleState==='COMPLETED'"
type=
"link"
size=
"small"
@
click=
"viewOrder(record)"
>
拍卖订单
type=
"link"
size=
"small"
@
click=
"viewOrder(record)"
>
拍卖订单
</a-button>
</a-button>
</
template
>
</
template
>
...
@@ -67,7 +67,7 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
...
@@ -67,7 +67,7 @@ export default class AuctionVehiclePage extends PaginationComponent<Vehicle> {
currentTab
:
Vehicle_VehicleState
|
""
=
"PENDING_AUCTION"
;
currentTab
:
Vehicle_VehicleState
|
""
=
"PENDING_AUCTION"
;
vehicleStates
:
Vehicle_VehicleState
[]
=
[
'PENDING_AUCTION'
,
'WAIT_AUCTION'
,
'PREVIEW'
,
'AUCTIONING'
,
'
CONTRACT_UNSIGNED'
,
'
UNPAID'
,
'WAIT_PICKUP'
,
'TRANSFERRING'
,
'COMPLETED'
,
'CANCELED'
];
vehicleStates
:
Vehicle_VehicleState
[]
=
[
'PENDING_AUCTION'
,
'WAIT_AUCTION'
,
'PREVIEW'
,
'AUCTIONING'
,
'UNPAID'
,
'WAIT_PICKUP'
,
'TRANSFERRING'
,
'COMPLETED'
,
'CANCELED'
];
exporting
=
false
;
exporting
=
false
;
/**
/**
* 表格列配置
* 表格列配置
...
...
aus-front/admin/src/views/vehicle/inventory/VehicleForm.vue
View file @
4248923
...
@@ -319,6 +319,95 @@
...
@@ -319,6 +319,95 @@
:rules=
"[
{ required: true, message: '请输入车辆保管人联系方式!' },{ pattern: /^1(3|4|5|6|7|8|9)\d{9}$/, message: '手机号码格式不正确' }]">
:rules=
"[
{ required: true, message: '请输入车辆保管人联系方式!' },{ pattern: /^1(3|4|5|6|7|8|9)\d{9}$/, message: '手机号码格式不正确' }]">
<a-input
v-model:value=
"formState.custodianInfo.custodianPhone"
placeholder=
"请输入车辆保管人联系方式"
:maxlength=
"11"
/>
<a-input
v-model:value=
"formState.custodianInfo.custodianPhone"
placeholder=
"请输入车辆保管人联系方式"
:maxlength=
"11"
/>
</a-form-item>
</a-form-item>
<!-- 过户资料 -->
<title-divider
title=
"过户资料"
></title-divider>
<div
class=
"transfer-info-section"
>
<!-- 提示文案占满整行 -->
<a-alert
message=
'勾选=该资料"有",未勾选=该资料"无",车钥匙按套数录入,其他补充为自由文本。'
type=
"warning"
show-icon
style=
"width: 100%; margin-bottom: 16px"
/>
<!-- 字段列表 -->
<a-row
:gutter=
"[16, 16]"
>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.registrationCertificate"
></a-checkbox>
<span
class=
"field-label"
>
机动车登记本
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.vehicleLicense"
></a-checkbox>
<span
class=
"field-label"
>
机动车行驶证
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.trafficAppScreenshot"
></a-checkbox>
<span
class=
"field-label"
>
交管12123截图
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<span
class=
"field-label"
>
车钥匙
</span>
<a-input-number
v-model:value=
"formState.transferMaterials.carKeyCount"
:min=
"0"
:precision=
"0"
addon-after=
"套"
placeholder=
"请输入"
style=
"width: 120px; margin-left: 8px"
/>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.compulsoryInsurance"
></a-checkbox>
<span
class=
"field-label"
>
交强险(保单或凭证)
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.transferAuthorizationPhoto"
></a-checkbox>
<span
class=
"field-label"
>
过户授权委托书照片
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.purchaseTaxReceipt"
></a-checkbox>
<span
class=
"field-label"
>
购置税证及收据
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.purchaseInvoice"
></a-checkbox>
<span
class=
"field-label"
>
购车发票
</span>
</div>
</a-col>
<a-col
:span=
"12"
>
<div
class=
"transfer-field-item"
>
<a-checkbox
v-model:checked=
"formState.transferMaterials.commercialInsurance"
></a-checkbox>
<span
class=
"field-label"
>
商业保险单或卡
</span>
</div>
</a-col>
<a-col
:span=
"24"
>
<div
class=
"transfer-field-item transfer-field-input"
>
<span
class=
"field-label"
style=
"display: inline-block;width: 50px;margin-top: 8px;"
>
其他
</span>
<a-textarea
v-model:value=
"formState.transferMaterials.otherMaterialsNote"
placeholder=
"如有其他资料需交接,可在此处补充填写"
:rows=
"2"
:auto-size=
"
{ minRows: 2, maxRows: 4 }"
style="margin-top: 8px"
/>
</div>
</a-col>
</a-row>
</div>
<a-form-item
:wrapper-col=
"
{ span: 19, offset: 6 }" class="footer-btns">
<a-form-item
:wrapper-col=
"
{ span: 19, offset: 6 }" class="footer-btns">
<a-button
type=
"primary"
class=
"mr-10"
@
click=
"submitForm"
>
保存
</a-button>
<a-button
type=
"primary"
class=
"mr-10"
@
click=
"submitForm"
>
保存
</a-button>
<a-button
@
click=
"handleBack(null)"
>
返回
</a-button>
<a-button
@
click=
"handleBack(null)"
>
返回
</a-button>
...
@@ -405,6 +494,7 @@ export default class VehicleForm extends FormComponent<Vehicle> {
...
@@ -405,6 +494,7 @@ export default class VehicleForm extends FormComponent<Vehicle> {
vehicle
.
evaluationTransaction
=
new
EvaluationTransaction
();
vehicle
.
evaluationTransaction
=
new
EvaluationTransaction
();
vehicle
.
custodianInfo
=
new
CustodianInfo
();
vehicle
.
custodianInfo
=
new
CustodianInfo
();
vehicle
.
ownerInfo
=
new
OwnerInfo
();
vehicle
.
ownerInfo
=
new
OwnerInfo
();
vehicle
.
transferMaterials
=
{};
vehicle
.
registrationCertificate
=
"有"
;
vehicle
.
registrationCertificate
=
"有"
;
vehicle
.
vehicleLicense
=
true
;
vehicle
.
vehicleLicense
=
true
;
this
.
formState
=
reactive
<
Vehicle
>
(
vehicle
);
this
.
formState
=
reactive
<
Vehicle
>
(
vehicle
);
...
@@ -419,10 +509,12 @@ export default class VehicleForm extends FormComponent<Vehicle> {
...
@@ -419,10 +509,12 @@ export default class VehicleForm extends FormComponent<Vehicle> {
const
custodianInfo
=
vehicle
.
custodianInfo
const
custodianInfo
=
vehicle
.
custodianInfo
const
evaluationTransaction
=
vehicle
.
evaluationTransaction
const
evaluationTransaction
=
vehicle
.
evaluationTransaction
const
historyCondition
=
vehicle
.
historyCondition
const
historyCondition
=
vehicle
.
historyCondition
const
transferMaterials
=
vehicle
.
transferMaterials
if
(
!
ownerInfo
)
vehicle
.
ownerInfo
=
new
OwnerInfo
()
if
(
!
ownerInfo
)
vehicle
.
ownerInfo
=
new
OwnerInfo
()
if
(
!
custodianInfo
)
vehicle
.
custodianInfo
=
new
CustodianInfo
()
if
(
!
custodianInfo
)
vehicle
.
custodianInfo
=
new
CustodianInfo
()
if
(
!
evaluationTransaction
)
vehicle
.
evaluationTransaction
=
new
EvaluationTransaction
()
if
(
!
evaluationTransaction
)
vehicle
.
evaluationTransaction
=
new
EvaluationTransaction
()
if
(
!
historyCondition
)
vehicle
.
historyCondition
=
new
HistoryCondition
()
if
(
!
historyCondition
)
vehicle
.
historyCondition
=
new
HistoryCondition
()
if
(
!
transferMaterials
)
vehicle
.
transferMaterials
=
{}
this
.
getCarTypeList
(
baseInfo
.
carSeriesId
+
""
);
this
.
getCarTypeList
(
baseInfo
.
carSeriesId
+
""
);
baseInfo
.
brandIds
=
[];
baseInfo
.
brandIds
=
[];
if
(
baseInfo
.
carBrandId
)
{
if
(
baseInfo
.
carBrandId
)
{
...
@@ -557,6 +649,7 @@ export default class VehicleForm extends FormComponent<Vehicle> {
...
@@ -557,6 +649,7 @@ export default class VehicleForm extends FormComponent<Vehicle> {
case
'edit'
:
case
'edit'
:
formValue
.
vehicleId
=
this
.
formState
.
vehicleId
;
formValue
.
vehicleId
=
this
.
formState
.
vehicleId
;
delete
this
.
formState
.
_carModelData
delete
this
.
formState
.
_carModelData
if
(
this
.
formState
?.
transferMaterials
?.
otherMaterialsNote
)
this
.
formState
.
transferMaterials
.
otherMaterials
=
true
VehicleController
.
updateVehicle
(
this
.
axios
,
this
.
formState
).
then
(
response
=>
{
VehicleController
.
updateVehicle
(
this
.
axios
,
this
.
formState
).
then
(
response
=>
{
message
.
success
(
'修改成功'
);
message
.
success
(
'修改成功'
);
this
.
handleBack
(
response
.
data
);
this
.
handleBack
(
response
.
data
);
...
@@ -621,5 +714,28 @@ export default class VehicleForm extends FormComponent<Vehicle> {
...
@@ -621,5 +714,28 @@ export default class VehicleForm extends FormComponent<Vehicle> {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
//
过户资料区域
.transfer-info-section
{
margin-bottom
:
16px
;
//
字段项样式
.transfer-field-item
{
display
:
flex
;
align-items
:
center
;
.field-label
{
margin-left
:
8px
;
color
:
#333
;
font-size
:
14px
;
}
//
输入框字段(车钥匙、其他)特殊处理:标签在前,输入框在后
&
.transfer-field-input
{
align-items
:
flex-start
;
.field-label
{
margin-left
:
0
;
}
}
}
}
</
style
>
</
style
>
aus-front/admin/src/views/vehicle/inventory/ViewVehicle.vue
View file @
4248923
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</
template
>
</
template
>
编辑档案
编辑档案
</a-button>
</a-button>
<a-button
type=
"default"
style=
"margin-right: 8px;"
v-if=
"editVehicle && Object.keys(vehicle._carModelData).length > 0 && vrAuditStatus"
@
click=
"changeCarModelData"
>
替换为查博士信息
</a-button>
<a-button
type=
"default"
style=
"margin-right: 8px;"
v-if=
"editVehicle &&
vehicle._carModelData &&
Object.keys(vehicle._carModelData).length > 0 && vrAuditStatus"
@
click=
"changeCarModelData"
>
替换为查博士信息
</a-button>
<a-button
type=
"default"
v-if=
"editVehicle"
:disabled=
"editVehicle"
@
click=
"editVehicleInfo"
>
<a-button
type=
"default"
v-if=
"editVehicle"
:disabled=
"editVehicle"
@
click=
"editVehicleInfo"
>
<
template
#
icon
>
<
template
#
icon
>
<EditOutlined
class=
"mr-5"
/>
<EditOutlined
class=
"mr-5"
/>
...
@@ -276,6 +276,53 @@
...
@@ -276,6 +276,53 @@
{{ vehicle.custodianInfo?.handoverAddress ?? '-' }}
{{ vehicle.custodianInfo?.handoverAddress ?? '-' }}
</a-descriptions-item>
</a-descriptions-item>
</a-descriptions>
</a-descriptions>
<!-- 过户资料 -->
<a-descriptions
v-if=
"vehicle"
:bordered=
"false"
:column=
"3"
size=
"small"
class=
"mt-10"
>
<
template
#
title
>
<title-tip-icon></title-tip-icon>
过户资料
</
template
>
<!-- 1. 机动车登记本 -->
<a-descriptions-item
label=
"机动车登记本"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.registrationCertificate ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 2. 机动车行驶证 -->
<a-descriptions-item
label=
"机动车行驶证"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.vehicleLicense ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 3. 交管12123截图 -->
<a-descriptions-item
label=
"交管12123截图"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.trafficAppScreenshot ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 4. 车钥匙 -->
<a-descriptions-item
label=
"车钥匙"
>
{{ vehicle.transferMaterials?.carKeyCount ?? '-' }} 套
</a-descriptions-item>
<!-- 5. 交强险(保单或凭证) -->
<a-descriptions-item
label=
"交强险(保单或凭证)"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.compulsoryInsurance ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 6. 过户授权委托书照片 -->
<a-descriptions-item
label=
"过户授权委托书照片"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.transferAuthorizationPhoto ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 7. 购置税证及收据 -->
<a-descriptions-item
label=
"购置税证及收据"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.purchaseTaxReceipt ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 8. 购车发票 -->
<a-descriptions-item
label=
"购车发票"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.purchaseInvoice ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 9. 商业保险单或卡 -->
<a-descriptions-item
label=
"商业保险单或卡"
>
<span
class=
"transfer-status"
>
{{ vehicle.transferMaterials?.commercialInsurance ? '有' : '无' }}
</span>
</a-descriptions-item>
<!-- 10. 其他(占满整行,支持自动换行) -->
<a-descriptions-item
label=
"其他"
:span=
"2"
>
<div
style=
"white-space: pre-wrap; word-break: break-all;"
>
{{ vehicle.transferMaterials?.otherMaterialsNote || '-' }}
</div>
</a-descriptions-item>
</a-descriptions>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<vehicle-form
ref=
"vehicleForm"
:vehicle-id=
"vehicleId"
:vr-audit-status=
"vrAuditStatus"
@
complete=
"editVehicleComplete"
></vehicle-form>
<vehicle-form
ref=
"vehicleForm"
:vehicle-id=
"vehicleId"
:vr-audit-status=
"vrAuditStatus"
@
complete=
"editVehicleComplete"
></vehicle-form>
...
@@ -635,6 +682,11 @@ export default class ViewVehicle extends Vue {
...
@@ -635,6 +682,11 @@ export default class ViewVehicle extends Vue {
padding-bottom
:
4px
;
padding-bottom
:
4px
;
}
}
//
过户资料状态文字样式
.transfer-status
{
font-weight
:
500
;
margin-right
:
8px
;
}
.auditing-container
{
.auditing-container
{
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -708,5 +760,4 @@ export default class ViewVehicle extends Vue {
...
@@ -708,5 +760,4 @@ export default class ViewVehicle extends Vue {
color
:
#565D6B
;
color
:
#565D6B
;
}
}
</
style
>
</
style
>
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