|
|
@ -40,7 +40,7 @@ |
|
|
</a-select> |
|
|
</a-select> |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="5" class="query_item"> |
|
|
<a-col :span="5" class="query_item"> |
|
|
<span>委托类型:</span> |
|
|
<span>交易方式:</span> |
|
|
<a-select v-model="query.goods_entrust"> |
|
|
<a-select v-model="query.goods_entrust"> |
|
|
<a-select-option value="">全部</a-select-option> |
|
|
<a-select-option value="">全部</a-select-option> |
|
|
<a-select-option value="1">转让</a-select-option> |
|
|
<a-select-option value="1">转让</a-select-option> |
|
|
@ -72,9 +72,9 @@ |
|
|
<div class="table"> |
|
|
<div class="table"> |
|
|
<div class="table_title"> |
|
|
<div class="table_title"> |
|
|
<span >查询结果</span> |
|
|
<span >查询结果</span> |
|
|
<a-button type="primary" class="query_button" @click="getGoods">获 取</a-button> |
|
|
<a-button type="primary" class="query_button" @click="getGoods">下 架</a-button> |
|
|
</div> |
|
|
</div> |
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false"> |
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"> |
|
|
<template slot="goods_status" slot-scope="goods_status"> |
|
|
<template slot="goods_status" slot-scope="goods_status"> |
|
|
<span>{{goods_status==1?'上架中':goods_status==2?'下架中':goods_status==3?'已转让':'已失效'}}</span> |
|
|
<span>{{goods_status==1?'上架中':goods_status==2?'下架中':goods_status==3?'已转让':'已失效'}}</span> |
|
|
</template> |
|
|
</template> |
|
|
@ -113,7 +113,7 @@ |
|
|
import Operation from '../../Operation.vue' |
|
|
import Operation from '../../Operation.vue' |
|
|
import dataSelect from '../../dateSelect/index.vue' |
|
|
import dataSelect from '../../dateSelect/index.vue' |
|
|
import operationRecords from '../../operationRecords/index.vue' |
|
|
import operationRecords from '../../operationRecords/index.vue' |
|
|
import {getAllDate,getLog,manualGetGoods} from '../../../api/index' |
|
|
import {getAllDate,getLog,offGoods} from '../../../api/index' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return{ |
|
|
return{ |
|
|
@ -126,6 +126,7 @@ export default { |
|
|
data_type:'', |
|
|
data_type:'', |
|
|
createtime:[], |
|
|
createtime:[], |
|
|
}, |
|
|
}, |
|
|
|
|
|
selectedRowKeys:[], |
|
|
visible:false, |
|
|
visible:false, |
|
|
//数据查看所需要的数据 |
|
|
//数据查看所需要的数据 |
|
|
goods_islicode:'', |
|
|
goods_islicode:'', |
|
|
@ -200,15 +201,19 @@ export default { |
|
|
this.getAllDate() |
|
|
this.getAllDate() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
onSelectChange(selectedRowKeys) { |
|
|
|
|
|
this.selectedRowKeys = selectedRowKeys; |
|
|
|
|
|
}, |
|
|
getGoods(){ |
|
|
getGoods(){ |
|
|
manualGetGoods().then(res=>{ |
|
|
let data={goods_isli:this.selectedRowKeys} |
|
|
|
|
|
offGoods(data).then(res=>{ |
|
|
if(res.code==200){ |
|
|
if(res.code==200){ |
|
|
if(res.data.count==0){ |
|
|
// if(res.data.count==0){ |
|
|
this.$message.success('无新增委托数据'); |
|
|
// this.$message.success('无新增委托数据'); |
|
|
}else{ |
|
|
// }else{ |
|
|
this.$message.success('成功获取'+res.data.count+'个委托数据!'); |
|
|
this.$message.success('下架成功'); |
|
|
this.getAllDate() |
|
|
this.getAllDate() |
|
|
} |
|
|
// } |
|
|
}else{ |
|
|
}else{ |
|
|
this.$message.error(res.msg); |
|
|
this.$message.error(res.msg); |
|
|
} |
|
|
} |
|
|
@ -230,6 +235,7 @@ export default { |
|
|
this.startTotal=res.data.start |
|
|
this.startTotal=res.data.start |
|
|
this.endTotal=res.data.end |
|
|
this.endTotal=res.data.end |
|
|
this.total=res.data.total |
|
|
this.total=res.data.total |
|
|
|
|
|
this.selectedRowKeys=[] |
|
|
}else{ |
|
|
}else{ |
|
|
this.$message.error(res.msg); |
|
|
this.$message.error(res.msg); |
|
|
} |
|
|
} |
|
|
|