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 181d4f65
authored
Mar 03, 2026
by
yancanhua
Committed by
章家宝
Mar 11, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:轮询竞拍开发
1 parent
a956fa18
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
322 additions
and
46 deletions
aus-front/admin/src/api/AuctionController.ts
aus-front/admin/src/views/auction/approve/AuctionAuditPage.vue
aus-front/admin/src/views/auction/auction/AuctionBaseInfo.vue
aus-front/admin/src/views/auction/auction/AuctionForm.vue
aus-front/admin/src/views/auction/auction/AuctionPage.vue
aus-front/admin/src/views/auction/control/AuctionVehiclePage.vue
aus-front/admin/src/views/auction/control/ControlAuction.vue
aus-front/admin/src/views/auction/control/priceAddModal.vue
aus-front/admin/src/views/finance/order-transaction/OrderTransactionAuditPage.vue
aus-front/app/src/module/auction/AuctionVehiclePage.vue
aus-front/app/src/module/auction/roundBidBottom.vue
aus-front/lib/src/entity/auction/entity/Auction.ts
aus-front/admin/src/api/AuctionController.ts
View file @
181d4f6
...
@@ -207,6 +207,11 @@ export class AuctionController {
...
@@ -207,6 +207,11 @@ export class AuctionController {
return
axios
.
post
(
'auction/updateAuction'
,
auction
);
return
axios
.
post
(
'auction/updateAuction'
,
auction
);
}
}
static
vehicleAutoBid
(
axios
:
AxiosStatic
,
pagination
:
Pagination
<
Auction
>
):
Promise
<
AxiosResponse
<
Page
<
AuctionControl
>>>
{
return
axios
.
post
(
'vehicle/autoBid'
,
pagination
);
}
// region 前端扩展代码区
// region 前端扩展代码区
// endregion
// endregion
}
}
aus-front/admin/src/views/auction/approve/AuctionAuditPage.vue
View file @
181d4f6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<a-image
v-if=
"record.vehicle.cover"
:src=
"record.vehicle.cover?.url"
:width=
"60"
:height=
"60"
style=
"border-radius: 4px;object-fit: cover"
></a-image>
<a-image
v-if=
"record.vehicle.cover"
:src=
"record.vehicle.cover?.url"
:width=
"60"
:height=
"60"
style=
"border-radius: 4px;object-fit: cover"
></a-image>
</
template
>
</
template
>
<
template
v-if=
"column.key === 'carTypeName'"
>
<
template
v-if=
"column.key === 'carTypeName'"
>
<a
target=
"_blank"
:href=
"`
..
/vehicle/view?vehicleId=$
{record.vehicle.vehicleId}`">
<a
target=
"_blank"
:href=
"`
#
/vehicle/view?vehicleId=$
{record.vehicle.vehicleId}`">
{{
record
.
vehicle
.
baseInfo
.
carSerialNam
}}
{{
record
.
vehicle
.
baseInfo
.
carSerialNam
}}
{{
record
.
vehicle
.
baseInfo
.
carTypeName
}}
</a>
{{
record
.
vehicle
.
baseInfo
.
carTypeName
}}
</a>
</
template
>
</
template
>
...
...
aus-front/admin/src/views/auction/auction/AuctionBaseInfo.vue
View file @
181d4f6
...
@@ -66,6 +66,17 @@
...
@@ -66,6 +66,17 @@
</div>
</div>
</a-space>
</a-space>
<div
v-if=
"auction.auctionMode == '2'"
class=
"auctionModeBox"
>
<div
class=
"auctionModeBox-title"
>
竞拍规则配置
</div>
<div
style=
"display: flex;"
>
<div
style=
"padding-left: 48px;line-height: 32px;"
>
明拍模式选择:
<span
style=
"color: #185EFE;"
>
轮询出价模式
</span></div>
<div
style=
"padding-left: 48px;line-height: 32px;"
>
结来后自动跳转延迟:
<span
style=
"font-weight: 600;"
>
{{ returnExtraJsonData('delay') }} 秒
</span></div>
<div
style=
"padding-left: 48px;line-height: 32px;"
>
接近保留价提醒阈值:
<span
style=
"font-weight: 600;"
>
{{ returnExtraJsonData('nearReservePriceThreshold') }} 元
</span></div>
<div
style=
"padding-left: 48px;line-height: 32px;"
>
系统
&
用户加价延时:
<span
style=
"font-weight: 600;"
>
{{ returnExtraJsonData('resetDelay') }} 秒
</span></div>
<div
style=
"padding-left: 48px;line-height: 32px;"
>
倒计时在
<span
style=
"font-weight: 600;"
>
0-10秒
</span>
之间时出价,倒计时才会重置 为{{ returnExtraJsonData('resetDelayDuration') }} 秒。
</div>
</div>
</div>
</a-page-header>
</a-page-header>
...
@@ -130,6 +141,11 @@ export default class AuctionBaseInfo extends Vue {
...
@@ -130,6 +141,11 @@ export default class AuctionBaseInfo extends Vue {
});
});
}
}
returnExtraJsonData
(
value
:
string
)
{
const
obj
=
JSON
.
parse
(
this
.
auction
.
extraJson
||
'{}'
);
return
obj
[
value
]
||
''
;
}
delayAuction
():
void
{
delayAuction
():
void
{
const
modal
=
ModalService
.
confirm
({
const
modal
=
ModalService
.
confirm
({
title
:
'申请时长管控'
,
component
:
AuctionChangeDelay
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
title
:
'申请时长管控'
,
component
:
AuctionChangeDelay
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
...
@@ -211,5 +227,18 @@ export default class AuctionBaseInfo extends Vue {
...
@@ -211,5 +227,18 @@ export default class AuctionBaseInfo extends Vue {
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.auctionModeBox
{
width
:
100%
;
border
:
1px
solid
#D9D9D9
FF
;
border-radius
:
4px
;
margin-top
:
24px
;
}
.auctionModeBox-title
{
width
:
100%
;
height
:
32px
;
line-height
:
32px
;
text-indent
:
28px
;
color
:
#185EFE
;
}
</
style
>
</
style
>
aus-front/admin/src/views/auction/auction/AuctionForm.vue
View file @
181d4f6
...
@@ -56,38 +56,38 @@
...
@@ -56,38 +56,38 @@
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"结束后自动跳转延期"
name=
"delay"
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"结束后自动跳转延期"
name=
"delay"
:rules=
"[{ required: true, message: '请输入结束后自动跳转延期时间!' }]"
>
:rules=
"[{ required: true, message: '请输入结束后自动跳转延期时间!' }]"
>
<a-input-number
style=
"width: 100%"
v-model:value=
"formState.delay"
:min=
"0"
:step=
"1"
<a-input-number
style=
"width: 100%"
v-model:value=
"formState.delay"
:min=
"0"
:step=
"1"
:max=
"9999
"
:maxlength=
"4
"
addon-after=
"秒"
placeholder=
"请输入结束后自动跳转延期时间"
/>
:max=
"9999
9"
:maxlength=
"5
"
addon-after=
"秒"
placeholder=
"请输入结束后自动跳转延期时间"
/>
</a-form-item>
</a-form-item>
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"接近保留价提醒阈值"
name=
"nearReservePriceThreshold"
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"接近保留价提醒阈值"
name=
"nearReservePriceThreshold"
:rules=
"[{ required: true, message: '请输入接近保留价提醒阈值!' }]"
>
:rules=
"[{ required: true, message: '请输入接近保留价提醒阈值!' }]"
>
<a-input-number
style=
"width: 100%"
v-model:value=
"formState.nearReservePriceThreshold"
<a-input-number
style=
"width: 100%"
v-model:value=
"formState.nearReservePriceThreshold"
:min=
"0"
:step=
"1"
:max=
"9999
"
:maxlength=
"4
"
addon-after=
"元"
placeholder=
"请输入接近保留价提醒阈值"
/>
:min=
"0"
:step=
"1"
:max=
"9999
9"
:maxlength=
"5
"
addon-after=
"元"
placeholder=
"请输入接近保留价提醒阈值"
/>
</a-form-item>
</a-form-item>
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"系统&用户加价重置延时"
name=
"resetDelay"
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"系统&用户加价重置延时"
name=
"resetDelay"
:rules=
"[{ required: true, message: '请输入重置延时!' }]"
>
:rules=
"[{ required: true, message: '请输入重置延时!' }]"
>
<a-input-number
v-model:value=
"formState.resetDelay"
:min=
"1"
:max=
"99999"
:maxlength=
"5"
<a-input-number
v-model:value=
"formState.resetDelay"
:min=
"1"
:max=
"99999"
:maxlength=
"5"
style=
"width: 100%"
placeholder=
"请输入重置延时"
>
style=
"width: 100%"
addon-after=
"秒"
placeholder=
"请输入重置延时"
>
<
template
#
addonAfter
>
<
!-- <
template #addonAfter>
<a-select
v-model:value=
"
formState.
resetDelayUnit"
style=
"width: 80px"
>
<a-select v-model:value="resetDelayUnit" style="width: 80px">
<a-select-option value="second">秒</a-select-option>
<a-select-option value="second">秒</a-select-option>
<a-select-option value="minute">分</a-select-option>
<a-select-option value="minute">分</a-select-option>
</a-select>
</a-select>
</
template
>
</template>
-->
</a-input-number>
</a-input-number>
</a-form-item>
</a-form-item>
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"分段延时规则"
name=
"resetDelayDuration"
>
<a-form-item
v-if=
"formState.auctionMode == '2'"
label=
"分段延时规则"
name=
"resetDelayDuration"
:rules=
"[{ required: true, message: '请输入分段延时规则!' }]"
>
<span
style=
"line-height: 32px;"
>
在倒计时剩余
</span>
<span
style=
"line-height: 32px;"
>
在倒计时剩余
</span>
<a-input-number
v-model:value=
"formState.resetDelayDuration"
:min=
"1"
:max=
"
99999
"
<a-input-number
v-model:value=
"formState.resetDelayDuration"
:min=
"1"
:max=
"
formState.resetDelay-1
"
:maxlength=
"5"
style=
"width: 48%"
placeholder=
"请输入"
>
:maxlength=
"5"
style=
"width: 48%"
addon-after=
"秒"
placeholder=
"请输入"
>
<
template
#
addonAfter
>
<
!-- <
template #addonAfter>
<a-select
v-model:value=
"
formState.
resetDelayDurationUnit"
style=
"width: 80px"
>
<a-select v-model:value="resetDelayDurationUnit" style="width: 80px">
<a-select-option value="second">秒</a-select-option>
<a-select-option value="second">秒</a-select-option>
<a-select-option value="minute">分</a-select-option>
<a-select-option value="minute">分</a-select-option>
</a-select>
</a-select>
</
template
>
</template>
-->
</a-input-number>
</a-input-number>
<span
style=
"line-height: 32px;"
>
内出价,才会重置倒计时
</span>
<span
style=
"line-height: 32px;"
>
内出价,才会重置倒计时
</span>
</a-form-item>
</a-form-item>
...
@@ -312,15 +312,15 @@ export default class AuctionForm extends FormComponent<Auction> {
...
@@ -312,15 +312,15 @@ export default class AuctionForm extends FormComponent<Auction> {
case
'add'
:
case
'add'
:
this
.
formState
=
reactive
<
Auction
>
(
new
Auction
());
this
.
formState
=
reactive
<
Auction
>
(
new
Auction
());
this
.
formState
.
auctionType
=
'LIGHT'
;
this
.
formState
.
auctionType
=
'LIGHT'
;
this
.
formState
.
auctionMode
=
'1'
;
this
.
formState
.
auctionMode
=
'1'
;
this
.
formState
.
extraJson
=
{
this
.
formState
.
delay
=
'5'
;
delay
:
''
,
this
.
formState
.
nearReservePriceThreshold
=
'1000'
;
nearReservePriceThreshold
:
''
,
this
.
formState
.
resetDelay
=
'10'
;
resetDelay
:
''
,
this
.
formState
.
resetDelayDuration
=
'10'
;
resetDelayUnit
:
'second'
,
this
.
resetDelayUnit
=
'second'
;
resetDelayDuration
:
''
,
this
.
resetDelayDurationUnit
=
'second'
;
resetDelayDurationUnit
:
'second'
};
this
.
formState
.
beforeEndMinute
=
5
;
this
.
formState
.
beforeEndMinute
=
5
;
this
.
formState
.
delayMinute
=
3
;
this
.
formState
.
delayMinute
=
3
;
break
;
break
;
...
@@ -334,7 +334,17 @@ export default class AuctionForm extends FormComponent<Auction> {
...
@@ -334,7 +334,17 @@ export default class AuctionForm extends FormComponent<Auction> {
const
durationMinute
=
dayjs
(
auction
.
auctionEndTime
).
diff
(
auction
.
auctionStartTime
)
/
60000
;
const
durationMinute
=
dayjs
(
auction
.
auctionEndTime
).
diff
(
auction
.
auctionStartTime
)
/
60000
;
this
.
duration
=
(
durationMinute
%
60
)
===
0
?
'hour'
:
'minute'
;
this
.
duration
=
(
durationMinute
%
60
)
===
0
?
'hour'
:
'minute'
;
auction
.
durationMinute
=
this
.
duration
===
'hour'
?
durationMinute
/
60
:
durationMinute
;
auction
.
durationMinute
=
this
.
duration
===
'hour'
?
durationMinute
/
60
:
durationMinute
;
this
.
formState
=
reactive
<
Auction
>
(
auction
);
const
extraJson
=
JSON
.
parse
(
auction
.
extraJson
||
'{}'
);
this
.
formState
=
reactive
<
Auction
>
({
...
auction
,
auctionMode
:
auction
.
auctionMode
?.
toString
()
||
'1'
,
delay
:
extraJson
.
delay
||
'5'
,
nearReservePriceThreshold
:
extraJson
.
nearReservePriceThreshold
||
'1000'
,
resetDelay
:
extraJson
.
resetDelay
||
'10'
,
resetDelayDuration
:
extraJson
.
resetDelayDuration
||
'10'
,
resetDelayUnit
:
extraJson
.
resetDelayUnit
||
'second'
,
resetDelayDurationUnit
:
extraJson
.
resetDelayDurationUnit
||
'second'
,
});
});
});
break
;
break
;
default
:
default
:
...
@@ -569,10 +579,33 @@ export default class AuctionForm extends FormComponent<Auction> {
...
@@ -569,10 +579,33 @@ export default class AuctionForm extends FormComponent<Auction> {
});
});
}
}
console
.
log
(
formValue
);
console
.
log
(
formValue
);
const
extraJson
=
{
delay
:
String
(
formValue
.
delay
||
0
),
nearReservePriceThreshold
:
String
(
formValue
.
nearReservePriceThreshold
||
0
),
resetDelay
:
String
(
formValue
.
resetDelay
||
0
),
resetDelayDuration
:
String
(
formValue
.
resetDelayDuration
||
0
),
resetDelayUnit
:
this
.
resetDelayUnit
||
'second'
,
resetDelayDurationUnit
:
this
.
resetDelayDurationUnit
||
'second'
,
};
// if(formValue.delay){
// delete formlue.delay
// }
// if(formValue.nearReservePriceThreshold){
// delete formValue.nearReservePriceThreshold
// }
// if(formValue.resetDelay){
// delete formValue.resetDelay
// }
// if(formValue.resetDelayDuration){
// delete formValue.resetDelayDuration
// }
switch
(
this
.
action
)
{
switch
(
this
.
action
)
{
case
'create'
:
case
'create'
:
case
'add'
:
case
'add'
:
AuctionController
.
addAuction
(
this
.
axios
,
formValue
).
then
(
response
=>
{
AuctionController
.
addAuction
(
this
.
axios
,
{...
formValue
,
extraJson
:
JSON
.
stringify
(
extraJson
)}
).
then
(
response
=>
{
message
.
success
(
'保存成功'
);
message
.
success
(
'保存成功'
);
this
.
$emit
(
'handleOk'
,
response
.
data
);
this
.
$emit
(
'handleOk'
,
response
.
data
);
this
.
$goBack
();
this
.
$goBack
();
...
@@ -580,7 +613,7 @@ export default class AuctionForm extends FormComponent<Auction> {
...
@@ -580,7 +613,7 @@ export default class AuctionForm extends FormComponent<Auction> {
break
;
break
;
case
'edit'
:
case
'edit'
:
formValue
.
auctionId
=
this
.
formState
.
auctionId
;
formValue
.
auctionId
=
this
.
formState
.
auctionId
;
AuctionController
.
updateAuction
(
this
.
axios
,
formValue
).
then
(
response
=>
{
AuctionController
.
updateAuction
(
this
.
axios
,
{...
formValue
,
extraJson
:
JSON
.
stringify
(
extraJson
)}
).
then
(
response
=>
{
message
.
success
(
'修改成功'
);
message
.
success
(
'修改成功'
);
this
.
$goBack
();
this
.
$goBack
();
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
...
...
aus-front/admin/src/views/auction/auction/AuctionPage.vue
View file @
181d4f6
...
@@ -124,7 +124,18 @@ export default class AuctionPage extends PaginationComponent<Auction> {
...
@@ -124,7 +124,18 @@ export default class AuctionPage extends PaginationComponent<Auction> {
selectIds
:
number
[]
=
[];
selectIds
:
number
[]
=
[];
selectedItems
:
Auction
[]
=
[];
selectedItems
:
Auction
[]
=
[];
auctionModeList
=
[{
label
:
'普通模式'
,
value
:
'LIGHT'
},
{
label
:
'轮询出价模式'
,
value
:
'LIGHT_POOLLING_BIDS'
}]
auctionModeList
=
[{
label
:
'普通模式'
,
value
:
'1'
},
{
label
:
'轮询出价模式'
,
value
:
'2'
}]
queryFormData
=
{
auctionName
:
[
null
,
{
label
:
'拍场名称'
,
field
:
'auctionName'
,
operator
:
Operator
.
like
}],
auctionMode
:
[
null
,
{
label
:
'明拍模式'
,
type
:
'select'
,
placeholder
:
'请选择明拍模式'
,
field
:
'auctionMode'
,
optionItems
:
this
.
auctionModeList
,
operator
:
Operator
.
eq
}],
auctionId
:
[
null
,
{
label
:
'拍场ID'
,
field
:
'auctionId'
,
operator
:
Operator
.
eq
}],
auctionStartTime
:
[
null
,
{
label
:
'拍场开始时间'
,
field
:
'auctionStartTime'
,
operator
:
Operator
.
dateBetween
,
type
:
'date-range'
}],
createTime
:
[
null
,
{
label
:
'提交审核时间'
,
field
:
'createTime'
,
operator
:
Operator
.
dateBetween
,
type
:
'date-range'
}],
realName
:
[
null
,
{
label
:
'拍场管理员'
,
field
:
'user.realName'
,
operator
:
Operator
.
like
}],
auctionState
:
[
''
,
{
label
:
'状态'
,
field
:
'auctionState'
,
operator
:
Operator
.
eq
,
hidden
:
true
}],
};
/**
/**
* 表格列配置
* 表格列配置
*/
*/
...
@@ -178,15 +189,7 @@ export default class AuctionPage extends PaginationComponent<Auction> {
...
@@ -178,15 +189,7 @@ export default class AuctionPage extends PaginationComponent<Auction> {
*/
*/
created
():
void
{
created
():
void
{
this
.
init
(
this
.
axios
,
AuctionController
.
PAGE_AUCTION
);
this
.
init
(
this
.
axios
,
AuctionController
.
PAGE_AUCTION
);
this
.
buildQueryForm
({
this
.
buildQueryForm
(
this
.
queryFormData
);
auctionName
:
[
null
,
{
label
:
'拍场名称'
,
field
:
'auctionName'
,
operator
:
Operator
.
like
}],
auctionMode
:
[
null
,
{
label
:
'明拍模式'
,
type
:
'select'
,
placeholder
:
'请选择明拍模式'
,
field
:
'auctionMode'
,
optionItems
:
this
.
auctionModeList
,
operator
:
Operator
.
eq
}],
auctionId
:
[
null
,
{
label
:
'拍场ID'
,
field
:
'auctionId'
,
operator
:
Operator
.
eq
}],
auctionStartTime
:
[
null
,
{
label
:
'拍场开始时间'
,
field
:
'auctionStartTime'
,
operator
:
Operator
.
dateBetween
,
type
:
'date-range'
}],
createTime
:
[
null
,
{
label
:
'提交审核时间'
,
field
:
'createTime'
,
operator
:
Operator
.
dateBetween
,
type
:
'date-range'
}],
realName
:
[
null
,
{
label
:
'拍场管理员'
,
field
:
'user.realName'
,
operator
:
Operator
.
like
}],
auctionState
:
[
''
,
{
label
:
'状态'
,
field
:
'auctionState'
,
operator
:
Operator
.
eq
,
hidden
:
true
}],
});
this
.
pagination
.
setDefaultSort
(
'createTime'
,
Order
.
desc
);
this
.
pagination
.
setDefaultSort
(
'createTime'
,
Order
.
desc
);
this
.
pagination
.
addDefaultFilter
(
'auctionType'
,
this
.
currentAuctionType
);
this
.
pagination
.
addDefaultFilter
(
'auctionType'
,
this
.
currentAuctionType
);
this
.
pageLoad
();
this
.
pageLoad
();
...
@@ -195,12 +198,22 @@ export default class AuctionPage extends PaginationComponent<Auction> {
...
@@ -195,12 +198,22 @@ export default class AuctionPage extends PaginationComponent<Auction> {
changeTab
(
key
:
string
):
void
{
changeTab
(
key
:
string
):
void
{
this
.
currentAuctionType
=
key
;
this
.
currentAuctionType
=
key
;
// 清空之前的过滤字段
this
.
pagination
.
filterFields
=
[];
if
(
key
==
'DARK'
)
{
let
formData
=
{...
this
.
queryFormData
};
delete
formData
.
auctionMode
;
this
.
buildQueryForm
(
formData
);
this
.
columns
=
this
.
columns
.
filter
(
item
=>
item
.
dataIndex
!=
'auctionMode'
);
}
else
{
this
.
buildQueryForm
(
this
.
queryFormData
);
this
.
columns
.
splice
(
3
,
0
,
{
title
:
'明拍模式'
,
dataIndex
:
'auctionMode'
,
key
:
'auctionMode'
,
width
:
120
});
}
this
.
pagination
.
addDefaultFilter
(
'auctionType'
,
this
.
currentAuctionType
);
this
.
pagination
.
addDefaultFilter
(
'auctionType'
,
this
.
currentAuctionType
);
this
.
loadAuctionStateCount
();
this
.
loadAuctionStateCount
();
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
pagination
.
reload
().
then
(
res
=>
{
this
.
pagination
.
reload
().
then
(
res
=>
{
this
.
loadAuctionStateCount
()}).
finally
(()
=>
this
.
loading
=
false
);
this
.
loadAuctionStateCount
();
}).
finally
(()
=>
this
.
loading
=
false
);
}
}
loadAuctionStateCount
():
void
{
loadAuctionStateCount
():
void
{
...
...
aus-front/admin/src/views/auction/control/AuctionVehiclePage.vue
View file @
181d4f6
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
</
template
>
</
template
>
<a-button
v-else
v-sec=
"'control_7'"
type=
"link"
size=
"small"
@
click=
"cancelAuctionVehicle(record)"
>
中止
</a-button>
<a-button
v-else
v-sec=
"'control_7'"
type=
"link"
size=
"small"
@
click=
"cancelAuctionVehicle(record)"
>
中止
</a-button>
</template>
</template>
<a-button
type=
"link"
v-if=
"auction.auctionMode == '2'"
size=
"small"
@
click=
"handlePriceAdd(record)"
>
加价设置
</a-button>
</template>
</template>
</template>
</template>
<!--拍卖车辆列表end-->
<!--拍卖车辆列表end-->
...
@@ -41,6 +42,9 @@
...
@@ -41,6 +42,9 @@
<a-drawer
v-model:open=
"showVehicle"
title=
"车辆信息"
placement=
"right"
width=
"936"
>
<a-drawer
v-model:open=
"showVehicle"
title=
"车辆信息"
placement=
"right"
width=
"936"
>
<vehicle-drawer
v-if=
"selectedAuctionVehicle"
:vehicle=
"selectedAuctionVehicle?.vehicle"
></vehicle-drawer>
<vehicle-drawer
v-if=
"selectedAuctionVehicle"
:vehicle=
"selectedAuctionVehicle?.vehicle"
></vehicle-drawer>
</a-drawer>
</a-drawer>
<priceAddModal
ref=
"priceAddModalRef"
@
priceAddModalOk=
"pageReload"
></priceAddModal>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
@@ -59,9 +63,12 @@ import AuctionVehicleChangeDelay from "@/views/auction/control/change/AuctionVeh
...
@@ -59,9 +63,12 @@ import AuctionVehicleChangeDelay from "@/views/auction/control/change/AuctionVeh
import
AuctionVehicleChangeCancel
from
"@/views/auction/control/change/AuctionVehicleChangeCancel.vue"
;
import
AuctionVehicleChangeCancel
from
"@/views/auction/control/change/AuctionVehicleChangeCancel.vue"
;
import
VehicleDrawer
from
"@/views/vehicle/inventory/VehicleDrawer.vue"
;
import
VehicleDrawer
from
"@/views/vehicle/inventory/VehicleDrawer.vue"
;
import
priceAddModal
from
"@/views/auction/control/priceAddModal.vue"
;
@
Component
({
@
Component
({
components
:
{
components
:
{
VehicleDrawer
,
VehicleDrawer
,
priceAddModal
,
AuctionVehicleStateTag
,
AuctionVehicleStateTag
,
DoubleRightOutlined
,
DoubleRightOutlined
,
SearchOutlined
,
SearchOutlined
,
...
@@ -74,6 +81,8 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
...
@@ -74,6 +81,8 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
@
Prop
({
type
:
Number
,
required
:
false
})
@
Prop
({
type
:
Number
,
required
:
false
})
auctionId
:
number
;
auctionId
:
number
;
@
Prop
({
type
:
Object
,
required
:
false
})
auction
:
Auction
;
showVehicle
=
false
;
showVehicle
=
false
;
/**
/**
* 表格列配置
* 表格列配置
...
@@ -99,7 +108,7 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
...
@@ -99,7 +108,7 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
{
title
:
'保留价'
,
dataIndex
:
[
'vehicle'
,
'reservePrice'
],
key
:
'reservePrice'
,
align
:
'right'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'保留价'
,
dataIndex
:
[
'vehicle'
,
'reservePrice'
],
key
:
'reservePrice'
,
align
:
'right'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'参考价'
,
dataIndex
:
[
'vehicle'
,
'referencePrice'
],
key
:
'referencePrice'
,
align
:
'right'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'参考价'
,
dataIndex
:
[
'vehicle'
,
'referencePrice'
],
key
:
'referencePrice'
,
align
:
'right'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'拍卖状态'
,
dataIndex
:
'auctionState'
,
key
:
'auctionState'
,
align
:
'center'
,
fixed
:
'right'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'拍卖状态'
,
dataIndex
:
'auctionState'
,
key
:
'auctionState'
,
align
:
'center'
,
fixed
:
'right'
,
width
:
100
,
resizable
:
true
,
ellipsis
:
true
,
sorter
:
true
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
19
0
,
align
:
'center'
,
fixed
:
'right'
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
26
0
,
align
:
'center'
,
fixed
:
'right'
},
];
];
selectedAuctionVehicle
:
AuctionVehicle
|
null
=
null
;
selectedAuctionVehicle
:
AuctionVehicle
|
null
=
null
;
...
@@ -183,6 +192,10 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
...
@@ -183,6 +192,10 @@ export default class AuctionVehiclePage extends PaginationComponent<AuctionVehic
});
});
}
}
handlePriceAdd
(
data
:
AuctionVehicle
):
void
{
this
.
$refs
.
priceAddModalRef
.
init
(
data
);
}
viewVehicleDetail
(
auctionVehicle
:
AuctionVehicle
):
void
{
viewVehicleDetail
(
auctionVehicle
:
AuctionVehicle
):
void
{
this
.
selectedAuctionVehicle
=
auctionVehicle
;
this
.
selectedAuctionVehicle
=
auctionVehicle
;
this
.
showVehicle
=
true
;
this
.
showVehicle
=
true
;
...
...
aus-front/admin/src/views/auction/control/ControlAuction.vue
View file @
181d4f6
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</a-col>
</a-col>
</a-row>
</a-row>
</a-card>
</a-card>
<auction-vehicle-page
ref=
"auctionVehiclePage"
v-sec=
"'control_15'"
:auction-id=
"auctionId"
></auction-vehicle-page>
<auction-vehicle-page
ref=
"auctionVehiclePage"
v-sec=
"'control_15'"
:auction-id=
"auctionId"
:auction=
"auction"
></auction-vehicle-page>
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
...
aus-front/admin/src/views/auction/control/priceAddModal.vue
0 → 100644
View file @
181d4f6
<
template
>
<a-modal
v-model:open=
"exitVisible"
:title=
"modalTitle"
width=
"560px"
@
ok=
"handleExit"
>
<div>
<a-form
ref=
"formRef"
:model=
"postData"
style=
"width: 100%;margin-top: 24px;"
>
<a-form-item
style=
"width: 100%"
label=
"启用自动加价"
name=
"autoBidSwitch"
>
<a-switch
v-model:checked=
"postData.autoBidSwitch"
/>
</a-form-item>
<a-form-item
style=
"width: 100%"
label=
"加价幅度"
name=
"autoBidRange"
>
<a-input-number
style=
"width: 96%"
v-model:value=
"postData.autoBidRange"
:min=
"100"
:step=
"100"
:max=
"50000"
:maxlength=
"6"
addon-after=
"元"
placeholder=
"请输入100的倍数"
@
blur=
"handleAutoBidRangeChange(postData.autoBidRange)"
/>
</a-form-item>
<a-form-item
style=
"width: 100%"
label=
"触发时机"
name=
"autoBidTrigger"
>
<span
style=
"line-height: 32px;padding-right: 8px;"
>
截止倒计时
</span>
<a-input-number
style=
"width: 160px"
v-model:value=
"postData.autoBidTrigger"
:min=
"1"
:step=
"1"
:max=
"999999"
:maxlength=
"6"
placeholder=
"请输入触发时机"
/>
<span
style=
"line-height: 32px;padding-left: 8px;"
>
秒触发
</span>
</a-form-item>
</a-form>
<div
class=
"tipBox"
>
<div>
规则说明:
</div>
<div>
生效前提: 仅在车辆状态为“竞价中”,且当前价未达到保留价时生效。
</div>
<div>
加价上限:系统自动加价的最高目标是不超过保留价。
</div>
<div>
用户优先:若有真实用户抢先出价,系统本轮自动加价取消。
</div>
</div>
</div>
</a-modal>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
'vue-facing-decorator'
;
import
{
AuctionController
}
from
"@/api/AuctionController"
;
import
{
message
}
from
'ant-design-vue'
;
@
Component
export
default
class
PriceAddModal
extends
Vue
{
exitVisible
:
boolean
=
false
;
modalTitle
:
string
=
''
;
postData
:
any
=
{
vehicleId
:
''
,
autoBidSwitch
:
false
,
autoBidRange
:
''
,
autoBidTrigger
:
''
,
};
pageData
:
any
=
{};
init
(
data
)
{
this
.
pageData
=
data
;
console
.
log
(
'init111111111111111111111priceAddModal'
,
data
);
const
vehicle
=
data
.
vehicle
||
{};
const
baseInfo
=
vehicle
.
baseInfo
||
{};
this
.
modalTitle
=
`系统自动加价设置(车辆:
${
baseInfo
.
carSeriesName
}
${
baseInfo
.
carTypeName
}
)`
;
this
.
postData
.
vehicleId
=
vehicle
.
vehicleId
||
''
;
this
.
postData
.
autoBidSwitch
=
vehicle
.
autoBidSwitch
==
1
?
true
:
false
;
this
.
postData
.
autoBidRange
=
vehicle
.
autoBidRange
||
''
;
this
.
postData
.
autoBidTrigger
=
vehicle
.
autoBidTrigger
||
''
;
this
.
exitVisible
=
true
;
}
handleExit
():
void
{
const
params
=
{
...
this
.
postData
,
autoBidSwitch
:
this
.
postData
.
autoBidSwitch
?
1
:
0
,
}
AuctionController
.
vehicleAutoBid
(
this
.
axios
,
params
).
then
(
response
=>
{
message
.
success
(
'操作成功'
);
this
.
$emit
(
'priceAddModalOk'
);
this
.
exitVisible
=
false
;
});
}
// 确保值是100的倍数
handleAutoBidRangeChange
(
value
:
number
)
{
if
(
value
)
{
const
roundedValue
=
Math
.
round
(
value
/
100
)
*
100
;
this
.
postData
.
autoBidRange
=
roundedValue
;
}
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.tipBox
{
width
:
100%
;
padding
:
0
16px
;
margin-top
:
24px
;
background
:
#f5f5f5
;
border-radius
:
6px
;
font-size
:
12px
;
color
:
#666666
;
line-height
:
24px
;
}
</
style
>
aus-front/admin/src/views/finance/order-transaction/OrderTransactionAuditPage.vue
View file @
181d4f6
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<a-image
v-if=
"record.payVouchers&&record.payVouchers.length>0"
:src=
"record.payVouchers[0].url"
:height=
"80"
></a-image>
<a-image
v-if=
"record.payVouchers&&record.payVouchers.length>0"
:src=
"record.payVouchers[0].url"
:height=
"80"
></a-image>
</
template
>
</
template
>
<
template
v-if=
"column.key === 'carTypeName'"
>
<
template
v-if=
"column.key === 'carTypeName'"
>
<a
target=
"_blank"
:href=
"`
..
/vehicle/view?vehicleId=$
{record.auctionOrder.vehicle.vehicleId}`">
<a
target=
"_blank"
:href=
"`
#
/vehicle/view?vehicleId=$
{record.auctionOrder.vehicle.vehicleId}`">
{{
record
.
auctionOrder
.
vehicle
.
baseInfo
.
carSerialNam
}}
{{
record
.
auctionOrder
.
vehicle
.
baseInfo
.
carSerialNam
}}
{{
record
.
auctionOrder
.
vehicle
.
baseInfo
.
carTypeName
}}
</a>
{{
record
.
auctionOrder
.
vehicle
.
baseInfo
.
carTypeName
}}
</a>
</
template
>
</
template
>
...
...
aus-front/app/src/module/auction/AuctionVehiclePage.vue
View file @
181d4f6
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<image
:src=
"item.url"
mode=
"aspectFill"
class=
"car-image"
/>
<image
:src=
"item.url"
mode=
"aspectFill"
class=
"car-image"
/>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
<
view
class=
"auction-rule"
@
click=
"navigateToAgreement($event)"
>
拍卖规则
</view
>
<
!--
<view
class=
"auction-rule"
@
click=
"navigateToAgreement($event)"
>
拍卖规则
</view>
--
>
<view
class=
"favorite-count"
v-if=
"favoriteCount>0"
>
有
{{
favoriteCount
}}
位用户收藏了这台车
</view>
<view
class=
"favorite-count"
v-if=
"favoriteCount>0"
>
有
{{
favoriteCount
}}
位用户收藏了这台车
</view>
<view
class=
"image-count"
>
{{
currentImageIndex
+
1
}}
/
{{
albums
.
length
}}
</view>
<view
class=
"image-count"
>
{{
currentImageIndex
+
1
}}
/
{{
albums
.
length
}}
</view>
</view>
</view>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
</view>
</view>
<!-- 出价信息 -->
<!-- 出价信息 -->
<view
class=
"section-card"
>
<
!--
<
view
class=
"section-card"
>
<view
class=
"bid-header"
>
<view
class=
"bid-header"
>
<view
class=
"section-title"
>
竞价记录
</view>
<view
class=
"section-title"
>
竞价记录
</view>
<view
class=
"all-bids"
@
click=
"navigateTo('/module/auction/AuctionBidPage?aucvehId=' + auctionVehicle?.aucvehId+'&auctionType='+auctionVehicle.auction.auctionType)"
>
全部竞价
</view>
<view
class=
"all-bids"
@
click=
"navigateTo('/module/auction/AuctionBidPage?aucvehId=' + auctionVehicle?.aucvehId+'&auctionType='+auctionVehicle.auction.auctionType)"
>
全部竞价
</view>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<text>
我的出价 --
</text>
<text>
我的出价 --
</text>
<text>
--
</text>
<text>
--
</text>
</view>
</view>
</view>
</view>
-->
<!-- 车辆基本参数 -->
<!-- 车辆基本参数 -->
<view
class=
"section-card"
v-if=
"auctionVehicle"
>
<view
class=
"section-card"
v-if=
"auctionVehicle"
>
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
</view>
</view>
</view>
</view>
<!-- 底部操作栏 -->
<!-- 底部操作栏 -->
<view
class=
"bottom-action-bar"
>
<
!--
<
view
class=
"bottom-action-bar"
>
<template
v-if=
"auctionVehicle.auctionState==='AUCTIONING'"
>
<template
v-if=
"auctionVehicle.auctionState==='AUCTIONING'"
>
<van-button
type=
"primary"
hairline
round
block
@
click=
"showBidPopup"
>
参与竞拍
</van-button>
<van-button
type=
"primary"
hairline
round
block
@
click=
"showBidPopup"
>
参与竞拍
</van-button>
</
template
>
</
template
>
...
@@ -174,7 +174,11 @@
...
@@ -174,7 +174,11 @@
<van-button
type=
"default"
hairline
round
block
>
预展中
</van-button>
<van-button
type=
"default"
hairline
round
block
>
预展中
</van-button>
</
template
>
</
template
>
<van-button
v-else
type=
"default"
hairline
round
block
>
竞拍已结束
</van-button>
<van-button
v-else
type=
"default"
hairline
round
block
>
竞拍已结束
</van-button>
</view>
</view>
-->
<!-- 轮询出价底部操作栏 -->
<roundBidBottom
ref=
"roundBidBottomRef"
:auctionVehicle=
"auctionVehicle"
/>
<uni-popup
class=
"popup-modal"
v-if=
"auctionVehicle&&(auctionVehicle.auctionState==='PREVIEW'||auctionVehicle.auctionState==='AUCTIONING')"
ref=
"bidPopup"
type=
"bottom"
<uni-popup
class=
"popup-modal"
v-if=
"auctionVehicle&&(auctionVehicle.auctionState==='PREVIEW'||auctionVehicle.auctionState==='AUCTIONING')"
ref=
"bidPopup"
type=
"bottom"
background-color=
"#fff"
@
change=
"change"
>
background-color=
"#fff"
@
change=
"change"
>
...
@@ -300,8 +304,10 @@ import {LightBidPriceRange} from "lib/src/entity/business/domain/LightBidPriceRa
...
@@ -300,8 +304,10 @@ import {LightBidPriceRange} from "lib/src/entity/business/domain/LightBidPriceRa
import
{
Recharge
}
from
"lib/src/entity/finance/entity/Recharge"
;
import
{
Recharge
}
from
"lib/src/entity/finance/entity/Recharge"
;
import
{
DepositController
}
from
"@/api/DepositController"
;
import
{
DepositController
}
from
"@/api/DepositController"
;
import
roundBidBottom
from
"@/module/auction/roundBidBottom.vue"
;
@
Component
({
@
Component
({
components
:
{
BidSuccessDialog
}
components
:
{
BidSuccessDialog
,
roundBidBottom
}
})
})
export
default
class
AuctionVehiclePage
extends
Vue
{
export
default
class
AuctionVehiclePage
extends
Vue
{
amountStyle
=
{
'font-size'
:
'20px'
};
amountStyle
=
{
'font-size'
:
'20px'
};
...
...
aus-front/app/src/module/auction/roundBidBottom.vue
0 → 100644
View file @
181d4f6
<
template
>
<view>
<view
class=
"bottom-action"
>
22222222222
</view>
</view>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
"vue-facing-decorator"
;
import
{
onLoad
,
onShow
,
onUnload
}
from
"@dcloudio/uni-app"
;
@
Component
({
components
:
{}
})
export
default
class
roundBidBottom
extends
Vue
{
@
Prop
({
type
:
Object
,
required
:
true
})
auctionVehicle
:
any
;
pageData
:
{};
//页面显示数据
created
():
void
{
onLoad
((
option
)
=>
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle11111'
,
this
.
auctionVehicle
)
});
onShow
((
option
)
=>
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle22222'
,
this
.
auctionVehicle
)
});
onUnload
(()
=>
{
});
}
//循环
roundBid
()
{
const
that
=
this
;
setTimeout
(()
=>
{
console
.
log
(
'auctionVehicleauctionVehicleauctionVehicleauctionVehicle'
,
this
.
auctionVehicle
)
// that.roundBid();
},
1000
);
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
/* 底部操作栏 */
.bottom-action
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
50px
;
background-color
:
#fff
;
padding
:
10px
15px
;
z-index
:
2
;
box-shadow
:
0
-2px
10px
rgba
(
0
,
0
,
0
,
0.1
);
}
</
style
>
\ No newline at end of file
\ No newline at end of file
aus-front/lib/src/entity/auction/entity/Auction.ts
View file @
181d4f6
...
@@ -122,6 +122,15 @@ export class Auction extends AuditingEntity {
...
@@ -122,6 +122,15 @@ export class Auction extends AuditingEntity {
//持续分钟
//持续分钟
durationMinute
:
number
;
durationMinute
:
number
;
// endregion
// endregion
auctionMode
:
string
;
delay
:
string
;
nearReservePriceThreshold
:
string
;
resetDelay
:
string
;
resetDelayUnit
:
string
;
resetDelayDuration
:
string
;
resetDelayDurationUnit
:
string
;
extraJson
:
string
;
}
}
/**
/**
...
...
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