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 06b3fe05
authored
Jan 03, 2026
by
gonglei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改保证金支付流程
1 parent
257cfee2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
14 deletions
aus-core/src/main/java/com/glsx/usedcar/module/finance/entity/Deposit.java
aus-front/admin/src/views/finance/deposit/DepositRefundModal.vue
aus-front/admin/src/views/finance/deposit/DepositRefundPage.vue
aus-front/lib/src/entity/finance/entity/Deposit.ts
aus-core/src/main/java/com/glsx/usedcar/module/finance/entity/Deposit.java
View file @
06b3fe0
...
@@ -88,6 +88,12 @@ public class Deposit extends AuditingTimeEntity {
...
@@ -88,6 +88,12 @@ public class Deposit extends AuditingTimeEntity {
// private String refundChannel;
// private String refundChannel;
/**
/**
* 退款备注
*/
@Column
private
String
refundRemark
;
/**
* 微信支付订单号
* 微信支付订单号
*/
*/
@Column
(
name
=
"WXTRANSACTION_ID"
)
@Column
(
name
=
"WXTRANSACTION_ID"
)
...
...
aus-front/admin/src/views/finance/deposit/DepositRefundModal.vue
0 → 100644
View file @
06b3fe0
<
template
>
<a-alert
show-icon
type=
"warning"
message=
"请仔细核对以下退款信息"
description=
"退款操作不可撤销,资金将原路退回用户微信账户,请谨慎操作"
></a-alert>
<a-descriptions
:column=
"2"
>
<a-descriptions-item
label=
"微信支付订单号"
>
{{
deposit
.
transaction
}}
</a-descriptions-item>
<a-descriptions-item
label=
"商户订单号"
></a-descriptions-item>
<a-descriptions-item
label=
"用户信息"
></a-descriptions-item>
<a-descriptions-item
label=
"支付金额"
></a-descriptions-item>
<a-descriptions-item
label=
"退款金额"
></a-descriptions-item>
</a-descriptions>
<a-spin
:spinning=
"submitted"
>
<a-form
v-if=
"formState"
:model=
"formState"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<a-form-item
label=
"启用状态"
name=
"enabled"
>
<a-switch
v-model:checked=
"formState.enabled"
checked-children=
"开"
un-checked-children=
"关"
/>
</a-form-item>
<a-form-item
label=
"账户管理人"
name=
"user"
:rules=
"[
{ required: true, message: '请选择账户管理人!' }]">
<m-select
v-model:value=
"formState.user"
:options=
"users"
show-search
option-filter-prop=
"userName"
:field-names=
"
{ label: 'realName', value: 'userId' }" placeholder="请选择账户管理人">
</m-select>
</a-form-item>
<a-form-item
label=
"账户管理人联系方式"
>
{{
userMobile
}}
<!--
<a-input
:value=
"userMobile"
disabled
placeholder=
"请选择账户管理人"
:maxlength=
"11"
/>
-->
</a-form-item>
</a-form>
</a-spin>
</
template
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
}
from
'vue-facing-decorator'
;
import
{
message
,
Modal
}
from
"ant-design-vue"
;
import
{
createVNode
,
reactive
}
from
"vue"
;
import
{
ExclamationCircleOutlined
}
from
"@ant-design/icons-vue"
;
import
{
DepositController
}
from
"@/api/DepositController"
;
import
{
Deposit
}
from
"lib/src/entity/finance/entity/Deposit"
;
import
{
PaginationComponent
}
from
"autumn-vue/lib/core/page/PaginationComponent"
;
import
{
FormComponent
}
from
"autumn-antv/lib/core/form/FormComponent"
;
import
{
BankAccount
}
from
"lib/src/entity/finance/entity/BankAccount"
;
import
{
BankAccountController
}
from
"@/api/BankAccountController"
;
@
Component
({})
export
default
class
DepositRefundModal
extends
FormComponent
<
Deposit
>
{
@
Prop
({
required
:
true
,
type
:
Object
})
deposit
:
Deposit
;
created
():
void
{
this
.
formState
=
reactive
<
Deposit
>
(
new
Deposit
());
}
onValidSuccess
(
formValue
:
Deposit
):
void
{
const
that
=
this
;
Modal
.
confirm
({
title
:
'提示'
,
icon
:
createVNode
(
ExclamationCircleOutlined
),
content
:
`当前保证金冻结金额为 ¥
${
-
this
.
deposit
.
transaction
.
amount
}
,退款金额为 ¥
${
this
.
deposit
.
amount
}
,您确定将此保证金退款吗?`
,
onOk
:
()
=>
{
DepositController
.
refund
(
that
.
axios
,
that
.
deposit
.
depositId
).
then
(
response
=>
{
message
.
success
(
'退款操作成功,请等待支付平台回调,大约10秒左右退款到账。'
);
this
.
$emit
(
'handleOk'
,
response
.
data
);
});
},
onCancel
()
{
console
.
log
(
'Cancel'
);
},
});
}
}
</
script
>
<
style
scoped
lang=
"less"
>
</
style
>
aus-front/admin/src/views/finance/deposit/DepositRefundPage.vue
View file @
06b3fe0
...
@@ -49,9 +49,9 @@
...
@@ -49,9 +49,9 @@
<!--
<router-link
v-sec=
"'deposit_11'"
:to=
"
{ path:'/auction/view',query:{auctionId: record.auctionVehicle.auction.auctionId}}">-->
<!--
<router-link
v-sec=
"'deposit_11'"
:to=
"
{ path:'/auction/view',query:{auctionId: record.auctionVehicle.auction.auctionId}}">-->
<!--
<a-button
type=
"link"
size=
"small"
>
场次详情
</a-button>
-->
<!--
<a-button
type=
"link"
size=
"small"
>
场次详情
</a-button>
-->
<!--
</router-link>
-->
<!--
</router-link>
-->
<template
v-if=
"record.depositState==='FREEZE'&&(record.auctionOrder)"
>
<!--
<template
v-if=
"record.depositState==='FREEZE'&&(record.auctionOrder)"
>
--
>
<a-button
type=
"link"
size=
"small"
@
click=
"confirmRefund(record)"
>
手动退款
</a-button>
<a-button
type=
"link"
size=
"small"
@
click=
"confirmRefund(record)"
>
手动退款
</a-button>
</
template
>
<!--
</
template
>
--
>
</template>
</template>
<
template
v-if=
"column.key === 'transactionType'"
>
<
template
v-if=
"column.key === 'transactionType'"
>
{{
$t
(
'enum.transaction.transactionType.'
+
record
.
transaction
.
transactionType
)
}}
{{
$t
(
'enum.transaction.transactionType.'
+
record
.
transaction
.
transactionType
)
}}
...
@@ -86,6 +86,9 @@ import {ExportUtil} from "@/common/ExportUtil";
...
@@ -86,6 +86,9 @@ import {ExportUtil} from "@/common/ExportUtil";
import
{
createVNode
}
from
"vue"
;
import
{
createVNode
}
from
"vue"
;
import
{
ExclamationCircleOutlined
}
from
"@ant-design/icons-vue"
;
import
{
ExclamationCircleOutlined
}
from
"@ant-design/icons-vue"
;
import
AuctionOrderStateTag
from
"@/views/auction/order/AuctionOrderStateTag.vue"
;
import
AuctionOrderStateTag
from
"@/views/auction/order/AuctionOrderStateTag.vue"
;
import
{
ModalService
}
from
"autumn-antv/lib/components/ModalService"
;
import
ViewOrderTransaction
from
"@/views/finance/order-transaction/ViewOrderTransaction.vue"
;
import
DepositRefundModal
from
"@/views/finance/deposit/DepositRefundModal.vue"
;
@
Component
({
@
Component
({
components
:
{
AuctionOrderStateTag
,
DepositStateTag
}
components
:
{
AuctionOrderStateTag
,
DepositStateTag
}
...
@@ -217,19 +220,34 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
...
@@ -217,19 +220,34 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
}
}
confirmRefund
(
deposit
:
Deposit
):
void
{
confirmRefund
(
deposit
:
Deposit
):
void
{
const
that
=
this
;
// const that=this;
Modal
.
confirm
({
// Modal.confirm({
title
:
'提示'
,
// title: '提示',
icon
:
createVNode
(
ExclamationCircleOutlined
),
// icon: createVNode(ExclamationCircleOutlined),
content
:
`当前保证金冻结金额为 ¥
${
-
deposit
.
transaction
.
amount
}
,退款金额为 ¥
${
deposit
.
amount
}
,您确定将此保证金退款吗?`
,
// content: `当前保证金冻结金额为 ¥${-deposit.transaction.amount},退款金额为 ¥${deposit.amount},您确定将此保证金退款吗?`,
onOk
()
{
// onOk() {
DepositController
.
refund
(
that
.
axios
,
deposit
.
depositId
).
then
(
response
=>
{
// DepositController.refund(that.axios, deposit.depositId).then(response => {
message
.
success
(
'退款操作成功,请等待支付平台回调,大约10秒左右退款到账。'
);
// message.success('退款操作成功,请等待支付平台回调,大约10秒左右退款到账。');
that
.
pageRefresh
();
// that.pageRefresh();
});
// });
// },
// onCancel() {
// console.log('Cancel');
// },
// });
const
modal
=
ModalService
.
confirm
({
title
:
'手动退款确认'
,
component
:
DepositRefundModal
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
props
:
{
deposit
:
deposit
},
},
onCancel
()
{
onOk
:
(
component
):
void
=>
{
console
.
log
(
'Cancel'
);
modal
.
destroy
();
},
emits
:
{
handleOk
:
(
e
)
=>
{
modal
.
destroy
();
this
.
pageRefresh
();
}
},
},
});
});
}
}
...
...
aus-front/lib/src/entity/finance/entity/Deposit.ts
View file @
06b3fe0
...
@@ -45,6 +45,8 @@ export class Deposit extends AuditingTimeEntity {
...
@@ -45,6 +45,8 @@ export class Deposit extends AuditingTimeEntity {
*/
*/
refundTime
:
string
;
refundTime
:
string
;
refundRemark
:
string
;
// region 前端扩展定义属性及方法区
// region 前端扩展定义属性及方法区
// endregion
// endregion
}
}
...
...
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