Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
dae2818b
Commit
dae2818b
authored
Jun 21, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加重新上拍功能
parent
9a9fe6f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
8 deletions
+28
-8
src/api/business/sale.js
src/api/business/sale.js
+12
-0
src/views/sale/auctionList.vue
src/views/sale/auctionList.vue
+16
-8
No files found.
src/api/business/sale.js
View file @
dae2818b
...
...
@@ -77,6 +77,18 @@ export function findAuctionList(data) {
data
})
}
/**
* 拍品重新上架
* @param data
* @returns {*}
*/
export
function
auctionReSale
(
data
)
{
return
request
({
url
:
'
/specialPerformance/reSale
'
,
method
:
'
post
'
,
data
})
}
/**
* 专场列表
* @param data
...
...
src/views/sale/auctionList.vue
View file @
dae2818b
...
...
@@ -86,7 +86,7 @@
v
-
if
=
"
(scope.row.auctionState === 40 || scope.row.auctionState === 50)
"
type
=
"
danger
"
size
=
"
mini
"
@
click
=
"
handle
Delet
e(scope.row)
"
>
重新上架
@
click
=
"
handle
Resal
e(scope.row)
"
>
重新上架
<
/el-button
>
<
/template
>
<
/el-table-column
>
...
...
@@ -106,7 +106,7 @@
<
script
>
import
Line2Hidden
from
'
@/components/line2Hidden
'
import
Pagination
from
'
@/components/Pagination
'
import
{
updateOnSale
,
deleteSaleItem
,
findAuctionList
}
from
'
@/api/business/sale
'
import
{
updateOnSale
,
findAuctionList
,
auctionReSale
}
from
'
@/api/business/sale
'
import
{
MessageBox
}
from
'
element-ui
'
export
default
{
...
...
@@ -228,21 +228,29 @@ export default {
this
.
$router
.
push
({
path
:
'
/sale/AuctionAdd
'
,
query
:
{
id
:
item
.
id
}}
)
}
,
/**
*
删除
*
重新上架
*/
handle
Delete
(
item
)
{
this
.
$confirm
(
'
你确定删除吗?
'
,
'
提示
'
,
{
handle
Resale
(
row
)
{
this
.
$confirm
(
'
确定将该拍品重新上架吗?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
const
data
=
{
i
d
:
item
.
id
i
temId
:
row
.
id
}
deleteSaleItem
(
data
).
then
((
res
)
=>
{
auctionReSale
(
data
).
then
((
res
)
=>
{
this
.
list
=
this
.
list
.
filter
((
item
)
=>
{
if
(
item
.
id
===
row
.
id
)
{
item
.
auctionStateName
=
'
待上架
'
item
.
auctionState
=
1
return
item
}
return
item
}
)
this
.
$notify
.
success
({
title
:
'
成功
'
,
message
:
'
删除
成功
'
message
:
'
上架
成功
'
}
)
this
.
getList
()
}
).
catch
(
err
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment