|
|
|
@ -63,7 +63,7 @@ |
|
|
|
<div class="table"> |
|
|
|
<div class="table_title"> |
|
|
|
<span>查询结果</span> |
|
|
|
<a-button type="primary" class="query_button" @click="OffShelf">下 架</a-button> |
|
|
|
<a-button type="primary" class="query_button" @click="OffShelf">撤 销</a-button> |
|
|
|
</div> |
|
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio' }"> |
|
|
|
<template slot="goods_status" slot-scope="goods_status"> |
|
|
|
@ -117,7 +117,7 @@ |
|
|
|
import dataSelect from '../../dateSelect/index.vue' |
|
|
|
import operationRecords from '../../operationRecords/index.vue' |
|
|
|
import Operation from '../../Operation.vue' |
|
|
|
import {getAllDate,getLog,offGoods} from '../../../api/index' |
|
|
|
import {getAllDate,getLog,offGoods,whetherOff} from '../../../api/index' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return{ |
|
|
|
@ -210,11 +210,18 @@ export default { |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
OffShelf(){ |
|
|
|
// console.info(this.selectedRowKeys) |
|
|
|
console.info(this.selectedRowKeys) |
|
|
|
if(this.selectedRowKeys.length==0){ |
|
|
|
this.$message.error('请选择要下架的标的'); |
|
|
|
}else{ |
|
|
|
this.visible2=true |
|
|
|
let data={goods_isli:this.selectedRowKeys[0]} |
|
|
|
whetherOff(data).then(res=>{ |
|
|
|
if(res.code==200){ |
|
|
|
this.visible2=true |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
onSelectChange(selectedRowKeys) { |
|
|
|
|