Commit 639e54f2 authored by yaya's avatar yaya

feat:优化专场拍品选择

parent dae2818b
......@@ -163,6 +163,18 @@ export function findSpecialListById(data) {
data
})
}
/**
* 专场选择拍品
* @param data
* @returns {*}
*/
export function findSupplierItemForSpecialPerformance(data) {
return request({
url: '/supplierItem/findSupplierItemForSpecialPerformance',
method: 'post',
data
})
}
/**
* 删除专场下拍品
* @param data
......
......@@ -3,7 +3,7 @@
<div class="filter-container">
<div class="button_left">
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入标题"/>
<el-select v-model="listQuery.status" placeholder="请选择拍卖状态" class="filter-item" style="width: 200px;" clearable>
<el-select v-model="listQuery.auctionState" placeholder="请选择拍卖状态" class="filter-item" style="width: 200px;" clearable>
<el-option
v-for="item in options"
:key="item.label"
......@@ -122,22 +122,22 @@ export default {
value: 1,
label: '待上架'
}, {
value: 2,
value: 10,
label: '预展中'
}, {
value: 3,
value: 20,
label: '竞拍中'
}, {
value: 4,
value: 30,
label: '中拍未付款'
}, {
value: 5,
value: 100,
label: '成交'
}, {
value: 6,
value: 40,
label: '中拍未付款流拍'
}, {
value: 7,
value: 50,
label: '无出价流拍'
}],
listLoading: true,
......
......@@ -82,7 +82,7 @@
<script>
import Line2Hidden from '@/components/line2Hidden'
import Pagination from '@/components/Pagination'
import { findAuctionList, addSpecialItem } from '@/api/business/sale'
import { findSpecialListById, addSpecialItem } from '@/api/business/sale'
export default {
name: 'SelectSpecialDialog',
components: {
......@@ -135,9 +135,10 @@ export default {
},
getList() {
this.listLoading = true
findAuctionList(this.listQuery).then(response => {
this.list = response.data.data.dataList
this.total = response.data.data.total
this.listQuery.specialPerformanceId = this.specialPerformanceId
findSpecialListById(this.listQuery).then(response => {
this.list = response.data.data.data.dataList
this.total = response.data.data.data.total
this.listLoading = false
}).catch((e) => {
this.list = []
......
......@@ -380,9 +380,8 @@ export default {
this.listLoading = true
this.listQuery.specialPerformanceId = this.id
findSpecialListById(this.listQuery).then(response => {
debugger
this.list = response.data.data.dataList
this.total = response.data.data.total
this.list = response.data.data.data.dataList
this.total = response.data.data.data.total
this.listLoading = false
}).catch((e) => {
this.list = []
......
......@@ -95,10 +95,11 @@ import { findSpecialListById, specialDetail } from '../../api/business/sale'
import CheckLargeImageDialog from '../goods/components/CheckLargeImageDialog'
import CheckVideoDialog from '../goods/components/CheckVideoDialog'
import Line2Hidden from '@/components/line2Hidden'
import Pagination from '@/components/Pagination'
export default {
name: 'SpecialDetail',
components: { CheckVideoDialog, CheckLargeImageDialog, Line2Hidden },
components: { CheckVideoDialog, CheckLargeImageDialog, Line2Hidden, Pagination },
data() {
return {
id: '',
......@@ -183,7 +184,6 @@ export default {
this.listLoading = true
this.listQuery.specialPerformanceId = this.id
findSpecialListById(this.listQuery).then(response => {
debugger
this.list = response.data.data.data.dataList
this.total = response.data.data.data.total
this.listLoading = false
......
......@@ -37,7 +37,7 @@
:disabled="(scope.row.state === 2)"
type="primary"
size="mini"
@click="handleToDetail(scope.row)">编辑
@click="handleToEdit(scope.row)">编辑
</el-button>
<el-button
:disabled="(scope.row.state === 2)"
......@@ -146,6 +146,12 @@ export default {
handleToDetail(item) {
this.$router.push({ path: '/sale/specialDetail', query: { id: item.id }})
},
/**
* 编辑
*/
handleToEdit(item) {
this.$router.push({ path: '/sale/specialAdd', query: { id: item.id }})
},
/**
* 删除
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment