Commit 639e54f2 authored by yaya's avatar yaya

feat:优化专场拍品选择

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